mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-31 17:11:48 +02:00
docs: add a StackBlitz "Try It" button in code examples (#35644)
Co-authored-by: GeoSot <geo.sotis@gmail.com> Co-authored-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
//
|
||||
// JS-based `Copy` buttons for code snippets.
|
||||
|
||||
.bd-clipboard {
|
||||
.bd-clipboard,
|
||||
.bd-edit {
|
||||
position: relative;
|
||||
display: none;
|
||||
float: right;
|
||||
@@ -16,7 +17,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
.btn-clipboard {
|
||||
.btn-clipboard,
|
||||
.btn-edit {
|
||||
position: absolute;
|
||||
top: .65rem;
|
||||
right: .65rem;
|
||||
@@ -25,6 +27,7 @@
|
||||
padding: .25rem .5rem;
|
||||
@include font-size(.65em);
|
||||
color: $primary;
|
||||
white-space: nowrap;
|
||||
background-color: $white;
|
||||
border: 1px solid;
|
||||
@include border-radius();
|
||||
@@ -35,3 +38,7 @@
|
||||
background-color: $primary;
|
||||
}
|
||||
}
|
||||
|
||||
.btn-edit {
|
||||
right: 3.65rem;
|
||||
}
|
||||
|
Reference in New Issue
Block a user