Convey meaning through color with a handful of emphasis utility classes. These may also be applied to links and will darken on hover just like our default link styles.
Fusce dapibus, tellus ac cursus commodo, tortor mauris nibh.
Nullam id dolor id nibh ultricies vehicula ut id elit.
Duis mollis, est non commodo luctus, nisi erat porttitor ligula.
Maecenas sed diam eget risus varius blandit sit amet non magna.
Etiam porta sem malesuada magna mollis euismod.
Donec ullamcorper nulla non metus auctor fringilla.
<p class="text muted">...</p> <p class="text primary">...</p> <p class="text success">...</p> <p class="text info">...</p> <p class="text warning">...</p> <p class="text danger">...</p>
Nullam id dolor id nibh ultricies vehicula ut id elit.
Duis mollis, est non commodo luctus, nisi erat porttitor ligula.
Maecenas sed diam eget risus varius blandit sit amet non magna.
Etiam porta sem malesuada magna mollis euismod.
Donec ullamcorper nulla non metus auctor fringilla.
<p class="bg-primary">...</p> <p class="bg-success">...</p> <p class="bg-info">...</p> <p class="bg-warning">...</p> <p class="bg-danger">...</p>
Float an element to the left or right with a class. !important
is included to avoid specificity issues. Classes can also be used as mixins.
<div class="lefted">The lefted text</div> <div class="righted">The righted text</div>
//Classes .lefted { float: left !important; } .righted { float: right !important; }
Set an element to display: block
and center via margin
. Available as a mixin and class.
<div class="center-block">...</div>
//Classes .centered { display: block; float: none; margin-left: auto; margin-right: auto; }
Clear the float
on any element with the .clearfix
class. Utilizes the micro clearfix as popularized by Nicolas Gallagher. Can also be used as a mixin.
<!-- Usage as a class --> <div class="clearfix">...</div>
//Classes @mixin clearfix() { &:before, &:after { content: " "; display: table; } &:after { clear: both; } }
<div class="show">...</div> <div class="hidden">...</div>
.hide { display: none !important; } .show { display: block !important; } .invisible { visibility: hidden; } .hidden { display: none !important; visibility: hidden !important; }