'Copy to Clipboard' functionality (#163)

* Adds 'Copy to Clipboard' functionality to all code blocks in readOnly

* Show on hover, move to SC

* 💚

* PR feedback
This commit is contained in:
Tom Moor
2017-08-02 22:10:58 -07:00
committed by GitHub
parent ca35cee841
commit 38c8a46d32
9 changed files with 146 additions and 25 deletions

View File

@@ -0,0 +1,12 @@
// @flow
import styled from 'styled-components';
import { color } from 'styles/constants';
const InlineCode = styled.code`
padding: .25em;
background: ${color.smoke};
border-radius: 4px;
border: 1px solid ${color.smokeDark};
`;
export default InlineCode;