aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorm5o <[email protected]>2018-08-25 18:31:52 +0200
committerXhmikosR <[email protected]>2018-08-25 19:31:52 +0300
commit7f9e70202e57d2eda4269a8aa72084ecadbe5e81 (patch)
tree9f85d76fa34d43941792f81d2b9d24c37474e3f2
parent3a02f21b33928117abb8302b6d7fa439fc8472f1 (diff)
downloadbootstrap-7f9e70202e57d2eda4269a8aa72084ecadbe5e81.tar.xz
bootstrap-7f9e70202e57d2eda4269a8aa72084ecadbe5e81.zip
add text-reset to text utilities (#26866)
-rw-r--r--scss/utilities/_text.scss4
-rw-r--r--site/docs/4.1/utilities/text.md11
2 files changed, 15 insertions, 0 deletions
diff --git a/scss/utilities/_text.scss b/scss/utilities/_text.scss
index d7e6efeda..7b5d26d04 100644
--- a/scss/utilities/_text.scss
+++ b/scss/utilities/_text.scss
@@ -60,3 +60,7 @@
}
.text-decoration-none { text-decoration: none !important; }
+
+// Reset
+
+.text-reset { color: inherit !important; }
diff --git a/site/docs/4.1/utilities/text.md b/site/docs/4.1/utilities/text.md
index 7dd23c1c4..25e72bc8f 100644
--- a/site/docs/4.1/utilities/text.md
+++ b/site/docs/4.1/utilities/text.md
@@ -90,3 +90,14 @@ Change a selection to our monospace font stack with `.text-monospace`.
<p class="text-monospace">This is in monospace</p>
{% endcapture %}
{% include example.html content=example %}
+
+## Reset color
+
+Reset a text or link's color with `.text-reset`, so that it inherits the color from its parent.
+
+{% capture example %}
+<p class="text-muted">
+ Muted text with a <a href="#" class="text-reset">reset link</a>.
+</p>
+{% endcapture %}
+{% include example.html content=example %}