mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-17 14:54:30 +01:00
Docs: Add top/bottom margin to highlighted code samples (#31706)
Backport of #31036 to v4
This commit is contained in:
parent
7539cfb29c
commit
63b8a6ffdd
@ -18,19 +18,19 @@
|
|||||||
|
|
||||||
.btn-clipboard {
|
.btn-clipboard {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: .5rem;
|
top: .65rem;
|
||||||
right: .5rem;
|
right: .65rem;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
display: block;
|
display: block;
|
||||||
padding: .25rem .5rem;
|
padding: .25rem .5rem;
|
||||||
@include font-size(75%);
|
@include font-size(65%);
|
||||||
color: #818a91;
|
color: $primary;
|
||||||
background-color: transparent;
|
background-color: $white;
|
||||||
border: 0;
|
border: 1px solid;
|
||||||
@include border-radius();
|
@include border-radius();
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
color: $white;
|
color: $white;
|
||||||
background-color: #027de7;
|
background-color: $primary;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -366,8 +366,8 @@
|
|||||||
.highlight {
|
.highlight {
|
||||||
pre {
|
pre {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin-top: 0;
|
margin-top: .65rem;
|
||||||
margin-bottom: 0;
|
margin-bottom: .65rem;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
border: 0;
|
border: 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user