]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix spacing of code snippets
authorMark Otto <markdotto@gmail.com>
Tue, 19 Apr 2022 01:05:09 +0000 (18:05 -0700)
committerMark Otto <otto@github.com>
Tue, 19 Apr 2022 01:19:01 +0000 (18:19 -0700)
site/assets/scss/_component-examples.scss

index b305f088f9fce7cf3acd43200010605ee60b21e6..701682d2042f5d852c376e75e7faa23a107560a4 100644 (file)
 .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));
   }
 
   }
 }
 
-.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;
+}