From: Chris Rebert Date: Mon, 7 Dec 2015 01:43:25 +0000 (-0800) Subject: Tweak naming and docs of font utility classes X-Git-Tag: v4.0.0-alpha.2~42^2~1^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1a0af8b24c09d5558cba0e65c34d1f1292e6085;p=thirdparty%2Fbootstrap.git Tweak naming and docs of font utility classes * `.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] --- diff --git a/docs/components/utilities.md b/docs/components/utilities.md index c73db767fa..940219263a 100644 --- a/docs/components/utilities.md +++ b/docs/components/utilities.md @@ -121,13 +121,13 @@ Transform text in components with text capitalization classes.

CapiTaliZed text.

{% 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 %} -

Normal text.

-

Bold text.

+

Bold text.

+

Normal weight text.

Italicized text.

{% endexample %} diff --git a/scss/_utilities.scss b/scss/_utilities.scss index 78265a31fe..520666ec1d 100644 --- a/scss/_utilities.scss +++ b/scss/_utilities.scss @@ -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