docusaurus/website/static/css/code-blocks-buttons.css
Amy Lam 4e5f17c3d7 Add copy functionality to code blocks in Docusaurus itself (#634)
* Port of https://github.com/babel/website/pull/1594 to Docusaurus

* [WIP] Placement of button needs fixing

* Remove clipboard from dependencies, is installed via CDN instead
* camelCase CSS
* Move to separate file
* Change default color of copy button

* fixes

* Add copy functionality to Docusaurus itself

Not adding copy functionality to Docusaurus users for now.
2018-05-17 21:50:49 -07:00

39 lines
535 B
CSS

/* "Copy" code block button */
pre {
position: relative;
}
pre .btnIcon {
position: absolute;
top: 4px;
z-index: 2;
cursor: pointer;
border: 1px solid transparent;
padding: 0;
color: #fff;
background-color: transparent;
height: 30px;
transition: all .25s ease-out;
}
pre .btnIcon:hover {
text-decoration: none;
}
.btnIcon__body {
align-items: center;
display: flex;
}
.btnIcon svg {
fill: currentColor;
margin-right: .4em;
}
.btnIcon__label {
font-size: 11px;
}
.btnClipboard {
right: 10px;
}