diff options
author | Mark Otto <otto@github.com> | 2013-03-28 12:34:42 +0400 |
---|---|---|
committer | Mark Otto <otto@github.com> | 2013-03-28 12:34:42 +0400 |
commit | df35e261421f84494b18a617322610bb9ae2a61c (patch) | |
tree | b678d6e8ea8cd0a17b9bf41796b0370499d7eee6 /docs | |
parent | ba46d859e37786de82b38415f5ce1b6dce18f9eb (diff) |
rejigger some content and start exploring section headings
Diffstat (limited to 'docs')
-rw-r--r-- | docs/assets/css/docs.css | 21 | ||||
-rw-r--r-- | docs/docs.html | 358 |
2 files changed, 196 insertions, 183 deletions
diff --git a/docs/assets/css/docs.css b/docs/assets/css/docs.css index 9bab1a0ea0..9db62f2b6b 100644 --- a/docs/assets/css/docs.css +++ b/docs/assets/css/docs.css @@ -35,7 +35,6 @@ body { /* Padding for in-page bookmarks */ section { - padding-top: 30px; } /* Few stylistic typography tweaks */ @@ -52,6 +51,19 @@ section > ul li { /* Jumbotrons -------------------------------------------------- */ +.bs-docs-section-header { + margin: 60px 0; +} +.bs-docs-section-header h1, +.bs-docs-section-header .lead { + color: #8a8a8a; +} +.bs-docs-section-header h1 { + font-size: 80px; + font-size: 8rem; + line-height: 1; +} + /* Base class */ .bs-docs-jumbotron { position: relative; @@ -198,11 +210,18 @@ section > ul li { .bs-docs-sidenav-heading { margin: 0; +} +.bs-docs-sidenav-heading a { + display: block; padding: 15px 20px; color: #999; border-bottom: 1px solid #e5e5e5; box-shadow: 0 1px 0 #fff; } +.bs-docs-sidenav-heading a:hover { + color: #777; + text-decoration: none; +} .bs-docs-sidenav .nav-header { padding: 25px 20px 5px; diff --git a/docs/docs.html b/docs/docs.html index 4708907f6e..eb5e1dac7b 100644 --- a/docs/docs.html +++ b/docs/docs.html @@ -6,13 +6,13 @@ description: Overview of the project, its contents, and how to get started with <div class="bs-docs-sidebar"> <ul class="nav bs-docs-sidenav"> + <h3 class="bs-docs-sidenav-heading"><a href="/">Bootstrap</a></h3> <li class="nav-header">Getting started</li> <li><a href="#download-bootstrap">Download</a></li> <li><a href="#file-structure">File structure</a></li> <li><a href="#contents">What's included</a></li> <li><a href="#html-template">HTML template</a></li> <li><a href="#examples">Examples</a></li> - <li><a href="#what-next">What next?</a></li> <li class="nav-header">CSS</li> <li><a href="#global">Global settings</a></li> @@ -63,43 +63,51 @@ description: Overview of the project, its contents, and how to get started with <div class="container bs-docs-container"> - <!-- Download - ================================================== --> - <section id="download-bootstrap"> - <div class="page-header"> - <h1>1. Download</h1> - </div> - <p class="lead">Before downloading, be sure to have a code editor (we recommend <a href="http://sublimetext.com/2">Sublime Text 2</a>) and some working knowledge of HTML and CSS. We won't walk through the source files here, but they are available for download. We'll focus on getting started with the compiled Bootstrap files.</p> - <div class="row"> - <div class="col-span-6"> - <h2>Compiled</h2> - <p><strong>Fastest way to get started:</strong> get the compiled and minified versions of our CSS, JS, and images. No docs or original source files.</p> - <p><a class="btn btn-large btn-primary" href="assets/bootstrap.zip" onclick="_gaq.push(['_trackEvent', 'Getting started', 'Download', 'Download compiled']);">Download Bootstrap</a></p> - </div> - <div class="col-span-6"> - <h2>Source</h2> - <p>Get the original files for all CSS and JavaScript, along with a local copy of the docs by downloading the latest version directly from GitHub.</p> - <p><a class="btn btn-large" href="https://github.com/twitter/bootstrap/zipball/master" onclick="_gaq.push(['_trackEvent', 'Getting started', 'Download', 'Download source']);">Download Bootstrap source</a></p> - </div> - <div class="col-span-6"> - <h2>Bower</h2> - <p>Install and manage the original files for all CSS and JavaScript, along with a local copy of the docs, using <a href="http://twitter.github.com/bower">Bower</a>.</p> - {% highlight bash %}bower install bootstrap{% endhighlight %} - </div> - </div> - </section> - <!-- File structure - ================================================== --> - <section id="file-structure"> - <div class="page-header"> - <h1>2. File structure</h1> - </div> - <p class="lead">Within the download you'll find the following file structure and contents, logically grouping common assets and providing both compiled and minified variations.</p> - <p>Once downloaded, unzip the compressed folder to see the structure of (the compiled) Bootstrap. You'll see something like this:</p> + <div class="bs-docs-section-header"> + <h1>Getting started</h1> + <p class="lead">Overview of the project, its contents, and how to get started with a simple template.</p> + </div> + + <!-- Download + ================================================== --> + <section id="download-bootstrap"> + <div class="page-header"> + <h1>Download</h1> + </div> + <p class="lead">Before downloading, be sure to have a code editor (we recommend <a href="http://sublimetext.com/2">Sublime Text 2</a>) and some working knowledge of HTML and CSS. We won't walk through the source files here, but they are available for download. We'll focus on getting started with the compiled Bootstrap files.</p> + + <div class="row"> + <div class="col-span-6"> + <h2>Compiled</h2> + <p><strong>Fastest way to get started:</strong> get the compiled and minified versions of our CSS, JS, and images. No docs or original source files.</p> + <p><a class="btn btn-large btn-primary" href="assets/bootstrap.zip" onclick="_gaq.push(['_trackEvent', 'Getting started', 'Download', 'Download compiled']);">Download Bootstrap</a></p> + </div> + <div class="col-span-6"> + <h2>Source</h2> + <p>Get the original files for all CSS and JavaScript, along with a local copy of the docs by downloading the latest version directly from GitHub.</p> + <p><a class="btn btn-large" href="https://github.com/twitter/bootstrap/zipball/master" onclick="_gaq.push(['_trackEvent', 'Getting started', 'Download', 'Download source']);">Download Bootstrap source</a></p> + </div> + <div class="col-span-6"> + <h2>Bower</h2> + <p>Install and manage the original files for all CSS and JavaScript, along with a local copy of the docs, using <a href="http://twitter.github.com/bower">Bower</a>.</p> + {% highlight bash %}bower install bootstrap{% endhighlight %} + </div> + </div> + </section> + + + <!-- File structure + ================================================== --> + <section id="file-structure"> + <div class="page-header"> + <h1>File structure</h1> + </div> + <p class="lead">Within the download you'll find the following file structure and contents, logically grouping common assets and providing both compiled and minified variations.</p> + <p>Once downloaded, unzip the compressed folder to see the structure of (the compiled) Bootstrap. You'll see something like this:</p> {% highlight bash %} bootstrap/ @@ -117,41 +125,37 @@ description: Overview of the project, its contents, and how to get started with └── glyphiconshalflings-regular.woff {% endhighlight %} - <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 <strong>all JavaScript plugins require jQuery</strong> to be included.</p> - </section> + <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 <strong>all JavaScript plugins require jQuery</strong> to be included.</p> + </section> - - - <!-- Contents - ================================================== --> - <section id="contents"> - <div class="page-header"> - <h1>3. What's included</h1> - </div> - <p class="lead">Bootstrap comes equipped with HTML, CSS, and JS for all sorts of things, but they can be summarized with a handful of categories visible at the top of the <a href="http://getbootstrap.com">Bootstrap documentation</a>.</p> - - <h2>Docs sections</h2> - <p>In addition to the getting started documentation you're reading now, the Bootstrap docs are broken into a few key pages.</p> - - <h4><a href="http://twitter.github.com/bootstrap/css.html">Core CSS</a></h4> - <p>Global styles for the body, Normalize, links, grid system, tables, forms, buttons, icons, and more.</p> - <h4><a href="http://twitter.github.com/bootstrap/components.html">Components</a></h4> - <p>Basic styles for common interface components like tabs and pills, navbar, alerts, page headers, and more. Head here to see what kind of custom components Bootstrap has to offer beyond basic HTML elements.</p> - <h4><a href="http://twitter.github.com/bootstrap/javascript.html">JavaScript plugins</a></h4> - <p>Similar to Components, these JavaScript plugins are interactive components for things like tooltips, popovers, modals, and more.</p> - </section> - - - - <!-- HTML template - ================================================== --> - <section id="html-template"> - <div class="page-header"> - <h1>4. Basic HTML template</h1> - </div> - <p class="lead">With a brief intro into the contents out of the way, we can focus on putting Bootstrap to use. To do that, we'll utilize a basic HTML template that includes everything we mentioned in the <a href="./getting-started.html#file-structure">File structure</a>.</p> - <p>Now, here's a look at a <strong>typical HTML file</strong>:</p> + <!-- Contents + ================================================== --> + <section id="contents"> + <div class="page-header"> + <h1>What's included</h1> + </div> + <p class="lead">Bootstrap comes equipped with HTML, CSS, and JS for all sorts of things, but they can be summarized with a handful of categories visible at the top of the <a href="http://getbootstrap.com">Bootstrap documentation</a>.</p> + + <h2>Docs sections</h2> + <p>In addition to the getting started documentation you're reading now, the Bootstrap docs are broken into a few key pages.</p> + + <h4><a href="http://twitter.github.com/bootstrap/css.html">Core CSS</a></h4> + <p>Global styles for the body, Normalize, links, grid system, tables, forms, buttons, icons, and more.</p> + <h4><a href="http://twitter.github.com/bootstrap/components.html">Components</a></h4> + <p>Basic styles for common interface components like tabs and pills, navbar, alerts, page headers, and more. Head here to see what kind of custom components Bootstrap has to offer beyond basic HTML elements.</p> + <h4><a href="http://twitter.github.com/bootstrap/javascript.html">JavaScript plugins</a></h4> + <p>Similar to Components, these JavaScript plugins are interactive components for things like tooltips, popovers, modals, and more.</p> + </section> + + <!-- HTML template + ================================================== --> + <section id="html-template"> + <div class="page-header"> + <h1>4. Basic HTML template</h1> + </div> + <p class="lead">With a brief intro into the contents out of the way, we can focus on putting Bootstrap to use. To do that, we'll utilize a basic HTML template that includes everything we mentioned in the <a href="./getting-started.html#file-structure">File structure</a>.</p> + <p>Now, here's a look at a <strong>typical HTML file</strong>:</p> {% highlight html linenos %} <!DOCTYPE html> @@ -167,7 +171,7 @@ description: Overview of the project, its contents, and how to get started with </html> {% endhighlight %} - <p>To make this <strong>a Bootstrapped template</strong>, just include the appropriate CSS and JS files:</p> + <p>To make this <strong>a Bootstrapped template</strong>, just include the appropriate CSS and JS files:</p> {% highlight html linenos %} <!DOCTYPE html> @@ -186,134 +190,124 @@ description: Overview of the project, its contents, and how to get started with </html> {% endhighlight %} - <p><strong>And you're set!</strong> With those two files added, you can begin to develop any site or application with Bootstrap.</p> + <p><strong>And you're set!</strong> With those two files added, you can begin to develop any site or application with Bootstrap.</p> - <hr> + <hr> - <h4>Responsive features in IE8</h4> - <p>Internet Explorer 8 lacks support for media queries, the method by which we deliver responsive CSS to folks. To enable that, you need to include a third party tool (which we include in the project repository) called <a href="https://github.com/scottjehl/Respond">Respond.js</a>.</p> + <h4>Responsive features in IE8</h4> + <p>Internet Explorer 8 lacks support for media queries, the method by which we deliver responsive CSS to folks. To enable that, you need to include a third party tool (which we include in the project repository) called <a href="https://github.com/scottjehl/Respond">Respond.js</a>.</p> <pre class="prettyprint linenums"> <!--[if lt IE 9]> <script src="/assets/js/respond/respond.js"></script> <![endif]--> </pre> - </section> - + </section> - - <!-- Examples - ================================================== --> - <section id="examples"> - <div class="page-header"> - <h1>5. Examples</h1> - </div> - <p class="lead">Move beyond the base template with a few example layouts. We encourage folks to iterate on these examples and not simply use them as an end result.</p> - <div class="row bs-docs-examples"> - <div class="col-span-4"> - <a class="thumbnail" href="/examples/starter-template/" target="_blank"> - <img src="/assets/img/examples/bootstrap-example-starter.png" alt=""> - </a> - <h4>Starter template</h4> - <p>A barebones HTML document with all the Bootstrap CSS and JavaScript included.</p> - </div> - <div class="col-span-4"> - <a class="thumbnail" href="/examples/jumbotron/" target="_blank"> - <img src="/assets/img/examples/bootstrap-example-marketing.png" alt=""> - </a> - <h4>Basic marketing site</h4> - <p>Featuring a hero unit for a primary message and three supporting elements.</p> - </div> - <div class="col-span-4"> - <a class="thumbnail" href="/examples/jumbotron-narrow/" target="_blank"> - <img src="/assets/img/examples/bootstrap-example-jumbotron-narrow.png" alt=""> - </a> - <h4>Narrow marketing</h4> - <p>Slim, lightweight marketing template for small projects or teams.</p> - </div> - <div class="col-span-4"> - <a class="thumbnail" href="/examples/justified-nav/" target="_blank"> - <img src="/assets/img/examples/bootstrap-example-justified-nav.png" alt=""> - </a> - <h4>Justified nav</h4> - <p>Marketing page with equal-width navigation links in a modified navbar.</p> - </div> - <div class="col-span-4"> - <a class="thumbnail" href="/examples/signin/" target="_blank"> - <img src="/assets/img/examples/bootstrap-example-signin.png" alt=""> - </a> - <h4>Sign in</h4> - <p>Barebones sign in form with custom, larger form controls and a flexible layout.</p> - </div> - <div class="col-span-4"> - <a class="thumbnail" href="/examples/sticky-footer/" target="_blank"> - <img src="/assets/img/examples/bootstrap-example-sticky-footer.png" alt=""> - </a> - <h4>Sticky footer</h4> - <p>Pin a fixed-height footer to the bottom of the user's viewport.</p> - </div> - <div class="col-span-4"> - <a class="thumbnail" href="/examples/sticky-footer-navbar/" target="_blank"> - <img src="/assets/img/examples/bootstrap-example-sticky-footer-navbar.png" alt=""> - </a> - <h4>Sticky footer w/ navbar</h4> - <p>Add a fixed navbar to the default sticky footer template.</p> - </div> - <div class="col-span-4"> - <a class="thumbnail" href="/examples/carousel/" target="_blank"> - <img src="/assets/img/examples/bootstrap-example-carousel.png" alt=""> - </a> - <h4>Carousel jumbotron</h4> - <p>An interactive riff on the basic marketing site featuring a prominent carousel.</p> - </div> - - - <div class="col-span-4"> - <a class="thumbnail" href="/examples/navbar/" target="_blank"> - <img src="/assets/img/examples/bootstrap-example-navbar.png" alt=""> - </a> - <h4>Navbar</h4> - <p>Basic template for showcasing how the navbar works.</p> - </div> - <div class="col-span-4"> - <a class="thumbnail" href="/examples/navbar-static-top/" target="_blank"> - <img src="/assets/img/examples/bootstrap-example-navbar-static-top.png" alt=""> - </a> - <h4>Static top navbar</h4> - <p>Basic template for showcasing the static navbar variation.</p> - </div> - <div class="col-span-4"> - <a class="thumbnail" href="/examples/navbar-fixed-top/" target="_blank"> - <img src="/assets/img/examples/bootstrap-example-navbar-fixed-top.png" alt=""> - </a> - <h4>Fixed top navbar</h4> - <p>Basic template for showcasing the fixed navbar variation.</p> - </div> - <div class="col-span-4"> - <a class="thumbnail" href="/examples/grid/" target="_blank"> - <img src="/assets/img/examples/bootstrap-example-.png" alt=""> - </a> - <h4>Grid examples</h4> - <p></p> - </div> - </div> - </section> + <!-- Examples + ================================================== --> + <section id="examples"> + <div class="page-header"> + <h1>5. Examples</h1> + </div> + <p class="lead">Move beyond the base template with a few example layouts. We encourage folks to iterate on these examples and not simply use them as an end result.</p> + <div class="row bs-docs-examples"> + <div class="col-span-4"> + <a class="thumbnail" href="/examples/starter-template/" target="_blank"> + <img src="/assets/img/examples/bootstrap-example-starter.png" alt=""> + </a> + <h4>Starter template</h4> + <p>A barebones HTML document with all the Bootstrap CSS and JavaScript included.</p> + </div> + <div class="col-span-4"> + <a class="thumbnail" href="/examples/jumbotron/" target="_blank"> + <img src="/assets/img/examples/bootstrap-example-marketing.png" alt=""> + </a> + <h4>Basic marketing site</h4> + <p>Featuring a hero unit for a primary message and three supporting elements.</p> + </div> + <div class="col-span-4"> + <a class="thumbnail" href="/examples/jumbotron-narrow/" target="_blank"> + <img src="/assets/img/examples/bootstrap-example-jumbotron-narrow.png" alt=""> + </a> + <h4>Narrow marketing</h4> + <p>Slim, lightweight marketing template for small projects or teams.</p> + </div> + <div class="col-span-4"> + <a class="thumbnail" href="/examples/justified-nav/" target="_blank"> + <img src="/assets/img/examples/bootstrap-example-justified-nav.png" alt=""> + </a> + <h4>Justified nav</h4> + <p>Marketing page with equal-width navigation links in a modified navbar.</p> + </div> + <div class="col-span-4"> + <a class="thumbnail" href="/examples/signin/" target="_blank"> + <img src="/assets/img/examples/bootstrap-example-signin.png" alt=""> + </a> + <h4>Sign in</h4> + <p>Barebones sign in form with custom, larger form controls and a flexible layout.</p> + </div> + <div class="col-span-4"> + <a class="thumbnail" href="/examples/sticky-footer/" target="_blank"> + <img src="/assets/img/examples/bootstrap-example-sticky-footer.png" alt=""> + </a> + <h4>Sticky footer</h4> + <p>Pin a fixed-height footer to the bottom of the user's viewport.</p> + </div> + <div class="col-span-4"> + <a class="thumbnail" href="/examples/sticky-footer-navbar/" target="_blank"> + <img src="/assets/img/examples/bootstrap-example-sticky-footer-navbar.png" alt=""> + </a> + <h4>Sticky footer w/ navbar</h4> + <p>Add a fixed navbar to the default sticky footer template.</p> + </div> + <div class="col-span-4"> + <a class="thumbnail" href="/examples/carousel/" target="_blank"> + <img src="/assets/img/examples/bootstrap-example-carousel.png" alt=""> + </a> + <h4>Carousel jumbotron</h4> + <p>An interactive riff on the basic marketing site featuring a prominent carousel.</p> + </div> + <div class="col-span-4"> + <a class="thumbnail" href="/examples/navbar/" target="_blank"> + <img src="/assets/img/examples/bootstrap-example-navbar.png" alt=""> + </a> + <h4>Navbar</h4> + <p>Basic template for showcasing how the navbar works.</p> + </div> + <div class="col-span-4"> + <a class="thumbnail" href="/examples/navbar-static-top/" target="_blank"> + <img src="/assets/img/examples/bootstrap-example-navbar-static-top.png" alt=""> + </a> + <h4>Static top navbar</h4> + <p>Basic template for showcasing the static navbar variation.</p> + </div> + <div class="col-span-4"> + <a class="thumbnail" href="/examples/navbar-fixed-top/" target="_blank"> + <img src="/assets/img/examples/bootstrap-example-navbar-fixed-top.png" alt=""> + </a> + <h4>Fixed top navbar</h4> + <p>Basic template for showcasing the fixed navbar variation.</p> + </div> + <div class="col-span-4"> + <a class="thumbnail" href="/examples/grid/" target="_blank"> + <img src="/assets/img/examples/bootstrap-example-.png" alt=""> + </a> + <h4>Grid examples</h4> + <p></p> + </div> + </div> + </section> - <!-- Next - ================================================== --> - <section id="what-next"> - <div class="page-header"> - <h1>What next?</h1> - </div> - <p class="lead">Head to the docs for information, examples, and code snippets, or take the next leap and customize Bootstrap for any upcoming project.</p> - <a class="btn btn-large btn-primary" href="./css.html" onclick="_gaq.push(['_trackEvent', 'Getting started', 'Next steps', 'Visit docs']);">Visit the Bootstrap docs</a> - <a class="btn btn-large" href="./customize.html" style="margin-left: 5px;" onclick="_gaq.push(['_trackEvent', 'Getting started', 'Next steps', 'Customize']);">Customize Bootstrap</a> - </section> + <div class="bs-docs-section-header"> + <h1>CSS</h1> + <p class="lead">Fundamental HTML elements styled and enhanced with extensible classes.</p> + </div> <!-- Global Bootstrap settings ================================================== --> |