diff --git a/docgen/assets/js/activateClipboard.js b/docgen/assets/js/activateClipboard.js index e8aee82856..ca1e732e29 100644 --- a/docgen/assets/js/activateClipboard.js +++ b/docgen/assets/js/activateClipboard.js @@ -29,8 +29,5 @@ export default function activateClipboard(codeSamples) { done(); timeout = setTimeout(setup, cleanAfter); }); - - // safari: https://clipboardjs.com/#browser-support - clipboard.on('error', () => copyToClipboard.setAttribute('data-hint', 'Hit ⌘+C to copy')); }); } diff --git a/docgen/src/stylesheets/components/_code-sample.scss b/docgen/src/stylesheets/components/_code-sample.scss index 41072c6d07..a714be07bf 100644 --- a/docgen/src/stylesheets/components/_code-sample.scss +++ b/docgen/src/stylesheets/components/_code-sample.scss @@ -1,7 +1,3 @@ -/** - * Github-like theme for Prism.js - * @author Luke Askew http://github.com/lukeaskew - */ .code-sample { position: relative; margin: 15px 0 15px 0; @@ -81,22 +77,11 @@ z-index: 20; color: #999; - img { - max-width: none !important; - vertical-align: middle; - margin: 0 auto !important; - } - &.clipboard-done { color: #555; } } - [data-hint]:after { - font-family: "Operator Mono", "Fira Code", "Ubuntu Mono", "Droid Sans Mono", "Liberation Mono", "Source Code Pro", Menlo, Consolas, Courier, monospace; - font-size: 11px; - } - .heading { position: relative; padding: 3px 7px;