mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-17 09:52:29 +01:00
update static assets section of extend page, copy changes elsewhere
This commit is contained in:
parent
6e622ee763
commit
463de252a9
@ -123,12 +123,14 @@
|
||||
<p>Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec ullamcorper nulla non metus auctor fringilla. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Donec ullamcorper nulla non metus auctor fringilla.</p>
|
||||
<p>Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.</p>
|
||||
</div>
|
||||
<pre class="prettyprint"><p>...</p></pre>
|
||||
|
||||
<h3>Lead body copy</h3>
|
||||
<p>Make a paragraph stand out by adding <code>.lead</code>.</p>
|
||||
<div class="bs-docs-example">
|
||||
<p class="lead">Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus.</p>
|
||||
</div>
|
||||
<pre class="prettyprint"><p class="lead">...</p></pre>
|
||||
|
||||
<h2>Built with Less</h2>
|
||||
<p>The typographic scale is based on two LESS variables in <strong>variables.less</strong>: <code>@baseFontSize</code> and <code>@baseLineHeight</code>. The first is the base font-size used throughout and the second is the base line-height. We use those variables and some simple math to create the margins, paddings, and line-heights of all our type and more. Customize them and Bootstrap adapts.</p>
|
||||
@ -145,18 +147,14 @@
|
||||
<div class="bs-docs-example">
|
||||
<p>The following snippet of text is <strong>rendered as bold text</strong>.</p>
|
||||
</div>
|
||||
<pre class="prettyprint">
|
||||
<strong>rendered as bold text</strong>
|
||||
</pre>
|
||||
<pre class="prettyprint"><strong>rendered as bold text</strong></pre>
|
||||
|
||||
<h3><code><em></code></h3>
|
||||
<p>For emphasizing a snippet of text with <em>stress</em></p>
|
||||
<div class="bs-docs-example">
|
||||
<p>The following snippet of text is <em>rendered as italicized text</em>.</p>
|
||||
</div>
|
||||
<pre class="prettyprint">
|
||||
<em>rendered as italicized text</em>
|
||||
</pre>
|
||||
<pre class="prettyprint"><em>rendered as italicized text</em></pre>
|
||||
|
||||
<p><span class="label label-info">Heads up!</span> Feel free to use <code><b></code> and <code><i></code> in HTML5. <code><b></code> is meant to highlight words or phrases without conveying additional importance while <code><i></code> is mostly for voice, technical terms, etc.</p>
|
||||
|
||||
@ -172,18 +170,14 @@
|
||||
<div class="bs-docs-example">
|
||||
<p>An abbreviation of the word attribute is <abbr title="attribute">attr</abbr>.</p>
|
||||
</div>
|
||||
<pre class="prettyprint">
|
||||
<abbr title="attribute">attr</abbr>
|
||||
</pre>
|
||||
<pre class="prettyprint"><abbr title="attribute">attr</abbr></pre>
|
||||
|
||||
<h3><code><abbr class="initialism"></code></h3>
|
||||
<p>Add <code>.initialism</code> to an abbreviation for a slightly smaller font-size.</p>
|
||||
<div class="bs-docs-example">
|
||||
<p><abbr title="HyperText Markup Language" class="initialism">HTML</abbr> is the best thing since sliced bread.</p>
|
||||
</div>
|
||||
<pre class="prettyprint">
|
||||
<abbr title="attribute" class="initialism">attr</abbr>
|
||||
</pre>
|
||||
<pre class="prettyprint"><abbr title="attribute" class="initialism">attr</abbr></pre>
|
||||
|
||||
|
||||
<hr class="bs-docs-separator">
|
||||
|
@ -177,8 +177,59 @@
|
||||
<div class="page-header">
|
||||
<h1>Use as static assets</h1>
|
||||
</div>
|
||||
<p class="lead">Quickly start any web project by dropping in the compiled or minified CSS and JS. Layer on custom styles separately for easy upgrades and maintenance moving forward.</p>
|
||||
<p>...</p>
|
||||
<p class="lead"><a href="./getting-started.html">Quickly start</a> any web project by dropping in the compiled or minified CSS and JS. Layer on custom styles separately for easy upgrades and maintenance moving forward.</p>
|
||||
|
||||
<h3>Setup file structure</h3>
|
||||
<p>Download the latest compiled Bootstrap and place into your project. For example, you might have something like this:</p>
|
||||
<pre class="prettyprint">
|
||||
app/
|
||||
├── layouts/
|
||||
└── templates/
|
||||
public/
|
||||
├── css/
|
||||
│ ├── bootstrap.min.css
|
||||
├── js/
|
||||
│ ├── bootstrap.min.js
|
||||
└── img/
|
||||
├── glyphicons-halflings.png
|
||||
└── glyphicons-halflings-white.png
|
||||
</pre>
|
||||
|
||||
<h3>Utilize starter template</h3>
|
||||
<p>Copy the following base HTML to get started.</p>
|
||||
<pre class="prettyprint linenums">
|
||||
<html>
|
||||
<head>
|
||||
<title>Bootstrap 101 Template</title>
|
||||
<!-- Bootstrap -->
|
||||
<link href="public/css/bootstrap.min.css" rel="stylesheet">
|
||||
<script src="public/js/bootstrap.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Hello, world!</h1>
|
||||
</body>
|
||||
</html>
|
||||
</pre>
|
||||
|
||||
<h3>Layer on custom code</h3>
|
||||
<p>Work in your custom CSS, JS, and more as necessary to make Bootstrap your own with your own separate CSS and JS files.</p>
|
||||
<pre class="prettyprint linenums">
|
||||
<html>
|
||||
<head>
|
||||
<title>Bootstrap 101 Template</title>
|
||||
<!-- Bootstrap -->
|
||||
<link href="public/css/bootstrap.min.css" rel="stylesheet">
|
||||
<script src="public/js/bootstrap.min.js"></script>
|
||||
<!-- Project -->
|
||||
<link href="public/css/application.css" rel="stylesheet">
|
||||
<script src="public/js/application.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Hello, world!</h1>
|
||||
</body>
|
||||
</html>
|
||||
</pre>
|
||||
|
||||
</section>
|
||||
|
||||
|
||||
|
18
docs/templates/pages/base-css.mustache
vendored
18
docs/templates/pages/base-css.mustache
vendored
@ -54,6 +54,7 @@
|
||||
<p>Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec ullamcorper nulla non metus auctor fringilla. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Donec ullamcorper nulla non metus auctor fringilla.</p>
|
||||
<p>Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.</p>
|
||||
</div>
|
||||
<pre class="prettyprint"><p>...</p></pre>
|
||||
|
||||
{{! Body copy .lead }}
|
||||
<h3>{{_i}}Lead body copy{{/i}}</h3>
|
||||
@ -61,6 +62,7 @@
|
||||
<div class="bs-docs-example">
|
||||
<p class="lead">Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus.</p>
|
||||
</div>
|
||||
<pre class="prettyprint"><p class="lead">...</p></pre>
|
||||
|
||||
{{! Using LESS }}
|
||||
<h2>{{_i}}Built with Less{{/i}}</h2>
|
||||
@ -79,18 +81,14 @@
|
||||
<div class="bs-docs-example">
|
||||
<p>The following snippet of text is <strong>rendered as bold text</strong>.</p>
|
||||
</div>
|
||||
<pre class="prettyprint">
|
||||
<strong>rendered as bold text</strong>
|
||||
</pre>
|
||||
<pre class="prettyprint"><strong>rendered as bold text</strong></pre>
|
||||
|
||||
<h3><code><em></code></h3>
|
||||
<p>{{_i}}For emphasizing a snippet of text with <em>stress</em>{{/i}}</p>
|
||||
<div class="bs-docs-example">
|
||||
<p>The following snippet of text is <em>rendered as italicized text</em>.</p>
|
||||
</div>
|
||||
<pre class="prettyprint">
|
||||
<em>rendered as italicized text</em>
|
||||
</pre>
|
||||
<pre class="prettyprint"><em>rendered as italicized text</em></pre>
|
||||
|
||||
<p><span class="label label-info">{{_i}}Heads up!{{/i}}</span> {{_i}}Feel free to use <code><b></code> and <code><i></code> in HTML5. <code><b></code> is meant to highlight words or phrases without conveying additional importance while <code><i></code> is mostly for voice, technical terms, etc.{{/i}}</p>
|
||||
|
||||
@ -107,18 +105,14 @@
|
||||
<div class="bs-docs-example">
|
||||
<p>{{_i}}An abbreviation of the word attribute is <abbr title="attribute">attr</abbr>.{{/i}}</p>
|
||||
</div>
|
||||
<pre class="prettyprint">
|
||||
<abbr title="attribute">attr</abbr>
|
||||
</pre>
|
||||
<pre class="prettyprint"><abbr title="attribute">attr</abbr></pre>
|
||||
|
||||
<h3><code><abbr class="initialism"></code></h3>
|
||||
<p>{{_i}}Add <code>.initialism</code> to an abbreviation for a slightly smaller font-size.{{/i}}</p>
|
||||
<div class="bs-docs-example">
|
||||
<p>{{_i}}<abbr title="HyperText Markup Language" class="initialism">HTML</abbr> is the best thing since sliced bread.{{/i}}</p>
|
||||
</div>
|
||||
<pre class="prettyprint">
|
||||
<abbr title="attribute" class="initialism">attr</abbr>
|
||||
</pre>
|
||||
<pre class="prettyprint"><abbr title="attribute" class="initialism">attr</abbr></pre>
|
||||
|
||||
|
||||
<hr class="bs-docs-separator">
|
||||
|
55
docs/templates/pages/extend.mustache
vendored
55
docs/templates/pages/extend.mustache
vendored
@ -106,8 +106,59 @@
|
||||
<div class="page-header">
|
||||
<h1>{{_i}}Use as static assets{{/i}}</h1>
|
||||
</div>
|
||||
<p class="lead">Quickly start any web project by dropping in the compiled or minified CSS and JS. Layer on custom styles separately for easy upgrades and maintenance moving forward.</p>
|
||||
<p>...</p>
|
||||
<p class="lead">{{_i}}<a href="./getting-started.html">Quickly start</a> any web project by dropping in the compiled or minified CSS and JS. Layer on custom styles separately for easy upgrades and maintenance moving forward.{{/i}}</p>
|
||||
|
||||
<h3>{{_i}}Setup file structure{{/i}}</h3>
|
||||
<p>{{_i}}Download the latest compiled Bootstrap and place into your project. For example, you might have something like this:{{/i}}</p>
|
||||
<pre class="prettyprint">
|
||||
app/
|
||||
├── layouts/
|
||||
└── templates/
|
||||
public/
|
||||
├── css/
|
||||
│ ├── bootstrap.min.css
|
||||
├── js/
|
||||
│ ├── bootstrap.min.js
|
||||
└── img/
|
||||
├── glyphicons-halflings.png
|
||||
└── glyphicons-halflings-white.png
|
||||
</pre>
|
||||
|
||||
<h3>{{_i}}Utilize starter template{{/i}}</h3>
|
||||
<p>{{_i}}Copy the following base HTML to get started.{{/i}}</p>
|
||||
<pre class="prettyprint linenums">
|
||||
<html>
|
||||
<head>
|
||||
<title>Bootstrap 101 Template</title>
|
||||
<!-- Bootstrap -->
|
||||
<link href="public/css/bootstrap.min.css" rel="stylesheet">
|
||||
<script src="public/js/bootstrap.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Hello, world!</h1>
|
||||
</body>
|
||||
</html>
|
||||
</pre>
|
||||
|
||||
<h3>{{_i}}Layer on custom code{{/i}}</h3>
|
||||
<p>{{_i}}Work in your custom CSS, JS, and more as necessary to make Bootstrap your own with your own separate CSS and JS files.{{/i}}</p>
|
||||
<pre class="prettyprint linenums">
|
||||
<html>
|
||||
<head>
|
||||
<title>Bootstrap 101 Template</title>
|
||||
<!-- Bootstrap -->
|
||||
<link href="public/css/bootstrap.min.css" rel="stylesheet">
|
||||
<script src="public/js/bootstrap.min.js"></script>
|
||||
<!-- Project -->
|
||||
<link href="public/css/application.css" rel="stylesheet">
|
||||
<script src="public/js/application.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Hello, world!</h1>
|
||||
</body>
|
||||
</html>
|
||||
</pre>
|
||||
|
||||
</section>
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user