Shows copy to clipboard button on mobile

This commit is contained in:
Zeno Rocha 2016-10-02 16:45:25 -07:00
parent f76b0da4c6
commit 76e267fc71
No known key found for this signature in database
GPG Key ID: 7BEB4BBA4108C63F

View File

@ -170,13 +170,6 @@ textarea {
line-height: 20px; line-height: 20px;
} }
@media screen and (max-width: 768px) {
.snippet .btn {
display: none;
}
}
.snippet .btn { .snippet .btn {
-webkit-transition: opacity 0.3s ease-in-out; -webkit-transition: opacity 0.3s ease-in-out;
-o-transition: opacity 0.3s ease-in-out; -o-transition: opacity 0.3s ease-in-out;
@ -192,6 +185,12 @@ textarea {
opacity: 1; opacity: 1;
} }
@media screen and (max-width: 768px) {
.snippet .btn {
opacity: 1;
}
}
.example + .snippet .btn { .example + .snippet .btn {
top: 22px; top: 22px;
right: 2px; right: 2px;