aboutsummaryrefslogtreecommitdiff
path: root/docs/components.html
diff options
context:
space:
mode:
authorJacob Thornton <[email protected]>2012-02-13 18:42:57 -0800
committerJacob Thornton <[email protected]>2012-02-13 18:42:57 -0800
commita8c478e05189d195d4b921c5d0eb6c601ea35711 (patch)
tree592350f61d1a4ba91ed587ea8615b5a850ea13d7 /docs/components.html
parent6e77c9d1233c1621deeaa2dd00e6eca3fd618610 (diff)
parent64ea59234f30f51ab5497830d1825c7e043a575e (diff)
downloadbootstrap-a8c478e05189d195d4b921c5d0eb6c601ea35711.tar.xz
bootstrap-a8c478e05189d195d4b921c5d0eb6c601ea35711.zip
Merge branch '2.0.1-wip' of https://github.com/twitter/bootstrap into 2.0.1-wip
Conflicts: docs/assets/bootstrap.zip
Diffstat (limited to 'docs/components.html')
-rw-r--r--docs/components.html62
1 files changed, 59 insertions, 3 deletions
diff --git a/docs/components.html b/docs/components.html
index cb41c736e..d0b5de632 100644
--- a/docs/components.html
+++ b/docs/components.html
@@ -15,7 +15,7 @@
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
- <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
+ <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Le fav and touch icons -->
@@ -98,6 +98,7 @@
</ul>
</li>
<li><a href="#labels">Labels</a></li>
+ <li><a href="#typography">Typography</a></li>
<li><a href="#thumbnails">Thumbnails</a></li>
<li><a href="#alerts">Alerts</a></li>
<li><a href="#progress">Progress bars</a></li>
@@ -247,7 +248,9 @@
<li><a href="#">Separated link</a></li>
</ul>
</div><!-- /btn-group -->
- </div>
+ </div><!-- /btn-toolbar -->
+ <hr>
+ <p><span class="label label-info">Heads up!</span> Button dropdowns require the <a href="./javascript.html#dropdowns">Bootstrap dropdown plugin</a> to function.</p>
</div>
<div class="span8">
<h3>Example markup</h3>
@@ -771,7 +774,9 @@
<li><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
<li class="divider"></li>
+ <li class="nav-header">Nav header</li>
<li><a href="#">Separated link</a></li>
+ <li><a href="#">One more separated link</a></li>
</ul>
</li>
</ul>
@@ -810,12 +815,14 @@
&lt;/div&gt;
&lt;/div&gt;
</pre>
- <p>To make the navbar fixed to the top of the viewport, add <code>.navbar-fixed-top</code> to the outermost div, <code>.navbar</code>. In your CSS, you will also need to account for the overlap it causes by adding <code>padding-top: 40px;</code> to your <code>&lt;body&gt;</code>.</p>
+ <h3>Fixed navbar</h3>
+ <p>To make the navbar fixed to the top of the viewport, add <code>.navbar-fixed-top</code> to the outermost div, <code>.navbar</code>.</p>
<pre class="prettyprint linenums">
&lt;div class="navbar navbar-fixed-top"&gt;
...
&lt;/div&gt;
</pre>
+ <p>In your CSS, you will also need to account for the overlap it causes by adding 40px or more of padding to your <code>&lt;body&gt;</code>. Be sure to add this after the core Bootstrap CSS and before the optional responsive CSS.</p>
<h3>Brand name</h3>
<p>A simple link to show your brand or project name only requires an anchor tag.</p>
<pre class="prettyprint linenums">
@@ -1135,6 +1142,55 @@
+<!-- Typographic components
+================================================== -->
+<section id="typography">
+ <div class="page-header">
+ <h1>Typographic components <small>Page header and hero unit for segmenting content</small></h1>
+ </div>
+ <h2>Hero unit</h2>
+ <div class="row">
+ <div class="span4">
+ <p>Bootstrap provides a lightweight, flexible component called a hero unit to showcase content on your site. It works well on marketing and content-heavy sites.</p>
+ <h3>Markup</h3>
+ <p>Wrap your content in a <code>div</code> like so:</p>
+<pre class="prettyprint linenums">
+&lt;div class="hero-unit"&gt;
+ &lt;h1&gt;Heading&lt;/h1&gt;
+ &lt;p&gt;Tagline&lt;/p&gt;
+ &lt;p&gt;
+ &lt;a class="btn btn-primary btn-large"&gt;
+ Learn more
+ &lt;/a&gt;
+ &lt;/p&gt;
+&lt;/div&gt;
+</pre>
+ </div>
+ <div class="span8">
+ <div class="hero-unit">
+ <h1>Hello, world!</h1>
+ <p>This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.</p>
+ <p><a class="btn btn-primary btn-large">Learn more</a></p>
+ </div>
+ </div>
+ </div><!-- /row -->
+ <h2>Page header</h2>
+ <div class="row">
+ <div class="span4">
+ <p>A simple shell for an <code>h1</code> to appropratiely space out and segment sections of content on a page. It can utilize the <code>h1</code>'s default <code>small</code>, element as well most other components (with additional styles).</p>
+ </div>
+ <div class="span8">
+<pre class="prettyprint linenums">
+&lt;div class="page-haeder"&gt;
+ &lt;h1&gt;Example page header&lt;/h1&gt;
+&lt;/div&gt;
+</pre>
+ </div>
+ </div><!-- /row -->
+</section>
+
+
+
<!-- Thumbnails
================================================== -->
<section id="thumbnails">