mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-15 01:55:46 +02:00
add text-reset to text utilities (#26866)
This commit is contained in:
@@ -60,3 +60,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.text-decoration-none { text-decoration: none !important; }
|
.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>
|
<p class="text-monospace">This is in monospace</p>
|
||||||
{% endcapture %}
|
{% endcapture %}
|
||||||
{% include example.html content=example %}
|
{% 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 %}
|
||||||
|
Reference in New Issue
Block a user