Skip to content

Commit

Permalink
Fix spacing of code snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
mdo committed Apr 19, 2022
1 parent 5602093 commit 3990ff0
Showing 1 changed file with 13 additions and 18 deletions.
31 changes: 13 additions & 18 deletions site/assets/scss/_component-examples.scss
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,10 @@
.bd-example {
position: relative;
padding: 1rem;
margin: 1rem ($bd-gutter-x * -.5) 0;
border: solid $border-color;
border-width: 1px 0 0;
@include clearfix();

@include media-breakpoint-up(md) {
padding: 1.5rem;
margin-right: 0;
margin-left: 0;
border-width: 1px;
@include border-top-radius(var(--bs-border-radius));
}

Expand Down Expand Up @@ -375,23 +369,24 @@
}
}

.bd-example-snippet {
.bd-code-snippet {
margin: $spacer ($bd-gutter-x * -.5);
border: solid $border-color;
border-width: 1px 0;

.highlight {
@include border-top-radius(0);
border: 1px solid $border-color;
}
.highlight-toolbar {
border: solid $border-color;
border-width: 0 1px;
margin-bottom: 0;
}
}

.bd-content .highlight {
margin-right: $bd-gutter-x * -.5;
margin-left: $bd-gutter-x * -.5;

@include media-breakpoint-up(md) {
margin-right: 0;
margin-left: 0;
border-width: 1px;
@include border-radius($border-radius);
}
}

.highlight-toolbar {
border: solid $border-color;
border-width: 1px 0;
}

0 comments on commit 3990ff0

Please sign in to comment.