2015-10-14 00:50:42 +03:00
|
|
|
// clipboard.js
|
2015-04-16 14:57:49 -07:00
|
|
|
//
|
2016-07-20 10:07:18 +03:00
|
|
|
// JS-based `Copy` buttons for code snippets.
|
2015-04-16 14:57:49 -07:00
|
|
|
|
2015-10-14 00:50:42 +03:00
|
|
|
.bd-clipboard {
|
2015-04-16 14:57:49 -07:00
|
|
|
position: relative;
|
|
|
|
display: none;
|
|
|
|
float: right;
|
2015-12-07 21:35:00 -08:00
|
|
|
|
|
|
|
+ .highlight {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
2018-10-15 11:27:00 +03:00
|
|
|
|
|
|
|
@include media-breakpoint-up(md) {
|
|
|
|
display: block;
|
|
|
|
}
|
2015-04-16 14:57:49 -07:00
|
|
|
}
|
2015-08-14 00:47:41 -07:00
|
|
|
|
2015-04-16 14:57:49 -07:00
|
|
|
.btn-clipboard {
|
|
|
|
position: absolute;
|
2015-08-14 00:47:41 -07:00
|
|
|
top: .5rem;
|
|
|
|
right: .5rem;
|
2015-04-16 14:57:49 -07:00
|
|
|
z-index: 10;
|
|
|
|
display: block;
|
|
|
|
padding: .25rem .5rem;
|
2019-02-07 23:32:05 +01:00
|
|
|
@include font-size(75%);
|
2015-04-16 14:57:49 -07:00
|
|
|
color: #818a91;
|
2015-08-14 00:47:41 -07:00
|
|
|
background-color: transparent;
|
2017-04-14 20:13:46 +01:00
|
|
|
border: 0;
|
2018-12-23 08:11:11 +01:00
|
|
|
@include border-radius;
|
2015-08-14 00:47:41 -07:00
|
|
|
|
2015-12-07 21:35:00 -08:00
|
|
|
&:hover {
|
2018-10-15 11:27:00 +03:00
|
|
|
color: $white;
|
2015-12-07 21:35:00 -08:00
|
|
|
background-color: #027de7;
|
|
|
|
}
|
2015-04-16 14:57:49 -07:00
|
|
|
}
|