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:
parent
3a02f21b33
commit
7f9e70202e
@ -60,3 +60,7 @@
|
||||
}
|
||||
|
||||
.text-decoration-none { text-decoration: none !important; }
|
||||
|
||||
// Reset
|
||||
|
||||
.text-reset { color: inherit !important; }
|
||||
|
@ -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 %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user