diff options
| author | XhmikosR <[email protected]> | 2019-08-29 15:18:47 +0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-08-29 15:18:47 +0300 |
| commit | e99625c088643364e3da74deb3daadfe26b16219 (patch) | |
| tree | 536ea75d6460a6785de132c86902a180f0caac1d | |
| parent | ee01dc23408b3e78dfcc4aed0a144c10458bdb3c (diff) | |
| download | bootstrap-e99625c088643364e3da74deb3daadfe26b16219.tar.xz bootstrap-e99625c088643364e3da74deb3daadfe26b16219.zip | |
docs: remove swatches for theme colors. (#29327)
Use the built-in utilities instead.
| -rw-r--r-- | site/content/docs/4.3/getting-started/theming.md | 2 | ||||
| -rw-r--r-- | site/static/docs/4.3/assets/scss/_colors.scss | 7 |
2 files changed, 1 insertions, 8 deletions
diff --git a/site/content/docs/4.3/getting-started/theming.md b/site/content/docs/4.3/getting-started/theming.md index 0c8fe306a..9c34c9ee3 100644 --- a/site/content/docs/4.3/getting-started/theming.md +++ b/site/content/docs/4.3/getting-started/theming.md @@ -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 >}} diff --git a/site/static/docs/4.3/assets/scss/_colors.scss b/site/static/docs/4.3/assets/scss/_colors.scss index 8d2825c57..10ad8efdb 100644 --- a/site/static/docs/4.3/assets/scss/_colors.scss +++ b/site/static/docs/4.3/assets/scss/_colors.scss @@ -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); |
