0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-29 11:24:18 +01:00

Docs: Add top/bottom margin to highlighted code samples (#31706)

Backport of #31036 to v4
This commit is contained in:
Patrick H. Lauke 2020-09-19 16:59:56 +01:00 committed by GitHub
parent 7539cfb29c
commit 63b8a6ffdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 9 deletions

View File

@ -18,19 +18,19 @@
.btn-clipboard {
position: absolute;
top: .5rem;
right: .5rem;
top: .65rem;
right: .65rem;
z-index: 10;
display: block;
padding: .25rem .5rem;
@include font-size(75%);
color: #818a91;
background-color: transparent;
border: 0;
@include font-size(65%);
color: $primary;
background-color: $white;
border: 1px solid;
@include border-radius();
&:hover {
color: $white;
background-color: #027de7;
background-color: $primary;
}
}

View File

@ -366,8 +366,8 @@
.highlight {
pre {
padding: 0;
margin-top: 0;
margin-bottom: 0;
margin-top: .65rem;
margin-bottom: .65rem;
background-color: transparent;
border: 0;
}