From fc053ed096a16a4c0840fc9a942394390847b12c Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 25 Jun 2017 18:16:37 -0700 Subject: [PATCH] update background utils --- docs/4.0/utilities/colors.md | 4 ++-- scss/utilities/_background.scss | 8 -------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/docs/4.0/utilities/colors.md b/docs/4.0/utilities/colors.md index 3d06b3e4e2..11ac0be604 100644 --- a/docs/4.0/utilities/colors.md +++ b/docs/4.0/utilities/colors.md @@ -15,14 +15,14 @@ Contextual text classes also work well on anchors with the provided hover and fo {% example html %} {% for color in site.data.theme-colors %} -

{{ color.name | capitalize }} link

{% endfor %} +

{{ color.name | capitalize }} link

{% endfor %} {% endexample %} Similar to the contextual text color classes, easily set the background of an element to any contextual class. Anchor components will darken on hover, just like the text classes. Background utilities **do not set `color`**, so in some cases you'll want to use `.text-*` utilities. {% example html %} {% for color in site.data.theme-colors %} -
.bg-{{ color.name }}
{% endfor %} +
.bg-{{ color.name }}
{% endfor %} {% endexample %} {% callout info %} diff --git a/scss/utilities/_background.scss b/scss/utilities/_background.scss index cc21859e83..853d08ebdd 100644 --- a/scss/utilities/_background.scss +++ b/scss/utilities/_background.scss @@ -1,11 +1,3 @@ -// -// Contextual backgrounds -// - -.bg-faded { - background-color: darken($body-bg, 3%); -} - @each $color, $value in $theme-colors { @include bg-variant('.bg-#{$color}', $value); }