mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-19 11:51:23 +02:00
Merge pull request #18452 from twbs/font-weight-utils
Tweak naming and docs of font utility classes
This commit is contained in:
@@ -121,13 +121,13 @@ Transform text in components with text capitalization classes.
|
|||||||
<p class="text-capitalize">CapiTaliZed text.</p>
|
<p class="text-capitalize">CapiTaliZed text.</p>
|
||||||
{% endexample %}
|
{% endexample %}
|
||||||
|
|
||||||
## Font weight and style
|
## Font weight and italics
|
||||||
|
|
||||||
Quickly change the weight and style of text.
|
Quickly change the weight (boldness) of text or italicize text.
|
||||||
|
|
||||||
{% example html %}
|
{% example html %}
|
||||||
<p class="font-normal">Normal text.</p>
|
<p class="font-weight-bold">Bold text.</p>
|
||||||
<p class="font-bold">Bold text.</p>
|
<p class="font-weight-normal">Normal weight text.</p>
|
||||||
<p class="font-italic">Italicized text.</p>
|
<p class="font-italic">Italicized text.</p>
|
||||||
{% endexample %}
|
{% endexample %}
|
||||||
|
|
||||||
|
@@ -74,8 +74,8 @@
|
|||||||
|
|
||||||
// Weight and italics
|
// Weight and italics
|
||||||
|
|
||||||
.font-normal { font-weight: normal; }
|
.font-weight-normal { font-weight: normal; }
|
||||||
.font-bold { font-weight: bold; }
|
.font-weight-bold { font-weight: bold; }
|
||||||
.font-italic { font-style: italic; }
|
.font-italic { font-style: italic; }
|
||||||
|
|
||||||
// Contextual colors
|
// Contextual colors
|
||||||
|
Reference in New Issue
Block a user