Add a nice button to the docs to copy the import code

This commit is contained in:
Lonami Exo
2017-06-04 19:57:20 +02:00
parent cf6f300df1
commit 2f00033683
3 changed files with 61 additions and 0 deletions

View File

@@ -122,6 +122,36 @@ span.sh4 {
font-style: italic;
}
button {
border-radius: 2px;
font-size: 16px;
padding: 8px;
color: #000;
background-color: #fff;
border: 2px solid #42aaed;
transition-duration: 300ms;
}
button:hover {
background-color: #42aaed;
color: #fff;
}
/* https://stackoverflow.com/a/30810322 */
.invisible {
left: 0;
top: -99px;
padding: 0;
width: 2em;
height: 2em;
border: none;
outline: none;
position: fixed;
box-shadow: none;
color: transparent;
background: transparent;
}
@media (max-width: 640px) {
h1 {
font-size: 18px;