2015-10-14 05:50:42 +08:00
|
|
|
// clipboard.js
|
2015-04-17 05:57:49 +08:00
|
|
|
//
|
2016-07-20 15:07:18 +08:00
|
|
|
// JS-based `Copy` buttons for code snippets.
|
2015-04-17 05:57:49 +08:00
|
|
|
|
2015-10-14 05:50:42 +08:00
|
|
|
.bd-clipboard {
|
2015-04-17 05:57:49 +08:00
|
|
|
position: relative;
|
|
|
|
display: none;
|
|
|
|
float: right;
|
2015-12-08 13:35:00 +08:00
|
|
|
|
|
|
|
+ .highlight {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
2018-10-15 16:27:00 +08:00
|
|
|
|
|
|
|
@include media-breakpoint-up(md) {
|
|
|
|
display: block;
|
|
|
|
}
|
2015-04-17 05:57:49 +08:00
|
|
|
}
|
2015-08-14 15:47:41 +08:00
|
|
|
|
2015-04-17 05:57:49 +08:00
|
|
|
.btn-clipboard {
|
|
|
|
position: absolute;
|
2021-04-07 11:59:31 +08:00
|
|
|
top: .65rem;
|
|
|
|
right: .65rem;
|
2015-04-17 05:57:49 +08:00
|
|
|
z-index: 10;
|
|
|
|
display: block;
|
|
|
|
padding: .25rem .5rem;
|
2021-04-07 11:59:31 +08:00
|
|
|
@include font-size(.65em);
|
|
|
|
color: $primary;
|
|
|
|
background-color: $white;
|
|
|
|
border: 1px solid;
|
2019-07-24 14:41:18 +08:00
|
|
|
@include border-radius();
|
2015-08-14 15:47:41 +08:00
|
|
|
|
2020-12-15 15:43:12 +08:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2021-04-07 11:59:31 +08:00
|
|
|
color: $white;
|
|
|
|
background-color: $primary;
|
2015-12-08 13:35:00 +08:00
|
|
|
}
|
2015-04-17 05:57:49 +08:00
|
|
|
}
|