mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-21 20:55:50 +02:00
One more code snippet fix
This commit is contained in:
@@ -94,13 +94,25 @@
|
|||||||
.bd-example {
|
.bd-example {
|
||||||
position: relative;
|
position: relative;
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
|
margin: 0 ($bd-gutter-x * -.5);
|
||||||
|
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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
+ .bd-code-snippet {
|
||||||
|
@include border-top-radius(0);
|
||||||
|
border: solid $border-color;
|
||||||
|
border-width: 0 1px 1px;
|
||||||
|
}
|
||||||
|
|
||||||
+ p {
|
+ p {
|
||||||
margin-top: 2rem;
|
margin-top: 2rem;
|
||||||
}
|
}
|
||||||
@@ -379,12 +391,16 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.bd-code-snippet {
|
.bd-code-snippet {
|
||||||
margin: $spacer ($bd-gutter-x * -.5);
|
margin: 0 ($bd-gutter-x * -.5) $spacer;
|
||||||
|
|
||||||
.highlight {
|
.highlight {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.bd-example {
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
|
||||||
@include media-breakpoint-up(md) {
|
@include media-breakpoint-up(md) {
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
|
Reference in New Issue
Block a user