site: hide copy button defaultly

This commit is contained in:
afc163 2017-03-13 15:04:21 +08:00
parent 8c22381ffe
commit 0b88dfae5b

View File

@ -173,6 +173,8 @@
line-height: 20px;
text-align: center;
border-radius: 20px;
opacity: 0;
&:hover {
color: @primary-color;
transform: scale(1.2);
@ -183,6 +185,10 @@
}
}
.highlight-wrapper:hover &-code-copy {
opacity: 1;
}
pre {
margin: 0;
width: auto;