]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
docs: remove swatches for theme colors. (#29327)
authorXhmikosR <xhmikosr@gmail.com>
Thu, 29 Aug 2019 12:18:47 +0000 (15:18 +0300)
committerGitHub <noreply@github.com>
Thu, 29 Aug 2019 12:18:47 +0000 (15:18 +0300)
Use the built-in utilities instead.

site/content/docs/4.3/getting-started/theming.md
site/static/docs/4.3/assets/scss/_colors.scss

index 0c8fe306ad01a04bdf0366ca6e63b40acf715919..9c34c9ee3f7c13cbd1e058a9d72cd9eb298c93c8 100644 (file)
@@ -276,7 +276,7 @@ We use a subset of all colors to create a smaller color palette for generating c
   {{< theme-colors.inline >}}
   {{- range (index $.Site.Data "theme-colors") }}
     <div class="col-md-4">
-      <div class="p-3 mb-3 swatch-{{ .name }}">{{ .name | title }}</div>
+      <div class="p-3 mb-3 bg-{{ .name }} {{ if or (eq .name "light") (eq .name "warning") }}text-dark{{ else }}text-white{{ end }}">{{ .name | title }}</div>
     </div>
   {{ end -}}
   {{< /theme-colors.inline >}}
index 8d2825c5700e860229fa51f2d5b9419549641909..10ad8efdb7d2c51010942a2a04f69e4210bb43cc 100644 (file)
@@ -9,13 +9,6 @@
   }
 }
 
-@each $color, $value in $theme-colors {
-  .swatch-#{$color} {
-    color: color-yiq($value);
-    background-color: #{$value};
-  }
-}
-
 @each $color, $value in $grays {
   .swatch-#{$color} {
     color: color-yiq($value);