Skip to content

Commit

Permalink
Rearrange margins for .highlight (twbs#23396)
Browse files Browse the repository at this point in the history
Only applies the margins to .highlight instances within .bd-content, thus negating any need for twbs#23279.
  • Loading branch information
mdo committed Aug 13, 2017
1 parent 0122243 commit 52310bf
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion assets/scss/_component-examples.scss
Original file line number Diff line number Diff line change
Expand Up @@ -392,16 +392,26 @@

.highlight {
padding: 1rem;
margin: 1rem (-$grid-gutter-width / 2);
margin-top: 1rem;
margin-bottom: 1rem;
background-color: #f7f7f9;
-ms-overflow-style: -ms-autohiding-scrollbar;

@include media-breakpoint-up(sm) {
padding: 1.5rem;
}
}

.bd-content .highlight {
margin-right: (-$grid-gutter-width / 2);
margin-left: (-$grid-gutter-width / 2);

@include media-breakpoint-up(sm) {
margin-right: 0;
margin-left: 0;
}
}

.highlight pre {
padding: 0;
margin-top: 0;
Expand Down

0 comments on commit 52310bf

Please sign in to comment.