mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
add misc helper classes to components css docs
This commit is contained in:
parent
589242604f
commit
348668ec13
2 changed files with 116 additions and 6 deletions
|
@ -1869,7 +1869,7 @@
|
||||||
<h1>Miscellaneous <small>Lightweight utility components</small></h1>
|
<h1>Miscellaneous <small>Lightweight utility components</small></h1>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span4">
|
<div class="span8">
|
||||||
<h2>Wells</h2>
|
<h2>Wells</h2>
|
||||||
<p>Use the well as a simple effect on an element to give it an inset effect.</p>
|
<p>Use the well as a simple effect on an element to give it an inset effect.</p>
|
||||||
<div class="well">
|
<div class="well">
|
||||||
|
@ -1892,14 +1892,69 @@
|
||||||
...
|
...
|
||||||
</div>
|
</div>
|
||||||
</pre>
|
</pre>
|
||||||
</div><!--/span-->
|
|
||||||
<div class="span4">
|
|
||||||
<h2>Close icon</h2>
|
<h2>Close icon</h2>
|
||||||
<p>Use the generic close icon for dismissing content like modals and alerts.</p>
|
<p>Use the generic close icon for dismissing content like modals and alerts.</p>
|
||||||
<p><button class="close" style="float: none;">×</button></p>
|
<p><button class="close" style="float: none;">×</button></p>
|
||||||
<pre class="prettyprint linenums"><button class="close">&times;</button></pre>
|
<pre class="prettyprint linenums"><button class="close">&times;</button></pre>
|
||||||
<p>iOS devices require an href="#" for click events if you rather use an anchor.</p>
|
<p>iOS devices require an href="#" for click events if you rather use an anchor.</p>
|
||||||
<pre class="prettyprint linenums"><a class="close" href="#">&times;</a></pre>
|
<pre class="prettyprint linenums"><a class="close" href="#">&times;</a></pre>
|
||||||
|
|
||||||
|
<h2>Helper classes</h2>
|
||||||
|
<p>Simple, focused classes for small display or behavior tweaks.</p>
|
||||||
|
|
||||||
|
<h4>.pull-left</h4>
|
||||||
|
<p>Float an element left</p>
|
||||||
|
<pre class="prettyprint linenums">
|
||||||
|
class="pull-left"
|
||||||
|
</pre>
|
||||||
|
<pre class="prettyprint linenums">
|
||||||
|
.pull-left {
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
|
||||||
|
<h4>.pull-right</h4>
|
||||||
|
<p>Float an element right</p>
|
||||||
|
<pre class="prettyprint linenums">
|
||||||
|
class="pull-right"
|
||||||
|
</pre>
|
||||||
|
<pre class="prettyprint linenums">
|
||||||
|
.pull-right {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<h4>.muted</h4>
|
||||||
|
<p>Change an element's color to <code>#999</code></p>
|
||||||
|
<pre class="prettyprint linenums">
|
||||||
|
class="muted"
|
||||||
|
</pre>
|
||||||
|
<pre class="prettyprint linenums">
|
||||||
|
.muted {
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<h4>.clearfix</h4>
|
||||||
|
<p>Clear the <code>float</code> on any element</p>
|
||||||
|
<pre class="prettyprint linenums">
|
||||||
|
class="clearfix"
|
||||||
|
</pre>
|
||||||
|
<pre class="prettyprint linenums">
|
||||||
|
.clearfix {
|
||||||
|
*zoom: 1;
|
||||||
|
&:before,
|
||||||
|
&:after {
|
||||||
|
display: table;
|
||||||
|
content: "";
|
||||||
|
}
|
||||||
|
&:after {
|
||||||
|
clear: both;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</pre>
|
||||||
|
|
||||||
</div><!--/span-->
|
</div><!--/span-->
|
||||||
</div><!--/row-->
|
</div><!--/row-->
|
||||||
</section>
|
</section>
|
||||||
|
|
61
docs/templates/pages/components.mustache
vendored
61
docs/templates/pages/components.mustache
vendored
|
@ -1791,7 +1791,7 @@
|
||||||
<h1>{{_i}}Miscellaneous{{/i}} <small>{{_i}}Lightweight utility components{{/i}}</small></h1>
|
<h1>{{_i}}Miscellaneous{{/i}} <small>{{_i}}Lightweight utility components{{/i}}</small></h1>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span4">
|
<div class="span8">
|
||||||
<h2>{{_i}}Wells{{/i}}</h2>
|
<h2>{{_i}}Wells{{/i}}</h2>
|
||||||
<p>{{_i}}Use the well as a simple effect on an element to give it an inset effect.{{/i}}</p>
|
<p>{{_i}}Use the well as a simple effect on an element to give it an inset effect.{{/i}}</p>
|
||||||
<div class="well">
|
<div class="well">
|
||||||
|
@ -1814,14 +1814,69 @@
|
||||||
...
|
...
|
||||||
</div>
|
</div>
|
||||||
</pre>
|
</pre>
|
||||||
</div><!--/span-->
|
|
||||||
<div class="span4">
|
|
||||||
<h2>{{_i}}Close icon{{/i}}</h2>
|
<h2>{{_i}}Close icon{{/i}}</h2>
|
||||||
<p>{{_i}}Use the generic close icon for dismissing content like modals and alerts.{{/i}}</p>
|
<p>{{_i}}Use the generic close icon for dismissing content like modals and alerts.{{/i}}</p>
|
||||||
<p><button class="close" style="float: none;">×</button></p>
|
<p><button class="close" style="float: none;">×</button></p>
|
||||||
<pre class="prettyprint linenums"><button class="close">&times;</button></pre>
|
<pre class="prettyprint linenums"><button class="close">&times;</button></pre>
|
||||||
<p>{{_i}}iOS devices require an href="#" for click events if you rather use an anchor.{{/i}}</p>
|
<p>{{_i}}iOS devices require an href="#" for click events if you rather use an anchor.{{/i}}</p>
|
||||||
<pre class="prettyprint linenums"><a class="close" href="#">&times;</a></pre>
|
<pre class="prettyprint linenums"><a class="close" href="#">&times;</a></pre>
|
||||||
|
|
||||||
|
<h2>{{_i}}Helper classes{{/i}}</h2>
|
||||||
|
<p>{{_i}}Simple, focused classes for small display or behavior tweaks.{{/i}}</p>
|
||||||
|
|
||||||
|
<h4>{{_i}}.pull-left{{/i}}</h4>
|
||||||
|
<p>{{_i}}Float an element left{{/i}}</p>
|
||||||
|
<pre class="prettyprint linenums">
|
||||||
|
class="pull-left"
|
||||||
|
</pre>
|
||||||
|
<pre class="prettyprint linenums">
|
||||||
|
.pull-left {
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
|
||||||
|
<h4>{{_i}}.pull-right{{/i}}</h4>
|
||||||
|
<p>{{_i}}Float an element right{{/i}}</p>
|
||||||
|
<pre class="prettyprint linenums">
|
||||||
|
class="pull-right"
|
||||||
|
</pre>
|
||||||
|
<pre class="prettyprint linenums">
|
||||||
|
.pull-right {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<h4>{{_i}}.muted{{/i}}</h4>
|
||||||
|
<p>{{_i}}Change an element's color to <code>#999</code>{{/i}}</p>
|
||||||
|
<pre class="prettyprint linenums">
|
||||||
|
class="muted"
|
||||||
|
</pre>
|
||||||
|
<pre class="prettyprint linenums">
|
||||||
|
.muted {
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<h4>{{_i}}.clearfix{{/i}}</h4>
|
||||||
|
<p>{{_i}}Clear the <code>float</code> on any element{{/i}}</p>
|
||||||
|
<pre class="prettyprint linenums">
|
||||||
|
class="clearfix"
|
||||||
|
</pre>
|
||||||
|
<pre class="prettyprint linenums">
|
||||||
|
.clearfix {
|
||||||
|
*zoom: 1;
|
||||||
|
&:before,
|
||||||
|
&:after {
|
||||||
|
display: table;
|
||||||
|
content: "";
|
||||||
|
}
|
||||||
|
&:after {
|
||||||
|
clear: both;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</pre>
|
||||||
|
|
||||||
</div><!--/span-->
|
</div><!--/span-->
|
||||||
</div><!--/row-->
|
</div><!--/row-->
|
||||||
</section>
|
</section>
|
||||||
|
|
Loading…
Reference in a new issue