aboutsummaryrefslogtreecommitdiff
path: root/docs/templates
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-01-15 14:30:00 -0800
committerMark Otto <[email protected]>2013-01-15 14:30:00 -0800
commit267690eb1bd0192338b07c6d4ed2f5b25d2fc143 (patch)
tree9d59c9543f37d7d9f55fd385adf7a425cd8a405b /docs/templates
parent09696143e0301e30b931467a40d13a6d357dac07 (diff)
downloadbootstrap-267690eb1bd0192338b07c6d4ed2f5b25d2fc143.tar.xz
bootstrap-267690eb1bd0192338b07c6d4ed2f5b25d2fc143.zip
docs changes, more type improvements, add grid system basics back
Diffstat (limited to 'docs/templates')
-rw-r--r--docs/templates/pages/css.mustache203
-rw-r--r--docs/templates/pages/getting-started.mustache11
2 files changed, 108 insertions, 106 deletions
diff --git a/docs/templates/pages/css.mustache b/docs/templates/pages/css.mustache
index f3209f1e8..92cf57dff 100644
--- a/docs/templates/pages/css.mustache
+++ b/docs/templates/pages/css.mustache
@@ -16,9 +16,9 @@
<div class="span3 bs-docs-sidebar">
<ul class="nav nav-list bs-docs-sidenav">
<li><a href="#global"><i class="glyphicon-chevron-right"></i> Global styles</a></li>
- <li><a href="#gridSystem"><i class="glyphicon-chevron-right"></i> Grid system</a></li>
<li><a href="#typography"><i class="glyphicon-chevron-right"></i> Typography</a></li>
<li><a href="#code"><i class="glyphicon-chevron-right"></i> Code</a></li>
+ <li><a href="#gridSystem"><i class="glyphicon-chevron-right"></i> Grid system</a></li>
<li><a href="#tables"><i class="glyphicon-chevron-right"></i> Tables</a></li>
<li><a href="#forms"><i class="glyphicon-chevron-right"></i> Forms</a></li>
<li><a href="#buttons"><i class="glyphicon-chevron-right"></i> Buttons</a></li>
@@ -64,107 +64,6 @@
- <!-- Grid system
- ================================================== -->
- <section id="gridSystem">
- <div class="page-header">
- <h1>Grid system</h1>
- </div>
-
- <h2>Live grid example</h2>
- <p>The default Bootstrap grid system utilizes <strong>12 columns</strong>, making for a 940px wide container without <a href="./scaffolding.html#responsive">responsive features</a> enabled. With the responsive CSS file added, the grid adapts to be 724px and 1170px wide depending on your viewport. Below 767px viewports, the columns become fluid and stack vertically.</p>
- <div class="bs-docs-grid">
- <div class="row show-grid">
- <div class="span1">1</div>
- <div class="span1">1</div>
- <div class="span1">1</div>
- <div class="span1">1</div>
- <div class="span1">1</div>
- <div class="span1">1</div>
- <div class="span1">1</div>
- <div class="span1">1</div>
- <div class="span1">1</div>
- <div class="span1">1</div>
- <div class="span1">1</div>
- <div class="span1">1</div>
- </div>
- <div class="row show-grid">
- <div class="span4">4</div>
- <div class="span4">4</div>
- <div class="span4">4</div>
- </div>
- <div class="row show-grid">
- <div class="span6">6</div>
- <div class="span6">6</div>
- </div>
- <div class="row show-grid">
- <div class="span12">12</div>
- </div>
- </div>
-
- <h3>Basic grid HTML</h3>
- <p>For a simple two column layout, create a <code>.row</code> and add the appropriate number of <code>.span*</code> columns. As this is a 12-column grid, each <code>.span*</code> spans a number of those 12 columns, and should always add up to 12 for each row (or the number of columns in the parent).</p>
-<pre class="prettyprint linenums">
-&lt;div class="row"&gt;
- &lt;div class="span4"&gt;...&lt;/div&gt;
- &lt;div class="span8"&gt;...&lt;/div&gt;
-&lt;/div&gt;
-</pre>
- <p>Given this example, we have <code>.span4</code> and <code>.span8</code>, making for 12 total columns and a complete row.</p>
-
- <h2>Offsetting columns</h2>
- <p>Move columns to the right using <code>.offset*</code> classes. Each class increases the left margin of a column by a whole column. For example, <code>.offset4</code> moves <code>.span4</code> over four columns.</p>
- <div class="bs-docs-grid">
- <div class="row show-grid">
- <div class="span4">4</div>
- <div class="span4 offset4">4 offset 4</div>
- </div><!-- /row -->
- <div class="row show-grid">
- <div class="span3 offset3">3 offset 3</div>
- <div class="span3 offset3">3 offset 3</div>
- </div><!-- /row -->
- <div class="row show-grid">
- <div class="span6 offset6">6 offset 6</div>
- </div><!-- /row -->
- </div>
-<pre class="prettyprint linenums">
-&lt;div class="row"&gt;
- &lt;div class="span4"&gt;...&lt;/div&gt;
- &lt;div class="span4 offset4"&gt;...&lt;/div&gt;
-&lt;/div&gt;
-</pre>
-
-
- <h2>Nesting columns</h2>
- <p>To nest your content with the default grid, add a new <code>.row</code> and set of <code>.span*</code> columns within an existing <code>.span*</code> column. Nested rows should include a set of columns that add up to the number of columns of its parent.</p>
- <div class="row show-grid">
- <div class="span9">
- Level 1: 9 columns
- <div class="row show-grid">
- <div class="span6">
- Level 2: 6 columns
- </div>
- <div class="span6">
- Level 2: 6 columns
- </div>
- </div>
- </div>
- </div>
-<pre class="prettyprint linenums">
-&lt;div class="row"&gt;
- &lt;div class="span9"&gt;
- Level 1: 9 columns
- &lt;div class="row"&gt;
- &lt;div class="span6"&gt;Level 2: 6 columns&lt;/div&gt;
- &lt;div class="span3"&gt;Level 2: 6 columns&lt;/div&gt;
- &lt;/div&gt;
- &lt;/div&gt;
-&lt;/div&gt;
-</pre>
- </section>
-
-
-
<!-- Typography
================================================== -->
@@ -526,6 +425,106 @@
+ <!-- Grid system
+ ================================================== -->
+ <section id="gridSystem">
+ <div class="page-header">
+ <h1>Grid system</h1>
+ </div>
+
+ <h2>Live grid example</h2>
+ <p>The default Bootstrap grid system utilizes <strong>12 columns</strong>, making for a 940px wide container without <a href="./scaffolding.html#responsive">responsive features</a> enabled. With the responsive CSS file added, the grid adapts to be 724px and 1170px wide depending on your viewport. Below 767px viewports, the columns become fluid and stack vertically.</p>
+ <div class="bs-docs-grid">
+ <div class="row show-grid">
+ <div class="span1">1</div>
+ <div class="span1">1</div>
+ <div class="span1">1</div>
+ <div class="span1">1</div>
+ <div class="span1">1</div>
+ <div class="span1">1</div>
+ <div class="span1">1</div>
+ <div class="span1">1</div>
+ <div class="span1">1</div>
+ <div class="span1">1</div>
+ <div class="span1">1</div>
+ <div class="span1">1</div>
+ </div>
+ <div class="row show-grid">
+ <div class="span4">4</div>
+ <div class="span4">4</div>
+ <div class="span4">4</div>
+ </div>
+ <div class="row show-grid">
+ <div class="span6">6</div>
+ <div class="span6">6</div>
+ </div>
+ </div>
+
+ <h3>Basic grid HTML</h3>
+ <p>For a simple two column layout, create a <code>.row</code> and add the appropriate number of <code>.span*</code> columns. As this is a 12-column grid, each <code>.span*</code> spans a number of those 12 columns, and should always add up to 12 for each row (or the number of columns in the parent).</p>
+<pre class="prettyprint linenums">
+&lt;div class="row"&gt;
+ &lt;div class="span4"&gt;...&lt;/div&gt;
+ &lt;div class="span8"&gt;...&lt;/div&gt;
+&lt;/div&gt;
+</pre>
+ <p>Given this example, we have <code>.span4</code> and <code>.span8</code>, making for 12 total columns and a complete row.</p>
+
+ <h2>Offsetting columns</h2>
+ <p>Move columns to the right using <code>.offset*</code> classes. Each class increases the left margin of a column by a whole column. For example, <code>.offset4</code> moves <code>.span4</code> over four columns.</p>
+ <div class="bs-docs-grid">
+ <div class="row show-grid">
+ <div class="span4">4</div>
+ <div class="span4 offset4">4 offset 4</div>
+ </div><!-- /row -->
+ <div class="row show-grid">
+ <div class="span3 offset3">3 offset 3</div>
+ <div class="span3 offset3">3 offset 3</div>
+ </div><!-- /row -->
+ <div class="row show-grid">
+ <div class="span6 offset6">6 offset 6</div>
+ </div><!-- /row -->
+ </div>
+<pre class="prettyprint linenums">
+&lt;div class="row"&gt;
+ &lt;div class="span4"&gt;...&lt;/div&gt;
+ &lt;div class="span4 offset4"&gt;...&lt;/div&gt;
+&lt;/div&gt;
+</pre>
+
+
+ <h2>Nesting columns</h2>
+ <p>To nest your content with the default grid, add a new <code>.row</code> and set of <code>.span*</code> columns within an existing <code>.span*</code> column. Nested rows should include a set of columns that add up to the number of columns of its parent.</p>
+ <div class="row show-grid">
+ <div class="span9">
+ Level 1: 9 columns
+ <div class="row show-grid">
+ <div class="span6">
+ Level 2: 6 columns
+ </div>
+ <div class="span6">
+ Level 2: 6 columns
+ </div>
+ </div>
+ </div>
+ </div>
+<pre class="prettyprint linenums">
+&lt;div class="row"&gt;
+ &lt;div class="span9"&gt;
+ Level 1: 9 columns
+ &lt;div class="row"&gt;
+ &lt;div class="span6"&gt;Level 2: 6 columns&lt;/div&gt;
+ &lt;div class="span3"&gt;Level 2: 6 columns&lt;/div&gt;
+ &lt;/div&gt;
+ &lt;/div&gt;
+&lt;/div&gt;
+</pre>
+ </section>
+
+
+
+
+
<!-- Code
================================================== -->
<section id="code">
diff --git a/docs/templates/pages/getting-started.mustache b/docs/templates/pages/getting-started.mustache
index 6330e6e11..4ca6d630b 100644
--- a/docs/templates/pages/getting-started.mustache
+++ b/docs/templates/pages/getting-started.mustache
@@ -67,12 +67,15 @@
├── js/
│ ├── bootstrap.js
│ ├── bootstrap.min.js
- └── img/
- ├── glyphicons-halflings.png
- └── glyphicons-halflings-white.png
+ └── fonts/
+ ├── glyphiconshalflings-regular.eot
+ ├── glyphiconshalflings-regular.otf
+ ├── glyphiconshalflings-regular.svg
+ ├── glyphiconshalflings-regular.ttf
+ └── glyphiconshalflings-regular.woff
</pre>
<p>This is the most basic form of Bootstrap: compiled files for quick drop-in usage in nearly any web project. We provide compiled CSS and JS (<code>bootstrap.*</code>), as well as compiled and minified CSS and JS (<code>bootstrap.min.*</code>). The image files are compressed using <a href="http://imageoptim.com/">ImageOptim</a>, a Mac app for compressing PNGs.</p>
- <p>Please note that all JavaScript plugins require jQuery to be included.</p>
+ <p>Please note that <strong>all JavaScript plugins require jQuery</strong> to be included.</p>
</section>