diff --git a/docs/assets/scss/_colors.scss b/docs/assets/scss/_colors.scss index 85104a8df581..1a5654898a82 100644 --- a/docs/assets/scss/_colors.scss +++ b/docs/assets/scss/_colors.scss @@ -2,23 +2,9 @@ // Docs color palette classes // -.bg-red-light { background-color: $red-light; } -.bg-orange-light { background-color: $orange-light; } -.bg-yellow-light { background-color: $yellow-light; } -.bg-green-light { background-color: $green-light; } -.bg-teal-light { background-color: $teal-light; } -.bg-blue-light { background-color: $blue-light; } -.bg-pink-light { background-color: $pink-light; } -.bg-purple-light { background-color: $purple-light; } - -.bg-red-dark { background-color: $red-dark; } -.bg-orange-dark { background-color: $orange-dark; } -.bg-yellow-dark { background-color: $yellow-dark; } -.bg-green-dark { background-color: $green-dark; } -.bg-teal-dark { background-color: $teal-dark; } -.bg-blue-dark { background-color: $blue-dark; } -.bg-pink-dark { background-color: $pink-dark; } -.bg-purple-dark { background-color: $purple-dark; } - -.bg-gray-light { background-color: $gray-lighter; } -.bg-gray-dark { background-color: $gray-dark; } +@each $color, $value in $colors { + .swatch-#{$color} { + background-color: #{$value}; + @include color-yiq($value); + } +} diff --git a/docs/assets/scss/_component-examples.scss b/docs/assets/scss/_component-examples.scss index 72e842c3248c..be6555a4458a 100644 --- a/docs/assets/scss/_component-examples.scss +++ b/docs/assets/scss/_component-examples.scss @@ -86,7 +86,7 @@ .bd-example-container-header { height: 3rem; margin-bottom: .5rem; - background-color: lighten($brand-primary, 50%); + background-color: lighten($blue, 50%); border-radius: .25rem; } @@ -94,7 +94,7 @@ float: right; width: 4rem; height: 8rem; - background-color: lighten($brand-warning, 25%); + background-color: lighten($orange, 25%); border-radius: .25rem; } diff --git a/docs/assets/scss/_featurettes.scss b/docs/assets/scss/_featurettes.scss index 03119ce50872..53fc9db532ec 100644 --- a/docs/assets/scss/_featurettes.scss +++ b/docs/assets/scss/_featurettes.scss @@ -63,7 +63,7 @@ color: #333; } .bd-featurette-img:hover { - color: $brand-primary; + color: $blue; text-decoration: none; } .bd-featurette-img img { diff --git a/docs/assets/scss/_sidebar.scss b/docs/assets/scss/_sidebar.scss index 7b9edefea99c..c461f181f9de 100644 --- a/docs/assets/scss/_sidebar.scss +++ b/docs/assets/scss/_sidebar.scss @@ -63,7 +63,7 @@ } .bd-toc-link:hover, .bd-toc-link:focus { - color: $brand-primary; + color: $blue; text-decoration: none; } .active > .bd-toc-link { @@ -94,7 +94,7 @@ } .bd-sidebar .nav > li > a:hover, .bd-sidebar .nav > li > a:focus { - color: $brand-primary; + color: $blue; text-decoration: none; background-color: transparent; } diff --git a/docs/components/alerts.md b/docs/components/alerts.md index dae4ec7d36e8..5f9eac093402 100644 --- a/docs/components/alerts.md +++ b/docs/components/alerts.md @@ -14,19 +14,19 @@ Provide contextual feedback messages for typical user actions with the handful o ## Examples -Alerts are available for any length of text, as well as an optional dismiss button. For proper styling, use one of the four **required** contextual classes (e.g., `.alert-success`). For inline dismissal, use the [alerts jQuery plugin](#dismissing). +Alerts are available for any length of text, as well as an optional dismiss button. For proper styling, use one of the four **required** contextual classes (e.g., `.alert-green`). For inline dismissal, use the [alerts jQuery plugin](#dismissing). {% example html %} -