]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Tweak naming and docs of font utility classes 18452/head
authorChris Rebert <code@chrisrebert.com>
Mon, 7 Dec 2015 01:43:25 +0000 (17:43 -0800)
committerChris Rebert <code@chrisrebert.com>
Mon, 7 Dec 2015 08:08:54 +0000 (00:08 -0800)
* `.font-normal` is too generic. Rename it to `.font-weight-normal` for clarity.
* Rename `.font-bold` to `.font-weight-bold` so as to parallel `.font-weight-normal`.
* In docs, gloss "weight" term in relation to fonts for the benefit of non-typographiles.

Refs #18433

[skip sauce]

docs/components/utilities.md
scss/_utilities.scss

index c73db767fa237f20a6f11ad159a32af0d82500d6..940219263a050458a2ecb6a248ec38551736fa54 100644 (file)
@@ -121,13 +121,13 @@ Transform text in components with text capitalization classes.
 <p class="text-capitalize">CapiTaliZed text.</p>
 {% 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 %}
-<p class="font-normal">Normal text.</p>
-<p class="font-bold">Bold text.</p>
+<p class="font-weight-bold">Bold text.</p>
+<p class="font-weight-normal">Normal weight text.</p>
 <p class="font-italic">Italicized text.</p>
 {% endexample %}
 
index 78265a31fea741b795e152cde60d1cb01550ed43..520666ec1de8daa9d423d54dba7e13614f03adcc 100644 (file)
@@ -74,9 +74,9 @@
 
 // Weight and italics
 
-.font-normal  { font-weight: normal; }
-.font-bold    { font-weight: bold; }
-.font-italic  { font-style: italic; }
+.font-weight-normal  { font-weight: normal; }
+.font-weight-bold    { font-weight: bold; }
+.font-italic         { font-style: italic; }
 
 // Contextual colors