diff options
| author | Mark Otto <[email protected]> | 2013-12-21 13:40:42 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2013-12-21 13:40:42 -0800 |
| commit | 176e35d33d1dfc5a81df58462d158e90e4cf4cd8 (patch) | |
| tree | 48cffe5ed1af1e04149b7d81a9688c1600da29ad | |
| parent | 16ff01f6299ebd3d6c35374556fcd5354081d417 (diff) | |
| download | bootstrap-176e35d33d1dfc5a81df58462d158e90e4cf4cd8.tar.xz bootstrap-176e35d33d1dfc5a81df58462d158e90e4cf4cd8.zip | |
rework downloads to simplify and add sass
| -rw-r--r-- | _config.yml | 1 | ||||
| -rw-r--r-- | _includes/nav-getting-started.html | 7 | ||||
| -rw-r--r-- | docs-assets/css/docs.css | 4 | ||||
| -rw-r--r-- | getting-started.html | 44 | ||||
| -rw-r--r-- | index.html | 5 |
5 files changed, 23 insertions, 38 deletions
diff --git a/_config.yml b/_config.yml index 32c94d385..baa1344c9 100644 --- a/_config.yml +++ b/_config.yml @@ -16,6 +16,7 @@ repo: https://github.com/twbs/bootstrap download_source: https://github.com/twbs/bootstrap/archive/v3.1.0.zip download_dist: https://github.com/twbs/bootstrap/releases/download/v3.1.0/bootstrap-3.1.0-dist.zip +download_sass: https://github.com/twbs/bootstrap-sass/archive/v3.1.0.0.tar.gz blog: http://blog.getbootstrap.com expo: http://expo.getbootstrap.com diff --git a/_includes/nav-getting-started.html b/_includes/nav-getting-started.html index 4a8a2f836..f4a98f2ac 100644 --- a/_includes/nav-getting-started.html +++ b/_includes/nav-getting-started.html @@ -1,10 +1,5 @@ <li> - <a href="#download">Download Bootstrap</a> - <ul class="nav"> - <li><a href="#download-compiled">Compiled CSS, JS, and fonts</a></li> - <li><a href="#download-additional">Additional downloads</a></li> - <li><a href="#download-cdn">Bootstrap CDN</a></li> - </ul> + <a href="#download">Download</a> </li> <li> <a href="#whats-included">What's included</a> diff --git a/docs-assets/css/docs.css b/docs-assets/css/docs.css index 1a57678d9..c8efba3ae 100644 --- a/docs-assets/css/docs.css +++ b/docs-assets/css/docs.css @@ -232,13 +232,9 @@ body { } .bs-masthead .btn-outline { width: 100%; - margin: 10px 5px; padding: 14px 24px; font-size: 20px; } -.bs-masthead .btn-outline + .btn-outline { - margin-top: 10px; -} @media (min-width: 480px) { .bs-masthead .btn-outline { diff --git a/getting-started.html b/getting-started.html index 0cc159ec7..d778e351e 100644 --- a/getting-started.html +++ b/getting-started.html @@ -11,29 +11,26 @@ base_url: "../" ================================================== --> <div class="bs-docs-section"> <div class="page-header"> - <h1 id="download">Download Bootstrap</h1> + <h1 id="download">Download</h1> </div> <p class="lead">Bootstrap has a few easy ways to quickly get started, each one appealing to a different skill level and use case. Read through to see what suits your particular needs.</p> - <h3 id="download-compiled">Compiled CSS, JS, and fonts</h3> - <p>The fastest way to get Bootstrap is to download the precompiled and minified versions of our CSS, JavaScript, and fonts. No documentation or original source code files are included.</p> - <p><a class="btn btn-lg btn-primary" href="{{ site.download_dist }}" onclick="_gaq.push(['_trackEvent', 'Getting started', 'Download', 'Download compiled']);" role="button">Download Bootstrap</a></p> - - <h3 id="download-additional">Additional downloads</h3> - <div class="bs-docs-dl-options"> - <h4> - <a href="{{ site.download_source }}" onclick="_gaq.push(['_trackEvent', 'Getting started', 'Download', 'Download source']);">Download source code</a> - </h4> - <p>Get the latest Bootstrap LESS and JavaScript source code by downloading it directly from GitHub.</p> - <h4> - <a href="{{ site.repo }}" onclick="_gaq.push(['_trackEvent', 'Getting started', 'Download', 'GitHub project']);">Clone or fork via GitHub</a> - </h4> - <p>Visit us on GitHub to clone or fork the Bootstrap project.</p> - <h4> - Install with <a href="http://bower.io">Bower</a> - </h4> - <p>Install and manage Bootstrap's styles, JavaScript, and documentation using <a href="http://bower.io">Bower</a>.</p> - {% highlight bash %}$ bower install bootstrap{% endhighlight %} + <div class="row bs-downloads"> + <div class="col-sm-4"> + <h3 id="download-bootstrap">Bootstrap</h3> + <p>Compiled and minified CSS, JavaScript, and fonts. No docs or original source files are included.</p> + <a href="{{ site.download_dist }}" class="btn btn-lg btn-outline" role="button" onclick="_gaq.push(['_trackEvent', 'Getting started', 'Download', 'Download compiled']);">Download Bootstrap</a> + </div> + <div class="col-sm-4"> + <h3 id="download-source">Source code</h3> + <p>Source Less, JavaScript, and font files, along with our docs. <strong>Requires a Less compiler and <a href="{{ site.repo }}#compiling-css-and-javascript">some setup.</a></strong></p> + <a href="{{ site.download_source }}" class="btn btn-lg btn-outline" role="button" onclick="_gaq.push(['_trackEvent', 'Getting started', 'Download', 'Download source']);">Download source</a> + </div> + <div class="col-sm-4"> + <h3 id="download-sass">Sass</h3> + <p><a href="{{ site.sass }}">Bootstrap ported from Less to Sass</a> for easy inclusion in Rails, Compass, or Sass-only projects.</p> + <a href="{{ site.download_sass }}" class="btn btn-lg btn-outline" role="button" onclick="_gaq.push(['_trackEvent', 'Getting started', 'Download', 'Download Sass']);">Download Sass</a> + </div> </div> <h3 id="download-cdn">Bootstrap CDN</h3> @@ -49,10 +46,9 @@ base_url: "../" <script src="{{ site.cdn_js }}"></script> {% endhighlight %} - <div class="bs-callout bs-callout-warning" id="callout-less-compilation"> - <h4>Compiling Bootstrap's LESS files</h4> - <p>If you work with Bootstrap's uncompiled source code, you need to compile the LESS files to produce usable CSS files. For compiling LESS files into CSS, we only officially support <a href="http://twitter.github.io/recess/">Recess</a>, which is Twitter's CSS hinter based on <a href="http://lesscss.org">less.js</a>.</p> - </div> + <h3 id="download-bower">Install with Bower</h3> + <p>Install and manage Bootstrap's Less, CSS, JavaScript, and fonts using <a href="http://bower.io">Bower</a>.</p> + {% highlight bash %}$ bower install bootstrap{% endhighlight %} </div> diff --git a/index.html b/index.html index aba84ecf8..d59c6fb6e 100644 --- a/index.html +++ b/index.html @@ -9,10 +9,7 @@ base_url: "./" <span class="bs-booticon bs-booticon-lg">B</span> <h1>Bootstrap</h1> <p class="lead">The most popular front-end framework for designing and building on the web.</p> - <p class="lead"> - <a href="{{ site.download_dist }}" class="btn btn-outline btn-lg" onclick="_gaq.push(['_trackEvent', 'Jumbotron actions', 'Download', 'Download {{ site.current_version }}']);" data-content="Quickly get started with Bootstrap's precompiled CSS, JavaScript, and fonts.">Download Bootstrap</a> - <a href="{{ site.download_source }}" class="btn btn-outline btn-lg" onclick="_gaq.push(['_trackEvent', 'Jumbotron actions', 'Download', 'Download {{ site.current_version source }}']);" data-content="Download Bootstrap's LESS, JavaScript, font, and documentation source code.">Download source</a> - </p> + <p class="lead"><a href="{{ page.base_url }}getting-started#download" class="btn btn-outline btn-lg" onclick="_gaq.push(['_trackEvent', 'Jumbotron actions', 'Download', 'Download {{ site.current_version }}']);">Download Bootstrap</a></p> {% include ads.html %} </div> </main> |
