]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Rearrange margins for .highlight (#23396)
authorMark Otto <markd.otto@gmail.com>
Sun, 13 Aug 2017 23:44:52 +0000 (16:44 -0700)
committerGitHub <noreply@github.com>
Sun, 13 Aug 2017 23:44:52 +0000 (16:44 -0700)
Only applies the margins to .highlight instances within .bd-content, thus negating any need for #23279.

assets/scss/_component-examples.scss

index 629adcbec8e92ae50e18b13cae06271859f0ad5b..5779825cf0e455b90ecc1c87a34e07407a230f72 100644 (file)
 
 .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;