mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-03-28 18:20:24 +00:00
add text-reset to text utilities (#26866)
This commit is contained in:
parent
3a02f21b33
commit
7f9e70202e
2 changed files with 15 additions and 0 deletions
|
|
@ -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…
Reference in a new issue