2025-03-05 08:38:32 +08:00
|
|
|
@use "../../../scss/layout/breakpoints" as *;
|
|
|
|
@use "../../../scss/mixins/border-radius" as *;
|
|
|
|
|
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
|
|
|
|
2025-04-03 01:03:10 +08:00
|
|
|
@layer custom {
|
|
|
|
.bd-clipboard,
|
|
|
|
.bd-edit {
|
|
|
|
position: relative;
|
|
|
|
display: none;
|
|
|
|
float: right;
|
|
|
|
|
|
|
|
+ .highlight {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include media-breakpoint-up(md) {
|
|
|
|
display: block;
|
|
|
|
}
|
2015-12-08 13:35:00 +08:00
|
|
|
}
|
2018-10-15 16:27:00 +08:00
|
|
|
|
2025-04-03 01:03:10 +08:00
|
|
|
.btn-clipboard,
|
|
|
|
.btn-edit {
|
2018-10-15 16:27:00 +08:00
|
|
|
display: block;
|
2025-04-03 01:03:10 +08:00
|
|
|
padding: .5em;
|
|
|
|
line-height: 1;
|
|
|
|
color: var(--bs-body-color);
|
|
|
|
background-color: var(--bd-pre-bg);
|
|
|
|
border: 0;
|
|
|
|
@include border-radius(.25rem);
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: var(--bs-link-hover-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
z-index: 3;
|
|
|
|
}
|
2015-12-08 13:35:00 +08:00
|
|
|
}
|
2022-04-20 15:02:31 +08:00
|
|
|
|
2025-04-03 01:03:10 +08:00
|
|
|
.btn-clipboard {
|
|
|
|
position: relative;
|
|
|
|
z-index: 2;
|
|
|
|
margin-top: 1.25rem;
|
|
|
|
margin-right: .75rem;
|
2022-04-20 15:02:31 +08:00
|
|
|
}
|
2015-04-17 05:57:49 +08:00
|
|
|
}
|