0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-10 22:24:19 +01:00
Bootstrap/site/assets/scss/_clipboard-js.scss
louismaxime.piton 1dc59b0d4e Minor fixes
2022-04-20 12:35:26 -07:00

52 lines
694 B
SCSS

// clipboard.js
//
// JS-based `Copy` buttons for code snippets.
.bd-clipboard,
.bd-edit {
position: relative;
display: none;
float: right;
+ .highlight {
margin-top: 0;
}
@include media-breakpoint-up(md) {
display: block;
}
}
.btn-clipboard,
.btn-edit {
display: block;
padding: .5em;
line-height: 1;
color: $gray-900;
background-color: $gray-100;
border: 0;
@include border-radius(.25rem);
&:hover {
color: $primary;
}
&:focus {
z-index: 3;
}
}
.btn-clipboard {
position: relative;
z-index: 2;
margin-top: .75rem;
margin-right: .75rem;
}
.highlight-toolbar {
.btn-clipboard {
margin-top: 0;
margin-right: 0;
}
}