Add .has-text-justified support (#1180)

This commit is contained in:
Hana Shiro 2017-09-13 15:00:37 +08:00 committed by Jeremy Thomas
parent 25814e6122
commit 0f94e971d8
2 changed files with 5 additions and 1 deletions

View File

@ -250,6 +250,10 @@ doc-subtab: typography-helpers
<td>Makes the text <strong>centered</strong></td> <td>Makes the text <strong>centered</strong></td>
</tr> </tr>
<tr> <tr>
<td><code>.has-text-justified</code></td>
<td>Makes the text <strong>justified</strong></td>
</tr>
<tr>
<td><code>.has-text-left</code></td> <td><code>.has-text-left</code></td>
<td>Makes the text aligned to the <strong>left</strong></td> <td>Makes the text aligned to the <strong>left</strong></td>
</tr> </tr>

View File

@ -47,7 +47,7 @@
+fullhd +fullhd
+typography-size('fullhd') +typography-size('fullhd')
$alignments: ('centered': 'center', 'left': 'left', 'right': 'right') $alignments: ('centered': 'center', 'justified': 'justify', 'left': 'left', 'right': 'right')
@each $alignment, $text-align in $alignments @each $alignment, $text-align in $alignments
.has-text-#{$alignment} .has-text-#{$alignment}