Something which is always available in YiiBooster
Use the well as a simple effect on an element to give it an inset effect.
<div class="well"> ... </div>
Control padding and rounded corners with two optional modifier classes.
<div class="well well-large"> ... </div>
<div class="well well-small"> ... </div>
Use the generic close icon for dismissing content like modals and alerts.
<button class="close">×</button>
iOS devices require an href="#" for click events if you rather use an anchor.
<a class="close" href="#">×</a>
Simple, focused classes for small display or behavior tweaks.
Float an element left
class="pull-left"
.pull-left {
float: left;
}
Float an element right
class="pull-right"
.pull-right {
float: right;
}
Change an element's color to #999
class="muted"
.muted {
color: #999;
}
Clear the float on any element
class="clearfix"
.clearfix {
*zoom: 1;
&:before,
&:after {
display: table;
content: "";
}
&:after {
clear: both;
}
}
Not part of any widget but worth to know: A simple shell for an h1 to appropriately space out and
segment sections of content on a page. It
can utilize the h1's default small, element as well most other components (with
additional styles).
<div class="page-header"> <h1>Example page header <small>Subtext for header</small></h1> </div>