mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-23 00:39:54 +00:00
Fix spacing of code snippets
This commit is contained in:
parent
5602093c7b
commit
3990ff04a0
@ -85,16 +85,10 @@
|
|||||||
.bd-example {
|
.bd-example {
|
||||||
position: relative;
|
position: relative;
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
margin: 1rem ($bd-gutter-x * -.5) 0;
|
|
||||||
border: solid $border-color;
|
|
||||||
border-width: 1px 0 0;
|
|
||||||
@include clearfix();
|
@include clearfix();
|
||||||
|
|
||||||
@include media-breakpoint-up(md) {
|
@include media-breakpoint-up(md) {
|
||||||
padding: 1.5rem;
|
padding: 1.5rem;
|
||||||
margin-right: 0;
|
|
||||||
margin-left: 0;
|
|
||||||
border-width: 1px;
|
|
||||||
@include border-top-radius(var(--bs-border-radius));
|
@include border-top-radius(var(--bs-border-radius));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -375,23 +369,24 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.bd-example-snippet {
|
.bd-code-snippet {
|
||||||
.highlight {
|
margin: $spacer ($bd-gutter-x * -.5);
|
||||||
@include border-top-radius(0);
|
border: solid $border-color;
|
||||||
border: 1px solid $border-color;
|
border-width: 1px 0;
|
||||||
}
|
|
||||||
.highlight-toolbar {
|
|
||||||
border: solid $border-color;
|
|
||||||
border-width: 0 1px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.bd-content .highlight {
|
.highlight {
|
||||||
margin-right: $bd-gutter-x * -.5;
|
margin-bottom: 0;
|
||||||
margin-left: $bd-gutter-x * -.5;
|
}
|
||||||
|
|
||||||
@include media-breakpoint-up(md) {
|
@include media-breakpoint-up(md) {
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
|
border-width: 1px;
|
||||||
|
@include border-radius($border-radius);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.highlight-toolbar {
|
||||||
|
border: solid $border-color;
|
||||||
|
border-width: 1px 0;
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user