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