From eb50c3b499c35b36cf27809e5c6605a4131c454c Mon Sep 17 00:00:00 2001 From: m5o Date: Thu, 12 Jul 2018 17:31:41 +0200 Subject: [PATCH 1/2] add text-reset to text utilities * add text-reset to text utilities :link: https://github.com/twbs/bootstrap/pull/25968#issuecomment-403248846 --- scss/utilities/_text.scss | 4 ++++ site/docs/4.1/utilities/text.md | 11 +++++++++++ 2 files changed, 15 insertions(+) diff --git a/scss/utilities/_text.scss b/scss/utilities/_text.scss index d7e6efeda8a1..7b5d26d04879 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 ab42dc90b1e7..3348c2ce2861 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`.

This is in monospace

{% endcapture %} {% include example.html content=example %} + +## Reset color + +Reset a text or link's color, so that it inherits the color from its parent, with `.text-reset`. + +{% capture example %} +

+ Muted text with a reset link. +

+{% endcapture %} +{% include example.html content=example %} From a40a2d0431cf26675cd9f8a58a45f1b32d3a0070 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Sat, 25 Aug 2018 15:16:32 +0300 Subject: [PATCH 2/2] Update text.md --- site/docs/4.1/utilities/text.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/docs/4.1/utilities/text.md b/site/docs/4.1/utilities/text.md index 3348c2ce2861..303621eba9bd 100644 --- a/site/docs/4.1/utilities/text.md +++ b/site/docs/4.1/utilities/text.md @@ -93,7 +93,7 @@ Change a selection to our monospace font stack with `.text-monospace`. ## Reset color -Reset a text or link's color, so that it inherits the color from its parent, with `.text-reset`. +Reset a text or link's color with `.text-reset`, so that it inherits the color from its parent. {% capture example %}