aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2015-12-07 00:14:51 -0800
committerChris Rebert <[email protected]>2015-12-07 00:14:51 -0800
commit37955def29d5ebe537c4481fe6ad6ed7bf0bf79e (patch)
treec5075bcede65c08f9d7d23e5bb581c27c44bb1f0
parenteae036b7556c1ad6825d5012dfb84c7240bb7e90 (diff)
parentd1a0af8b24c09d5558cba0e65c34d1f1292e6085 (diff)
downloadbootstrap-37955def29d5ebe537c4481fe6ad6ed7bf0bf79e.tar.xz
bootstrap-37955def29d5ebe537c4481fe6ad6ed7bf0bf79e.zip
Merge pull request #18452 from twbs/font-weight-utils
Tweak naming and docs of font utility classes
-rw-r--r--docs/components/utilities.md8
-rw-r--r--scss/_utilities.scss6
2 files changed, 7 insertions, 7 deletions
diff --git a/docs/components/utilities.md b/docs/components/utilities.md
index c73db767f..940219263 100644
--- a/docs/components/utilities.md
+++ b/docs/components/utilities.md
@@ -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 %}
diff --git a/scss/_utilities.scss b/scss/_utilities.scss
index 78265a31f..520666ec1 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