]> git.ipfire.org Git - thirdparty/bulma.git/commitdiff
Feature/typo weight modifier (#1171)
authorWikiki <wikiki@protonmail.com>
Sun, 10 Sep 2017 15:34:08 +0000 (17:34 +0200)
committerJeremy Thomas <bbxdesign@gmail.com>
Sun, 10 Sep 2017 15:34:08 +0000 (16:34 +0100)
* Update new steps extension image size

* Add text weight modifiers + update doc

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

index 79bb9e728d2147489e49c27d3bb9a07da01d1388..55ad69a754874b00e5384a0c8b3ebdfbe8ac0e15 100644 (file)
@@ -385,5 +385,44 @@ doc-subtab: typography-helpers
       </tbody>
     </table>
 
+    {% include anchor.html name="Text weight" %}
+
+    <div class="content">
+      <p>
+        You can transform the text weight with the use of one of <strong>4 text weight helpers</strong>:
+      </p>
+    </div>
+
+    <table class="table is-bordered">
+      <thead>
+      <tr>
+        <th>
+          Class
+        </th>
+        <th>
+          Weight
+        </th>
+      </tr>
+      </thead>
+      <tbody>
+      <tr>
+        <td><code>.has-text-weight-light</code></td>
+        <td>Transforms  text weight to <strong>light</strong></td>
+      </tr>
+      <tr>
+        <td><code>.has-text-weight-normal</code></td>
+        <td>Transforms text weight to <strong>normal</strong></td>
+      </tr>
+      <tr>
+        <td><code>.has-text-weight-semibold</code></td>
+        <td>Transforms text weight to <strong>semi-bold</strong></td>
+      </tr>
+      <tr>
+        <td><code>.has-text-weight-bold</code></td>
+        <td>Transforms text weight to <strong>bold</strong></td>
+      </tr>
+      </tbody>
+    </table>
+
   </div>
 </section>
index cc5e14594ba800871cd234e3f6f1fe509d8fb456..839691f3ba2208ee0c44cc9f0f096d3fc965a2b1 100644 (file)
@@ -102,6 +102,15 @@ $alignments: ('centered': 'center', 'left': 'left', 'right': 'right')
   .has-text-#{$name}
     color: $shade !important
 
+.has-text-weight-light
+  font-weight: $weight-light !important
+.has-text-weight-normal
+  font-weight: $weight-normal !important
+.has-text-weight-semibold
+  font-weight: $weight-semibold !important
+.has-text-weight-bold
+  font-weight: $weight-bold !important
+
 // Visibility
 
 $displays: 'block' 'flex' 'inline' 'inline-block' 'inline-flex'