mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
38 lines
600 B
SCSS
38 lines
600 B
SCSS
// clipboard.js
|
|
//
|
|
// JS-based `Copy` buttons for code snippets.
|
|
|
|
.bd-clipboard {
|
|
position: relative;
|
|
display: none;
|
|
float: right;
|
|
|
|
+ .highlight {
|
|
margin-top: 0;
|
|
}
|
|
|
|
@include media-breakpoint-up(md) {
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
.btn-clipboard {
|
|
position: absolute;
|
|
top: .35rem;
|
|
right: .5rem;
|
|
z-index: 10;
|
|
display: block;
|
|
padding: .25rem .5rem;
|
|
@include font-size(.75em);
|
|
color: $gray-700;
|
|
user-select: none;
|
|
background-color: transparent;
|
|
border: 0;
|
|
@include border-radius();
|
|
|
|
&:hover,
|
|
&:focus {
|
|
color: $gray-900;
|
|
background-color: $gray-200;
|
|
}
|
|
}
|