mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-26 14:54:27 +02:00
update static assets section of extend page, copy changes elsewhere
This commit is contained in:
@@ -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>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>
|
<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>
|
</div>
|
||||||
|
<pre class="prettyprint"><p>...</p></pre>
|
||||||
|
|
||||||
<h3>Lead body copy</h3>
|
<h3>Lead body copy</h3>
|
||||||
<p>Make a paragraph stand out by adding <code>.lead</code>.</p>
|
<p>Make a paragraph stand out by adding <code>.lead</code>.</p>
|
||||||
<div class="bs-docs-example">
|
<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>
|
<p class="lead">Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus.</p>
|
||||||
</div>
|
</div>
|
||||||
|
<pre class="prettyprint"><p class="lead">...</p></pre>
|
||||||
|
|
||||||
<h2>Built with Less</h2>
|
<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>
|
<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">
|
<div class="bs-docs-example">
|
||||||
<p>The following snippet of text is <strong>rendered as bold text</strong>.</p>
|
<p>The following snippet of text is <strong>rendered as bold text</strong>.</p>
|
||||||
</div>
|
</div>
|
||||||
<pre class="prettyprint">
|
<pre class="prettyprint"><strong>rendered as bold text</strong></pre>
|
||||||
<strong>rendered as bold text</strong>
|
|
||||||
</pre>
|
|
||||||
|
|
||||||
<h3><code><em></code></h3>
|
<h3><code><em></code></h3>
|
||||||
<p>For emphasizing a snippet of text with <em>stress</em></p>
|
<p>For emphasizing a snippet of text with <em>stress</em></p>
|
||||||
<div class="bs-docs-example">
|
<div class="bs-docs-example">
|
||||||
<p>The following snippet of text is <em>rendered as italicized text</em>.</p>
|
<p>The following snippet of text is <em>rendered as italicized text</em>.</p>
|
||||||
</div>
|
</div>
|
||||||
<pre class="prettyprint">
|
<pre class="prettyprint"><em>rendered as italicized text</em></pre>
|
||||||
<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>
|
<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">
|
<div class="bs-docs-example">
|
||||||
<p>An abbreviation of the word attribute is <abbr title="attribute">attr</abbr>.</p>
|
<p>An abbreviation of the word attribute is <abbr title="attribute">attr</abbr>.</p>
|
||||||
</div>
|
</div>
|
||||||
<pre class="prettyprint">
|
<pre class="prettyprint"><abbr title="attribute">attr</abbr></pre>
|
||||||
<abbr title="attribute">attr</abbr>
|
|
||||||
</pre>
|
|
||||||
|
|
||||||
<h3><code><abbr class="initialism"></code></h3>
|
<h3><code><abbr class="initialism"></code></h3>
|
||||||
<p>Add <code>.initialism</code> to an abbreviation for a slightly smaller font-size.</p>
|
<p>Add <code>.initialism</code> to an abbreviation for a slightly smaller font-size.</p>
|
||||||
<div class="bs-docs-example">
|
<div class="bs-docs-example">
|
||||||
<p><abbr title="HyperText Markup Language" class="initialism">HTML</abbr> is the best thing since sliced bread.</p>
|
<p><abbr title="HyperText Markup Language" class="initialism">HTML</abbr> is the best thing since sliced bread.</p>
|
||||||
</div>
|
</div>
|
||||||
<pre class="prettyprint">
|
<pre class="prettyprint"><abbr title="attribute" class="initialism">attr</abbr></pre>
|
||||||
<abbr title="attribute" class="initialism">attr</abbr>
|
|
||||||
</pre>
|
|
||||||
|
|
||||||
|
|
||||||
<hr class="bs-docs-separator">
|
<hr class="bs-docs-separator">
|
||||||
|
@@ -177,8 +177,59 @@
|
|||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
<h1>Use as static assets</h1>
|
<h1>Use as static assets</h1>
|
||||||
</div>
|
</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 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>
|
||||||
<p>...</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>
|
</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>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>
|
<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>
|
</div>
|
||||||
|
<pre class="prettyprint"><p>...</p></pre>
|
||||||
|
|
||||||
{{! Body copy .lead }}
|
{{! Body copy .lead }}
|
||||||
<h3>{{_i}}Lead body copy{{/i}}</h3>
|
<h3>{{_i}}Lead body copy{{/i}}</h3>
|
||||||
@@ -61,6 +62,7 @@
|
|||||||
<div class="bs-docs-example">
|
<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>
|
<p class="lead">Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus.</p>
|
||||||
</div>
|
</div>
|
||||||
|
<pre class="prettyprint"><p class="lead">...</p></pre>
|
||||||
|
|
||||||
{{! Using LESS }}
|
{{! Using LESS }}
|
||||||
<h2>{{_i}}Built with Less{{/i}}</h2>
|
<h2>{{_i}}Built with Less{{/i}}</h2>
|
||||||
@@ -79,18 +81,14 @@
|
|||||||
<div class="bs-docs-example">
|
<div class="bs-docs-example">
|
||||||
<p>The following snippet of text is <strong>rendered as bold text</strong>.</p>
|
<p>The following snippet of text is <strong>rendered as bold text</strong>.</p>
|
||||||
</div>
|
</div>
|
||||||
<pre class="prettyprint">
|
<pre class="prettyprint"><strong>rendered as bold text</strong></pre>
|
||||||
<strong>rendered as bold text</strong>
|
|
||||||
</pre>
|
|
||||||
|
|
||||||
<h3><code><em></code></h3>
|
<h3><code><em></code></h3>
|
||||||
<p>{{_i}}For emphasizing a snippet of text with <em>stress</em>{{/i}}</p>
|
<p>{{_i}}For emphasizing a snippet of text with <em>stress</em>{{/i}}</p>
|
||||||
<div class="bs-docs-example">
|
<div class="bs-docs-example">
|
||||||
<p>The following snippet of text is <em>rendered as italicized text</em>.</p>
|
<p>The following snippet of text is <em>rendered as italicized text</em>.</p>
|
||||||
</div>
|
</div>
|
||||||
<pre class="prettyprint">
|
<pre class="prettyprint"><em>rendered as italicized text</em></pre>
|
||||||
<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>
|
<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">
|
<div class="bs-docs-example">
|
||||||
<p>{{_i}}An abbreviation of the word attribute is <abbr title="attribute">attr</abbr>.{{/i}}</p>
|
<p>{{_i}}An abbreviation of the word attribute is <abbr title="attribute">attr</abbr>.{{/i}}</p>
|
||||||
</div>
|
</div>
|
||||||
<pre class="prettyprint">
|
<pre class="prettyprint"><abbr title="attribute">attr</abbr></pre>
|
||||||
<abbr title="attribute">attr</abbr>
|
|
||||||
</pre>
|
|
||||||
|
|
||||||
<h3><code><abbr class="initialism"></code></h3>
|
<h3><code><abbr class="initialism"></code></h3>
|
||||||
<p>{{_i}}Add <code>.initialism</code> to an abbreviation for a slightly smaller font-size.{{/i}}</p>
|
<p>{{_i}}Add <code>.initialism</code> to an abbreviation for a slightly smaller font-size.{{/i}}</p>
|
||||||
<div class="bs-docs-example">
|
<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>
|
<p>{{_i}}<abbr title="HyperText Markup Language" class="initialism">HTML</abbr> is the best thing since sliced bread.{{/i}}</p>
|
||||||
</div>
|
</div>
|
||||||
<pre class="prettyprint">
|
<pre class="prettyprint"><abbr title="attribute" class="initialism">attr</abbr></pre>
|
||||||
<abbr title="attribute" class="initialism">attr</abbr>
|
|
||||||
</pre>
|
|
||||||
|
|
||||||
|
|
||||||
<hr class="bs-docs-separator">
|
<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">
|
<div class="page-header">
|
||||||
<h1>{{_i}}Use as static assets{{/i}}</h1>
|
<h1>{{_i}}Use as static assets{{/i}}</h1>
|
||||||
</div>
|
</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 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>
|
||||||
<p>...</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>
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user