]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
docs(customize/colors): dump grays swatches (unused) and merge -500 in swatches
authorGaël Poupard <gael.poupard@orange.com>
Thu, 7 May 2020 14:48:08 +0000 (16:48 +0200)
committerGaël Poupard <ffoodd@users.noreply.github.com>
Wed, 20 May 2020 07:49:18 +0000 (09:49 +0200)
site/assets/scss/_colors.scss
site/content/docs/5.0/customize/color.md

index 17c678365804b4688f87bcc98f78b75644590fad..751ce3c763347091ec96123479922d60de19fef9 100644 (file)
@@ -2,7 +2,7 @@
 // Docs color palette classes
 //
 
-@each $color, $value in $colors {
+@each $color, $value in map-merge($colors, ("gray-500": $gray-500)) {
   .swatch-#{$color} {
     color: color-contrast($value);
     background-color: #{$value};
   }
 }
 
-@each $color, $value in $grays {
-  .swatch-#{$color} {
-    color: color-contrast($value);
-    background-color: #{$value};
-  }
-}
-
 // stylelint-disable declaration-block-single-line-max-declarations
 
 .bd-blue-100 { color: color-contrast($blue-100); background-color: $blue-100; }
index b48bbaadb39689bd158b2948a1cc6cc8eb3c58b6..6e61e6df157dbce300109dcf0013c5b78b72a2ec 100644 (file)
@@ -49,7 +49,7 @@ Be sure to monitor contrast ratios as you customize colors. As shown below, we'v
   {{ end -}}
 
   <div class="col-md-4 mb-3">
-    <div class="p-3 mb-2 bd-gray-500">
+    <div class="p-3 mb-2 position-relative swatch-gray-500">
       <strong class="d-block">$gray-500</strong>
       #adb5bd
     </div>