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;
|
2021-04-07 05:59:31 +02:00
|
|
|
top: .65rem;
|
|
|
|
right: .65rem;
|
2015-04-16 23:57:49 +02:00
|
|
|
z-index: 10;
|
|
|
|
display: block;
|
|
|
|
padding: .25rem .5rem;
|
2021-04-07 05:59:31 +02:00
|
|
|
@include font-size(.65em);
|
|
|
|
color: $primary;
|
|
|
|
background-color: $white;
|
|
|
|
border: 1px solid;
|
2019-07-24 08:41:18 +02:00
|
|
|
@include border-radius();
|
2015-08-14 09:47:41 +02:00
|
|
|
|
2020-12-15 08:43:12 +01:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2021-04-07 05:59:31 +02:00
|
|
|
color: $white;
|
|
|
|
background-color: $primary;
|
2015-12-08 06:35:00 +01:00
|
|
|
}
|
2015-04-16 23:57:49 +02:00
|
|
|
}
|