Kaynağa Gözat

font-style: italic !important (#1452)

* is-rounded

* Rollback

* font-style: italic;

* Update CHANGELOG.md
Oleksii Potiekhin 7 yıl önce
ebeveyn
işleme
e385d3dd9a

+ 6 - 0
CHANGELOG.md

@@ -1,5 +1,11 @@
 # Bulma Changelog
 
+## 0.6.3
+
+### Improvements
+
+* New `.is-italic` helper
+
 ## 0.6.2
 
 ### Improvements

+ 5 - 1
docs/documentation/modifiers/typography-helpers.html

@@ -333,7 +333,7 @@ doc-subtab: typography-helpers
 
     <div class="content">
       <p>
-        You can transform the text with the use of one of <strong>3 text transformation helpers</strong>:
+        You can transform the text with the use of one of <strong>4 text transformation helpers</strong>:
       </p>
     </div>
 
@@ -361,6 +361,10 @@ doc-subtab: typography-helpers
         <td><code>is-uppercase</code></td>
         <td>Transforms <strong>all characters</strong> to <strong>uppercase</strong></td>
       </tr>
+      <tr>
+        <td><code>is-italic</code></td>
+        <td>Transforms <strong>all characters</strong> to <strong>italic</strong></td>
+      </tr>
       </tbody>
     </table>
 

+ 3 - 0
sass/base/helpers.sass

@@ -89,6 +89,9 @@ $alignments: ('centered': 'center', 'justified': 'justify', 'left': 'left', 'rig
 .is-uppercase
   text-transform: uppercase !important
 
+.is-italic
+  font-style: italic !important
+
 @each $name, $pair in $colors
   $color: nth($pair, 1)
   .has-text-#{$name}