]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
add misc helper classes to components css docs
authorMark Otto <markotto@twitter.com>
Tue, 5 Jun 2012 03:25:57 +0000 (20:25 -0700)
committerMark Otto <markotto@twitter.com>
Tue, 5 Jun 2012 03:25:57 +0000 (20:25 -0700)
docs/components.html
docs/templates/pages/components.mustache

index 500a72950787cf5ffa1146b2adf340db26b0af5a..f923cd5e22c51336af62fc910bd2d7fae6e91ef4 100644 (file)
     <h1>Miscellaneous <small>Lightweight utility components</small></h1>
   </div>
   <div class="row">
-    <div class="span4">
+    <div class="span8">
       <h2>Wells</h2>
       <p>Use the well as a simple effect on an element to give it an inset effect.</p>
       <div class="well">
   ...
 &lt;/div&gt;
 </pre>
-    </div><!--/span-->
-    <div class="span4">
       <h2>Close icon</h2>
       <p>Use the generic close icon for dismissing content like modals and alerts.</p>
       <p><button class="close" style="float: none;">&times;</button></p>
 <pre class="prettyprint linenums">&lt;button class="close"&gt;&amp;times;&lt;/button&gt;</pre>
       <p>iOS devices require an href="#" for click events if you rather use an anchor.</p>
 <pre class="prettyprint linenums">&lt;a class="close" href="#"&gt;&amp;times;&lt;/a&gt;</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><!--/row-->
 </section>
index c342955583c1d654b9a099d35193651ab452eeb2..dedad62a88f89b4e65ffd2c50848799b89bf6b7d 100644 (file)
     <h1>{{_i}}Miscellaneous{{/i}} <small>{{_i}}Lightweight utility components{{/i}}</small></h1>
   </div>
   <div class="row">
-    <div class="span4">
+    <div class="span8">
       <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>
       <div class="well">
   ...
 &lt;/div&gt;
 </pre>
-    </div><!--/span-->
-    <div class="span4">
       <h2>{{_i}}Close icon{{/i}}</h2>
       <p>{{_i}}Use the generic close icon for dismissing content like modals and alerts.{{/i}}</p>
       <p><button class="close" style="float: none;">&times;</button></p>
 <pre class="prettyprint linenums">&lt;button class="close"&gt;&amp;times;&lt;/button&gt;</pre>
       <p>{{_i}}iOS devices require an href="#" for click events if you rather use an anchor.{{/i}}</p>
 <pre class="prettyprint linenums">&lt;a class="close" href="#"&gt;&amp;times;&lt;/a&gt;</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><!--/row-->
 </section>