]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
update background utils
authorMark Otto <markdotto@gmail.com>
Mon, 26 Jun 2017 01:16:37 +0000 (18:16 -0700)
committerMark Otto <markdotto@gmail.com>
Mon, 26 Jun 2017 01:16:37 +0000 (18:16 -0700)
docs/4.0/utilities/colors.md
scss/utilities/_background.scss

index 3d06b3e4e290687562dba5f7496860edd2c8dbb4..11ac0be60416fc69128943e011d3ead93586abd9 100644 (file)
@@ -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 %}
-<p><a href="#" class="text-{{ color.name }}{% if color.name == "white" %} bg-gray{% endif %}">{{ color.name | capitalize }} link</a></p>{% endfor %}
+<p><a href="#" class="text-{{ color.name }}{% if color.name == "light" %} bg-gray{% endif %}">{{ color.name | capitalize }} link</a></p>{% 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 %}
-<div class="p-3 bg-{{ color.name }} {% if color.name == "white" %}text-gray-dark{% else %}text-white{% endif %}">.bg-{{ color.name }}</div>{% endfor %}
+<div class="p-3 mb-2 bg-{{ color.name }} {% if color.name == "light" %}text-gray-dark{% else %}text-white{% endif %}">.bg-{{ color.name }}</div>{% endfor %}
 {% endexample %}
 
 {% callout info %}
index cc21859e83366b1ce570a8130a7ca8c56924a233..853d08ebdd9af71145ac568c823f2a88465e2d9d 100644 (file)
@@ -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);
 }