Commit 86018121 authored by jak's avatar jak Committed by Mark Otto
Browse files

docs: add text-truncate and extend on text-nowrap

parent 890c6041
8 merge requests!28721Hot test,!27561Adds font-weight-medium to font weight classes,!22391V4 dev,!22598test,!25326Adjust examples,!23995Add back cursor: pointer for .btn-link,!23178Spinner,!17021v4
Showing with 25 additions and 8 deletions
+25 -8
......@@ -19,14 +19,6 @@ Easily realign text to components with text alignment classes.
<p class="text-justify">Ambitioni dedisse scripsisse iudicaretur. Cras mattis iudicium purus sit amet fermentum. Donec sed odio operae, eu vulputate felis rhoncus. Praeterea iter est quasdam res quas ex communi. At nos hinc posthac, sitientis piros Afros. Petierunt uti sibi concilium totius Galliae in diem certam indicere. Cras mattis iudicium purus sit amet fermentum.</p>
{% endexample %}
{% example html %}
<div class="card">
<div class="card-block text-nowrap">
Curabitur blandit tempus ardua ridiculus sed magna.
</div>
</div>
{% endexample %}
For left, right, and center alignment, responsive classes are available that use the same viewport width breakpoints as the grid system.
{% example html %}
......@@ -40,6 +32,31 @@ For left, right, and center alignment, responsive classes are available that use
<p class="text-xl-left">Left aligned text on viewports sized XL (extra-large) or wider.</p>
{% endexample %}
## Text wrapping and overflow
Prevent text from wrapping with a `.text-nowrap` class.
{% example html %}
<div class="row">
<div class="col-1 text-nowrap">
Curabitur blandit tempus ardua ridiculus sed magna.
</div>
<div class="col-11">
<img data-src="holder.js/50x50" alt="An image to show the text doesn't wrap">
</div>
</div>
{% endexample %}
For longer content, you can add a `.text-truncate` class to truncate the text with an ellipsis.
{% example html %}
<div class="row">
<div class="col-2 text-truncate">
Praeterea iter est quasdam res quas ex communi.
</div>
</div>
{% endexample %}
## Text transform
Transform text in components with text capitalization classes.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment