Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions scss/utilities/_text.scss
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,7 @@
}

.text-decoration-none { text-decoration: none !important; }

// Reset

.text-reset { color: inherit !important; }
11 changes: 11 additions & 0 deletions site/docs/4.1/utilities/text.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}