mirror of
https://github.com/jgthms/bulma
synced 2026-03-15 02:04:29 -07:00
committed by
Jeremy Thomas
parent
e06a098df6
commit
5cee4c8974
@@ -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>
|
||||
|
||||
@@ -53,6 +53,15 @@
|
||||
.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}
|
||||
|
||||
Reference in New Issue
Block a user