mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-19 16:54:24 +01:00
restore jekyll-based css.html to docs
This commit is contained in:
parent
64ae9e5bd8
commit
866c8d60e9
1340
docs/css.html
1340
docs/css.html
@ -1,70 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Css · Bootstrap</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="description" content="">
|
||||
<meta name="author" content="">
|
||||
|
||||
<!-- Bootstrap core CSS -->
|
||||
<link href="assets/css/bootstrap.css" rel="stylesheet">
|
||||
|
||||
<!-- Documentation extras -->
|
||||
<link href="assets/css/docs.css" rel="stylesheet">
|
||||
<link href="assets/js/google-code-prettify/prettify.css" rel="stylesheet">
|
||||
|
||||
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="assets/js/html5shiv.js"></script>
|
||||
<script src="assets/js/respond/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
<!-- Favicons -->
|
||||
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="assets/ico/apple-touch-icon-144-precomposed.png">
|
||||
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="assets/ico/apple-touch-icon-114-precomposed.png">
|
||||
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="assets/ico/apple-touch-icon-72-precomposed.png">
|
||||
<link rel="apple-touch-icon-precomposed" href="assets/ico/apple-touch-icon-57-precomposed.png">
|
||||
<link rel="shortcut icon" href="assets/ico/favicon.png">
|
||||
|
||||
</head>
|
||||
|
||||
<body data-spy="scroll" data-target=".bs-docs-sidebar">
|
||||
|
||||
<!-- Navbar
|
||||
================================================== -->
|
||||
<div class="navbar navbar-inverse navbar-fixed-top">
|
||||
<div class="container">
|
||||
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a class="brand" href="./index.html">Bootstrap</a>
|
||||
<div class="nav-collapse collapse">
|
||||
<ul class="nav">
|
||||
<li class="">
|
||||
<a href="./index.html">Home</a>
|
||||
</li>
|
||||
<li class="">
|
||||
<a href="./getting-started.html">Get started</a>
|
||||
</li>
|
||||
<li class="active">
|
||||
<a href="./css.html">CSS</a>
|
||||
</li>
|
||||
<li class="">
|
||||
<a href="./components.html">Components</a>
|
||||
</li>
|
||||
<li class="">
|
||||
<a href="./javascript.html">JavaScript</a>
|
||||
</li>
|
||||
<li class="">
|
||||
<a href="./customize.html">Customize</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
---
|
||||
layout: default
|
||||
title: CSS
|
||||
---
|
||||
|
||||
<!-- Subhead
|
||||
================================================== -->
|
||||
@ -109,17 +46,21 @@
|
||||
|
||||
<h3>Requires HTML5 doctype</h3>
|
||||
<p>Bootstrap makes use of certain HTML elements and CSS properties that require the use of the HTML5 doctype. Include it at the beginning of all your projects.</p>
|
||||
<pre class="prettyprint linenums">
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
{% highlight html linenos %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
...
|
||||
</html>
|
||||
</pre>
|
||||
</html>
|
||||
{% endhighlight %}
|
||||
|
||||
<h3>Mobile first</h3>
|
||||
<p>With Bootstrap 2, we added optional mobile friendly styles for key aspects of the framework. With Bootstrap 3, we've rewritten the project to be mobile friendly from the start. Instead of adding on optional mobile styles, they're baked right into the core. In fact, <strong>Bootstrap is mobile first</strong>. Mobile first styles can be found throughout the entire library instead of in separate files.</p>
|
||||
<p>To ensure proper rendering and touch zooming, <strong>add the viewport meta tag</strong> to your <code><head></code>.</p>
|
||||
<pre class="prettyprint linenums"><meta name="viewport" content="width=device-width, initial-scale=1.0"></pre>
|
||||
|
||||
{% highlight html linenos %}
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
{% endhighlight %}
|
||||
|
||||
<h3>Typography and links</h3>
|
||||
<p>Bootstrap sets basic global display, typography, and link styles. Specifically, we:</p>
|
||||
@ -146,6 +87,7 @@
|
||||
<h1>Typography</h1>
|
||||
</div>
|
||||
|
||||
<!-- Headings -->
|
||||
<h2 id="headings">Headings</h2>
|
||||
<p>All HTML headings, <code><h1></code> through <code><h6></code> are available.</p>
|
||||
<div class="bs-docs-example">
|
||||
@ -157,6 +99,7 @@
|
||||
<h6>h6. Heading 6</h6>
|
||||
</div>
|
||||
|
||||
<!-- Body copy -->
|
||||
<h2 id="body-copy">Body copy</h2>
|
||||
<p>Bootstrap's global default <code>font-size</code> is <strong>14px</strong>, with a <code>line-height</code> of <strong>20px</strong>. This is applied to the <code><body></code> and all paragraphs. In addition, <code><p></code> (paragraphs) receive a bottom margin of half their line-height (10px by default).</p>
|
||||
<div class="bs-docs-example">
|
||||
@ -164,19 +107,26 @@
|
||||
<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>
|
||||
{% highlight html linenos %}
|
||||
<p>...</p>
|
||||
{% endhighlight %}
|
||||
|
||||
<!-- Body copy .lead -->
|
||||
<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>
|
||||
{% highlight html linenos %}
|
||||
<p class="lead">...</p>
|
||||
{% endhighlight %}
|
||||
|
||||
<!-- Using LESS -->
|
||||
<h3>Built with Less</h3>
|
||||
<p>The typographic scale is based on two LESS variables in <strong>variables.less</strong>: <code>@font-size-base</code> and <code>@line-height-base</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>
|
||||
|
||||
|
||||
<!-- Emphasis -->
|
||||
<h2 id="emphasis">Emphasis</h2>
|
||||
<p>Make use of HTML's default emphasis tags with lightweight styles.</p>
|
||||
|
||||
@ -185,25 +135,28 @@
|
||||
<div class="bs-docs-example">
|
||||
<p><small>This line of text is meant to be treated as fine print.</small></p>
|
||||
</div>
|
||||
<pre class="prettyprint">
|
||||
<p>
|
||||
<small>This line of text is meant to be treated as fine print.</small>
|
||||
</p>
|
||||
</pre>
|
||||
{% highlight html linenos %}
|
||||
<small>This line of text is meant to be treated as fine print.</small>
|
||||
{% endhighlight %}
|
||||
|
||||
|
||||
<h3>Bold</h3>
|
||||
<p>For emphasizing a snippet of text with a heavier font-weight.</p>
|
||||
<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>
|
||||
{% highlight html linenos %}
|
||||
<strong>rendered as bold text</strong>
|
||||
{% endhighlight %}
|
||||
|
||||
<h3>Italics</h3>
|
||||
<p>For emphasizing a snippet of text with italics.</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>
|
||||
{% highlight html linenos %}
|
||||
<em>rendered as italicized text</em>
|
||||
{% endhighlight %}
|
||||
|
||||
<p>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>
|
||||
|
||||
@ -214,11 +167,11 @@
|
||||
<p class="text-center">Center aligned text.</p>
|
||||
<p class="text-right">Right aligned text.</p>
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<p class="text-left">Left aligned text.</p>
|
||||
<p class="text-center">Center aligned text.</p>
|
||||
<p class="text-right">Right aligned text.</p>
|
||||
</pre>
|
||||
{% highlight html linenos %}
|
||||
<p class="text-left">Left aligned text.</p>
|
||||
<p class="text-center">Center aligned text.</p>
|
||||
<p class="text-right">Right aligned text.</p>
|
||||
{% endhighlight %}
|
||||
|
||||
<h3>Emphasis classes</h3>
|
||||
<p>Convey meaning through color with a handful of emphasis utility classes.</p>
|
||||
@ -228,14 +181,16 @@
|
||||
<p class="text-error">Donec ullamcorper nulla non metus auctor fringilla.</p>
|
||||
<p class="text-success">Duis mollis, est non commodo luctus, nisi erat porttitor ligula.</p>
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<p class="muted">Fusce dapibus, tellus ac cursus commodo, tortor mauris nibh.</p>
|
||||
<p class="text-warning">Etiam porta sem malesuada magna mollis euismod.</p>
|
||||
<p class="text-error">Donec ullamcorper nulla non metus auctor fringilla.</p>
|
||||
<p class="text-success">Duis mollis, est non commodo luctus, nisi erat porttitor ligula.</p>
|
||||
</pre>
|
||||
{% highlight html linenos %}
|
||||
<p class="muted">Fusce dapibus, tellus ac cursus commodo, tortor mauris nibh.</p>
|
||||
<p class="text-warning">Etiam porta sem malesuada magna mollis euismod.</p>
|
||||
<p class="text-error">Donec ullamcorper nulla non metus auctor fringilla.</p>
|
||||
<p class="text-error">Donec ullamcorper nulla non metus auctor fringilla.</p>
|
||||
<p class="text-success">Duis mollis, est non commodo luctus, nisi erat porttitor ligula.</p>
|
||||
{% endhighlight %}
|
||||
|
||||
|
||||
<!-- Abbreviations -->
|
||||
<h2 id="abbreviations">Abbreviations</h2>
|
||||
<p>Stylized implementation of HTML's <code><abbr></code> element for abbreviations and acronyms to show the expanded version on hover. Abbreviations with a <code>title</code> attribute have a light dotted bottom border and a help cursor on hover, providing additional context on hover.</p>
|
||||
|
||||
@ -244,16 +199,21 @@
|
||||
<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>
|
||||
{% highlight html linenos %}
|
||||
<abbr title="attribute">attr</abbr>
|
||||
{% endhighlight %}
|
||||
|
||||
<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="HyperText Markup Language" class="initialism">HTML</abbr></pre>
|
||||
{% highlight html linenos %}
|
||||
<abbr title="HyperText Markup Language" class="initialism">HTML</abbr>
|
||||
{% endhighlight %}
|
||||
|
||||
|
||||
<!-- Addresses -->
|
||||
<h2 id="addresses">Addresses</h2>
|
||||
<p>Present contact information for the nearest ancestor or the entire body of work.</p>
|
||||
|
||||
@ -271,21 +231,22 @@
|
||||
<a href="mailto:#">first.last@example.com</a>
|
||||
</address>
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<address>
|
||||
<strong>Twitter, Inc.</strong><br>
|
||||
795 Folsom Ave, Suite 600<br>
|
||||
San Francisco, CA 94107<br>
|
||||
<abbr title="Phone">P:</abbr> (123) 456-7890
|
||||
</address>
|
||||
{% highlight html linenos %}
|
||||
<address>
|
||||
<strong>Twitter, Inc.</strong><br>
|
||||
795 Folsom Ave, Suite 600<br>
|
||||
San Francisco, CA 94107<br>
|
||||
<abbr title="Phone">P:</abbr> (123) 456-7890
|
||||
</address>
|
||||
|
||||
<address>
|
||||
<strong>Full Name</strong><br>
|
||||
<a href="mailto:#">first.last@example.com</a>
|
||||
</address>
|
||||
</pre>
|
||||
<address>
|
||||
<strong>Full Name</strong><br>
|
||||
<a href="mailto:#">first.last@example.com</a>
|
||||
</address>
|
||||
{% endhighlight %}
|
||||
|
||||
|
||||
<!-- Blockquotes -->
|
||||
<h2 id="blockquotes">Blockquotes</h2>
|
||||
<p>For quoting blocks of content from another source within your document.</p>
|
||||
|
||||
@ -296,11 +257,11 @@
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
|
||||
</blockquote>
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<blockquote>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
|
||||
</blockquote>
|
||||
</pre>
|
||||
{% highlight html linenos %}
|
||||
<blockquote>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
|
||||
</blockquote>
|
||||
{% endhighlight %}
|
||||
|
||||
<h3>Blockquote options</h3>
|
||||
<p>Style and content changes for simple variations on a standard blockquote.</p>
|
||||
@ -313,12 +274,12 @@
|
||||
<small>Someone famous in <cite title="Source Title">Source Title</cite></small>
|
||||
</blockquote>
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<blockquote>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
|
||||
<small>Someone famous <cite title="Source Title">Source Title</cite></small>
|
||||
</blockquote>
|
||||
</pre>
|
||||
{% highlight html linenos %}
|
||||
<blockquote>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
|
||||
<small>Someone famous <cite title="Source Title">Source Title</cite></small>
|
||||
</blockquote>
|
||||
{% endhighlight %}
|
||||
|
||||
<h4>Alternate displays</h4>
|
||||
<p>Use <code>.pull-right</code> for a floated, right-aligned blockquote.</p>
|
||||
@ -328,11 +289,11 @@
|
||||
<small>Someone famous in <cite title="Source Title">Source Title</cite></small>
|
||||
</blockquote>
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<blockquote class="pull-right">
|
||||
{% highlight html linenos %}
|
||||
<blockquote class="pull-right">
|
||||
...
|
||||
</blockquote>
|
||||
</pre>
|
||||
</blockquote>
|
||||
{% endhighlight %}
|
||||
|
||||
|
||||
<!-- Lists -->
|
||||
@ -359,11 +320,11 @@
|
||||
<li>Eget porttitor lorem</li>
|
||||
</ul>
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<ul>
|
||||
<li>...</li>
|
||||
</ul>
|
||||
</pre>
|
||||
{% highlight html linenos %}
|
||||
<ul>
|
||||
<li>...</li>
|
||||
</ul>
|
||||
{% endhighlight %}
|
||||
|
||||
<h3>Ordered</h3>
|
||||
<p>A list of items in which the order <em>does</em> explicitly matter.</p>
|
||||
@ -379,11 +340,11 @@
|
||||
<li>Eget porttitor lorem</li>
|
||||
</ol>
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<ol>
|
||||
<li>...</li>
|
||||
</ol>
|
||||
</pre>
|
||||
{% highlight html linenos %}
|
||||
<ol>
|
||||
<li>...</li>
|
||||
</ol>
|
||||
{% endhighlight %}
|
||||
|
||||
<h3>Unstyled</h3>
|
||||
<p>Remove the default <code>list-style</code> and left padding on list items (immediate children only).</p>
|
||||
@ -406,11 +367,11 @@
|
||||
<li>Eget porttitor lorem</li>
|
||||
</ul>
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<ul class="list-unstyled">
|
||||
<li>...</li>
|
||||
</ul>
|
||||
</pre>
|
||||
{% highlight html linenos %}
|
||||
<ul class="list-unstyled">
|
||||
<li>...</li>
|
||||
</ul>
|
||||
{% endhighlight %}
|
||||
|
||||
<h3>Inline</h3>
|
||||
<p>Place all list items on a single line with <code>inline-block</code> and some light padding.</p>
|
||||
@ -421,11 +382,11 @@
|
||||
<li>Nulla volutpat</li>
|
||||
</ul>
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<ul class="list-inline">
|
||||
<li>...</li>
|
||||
</ul>
|
||||
</pre>
|
||||
{% highlight html linenos %}
|
||||
<ul class="list-inline">
|
||||
<li>...</li>
|
||||
</ul>
|
||||
{% endhighlight %}
|
||||
|
||||
<h3>Description</h3>
|
||||
<p>A list of terms with their associated descriptions.</p>
|
||||
@ -440,12 +401,12 @@
|
||||
<dd>Etiam porta sem malesuada magna mollis euismod.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<dl>
|
||||
<dt>...</dt>
|
||||
<dd>...</dd>
|
||||
</dl>
|
||||
</pre>
|
||||
{% highlight html linenos %}
|
||||
<dl>
|
||||
<dt>...</dt>
|
||||
<dd>...</dd>
|
||||
</dl>
|
||||
{% endhighlight %}
|
||||
|
||||
<h4>Horizontal description</h4>
|
||||
<p>Make terms and descriptions in <code><dl></code> line up side-by-side.</p>
|
||||
@ -462,12 +423,13 @@
|
||||
<dd>Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<dl class="dl-horizontal">
|
||||
<dt>...</dt>
|
||||
<dd>...</dd>
|
||||
</dl>
|
||||
</pre>
|
||||
{% highlight html linenos %}
|
||||
<dl class="dl-horizontal">
|
||||
<dt>...</dt>
|
||||
<dd>...</dd>
|
||||
</dl>
|
||||
{% endhighlight %}
|
||||
|
||||
<h5>Auto-truncating</h5>
|
||||
<p>
|
||||
Horizontal description lists will truncate terms that are too long to fit in the left column fix <code>text-overflow</code>. In narrower viewports, they will change to the default stacked layout.
|
||||
@ -513,12 +475,13 @@
|
||||
|
||||
<h3>Basic grid HTML</h3>
|
||||
<p>For a simple two column layout, create a <code>.row</code> and add the appropriate number of <code>.span*</code> columns. As this is a 12-column grid, each <code>.span*</code> spans a number of those 12 columns, and should always add up to 12 for each row (or the number of columns in the parent).</p>
|
||||
<pre class="prettyprint linenums">
|
||||
<div class="row">
|
||||
<div class="span4">...</div>
|
||||
<div class="span8">...</div>
|
||||
</div>
|
||||
</pre>
|
||||
{% highlight html linenos %}
|
||||
<div class="row">
|
||||
<div class="span8">8</div>
|
||||
<div class="span4">4</div>
|
||||
</div>
|
||||
{% endhighlight %}
|
||||
|
||||
<p>Given this example, we have <code>.span4</code> and <code>.span8</code>, making for 12 total columns and a complete row.</p>
|
||||
|
||||
<h2>Offsetting columns</h2>
|
||||
@ -536,12 +499,12 @@
|
||||
<div class="span6 offset6">6 offset 6</div>
|
||||
</div><!-- /row -->
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<div class="row">
|
||||
<div class="span4">...</div>
|
||||
<div class="span4 offset4">...</div>
|
||||
</div>
|
||||
</pre>
|
||||
{% highlight html linenos %}
|
||||
<div class="row">
|
||||
<div class="span4">...</div>
|
||||
<div class="span4 offset4">...</div>
|
||||
</div>
|
||||
{% endhighlight %}
|
||||
|
||||
|
||||
<h2>Nesting columns</h2>
|
||||
@ -559,17 +522,22 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<div class="row">
|
||||
<div class="span9">
|
||||
{% highlight html linenos %}
|
||||
<div class="row">
|
||||
<div class="span9">
|
||||
Level 1: 9 columns
|
||||
<div class="row">
|
||||
<div class="span6">Level 2: 6 columns</div>
|
||||
<div class="span6">Level 2: 6 columns</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</pre>
|
||||
<div class="row">
|
||||
<div class="span6">
|
||||
Level 2: 6 columns
|
||||
</div>
|
||||
<div class="span6">
|
||||
Level 2: 6 columns
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endhighlight %}
|
||||
|
||||
</section>
|
||||
|
||||
|
||||
@ -588,20 +556,19 @@
|
||||
<div class="bs-docs-example">
|
||||
For example, <code><section></code> should be wrapped as inline.
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
For example, <code>&lt;section&gt;</code> should be wrapped as inline.
|
||||
</pre>
|
||||
{% highlight html linenos %}
|
||||
For example, <code><section></code> should be wrapped as inline.
|
||||
{% endhighlight %}
|
||||
|
||||
<h2>Basic block</h2>
|
||||
<p>Use <code><pre></code> for multiple lines of code. Be sure to escape any angle brackets in the code for proper rendering.</p>
|
||||
<div class="bs-docs-example">
|
||||
<pre><p>Sample text here...</p></pre>
|
||||
</div>
|
||||
<pre class="prettyprint linenums" style="margin-bottom: 9px;">
|
||||
<pre>
|
||||
&lt;p&gt;Sample text here...&lt;/p&gt;
|
||||
</pre>
|
||||
</pre>
|
||||
{% highlight html linenos %}
|
||||
<pre><p>Sample text here...</p></pre>
|
||||
{% endhighlight %}
|
||||
|
||||
<p>You may optionally add the <code>.pre-scrollable</code> class which will set a max-height of 350px and provide a y-axis scrollbar.</p>
|
||||
</section>
|
||||
|
||||
@ -615,7 +582,7 @@ For example, <code>&lt;section&gt;</code> should be wrapped
|
||||
</div>
|
||||
|
||||
<h2>Default styles</h2>
|
||||
<p>For basic styling—light padding and only horizontal dividers—add the base class <code>.table</code> to any <code><table></code>.</p>
|
||||
<p>For basic styling—light padding and only horizontal dividers—add the base class <code>.table</code> to any <code><table></code>. It may seem super redundant, but given the widespread use of tables for other plugins like calendars and date pickers, we've opted to isolate our custom table styles.</p>
|
||||
<div class="bs-docs-example">
|
||||
<table class="table">
|
||||
<thead>
|
||||
@ -647,12 +614,12 @@ For example, <code>&lt;section&gt;</code> should be wrapped
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<table class="table">
|
||||
…
|
||||
</table>
|
||||
</pre>
|
||||
</div><!-- /example -->
|
||||
{% highlight html linenos %}
|
||||
<table class="table">
|
||||
...
|
||||
</table>
|
||||
{% endhighlight %}
|
||||
|
||||
|
||||
<h2>Optional classes</h2>
|
||||
@ -691,12 +658,12 @@ For example, <code>&lt;section&gt;</code> should be wrapped
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<pre class="prettyprint linenums" style="margin-bottom: 18px;">
|
||||
<table class="table table-striped">
|
||||
…
|
||||
</table>
|
||||
</pre>
|
||||
</div><!-- /example -->
|
||||
{% highlight html linenos %}
|
||||
<table class="table table-striped">
|
||||
...
|
||||
</table>
|
||||
{% endhighlight %}
|
||||
|
||||
<h3><code>.table-bordered</code></h3>
|
||||
<p>Add borders and rounded corners to the table.</p>
|
||||
@ -735,12 +702,12 @@ For example, <code>&lt;section&gt;</code> should be wrapped
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<table class="table table-bordered">
|
||||
…
|
||||
</table>
|
||||
</pre>
|
||||
</div><!-- /example -->
|
||||
{% highlight html linenos %}
|
||||
<table class="table table-bordered">
|
||||
...
|
||||
</table>
|
||||
{% endhighlight %}
|
||||
|
||||
<h3><code>.table-hover</code></h3>
|
||||
<p>Enable a hover state on table rows within a <code><tbody></code>.</p>
|
||||
@ -774,12 +741,13 @@ For example, <code>&lt;section&gt;</code> should be wrapped
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<pre class="prettyprint linenums" style="margin-bottom: 18px;">
|
||||
<table class="table table-hover">
|
||||
…
|
||||
</table>
|
||||
</pre>
|
||||
</div><!-- /example -->
|
||||
{% highlight html linenos %}
|
||||
<table class="table table-hover">
|
||||
...
|
||||
</table>
|
||||
{% endhighlight %}
|
||||
|
||||
|
||||
<h3><code>.table-condensed</code></h3>
|
||||
<p>Makes tables more compact by cutting cell padding in half.</p>
|
||||
@ -813,12 +781,13 @@ For example, <code>&lt;section&gt;</code> should be wrapped
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<pre class="prettyprint linenums" style="margin-bottom: 18px;">
|
||||
<table class="table table-condensed">
|
||||
…
|
||||
</table>
|
||||
</pre>
|
||||
</div><!-- /example -->
|
||||
{% highlight html linenos %}
|
||||
<table class="table table-condensed">
|
||||
...
|
||||
</table>
|
||||
{% endhighlight %}
|
||||
|
||||
|
||||
|
||||
<h2>Optional row classes</h2>
|
||||
@ -890,25 +859,20 @@ For example, <code>&lt;section&gt;</code> should be wrapped
|
||||
<td>03/04/2012</td>
|
||||
<td>Pending</td>
|
||||
</tr>
|
||||
<tr class="info">
|
||||
<td>4</td>
|
||||
<td>TB - Monthly</td>
|
||||
<td>04/04/2012</td>
|
||||
<td>Call in to confirm</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
</div><!-- /example -->
|
||||
{% highlight html linenos %}
|
||||
...
|
||||
<tr class="success">
|
||||
<td>1</td>
|
||||
<td>TB - Monthly</td>
|
||||
<td>01/04/2012</td>
|
||||
<td>Approved</td>
|
||||
</tr>
|
||||
<tr class="sucess">
|
||||
<td>1</td>
|
||||
<td>TB - Monthly</td>
|
||||
<td>01/04/2012</td>
|
||||
<td>Approved</td>
|
||||
</tr>
|
||||
...
|
||||
</pre>
|
||||
{% endhighlight %}
|
||||
|
||||
|
||||
|
||||
<h2>Supported table markup</h2>
|
||||
@ -983,23 +947,25 @@ For example, <code>&lt;section&gt;</code> should be wrapped
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<pre class="prettyprint linenums">
|
||||
<table>
|
||||
<caption>...</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>...</th>
|
||||
<th>...</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>...</td>
|
||||
<td>...</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</pre>
|
||||
{% highlight html linenos %}
|
||||
<table>
|
||||
<caption>...</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>...</th>
|
||||
<th>...</th>
|
||||
<th>...</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>...</td>
|
||||
<td>...</td>
|
||||
<td>...</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
{% endhighlight %}
|
||||
|
||||
</section>
|
||||
|
||||
@ -1027,23 +993,23 @@ For example, <code>&lt;section&gt;</code> should be wrapped
|
||||
</div>
|
||||
<button type="submit" class="btn">Submit</button>
|
||||
</fieldset>
|
||||
</form>
|
||||
<pre class="prettyprint linenums">
|
||||
<form>
|
||||
<fieldset>
|
||||
<legend>Legend</legend>
|
||||
<label>Label name</label>
|
||||
<input type="text" placeholder="Type something…">
|
||||
<span class="help-block">Example block-level help text here.</span>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox"> Check me out
|
||||
</label>
|
||||
</div>
|
||||
<button type="submit" class="btn">Submit</button>
|
||||
</fieldset>
|
||||
</form>
|
||||
</pre>
|
||||
</form><!-- /example -->
|
||||
{% highlight html linenos %}
|
||||
<form>
|
||||
<fieldset>
|
||||
<legend>Legend</legend>
|
||||
<label>Label name</label>
|
||||
<input type="text" placeholder="Type something…">
|
||||
<p class="help-block">Example block-level help text here.</p>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox"> Check me out
|
||||
</label>
|
||||
</div>
|
||||
<button type="submit" class="btn">Submit</button>
|
||||
</fieldset>
|
||||
</form>
|
||||
{% endhighlight %}
|
||||
|
||||
|
||||
<h2 id="forms-layouts">Optional layouts</h2>
|
||||
@ -1060,19 +1026,19 @@ For example, <code>&lt;section&gt;</code> should be wrapped
|
||||
</label>
|
||||
</div>
|
||||
<button type="submit" class="btn">Sign in</button>
|
||||
</form>
|
||||
<pre class="prettyprint linenums">
|
||||
<form class="form-inline">
|
||||
<input type="text" class="span3" placeholder="Email">
|
||||
<input type="password" class="span3" placeholder="Password">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox"> Remember me
|
||||
</label>
|
||||
</div>
|
||||
<button type="submit" class="btn">Sign in</button>
|
||||
</form>
|
||||
</pre>
|
||||
</form><!-- /example -->
|
||||
{% highlight html linenos %}
|
||||
<form class="form-inline">
|
||||
<input type="text" class="span3" placeholder="Email">
|
||||
<input type="password" class="span3" placeholder="Password">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox"> Remember me
|
||||
</label>
|
||||
</div>
|
||||
<button type="submit" class="btn">Sign in</button>
|
||||
</form>
|
||||
{% endhighlight %}
|
||||
|
||||
<h3>Horizontal form</h3>
|
||||
<p>Right align labels and float them to the left to make them appear on the same line as controls. Requires the most markup changes from a default form:</p>
|
||||
@ -1106,32 +1072,32 @@ For example, <code>&lt;section&gt;</code> should be wrapped
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<pre class="prettyprint linenums">
|
||||
<form class="form-horizontal">
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputEmail">Email</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="inputEmail" placeholder="Email">
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputPassword">Password</label>
|
||||
<div class="controls">
|
||||
<input type="password" id="inputPassword" placeholder="Password">
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox"> Remember me
|
||||
</label>
|
||||
</div>
|
||||
<button type="submit" class="btn">Sign in</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</pre>
|
||||
{% highlight html linenos %}
|
||||
<form class="form-horizontal">
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputEmail">Email</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="inputEmail" placeholder="Email">
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputPassword">Password</label>
|
||||
<div class="controls">
|
||||
<input type="password" id="inputPassword" placeholder="Password">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox"> Remember me
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<button type="submit" class="btn">Sign in</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
{% endhighlight %}
|
||||
|
||||
|
||||
<h2 id="forms-controls">Supported form controls</h2>
|
||||
@ -1143,18 +1109,18 @@ For example, <code>&lt;section&gt;</code> should be wrapped
|
||||
<form class="bs-docs-example form-inline">
|
||||
<input type="text" placeholder="Text input">
|
||||
</form>
|
||||
<pre class="prettyprint linenums">
|
||||
<input type="text" placeholder="Text input">
|
||||
</pre>
|
||||
{% highlight html linenos %}
|
||||
<input type="text" placeholder="Text input">
|
||||
{% endhighlight %}
|
||||
|
||||
<h3>Textarea</h3>
|
||||
<p>Form control which supports multiple lines of text. Change <code>rows</code> attribute as necessary.</p>
|
||||
<form class="bs-docs-example form-inline">
|
||||
<textarea rows="3"></textarea>
|
||||
</form>
|
||||
<pre class="prettyprint linenums">
|
||||
<textarea rows="3"></textarea>
|
||||
</pre>
|
||||
{% highlight html linenos %}
|
||||
<textarea rows="3"></textarea>
|
||||
{% endhighlight %}
|
||||
|
||||
<h3>Checkboxes and radios</h3>
|
||||
<p>Checkboxes are for selecting one or several options in a list while radios are for selecting one option from many.</p>
|
||||
@ -1180,27 +1146,21 @@ For example, <code>&lt;section&gt;</code> should be wrapped
|
||||
</label>
|
||||
</div>
|
||||
</form>
|
||||
<pre class="prettyprint linenums">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" value="">
|
||||
{% highlight html linenos %}
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" value="">
|
||||
Option one is this and that—be sure to include why it's great
|
||||
</label>
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="radio">
|
||||
<label>
|
||||
<input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked>
|
||||
<div class="radio">
|
||||
<label>
|
||||
<input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked>
|
||||
Option one is this and that—be sure to include why it's great
|
||||
</label>
|
||||
</div>
|
||||
<div class="radio">
|
||||
<label>
|
||||
<input type="radio" name="optionsRadios" id="optionsRadios2" value="option2">
|
||||
Option two can be something else and selecting it will deselect option one
|
||||
</label>
|
||||
</div>
|
||||
</pre>
|
||||
</label>
|
||||
</div>
|
||||
{% endhighlight %}
|
||||
|
||||
<h4>Inline checkboxes</h4>
|
||||
<p>Use <code>.checkbox-inline</code> or <code>.radio-inline</code> class to a series of checkboxes or radios for controls appear on the same line.</p>
|
||||
@ -1215,17 +1175,17 @@ For example, <code>&lt;section&gt;</code> should be wrapped
|
||||
<input type="checkbox" id="inlineCheckbox3" value="option3"> 3
|
||||
</label>
|
||||
</form>
|
||||
<pre class="prettyprint linenums">
|
||||
<label class="checkbox-inline">
|
||||
<input type="checkbox" id="inlineCheckbox1" value="option1"> 1
|
||||
</label>
|
||||
<label class="checkbox-inline">
|
||||
<input type="checkbox" id="inlineCheckbox2" value="option2"> 2
|
||||
</label>
|
||||
<label class="checkbox-inline">
|
||||
<input type="checkbox" id="inlineCheckbox3" value="option3"> 3
|
||||
</label>
|
||||
</pre>
|
||||
{% highlight html linenos %}
|
||||
<label class="checkbox-inline">
|
||||
<input type="checkbox" id="inlineCheckbox1" value="option1"> 1
|
||||
</label>
|
||||
<label class="checkbox-inline">
|
||||
<input type="checkbox" id="inlineCheckbox2" value="option2"> 2
|
||||
</label>
|
||||
<label class="checkbox-inline">
|
||||
<input type="checkbox" id="inlineCheckbox3" value="option3"> 3
|
||||
</label>
|
||||
{% endhighlight %}
|
||||
|
||||
<h3>Selects</h3>
|
||||
<p>Use the default option or specify a <code>multiple="multiple"</code> to show multiple options at once.</p>
|
||||
@ -1246,23 +1206,23 @@ For example, <code>&lt;section&gt;</code> should be wrapped
|
||||
<option>5</option>
|
||||
</select>
|
||||
</form>
|
||||
<pre class="prettyprint linenums">
|
||||
<select>
|
||||
<option>1</option>
|
||||
<option>2</option>
|
||||
<option>3</option>
|
||||
<option>4</option>
|
||||
<option>5</option>
|
||||
</select>
|
||||
{% highlight html linenos %}
|
||||
<select>
|
||||
<option>1</option>
|
||||
<option>2</option>
|
||||
<option>3</option>
|
||||
<option>4</option>
|
||||
<option>5</option>
|
||||
</select>
|
||||
|
||||
<select multiple="multiple">
|
||||
<option>1</option>
|
||||
<option>2</option>
|
||||
<option>3</option>
|
||||
<option>4</option>
|
||||
<option>5</option>
|
||||
</select>
|
||||
</pre>
|
||||
<select multiple="multiple">
|
||||
<option>1</option>
|
||||
<option>2</option>
|
||||
<option>3</option>
|
||||
<option>4</option>
|
||||
<option>5</option>
|
||||
</select>
|
||||
{% endhighlight %}
|
||||
|
||||
|
||||
|
||||
@ -1274,9 +1234,9 @@ For example, <code>&lt;section&gt;</code> should be wrapped
|
||||
<form class="bs-docs-example form-inline">
|
||||
<input class="focused" id="focusedInput" type="text" value="This is focused...">
|
||||
</form>
|
||||
<pre class="prettyprint linenums">
|
||||
<input id="focusedInput" type="text" value="This is focused...">
|
||||
</pre>
|
||||
{% highlight html linenos %}
|
||||
<input id="focusedInput" type="text" value="This is focused...">
|
||||
{% endhighlight %}
|
||||
|
||||
<h3 id="forms-invalid-inputs">Invalid inputs</h3>
|
||||
<p>Style inputs via default browser functionality with <code>:invalid</code>. Specify a <code>type</code>, add the <code>required</code> attribute if the field is not optional, and (if applicable) specify a <code>pattern</code>.</p>
|
||||
@ -1284,18 +1244,18 @@ For example, <code>&lt;section&gt;</code> should be wrapped
|
||||
<form class="bs-docs-example form-inline">
|
||||
<input class="span3" type="email" placeholder="test@example.com" required>
|
||||
</form>
|
||||
<pre class="prettyprint linenums">
|
||||
<input class="span3" type="email" required>
|
||||
</pre>
|
||||
{% highlight html linenos %}
|
||||
<input class="span3" type="email" placeholder="test@example.com" required>
|
||||
{% endhighlight %}
|
||||
|
||||
<h3 id="forms-disabled-inputs">Disabled inputs</h3>
|
||||
<p>Add the <code>disabled</code> attribute on an input to prevent user input and trigger a slightly different look.</p>
|
||||
<form class="bs-docs-example form-inline">
|
||||
<input class="input-xlarge" id="disabledInput" type="text" placeholder="Disabled input here…" disabled>
|
||||
</form>
|
||||
<pre class="prettyprint linenums">
|
||||
<input class="input-xlarge" id="disabledInput" type="text" placeholder="Disabled input here..." disabled>
|
||||
</pre>
|
||||
{% highlight html linenos %}
|
||||
<input id="disabledInput" type="text" placeholder="Disabled input here..." disabled>
|
||||
{% endhighlight %}
|
||||
|
||||
<h3 id="forms-disabled-fieldsets">Disabled fieldsets</h3>
|
||||
<p>Add the <code>disabled</code> attribute to a <code><fieldset></code> to disable all the controls within the <code><fieldset></code> at once. Link buttons (with the <code><a></code> element) will be aesthetically disabled, but you will need custom JavaScript to disable their behavior.</p>
|
||||
@ -1317,22 +1277,26 @@ For example, <code>&lt;section&gt;</code> should be wrapped
|
||||
<button type="submit" class="btn btn-primary">Submit</button>
|
||||
</fieldset>
|
||||
</form>
|
||||
<pre class="prettyprint linenums">
|
||||
<form class="form-inline">
|
||||
<fieldset disabled>
|
||||
<input type="text" class="span4" placeholder="Disabled input">
|
||||
<select class="span4">
|
||||
<option>Disabled select</option>
|
||||
</select>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox"> Can't check this
|
||||
</label>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary">Submit</button>
|
||||
</fieldset>
|
||||
</form>
|
||||
</pre>
|
||||
{% highlight html linenos %}
|
||||
<form class="form-inline">
|
||||
<fieldset disabled>
|
||||
<div>
|
||||
<input type="text" class="span4" placeholder="Disabled input">
|
||||
</div>
|
||||
<div>
|
||||
<select class="span4">
|
||||
<option>Disabled select</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox"> Can't check this
|
||||
</label>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary">Submit</button>
|
||||
</fieldset>
|
||||
</form>
|
||||
{% endhighlight %}
|
||||
|
||||
<h3 id="forms-validation">Validation states</h3>
|
||||
<p>Bootstrap includes validation styles for error, warning, info, and success messages. To use:</p>
|
||||
@ -1362,26 +1326,26 @@ For example, <code>&lt;section&gt;</code> should be wrapped
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<pre class="prettyprint linenums">
|
||||
<div class="control-group has-warning">
|
||||
<label class="control-label" for="inputWarning">Input with warning</label>
|
||||
<div class="controls">
|
||||
<input type="text" class="input-with-feedback" id="inputWarning">
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group has-error">
|
||||
<label class="control-label" for="inputError">Input with error</label>
|
||||
<div class="controls">
|
||||
<input type="text" class="input-with-feedback" id="inputError">
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group has-success">
|
||||
<label class="control-label" for="inputSuccess">Input with success</label>
|
||||
<div class="controls">
|
||||
<input type="text" class="input-with-feedback id="inputSuccess"">
|
||||
</div>
|
||||
</div>
|
||||
</pre>
|
||||
{% highlight html linenos %}
|
||||
<div class="control-group has-warning">
|
||||
<label class="control-label" for="inputWarning">Input with warning</label>
|
||||
<div class="controls">
|
||||
<input type="text" class="input-with-feedback" id="inputWarning">
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group has-error">
|
||||
<label class="control-label" for="inputError">Input with error</label>
|
||||
<div class="controls">
|
||||
<input type="text" class="input-with-feedback" id="inputError">
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group has-success">
|
||||
<label class="control-label" for="inputSuccess">Input with success</label>
|
||||
<div class="controls">
|
||||
<input type="text" class="input-with-feedback" id="inputSuccess">
|
||||
</div>
|
||||
</div>
|
||||
{% endhighlight %}
|
||||
|
||||
|
||||
|
||||
@ -1408,23 +1372,23 @@ For example, <code>&lt;section&gt;</code> should be wrapped
|
||||
<span class="input-group-addon">.00</span>
|
||||
</div>
|
||||
</form>
|
||||
<pre class="prettyprint linenums">
|
||||
<div class="input-group span9">
|
||||
<span class="input-group-addon">@</span>
|
||||
<input type="text" placeholder="Username">
|
||||
</div>
|
||||
{% highlight html linenos %}
|
||||
<div class="input-group span9">
|
||||
<span class="input-group-addon">@</span>
|
||||
<input type="text" placeholder="Username">
|
||||
</div>
|
||||
|
||||
<div class="input-group span6">
|
||||
<input type="text">
|
||||
<span class="input-group-addon">.00</span>
|
||||
</div>
|
||||
<div class="input-group span6">
|
||||
<input type="text">
|
||||
<span class="input-group-addon">.00</span>
|
||||
</div>
|
||||
|
||||
<div class="input-group span3">
|
||||
<span class="input-group-addon">$</span>
|
||||
<input type="text">
|
||||
<span class="input-group-addon">.00</span>
|
||||
</div>
|
||||
</pre>
|
||||
<div class="input-group span3">
|
||||
<span class="input-group-addon">$</span>
|
||||
<input type="text">
|
||||
<span class="input-group-addon">.00</span>
|
||||
</div>
|
||||
{% endhighlight %}
|
||||
|
||||
<h4>Optional sizes</h4>
|
||||
<p>Add the relative form sizing classes to the `.input-group-addon`.</p>
|
||||
@ -1444,20 +1408,22 @@ For example, <code>&lt;section&gt;</code> should be wrapped
|
||||
<input type="text" class="input-small" placeholder="Username">
|
||||
</div>
|
||||
</form>
|
||||
<pre class="prettyprint linenums">
|
||||
<div class="input-group span9">
|
||||
<span class="input-group-addon input-large">@</span>
|
||||
<input type="text" class="input-large" placeholder="Username">
|
||||
</div>
|
||||
<div class="input-group span9">
|
||||
<span class="input-group-addon">@</span>
|
||||
<input type="text" placeholder="Username">
|
||||
</div>
|
||||
<div class="input-group span9">
|
||||
<span class="input-group-addon input-small">@</span>
|
||||
<input type="text" class="input-small" placeholder="Username">
|
||||
</div>
|
||||
</pre>
|
||||
{% highlight html linenos %}
|
||||
<div class="input-group span9">
|
||||
<span class="input-group-addon input-large">@</span>
|
||||
<input type="text" class="input-large" placeholder="Username">
|
||||
</div>
|
||||
|
||||
<div class="input-group span9">
|
||||
<span class="input-group-addon">@</span>
|
||||
<input type="text" placeholder="Username">
|
||||
</div>
|
||||
|
||||
<div class="input-group span9">
|
||||
<span class="input-group-addon input-small">@</span>
|
||||
<input type="text" class="input-small" placeholder="Username">
|
||||
</div>
|
||||
{% endhighlight %}
|
||||
|
||||
<h4>Buttons instead of text</h4>
|
||||
<p>Buttons in input groups are a bit different and require one extra level of nesting. Instead of <code>.input-group-addon</code>, you'll need to use <code>.input-group-btn</code> to wrap the buttons. This is required due to default browser styles that cannot be overridden.</p>
|
||||
@ -1476,21 +1442,21 @@ For example, <code>&lt;section&gt;</code> should be wrapped
|
||||
</span>
|
||||
</div>
|
||||
</form>
|
||||
<pre class="prettyprint linenums">
|
||||
<div class="input-group span7">
|
||||
<span class="input-group-btn">
|
||||
<button class="btn" type="button">Go!</button>
|
||||
</span>
|
||||
<input type="text">
|
||||
</div>
|
||||
{% highlight html linenos %}
|
||||
<div class="input-group span7">
|
||||
<span class="input-group-btn">
|
||||
<button class="btn" type="button">Go!</button>
|
||||
</span>
|
||||
<input type="text">
|
||||
</div>
|
||||
|
||||
<div class="input-group span7">
|
||||
<input type="text">
|
||||
<span class="input-group-btn">
|
||||
<button class="btn" type="button">Go!</button>
|
||||
</span>
|
||||
</div>
|
||||
</pre>
|
||||
<div class="input-group span7">
|
||||
<input type="text">
|
||||
<span class="input-group-btn">
|
||||
<button class="btn" type="button">Go!</button>
|
||||
</span>
|
||||
</div>
|
||||
{% endhighlight %}
|
||||
|
||||
<h4>Button dropdowns</h4>
|
||||
<p></p>
|
||||
@ -1523,33 +1489,35 @@ For example, <code>&lt;section&gt;</code> should be wrapped
|
||||
</div><!-- /btn-group -->
|
||||
</div><!-- /input-group -->
|
||||
</form>
|
||||
<pre class="prettyprint linenums">
|
||||
<div class="input-group span7">
|
||||
<div class="input-group-btn btn-group">
|
||||
<button class="btn dropdown-toggle" data-toggle="dropdown">
|
||||
Action
|
||||
<span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu">
|
||||
...
|
||||
</ul>
|
||||
</div>
|
||||
<input type="text">
|
||||
</div>
|
||||
{% highlight html linenos %}
|
||||
<div class="input-group span7">
|
||||
<div class="input-group-btn btn-group">
|
||||
<button class="btn dropdown-toggle" data-toggle="dropdown">Action <span class="caret"></span></button>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="#">Action</a></li>
|
||||
<li><a href="#">Another action</a></li>
|
||||
<li><a href="#">Something else here</a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="#">Separated link</a></li>
|
||||
</ul>
|
||||
</div><!-- /btn-group -->
|
||||
<input type="text">
|
||||
</div><!-- /input-group -->
|
||||
|
||||
<div class="input-group span7">
|
||||
<input type="text">
|
||||
<div class="input-group-btn btn-group">
|
||||
<button class="btn dropdown-toggle" data-toggle="dropdown">
|
||||
Action
|
||||
<span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu">
|
||||
...
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</pre>
|
||||
<div class="input-group span7">
|
||||
<input type="text">
|
||||
<div class="input-group-btn btn-group">
|
||||
<button class="btn dropdown-toggle" data-toggle="dropdown">Action <span class="caret"></span></button>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="#">Action</a></li>
|
||||
<li><a href="#">Another action</a></li>
|
||||
<li><a href="#">Something else here</a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="#">Separated link</a></li>
|
||||
</ul>
|
||||
</div><!-- /btn-group -->
|
||||
</div><!-- /input-group -->
|
||||
{% endhighlight %}
|
||||
|
||||
<h4>Segmented dropdown groups</h4>
|
||||
<form class="bs-docs-example">
|
||||
@ -1567,7 +1535,7 @@ For example, <code>&lt;section&gt;</code> should be wrapped
|
||||
<li><a href="#">Separated link</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<input type="text" class="span3">
|
||||
<input type="text">
|
||||
</div>
|
||||
|
||||
<br>
|
||||
@ -1589,16 +1557,21 @@ For example, <code>&lt;section&gt;</code> should be wrapped
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<pre class="prettyprint linenums">
|
||||
<div class="input-prepend">
|
||||
<div class="btn-group">...</div>
|
||||
<input type="text" class="span3">
|
||||
</div>
|
||||
<div class="input-append">
|
||||
<input type="text" class="span3">
|
||||
<div class="btn-group">...</div>
|
||||
</div>
|
||||
</pre>
|
||||
{% highlight html linenos %}
|
||||
<div class="input-group span7">
|
||||
<div class="input-group-btn btn-group">
|
||||
<!-- Button and dropdown menu -->
|
||||
</div>
|
||||
<input type="text">
|
||||
</div>
|
||||
|
||||
<div class="input-group span7">
|
||||
<input type="text">
|
||||
<div class="input-group-btn btn-group">
|
||||
<!-- Button and dropdown menu -->
|
||||
</div>
|
||||
</div>
|
||||
{% endhighlight %}
|
||||
|
||||
<h3 id="forms-extending-sizes">Control sizing</h3>
|
||||
<p>Use relative sizing classes like <code>.input-large</code> or match your inputs to the grid column sizes using <code>.span*</code> classes.</p>
|
||||
@ -1612,11 +1585,11 @@ For example, <code>&lt;section&gt;</code> should be wrapped
|
||||
<input class="input-small" type="text" placeholder=".input-small">
|
||||
</div>
|
||||
</form>
|
||||
<pre class="prettyprint linenums">
|
||||
<input class="input-large" type="text" placeholder=".input-large">
|
||||
<input type="text" placeholder="Default input">
|
||||
<input class="input-small" type="text" placeholder=".input-small">
|
||||
</pre>
|
||||
{% highlight html linenos %}
|
||||
<input class="input-large" type="text" placeholder=".input-large">
|
||||
<input type="text" placeholder="Default input">
|
||||
<input class="input-small" type="text" placeholder=".input-small">
|
||||
{% endhighlight %}
|
||||
|
||||
<h4>Column sizing</h4>
|
||||
<p>Use <code>.span1</code> to <code>.span12</code> for setting widths on inputs that match Bootstrap's grid system.</p>
|
||||
@ -1648,20 +1621,21 @@ For example, <code>&lt;section&gt;</code> should be wrapped
|
||||
</select>
|
||||
</div>
|
||||
</form>
|
||||
<pre class="prettyprint linenums">
|
||||
<input class="span1" type="text" placeholder=".span1">
|
||||
<input class="span2" type="text" placeholder=".span2">
|
||||
<input class="span3" type="text" placeholder=".span3">
|
||||
<select class="span1">
|
||||
{% highlight html linenos %}
|
||||
<input class="span1" type="text" placeholder=".span1">
|
||||
<input class="span2" type="text" placeholder=".span2">
|
||||
<input class="span3" type="text" placeholder=".span3">
|
||||
<select class="span1">
|
||||
...
|
||||
</select>
|
||||
<select class="span2">
|
||||
</select>
|
||||
<select class="span2">
|
||||
...
|
||||
</select>
|
||||
<select class="span3">
|
||||
</select>
|
||||
<select class="span3">
|
||||
...
|
||||
</select>
|
||||
</pre>
|
||||
</select>
|
||||
{% endhighlight %}
|
||||
|
||||
<p>If you need multiple inputs on the same line, wrap them in the standard grid markup (with <code>.row</code> and <code>.span*</code> classes). Each input should have it's own column and will expand to fill the available width automatically.</p>
|
||||
<form class="bs-docs-example" style="padding-bottom: 15px;">
|
||||
<div class="row">
|
||||
@ -1676,28 +1650,28 @@ For example, <code>&lt;section&gt;</code> should be wrapped
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<pre class="prettyprint linenums">
|
||||
<div class="row">
|
||||
<div class="span4">
|
||||
<input type="text" placeholder=".span4">
|
||||
</div>
|
||||
<div class="span4">
|
||||
<input type="text" placeholder=".span4">
|
||||
</div>
|
||||
<div class="span4">
|
||||
<input type="text" placeholder=".span4">
|
||||
</div>
|
||||
</div>
|
||||
</pre>
|
||||
{% highlight html linenos %}
|
||||
<div class="row">
|
||||
<div class="span4">
|
||||
<input type="text" placeholder=".span4">
|
||||
</div>
|
||||
<div class="span4">
|
||||
<input type="text" placeholder=".span4">
|
||||
</div>
|
||||
<div class="span4">
|
||||
<input type="text" placeholder=".span4">
|
||||
</div>
|
||||
</div>
|
||||
{% endhighlight %}
|
||||
|
||||
<h3>Uneditable inputs</h3>
|
||||
<p>Present data in a form that's not editable without using actual form markup.</p>
|
||||
<form class="bs-docs-example">
|
||||
<span class="input-xlarge uneditable-input">Some value here</span>
|
||||
</form>
|
||||
<pre class="prettyprint linenums">
|
||||
<span class="input-xlarge uneditable-input">Some value here</span>
|
||||
</pre>
|
||||
{% highlight html linenos %}
|
||||
<span class="uneditable-input">Some value here</span>
|
||||
{% endhighlight %}
|
||||
|
||||
<h3>Form actions</h3>
|
||||
<p>End a form with a group of actions (buttons). When placed within a <code>.form-horizontal</code>, the buttons will automatically indent to line up with the form controls.</p>
|
||||
@ -1707,12 +1681,12 @@ For example, <code>&lt;section&gt;</code> should be wrapped
|
||||
<button type="button" class="btn">Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
<pre class="prettyprint linenums">
|
||||
<div class="form-actions">
|
||||
<button type="submit" class="btn btn-primary">Save changes</button>
|
||||
<button type="button" class="btn">Cancel</button>
|
||||
</div>
|
||||
</pre>
|
||||
{% highlight html linenos %}
|
||||
<div class="form-actions">
|
||||
<button type="submit" class="btn btn-primary">Save changes</button>
|
||||
<button type="button" class="btn">Cancel</button>
|
||||
</div>
|
||||
{% endhighlight %}
|
||||
|
||||
<h3>Help text</h3>
|
||||
<p>Inline and block level support for help text that appears around form controls.</p>
|
||||
@ -1720,18 +1694,20 @@ For example, <code>&lt;section&gt;</code> should be wrapped
|
||||
<form class="bs-docs-example form-inline">
|
||||
<input type="text"> <span class="help-inline">Inline help text</span>
|
||||
</form>
|
||||
<pre class="prettyprint linenums">
|
||||
<input type="text"><span class="help-inline">Inline help text</span>
|
||||
</pre>
|
||||
{% highlight html linenos %}
|
||||
<input type="text">
|
||||
<span class="help-inline">Inline help text</span>
|
||||
{% endhighlight %}
|
||||
|
||||
<h4>Block help</h4>
|
||||
<form class="bs-docs-example form-inline">
|
||||
<input type="text">
|
||||
<span class="help-block">A longer block of help text that breaks onto a new line and may extend beyond one line.</span>
|
||||
</form>
|
||||
<pre class="prettyprint linenums">
|
||||
<input type="text"><span class="help-block">A longer block of help text that breaks onto a new line and may extend beyond one line.</span>
|
||||
</pre>
|
||||
{% highlight html linenos %}
|
||||
<input type="text">
|
||||
<span class="help-block">A longer block of help text that breaks onto a new line and may extend beyond one line.</span>
|
||||
{% endhighlight %}
|
||||
|
||||
</section>
|
||||
|
||||
@ -1817,24 +1793,25 @@ For example, <code>&lt;section&gt;</code> should be wrapped
|
||||
<button type="button" class="btn btn-mini">Mini button</button>
|
||||
</p>
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<p>
|
||||
<button class="btn btn-large btn-primary" type="button">Large button</button>
|
||||
<button class="btn btn-large" type="button">Large button</button>
|
||||
</p>
|
||||
<p>
|
||||
<button class="btn btn-primary" type="button">Default button</button>
|
||||
<button class="btn" type="button">Default button</button>
|
||||
</p>
|
||||
<p>
|
||||
<button class="btn btn-small btn-primary" type="button">Small button</button>
|
||||
<button class="btn btn-small" type="button">Small button</button>
|
||||
</p>
|
||||
<p>
|
||||
<button class="btn btn-mini btn-primary" type="button">Mini button</button>
|
||||
<button class="btn btn-mini" type="button">Mini button</button>
|
||||
</p>
|
||||
</pre>
|
||||
{% highlight html linenos %}
|
||||
<p>
|
||||
<button type="button" class="btn btn-large btn-primary">Large button</button>
|
||||
<button type="button" class="btn btn-large">Large button</button>
|
||||
</p>
|
||||
<p>
|
||||
<button type="button" class="btn btn-primary">Default button</button>
|
||||
<button type="button" class="btn">Default button</button>
|
||||
</p>
|
||||
<p>
|
||||
<button type="button" class="btn btn-small btn-primary">Small button</button>
|
||||
<button type="button" class="btn btn-small">Small button</button>
|
||||
</p>
|
||||
<p>
|
||||
<button type="button" class="btn btn-mini btn-primary">Mini button</button>
|
||||
<button type="button" class="btn btn-mini">Mini button</button>
|
||||
</p>
|
||||
{% endhighlight %}
|
||||
|
||||
<p>Create block level buttons—those that span the full width of a parent— by adding <code>.btn-block</code>.</p>
|
||||
<div class="bs-docs-example">
|
||||
<div class="well" style="max-width: 400px; margin: 0 auto 10px;">
|
||||
@ -1842,40 +1819,40 @@ For example, <code>&lt;section&gt;</code> should be wrapped
|
||||
<button type="button" class="btn btn-large btn-block">Block level button</button>
|
||||
</div>
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<button class="btn btn-large btn-block btn-primary" type="button">Block level button</button>
|
||||
<button class="btn btn-large btn-block" type="button">Block level button</button>
|
||||
</pre>
|
||||
{% highlight html linenos %}
|
||||
<button type="button" class="btn btn-large btn-block btn-primary">Block level button</button>
|
||||
<button type="button" class="btn btn-large btn-block">Block level button</button>
|
||||
{% endhighlight %}
|
||||
|
||||
|
||||
<h2>Disabled state</h2>
|
||||
<p>Make buttons look unclickable by fading them back 50%.</p>
|
||||
|
||||
<h3>Button element</h3>
|
||||
<p>Add the <code>disabled</code> attribute to <code><button></code> buttons.</p>
|
||||
<p class="bs-docs-example">
|
||||
<button type="button" class="btn btn-large btn-primary disabled" disabled="disabled">Primary button</button>
|
||||
<button type="button" class="btn btn-large" disabled="disabled">Button</button>
|
||||
</p>
|
||||
{% highlight html linenos %}
|
||||
<button type="button" class="btn btn-large btn-primary disabled" disabled="disabled">Primary button</button>
|
||||
<button type="button" class="btn btn-large" disabled="disabled">Button</button>
|
||||
{% endhighlight %}
|
||||
|
||||
<h3>Anchor element</h3>
|
||||
<p>Add the <code>.disabled</code> class to <code><a></code> buttons.</p>
|
||||
<p class="bs-docs-example">
|
||||
<a href="#" class="btn btn-large btn-primary disabled">Primary link</a>
|
||||
<a href="#" class="btn btn-large disabled">Link</a>
|
||||
</p>
|
||||
<pre class="prettyprint linenums">
|
||||
<a href="#" class="btn btn-large btn-primary disabled">Primary link</a>
|
||||
<a href="#" class="btn btn-large disabled">Link</a>
|
||||
</pre>
|
||||
{% highlight html linenos %}
|
||||
<a href="#" class="btn btn-large btn-primary disabled">Primary link</a>
|
||||
<a href="#" class="btn btn-large disabled">Link</a>
|
||||
{% endhighlight %}
|
||||
<p>
|
||||
We use <code>.disabled</code> as a utility class here, similar to the common <code>.active</code> class, so no prefix is required. Also, this class is only for aesthetic; you must use custom JavaScript to disable links here.
|
||||
</p>
|
||||
|
||||
<h3>Button element</h3>
|
||||
<p>Add the <code>disabled</code> attribute to <code><button></code> buttons.</p>
|
||||
<p class="bs-docs-example">
|
||||
<button type="button" class="btn btn-large btn-primary disabled" disabled="disabled">Primary button</button>
|
||||
<button type="button" class="btn btn-large" disabled>Button</button>
|
||||
</p>
|
||||
<pre class="prettyprint linenums">
|
||||
<button type="button" class="btn btn-large btn-primary disabled" disabled="disabled">Primary button</button>
|
||||
<button type="button" class="btn btn-large" disabled>Button</button>
|
||||
</pre>
|
||||
|
||||
|
||||
<h2>One class, multiple tags</h2>
|
||||
<p>Use the <code>.btn</code> class on an <code><a></code>, <code><button></code>, or <code><input></code> element.</p>
|
||||
@ -1885,13 +1862,13 @@ For example, <code>&lt;section&gt;</code> should be wrapped
|
||||
<input class="btn" type="button" value="Input">
|
||||
<input class="btn" type="submit" value="Submit">
|
||||
</form>
|
||||
<pre class="prettyprint linenums">
|
||||
<a class="btn" href="">Link</a>
|
||||
<button class="btn" type="submit">Button</button>
|
||||
<input class="btn" type="button" value="Input">
|
||||
<input class="btn" type="submit" value="Submit">
|
||||
</pre>
|
||||
<p>As a best practice, try to match the element for your context to ensure matching cross-browser rendering. If you have an <code>input</code>, use an <code><input type="submit"></code> for your button.</p>
|
||||
{% highlight html linenos %}
|
||||
<a class="btn" href="">Link</a>
|
||||
<button class="btn" type="submit">Button</button>
|
||||
<input class="btn" type="button" value="Input">
|
||||
<input class="btn" type="submit" value="Submit">
|
||||
{% endhighlight %}
|
||||
<p>As a best practice, <strong>we highly recommend matching using the <code><button<</code> element whenever possible</strong> to ensure matching cross-browser rendering.</p>
|
||||
|
||||
</section>
|
||||
|
||||
@ -1906,15 +1883,15 @@ For example, <code>&lt;section&gt;</code> should be wrapped
|
||||
|
||||
<p>Add classes to an <code><img></code> element to easily style images in any project. Rounded corners are not available in IE8.</p>
|
||||
<div class="bs-docs-example bs-docs-example-images">
|
||||
<img data-src="holder.js/140x140" class="img-rounded" alt="">
|
||||
<img data-src="holder.js/140x140" class="img-circle" alt="">
|
||||
<img data-src="holder.js/140x140" class="img-thumbnail" alt="">
|
||||
<img data-src="holder.js/140x140" class="img-rounded">
|
||||
<img data-src="holder.js/140x140" class="img-circle">
|
||||
<img data-src="holder.js/140x140" class="img-thumbnail">
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<img src="..." class="img-rounded" alt="">
|
||||
<img src="..." class="img-circle" alt="">
|
||||
<img src="..." class="img-thumbnail" alt="">
|
||||
</pre>
|
||||
{% highlight html linenos %}
|
||||
<img src="..." class="img-rounded">
|
||||
<img src="..." class="img-circle">
|
||||
<img src="..." class="img-thumbnail">
|
||||
{% endhighlight %}
|
||||
|
||||
</section>
|
||||
|
||||
@ -2105,9 +2082,9 @@ For example, <code>&lt;section&gt;</code> should be wrapped
|
||||
|
||||
<h2>How to use</h2>
|
||||
<p>Add the appropriate class to any inline element. All icon classes are prefixed with <code>glyphicon-</code> for easy styling. To use, place the following code just about anywhere:</p>
|
||||
<pre class="prettyprint linenums">
|
||||
<i class="glyphicon-search"></i>
|
||||
</pre>
|
||||
{% highlight html linenos %}
|
||||
<span class="glyphicon-search"></span>
|
||||
{% endhighlight %}
|
||||
<p>Want to change the icon color? Just change the <code>color</code> of the parent element.</p>
|
||||
<p>When using beside strings of text, as in buttons or nav links, be sure to leave a space after the icon for proper spacing.</p>
|
||||
|
||||
@ -2121,87 +2098,86 @@ For example, <code>&lt;section&gt;</code> should be wrapped
|
||||
<div class="bs-docs-example">
|
||||
<div class="btn-toolbar">
|
||||
<div class="btn-group">
|
||||
<a class="btn" href="#"><i class="glyphicon-align-left"></i></a>
|
||||
<a class="btn" href="#"><i class="glyphicon-align-center"></i></a>
|
||||
<a class="btn" href="#"><i class="glyphicon-align-right"></i></a>
|
||||
<a class="btn" href="#"><i class="glyphicon-align-justify"></i></a>
|
||||
<a class="btn" href="#"><span class="glyphicon-align-left"></span></a>
|
||||
<a class="btn" href="#"><span class="glyphicon-align-center"></span></a>
|
||||
<a class="btn" href="#"><span class="glyphicon-align-right"></span></a>
|
||||
<a class="btn" href="#"><span class="glyphicon-align-justify"></span></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<div class="btn-toolbar">
|
||||
<div class="btn-group">
|
||||
|
||||
<a class="btn" href="#"><i class="glyphicon-align-left"></i></a>
|
||||
<a class="btn" href="#"><i class="glyphicon-align-center"></i></a>
|
||||
<a class="btn" href="#"><i class="glyphicon-align-right"></i></a>
|
||||
<a class="btn" href="#"><i class="glyphicon-align-justify"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
</pre>
|
||||
</div><!-- /bs-docs-example -->
|
||||
{% highlight html linenos %}
|
||||
<div class="btn-toolbar">
|
||||
<div class="btn-group">
|
||||
<a class="btn" href="#"><span class="glyphicon-align-left"></span></a>
|
||||
<a class="btn" href="#"><span class="glyphicon-align-center"></span></a>
|
||||
<a class="btn" href="#"><span class="glyphicon-align-right"></span></a>
|
||||
<a class="btn" href="#"><span class="glyphicon-align-justify"></span></a>
|
||||
</div>
|
||||
</div>
|
||||
{% endhighlight %}
|
||||
|
||||
<h5>Dropdown in a button group</h5>
|
||||
<div class="bs-docs-example">
|
||||
<div class="btn-group">
|
||||
<a class="btn btn-primary" href="#"><i class="glyphicon-user icon-white"></i> User</a>
|
||||
<a class="btn btn-primary" href="#"><i class="glyphicon-user"></i> User</a>
|
||||
<a class="btn btn-primary dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="#"><i class="glyphicon-pencil"></i> Edit</a></li>
|
||||
<li><a href="#"><i class="glyphicon-trash"></i> Delete</a></li>
|
||||
<li><a href="#"><i class="glyphicon-ban-circle"></i> Ban</a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="#"><i class="i"></i> Make admin</a></li>
|
||||
<li><a href="#"><i class="glyphicon-"></i> Make admin</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<div class="btn-group">
|
||||
<a class="btn btn-primary" href="#"><i class="glyphicon-user icon-white"></i> User</a>
|
||||
<a class="btn btn-primary dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="#"><i class="glyphicon-pencil"></i> Edit</a></li>
|
||||
<li><a href="#"><i class="glyphicon-trash"></i> Delete</a></li>
|
||||
<li><a href="#"><i class="glyphicon-ban-circle"></i> Ban</a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="#"><i class="i"></i> Make admin</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</pre>
|
||||
</div><!-- /bs-docs-example -->
|
||||
{% highlight html linenos %}
|
||||
<div class="btn-group">
|
||||
<a class="btn btn-primary" href="#"><span class="glyphicon-user"></span> User</a>
|
||||
<a class="btn btn-primary dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="#"><span class="glyphicon-pencil"></span> Edit</a></li>
|
||||
<li><a href="#"><span class="glyphicon-trash"></span> Delete</a></li>
|
||||
<li><a href="#"><span class="glyphicon-ban-circle"></span> Ban</a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="#"><span class="glyphicon-"></span> Make admin</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
{% endhighlight %}
|
||||
|
||||
<h5>Large button</h5>
|
||||
<div class="bs-docs-example">
|
||||
<a class="btn btn-large" href="#"><i class="glyphicon-star"></i> Star</a>
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<a class="btn btn-large" href="#"><i class="glyphicon-star"></i> Star</a>
|
||||
</pre>
|
||||
<a class="btn btn-large" href="#"><span class="glyphicon-star"></span> Star</a>
|
||||
</div><!-- /bs-docs-example -->
|
||||
{% highlight html linenos %}
|
||||
<a class="btn btn-large" href="#"><span class="glyphicon-star"></span> Star</a>
|
||||
{% endhighlight %}
|
||||
|
||||
<h5>Small button</h5>
|
||||
<div class="bs-docs-example">
|
||||
<a class="btn btn-small" href="#"><i class="glyphicon-star"></i></a>
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<a class="btn btn-small" href="#"><i class="glyphicon-star"></i></a>
|
||||
</pre>
|
||||
<a class="btn btn-small" href="#"><span class="glyphicon-star"></span></a>
|
||||
</div><!-- /bs-docs-example -->
|
||||
{% highlight html linenos %}
|
||||
<a class="btn btn-small" href="#"><span class="glyphicon-star"></span></a>
|
||||
{% endhighlight %}
|
||||
|
||||
|
||||
<h4>Navigation</h4>
|
||||
<div class="bs-docs-example">
|
||||
<ul class="nav nav-list">
|
||||
<li class="active"><a href="#"><i class="glyphicon-home icon-white"></i> Home</a></li>
|
||||
<li><a href="#"><i class="glyphicon-book"></i> Library</a></li>
|
||||
<li><a href="#"><i class="glyphicon-pencil"></i> Applications</a></li>
|
||||
<li><a href="#"><i class="i"></i> Misc</a></li>
|
||||
<li class="active"><a href="#"><span class="glyphicon-home"></span> Home</a></li>
|
||||
<li><a href="#"><span class="glyphicon-book"></span> Library</a></li>
|
||||
<li><a href="#"><span class="glyphicon-pencil"></span> Applications</a></li>
|
||||
<li><a href="#"><span class="glyphicon-"></span> Misc</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<ul class="nav nav-list">
|
||||
<li class="active"><a href="#"><i class="glyphicon-home icon-white"></i> Home</a></li>
|
||||
<li><a href="#"><i class="glyphicon-book"></i> Library</a></li>
|
||||
<li><a href="#"><i class="glyphicon-pencil"></i> Applications</a></li>
|
||||
<li><a href="#"><i class="i"></i> Misc</a></li>
|
||||
</ul>
|
||||
</pre>
|
||||
</div><!-- /bs-docs-example -->
|
||||
{% highlight html linenos %}
|
||||
<ul class="nav nav-list">
|
||||
<li class="active"><a href="#"><span class="glyphicon-home"></span> Home</a></li>
|
||||
<li><a href="#"><span class="glyphicon-book"></span> Library</a></li>
|
||||
<li><a href="#"><span class="glyphicon-pencil"></span> Applications</a></li>
|
||||
<li><a href="#"><span class="glyphicon-"></span> Misc</a></li>
|
||||
</ul>
|
||||
{% endhighlight %}
|
||||
|
||||
<h4>Form fields</h4>
|
||||
<form class="bs-docs-example form-horizontal">
|
||||
@ -2209,23 +2185,23 @@ For example, <code>&lt;section&gt;</code> should be wrapped
|
||||
<label class="control-label" for="inputIcon">Email address</label>
|
||||
<div class="controls">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon"><i class="glyphicon-envelope"></i></span>
|
||||
<span class="input-group-addon"><span class="glyphicon-envelope"></span></span>
|
||||
<input class="span2" id="inputIcon" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<pre class="prettyprint linenums">
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputIcon">Email address</label>
|
||||
<div class="controls">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon"><i class="glyphicon-envelope"></i></span>
|
||||
<input class="span2" id="inputIcon" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</pre>
|
||||
{% highlight html linenos %}
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputIcon">Email address</label>
|
||||
<div class="controls">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon"><span class="glyphicon-envelope"></span></span>
|
||||
<input class="span2" id="inputIcon" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endhighlight %}
|
||||
|
||||
</section>
|
||||
|
||||
@ -2312,75 +2288,7 @@ For example, <code>&lt;section&gt;</code> should be wrapped
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- /span9 -->
|
||||
</div><!-- row -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!-- Footer
|
||||
================================================== -->
|
||||
<footer class="footer">
|
||||
<div class="container">
|
||||
|
||||
<div class="bs-docs-social">
|
||||
<ul class="bs-docs-social-buttons">
|
||||
<li>
|
||||
<iframe class="github-btn" src="http://ghbtns.com/github-btn.html?user=twitter&repo=bootstrap&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="100px" height="20px"></iframe>
|
||||
</li>
|
||||
<li>
|
||||
<iframe class="github-btn" src="http://ghbtns.com/github-btn.html?user=twitter&repo=bootstrap&type=fork&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="102px" height="20px"></iframe>
|
||||
</li>
|
||||
<li class="follow-btn">
|
||||
<a href="https://twitter.com/twbootstrap" class="twitter-follow-button" data-link-color="#0069D6" data-show-count="true">Follow @twbootstrap</a>
|
||||
</li>
|
||||
<li class="tweet-btn">
|
||||
<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://twitter.github.com/bootstrap/" data-count="horizontal" data-via="twbootstrap" data-related="mdo:Creator of Twitter Bootstrap">Tweet</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<p>Designed and built with all the love in the world by <a href="http://twitter.com/mdo" target="_blank">@mdo</a> and <a href="http://twitter.com/fat" target="_blank">@fat</a>.</p>
|
||||
<p>Code licensed under <a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">Apache License v2.0</a>, documentation under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.</p>
|
||||
<p><a href="http://glyphicons.com">Glyphicons Free</a> licensed under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.</p>
|
||||
<ul class="footer-links">
|
||||
<li><a href="http://blog.getbootstrap.com">Blog</a></li>
|
||||
<li class="muted">·</li>
|
||||
<li><a href="https://github.com/twitter/bootstrap/issues?state=open">Issues</a></li>
|
||||
<li class="muted">·</li>
|
||||
<li><a href="https://github.com/twitter/bootstrap/blob/master/CHANGELOG.md">Changelog</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
|
||||
|
||||
<!-- Bootstrap core JavaScript
|
||||
================================================== -->
|
||||
<!-- Placed at the end of the document so the pages load faster -->
|
||||
<script src="assets/js/jquery.js"></script>
|
||||
<script src="assets/js/bootstrap-transition.js"></script>
|
||||
<script src="assets/js/bootstrap-alert.js"></script>
|
||||
<script src="assets/js/bootstrap-modal.js"></script>
|
||||
<script src="assets/js/bootstrap-dropdown.js"></script>
|
||||
<script src="assets/js/bootstrap-scrollspy.js"></script>
|
||||
<script src="assets/js/bootstrap-tab.js"></script>
|
||||
<script src="assets/js/bootstrap-tooltip.js"></script>
|
||||
<script src="assets/js/bootstrap-popover.js"></script>
|
||||
<script src="assets/js/bootstrap-button.js"></script>
|
||||
<script src="assets/js/bootstrap-collapse.js"></script>
|
||||
<script src="assets/js/bootstrap-carousel.js"></script>
|
||||
<script src="assets/js/bootstrap-typeahead.js"></script>
|
||||
<script src="assets/js/bootstrap-affix.js"></script>
|
||||
|
||||
<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
|
||||
<script src="assets/js/holder/holder.js"></script>
|
||||
<script src="assets/js/google-code-prettify/prettify.js"></script>
|
||||
|
||||
<script src="assets/js/application.js"></script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
</div><!-- /.container -->
|
||||
|
Loading…
x
Reference in New Issue
Block a user