]> git.ipfire.org Git - thirdparty/bulma.git/commitdiff
Fixes #1001 (#1005)
authorDaniele Lenares <daniele.lenares@gmail.com>
Thu, 3 Aug 2017 18:52:00 +0000 (20:52 +0200)
committerJeremy Thomas <bbxdesign@gmail.com>
Thu, 3 Aug 2017 18:52:00 +0000 (19:52 +0100)
* Fix #1001

* Order modifiers alphabetically.

docs/documentation/modifiers/typography-helpers.html
sass/base/helpers.sass

index 2e1194e321f36e2ca59f8652f16faa0c2945a583..adbff975897d2648f66aa4c58a1faaaa1cccf68e 100644 (file)
@@ -266,5 +266,42 @@ doc-subtab: typography-helpers
       </tbody>
     </table>
 
+    <hr>
+
+    <h3 class="title">Text transformation</h3>
+
+    <div class="content">
+      <p>
+        You can transform the text with the use of one of <strong>3 text transformation helpers</strong>:
+      </p>
+    </div>
+
+    <table class="table is-bordered">
+      <thead>
+      <tr>
+        <th>
+          Class
+        </th>
+        <th>
+          Transformation
+        </th>
+      </tr>
+      </thead>
+      <tbody>
+      <tr>
+        <td><code>.is-capitalized</code></td>
+        Transforms <strong>the first character</strong> of each word to <strong>uppercase</strong>
+      </tr>
+      <tr>
+        <td><code>.is-lowercase</code></td>
+        <td>Transforms all characters to <strong>lowercase</strong></td>
+      </tr>
+      <tr>
+        <td><code>.is-uppercase</code></td>
+        <td>Transforms all characters to <strong>uppercase</strong></td>
+      </tr>
+      </tbody>
+    </table>
+
   </div>
 </section>
index 251b03b4d8b1c16e62bd6d3456d90e2a4fd06a3b..64fdcff537d0473f8b9f2088915180c7f99e21fc 100755 (executable)
 .has-text-right
   text-align: right !important
 
+.is-capitalized
+  text-transform: capitalize !important
+
+.is-lowercase
+  text-transform: lowercase !important
+
+.is-uppercase
+  text-transform: uppercase !important
+
 @each $name, $pair in $colors
   $color: nth($pair, 1)
   .has-text-#{$name}