Skip to content

Commit 176e35d

Browse files
committed
rework downloads to simplify and add sass
1 parent 16ff01f commit 176e35d

File tree

5 files changed

+23
-38
lines changed

5 files changed

+23
-38
lines changed

_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ repo: https://github.com/twbs/bootstrap
1616

1717
download_source: https://github.com/twbs/bootstrap/archive/v3.1.0.zip
1818
download_dist: https://github.com/twbs/bootstrap/releases/download/v3.1.0/bootstrap-3.1.0-dist.zip
19+
download_sass: https://github.com/twbs/bootstrap-sass/archive/v3.1.0.0.tar.gz
1920

2021
blog: http://blog.getbootstrap.com
2122
expo: http://expo.getbootstrap.com

_includes/nav-getting-started.html

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
<li>
2-
<a href="#download">Download Bootstrap</a>
3-
<ul class="nav">
4-
<li><a href="#download-compiled">Compiled CSS, JS, and fonts</a></li>
5-
<li><a href="#download-additional">Additional downloads</a></li>
6-
<li><a href="#download-cdn">Bootstrap CDN</a></li>
7-
</ul>
2+
<a href="#download">Download</a>
83
</li>
94
<li>
105
<a href="#whats-included">What's included</a>

docs-assets/css/docs.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -232,13 +232,9 @@ body {
232232
}
233233
.bs-masthead .btn-outline {
234234
width: 100%;
235-
margin: 10px 5px;
236235
padding: 14px 24px;
237236
font-size: 20px;
238237
}
239-
.bs-masthead .btn-outline + .btn-outline {
240-
margin-top: 10px;
241-
}
242238

243239
@media (min-width: 480px) {
244240
.bs-masthead .btn-outline {

getting-started.html

Lines changed: 20 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -11,29 +11,26 @@
1111
================================================== -->
1212
<div class="bs-docs-section">
1313
<div class="page-header">
14-
<h1 id="download">Download Bootstrap</h1>
14+
<h1 id="download">Download</h1>
1515
</div>
1616
<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>
1717

18-
<h3 id="download-compiled">Compiled CSS, JS, and fonts</h3>
19-
<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>
20-
<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>
21-
22-
<h3 id="download-additional">Additional downloads</h3>
23-
<div class="bs-docs-dl-options">
24-
<h4>
25-
<a href="{{ site.download_source }}" onclick="_gaq.push(['_trackEvent', 'Getting started', 'Download', 'Download source']);">Download source code</a>
26-
</h4>
27-
<p>Get the latest Bootstrap LESS and JavaScript source code by downloading it directly from GitHub.</p>
28-
<h4>
29-
<a href="{{ site.repo }}" onclick="_gaq.push(['_trackEvent', 'Getting started', 'Download', 'GitHub project']);">Clone or fork via GitHub</a>
30-
</h4>
31-
<p>Visit us on GitHub to clone or fork the Bootstrap project.</p>
32-
<h4>
33-
Install with <a href="http://bower.io">Bower</a>
34-
</h4>
35-
<p>Install and manage Bootstrap's styles, JavaScript, and documentation using <a href="http://bower.io">Bower</a>.</p>
36-
{% highlight bash %}$ bower install bootstrap{% endhighlight %}
18+
<div class="row bs-downloads">
19+
<div class="col-sm-4">
20+
<h3 id="download-bootstrap">Bootstrap</h3>
21+
<p>Compiled and minified CSS, JavaScript, and fonts. No docs or original source files are included.</p>
22+
<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>
23+
</div>
24+
<div class="col-sm-4">
25+
<h3 id="download-source">Source code</h3>
26+
<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>
27+
<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>
28+
</div>
29+
<div class="col-sm-4">
30+
<h3 id="download-sass">Sass</h3>
31+
<p><a href="{{ site.sass }}">Bootstrap ported from Less to Sass</a> for easy inclusion in Rails, Compass, or Sass-only projects.</p>
32+
<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>
33+
</div>
3734
</div>
3835

3936
<h3 id="download-cdn">Bootstrap CDN</h3>
@@ -49,10 +46,9 @@ <h3 id="download-cdn">Bootstrap CDN</h3>
4946
<script src="{{ site.cdn_js }}"></script>
5047
{% endhighlight %}
5148

52-
<div class="bs-callout bs-callout-warning" id="callout-less-compilation">
53-
<h4>Compiling Bootstrap's LESS files</h4>
54-
<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>
55-
</div>
49+
<h3 id="download-bower">Install with Bower</h3>
50+
<p>Install and manage Bootstrap's Less, CSS, JavaScript, and fonts using <a href="http://bower.io">Bower</a>.</p>
51+
{% highlight bash %}$ bower install bootstrap{% endhighlight %}
5652
</div>
5753

5854

index.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@
99
<span class="bs-booticon bs-booticon-lg">B</span>
1010
<h1>Bootstrap</h1>
1111
<p class="lead">The most popular front-end framework for designing and building on the web.</p>
12-
<p class="lead">
13-
<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>
14-
<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>
15-
</p>
12+
<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>
1613
{% include ads.html %}
1714
</div>
1815
</main>

0 commit comments

Comments
 (0)