2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-20 20:00:36 +03:00

Replace ZeroClipboard with clipboard.js.

Things left:
1. clear the selection after copy
2. add messages for success and error
This commit is contained in:
XhmikosR
2015-10-14 00:50:42 +03:00
parent e544bf4cf8
commit c343b9f59d
8 changed files with 32 additions and 53 deletions
+34
View File
@@ -0,0 +1,34 @@
// clipboard.js
//
// Flash-based `Copy` buttons for code snippets.
.bd-clipboard {
position: relative;
display: none;
float: right;
}
.btn-clipboard {
position: absolute;
top: .5rem;
right: .5rem;
z-index: 10;
display: block;
padding: .25rem .5rem;
font-size: 75%;
color: #818a91;
cursor: pointer;
background-color: transparent;
border-radius: .25rem;
}
.btn-clipboard-hover {
color: #fff;
background-color: #027de7;
}
@media (min-width: 768px) {
.bd-clipboard {
display: block;
}
}