1
1
mirror of https://github.com/primer/css.git synced 2024-09-20 13:17:29 +03:00

Merge pull request #474 from primer/task/add-text-mono-util

Add text-mono utility class
This commit is contained in:
Jon Rohan 2018-05-08 14:43:52 -07:00 committed by GitHub
commit 92628143a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 0 deletions

View File

@ -93,6 +93,7 @@ Change the font weight, styles, and alignment with these utilities.
<p class="text-emphasized">Emphasized</p>
<p class="text-small">Small</p>
<p class="lead">Bacon ipsum dolor amet tri-tip chicken kielbasa, cow swine beef corned beef ground round prosciutto hamburger porchetta sausage alcatra tail.</p>
<p class="text-mono">Monospace</p>
```
## Text alignment

View File

@ -214,3 +214,8 @@
.text-shadow-light {
text-shadow: 0 1px 0 rgba($white, 0.5);
}
/* Set to monospace font */
.text-mono {
font-family: $mono-font;
}

View File

@ -57,6 +57,7 @@ storiesOf('Typography utilities', module)
<p className='text-emphasized'>text-emphasized</p>
<p className='text-small'>text-small</p>
<p className='lead'>lead</p>
<p className='text-mono'>text-mono</p>
</div>
))
.add('text alignment', () => (