Quellcode durchsuchen

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

Hana Shiro vor 7 Jahren
Ursprung
Commit
0f94e971d8
2 geänderte Dateien mit 5 neuen und 1 gelöschten Zeilen
  1. 4 0
      docs/documentation/modifiers/typography-helpers.html
  2. 1 1
      sass/base/helpers.sass

+ 4 - 0
docs/documentation/modifiers/typography-helpers.html

@@ -250,6 +250,10 @@ doc-subtab: typography-helpers
         <td>Makes the text <strong>centered</strong></td>
         </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>Makes the text aligned to the <strong>left</strong></td>
         </tr>

+ 1 - 1
sass/base/helpers.sass

@@ -47,7 +47,7 @@
 +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
   .has-text-#{$alignment}