From: Mark Otto Date: Sun, 1 Apr 2018 04:04:54 +0000 (-0700) Subject: Add .text-monospace util X-Git-Tag: v4.1.0~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=185666fd79804efe11e2ed7b993fb38f5a7be612;p=thirdparty%2Fbootstrap.git Add .text-monospace util --- diff --git a/docs/4.0/utilities/text.md b/docs/4.0/utilities/text.md index 48a5d96e16..972b900664 100644 --- a/docs/4.0/utilities/text.md +++ b/docs/4.0/utilities/text.md @@ -81,3 +81,12 @@ Quickly change the weight (boldness) of text or italicize text.

Italic text.

{% endcapture %} {% include example.html content=example %} + +## Monospace + +Change a selection to our monospace font stack with `.text-monospace`. + +{% capture example %} +

This is in monospace

+{% endcapture %} +{% include example.html content=example %} diff --git a/scss/utilities/_text.scss b/scss/utilities/_text.scss index 5e169c4d97..0aa441cc99 100644 --- a/scss/utilities/_text.scss +++ b/scss/utilities/_text.scss @@ -4,6 +4,8 @@ // Text // +.text-monospace { font-family: $font-family-monospace; } + // Alignment .text-justify { text-align: justify !important; }