0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-29 21:52:22 +01:00

add text-reset to text utilities (#26866)

This commit is contained in:
m5o 2018-08-25 18:31:52 +02:00 committed by XhmikosR
parent 3a02f21b33
commit 7f9e70202e
2 changed files with 15 additions and 0 deletions

View File

@ -60,3 +60,7 @@
}
.text-decoration-none { text-decoration: none !important; }
// Reset
.text-reset { color: inherit !important; }

View File

@ -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 %}