mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-28 20:52:21 +01:00
more spacing tweaks
This commit is contained in:
parent
aaf9f752c4
commit
c7c3356101
1104
docs/index.html
1104
docs/index.html
@ -233,6 +233,8 @@
|
|||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
<h1>Layouts <small>Basic templates to create webpages</small></h1>
|
<h1>Layouts <small>Basic templates to create webpages</small></h1>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- Fixed layout -->
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span4 columns">
|
<div class="span4 columns">
|
||||||
<h2>Fixed layout</h2>
|
<h2>Fixed layout</h2>
|
||||||
@ -250,7 +252,9 @@
|
|||||||
</body>
|
</body>
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div> <!-- /row -->
|
||||||
|
|
||||||
|
<!-- Fluid layout -->
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span4 columns">
|
<div class="span4 columns">
|
||||||
<h2>Fluid layout</h2>
|
<h2>Fluid layout</h2>
|
||||||
@ -274,296 +278,298 @@
|
|||||||
</body>
|
</body>
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div> <!-- /row -->
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<section id="typography">
|
<section id="typography">
|
||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
<h1>Typography <small>Headings, paragraphs, lists, and other inline type elements</small></h1>
|
<h1>Typography <small>Headings, paragraphs, lists, and other inline type elements</small></h1>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<!-- Headings & Paragraph Copy -->
|
||||||
<div class="span4 columns">
|
<div class="row">
|
||||||
<h2>Headings and copy</h2>
|
<div class="span4 columns">
|
||||||
<p>A standard typographic hierarchy for structuring your webpages.</p>
|
<h2>Headings and copy</h2>
|
||||||
|
<p>A standard typographic hierarchy for structuring your webpages.</p>
|
||||||
|
</div>
|
||||||
|
<div class="span4 columns">
|
||||||
|
<h1>h1. Heading 1</h1>
|
||||||
|
<h2>h2. Heading 2</h2>
|
||||||
|
<h3>h3. Heading 3</h3>
|
||||||
|
<h4>h4. Heading 4</h4>
|
||||||
|
<h5>h5. Heading 5</h5>
|
||||||
|
<h6>h6. Heading 6</h6>
|
||||||
|
</div>
|
||||||
|
<div class="span8 columns">
|
||||||
|
<h3>Example paragraph</h3>
|
||||||
|
<p>Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
|
||||||
|
<h1>Example heading <small>Has sub-heading…</small></h1>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="span4 columns">
|
|
||||||
<h1>h1. Heading 1</h1>
|
|
||||||
<h2>h2. Heading 2</h2>
|
|
||||||
<h3>h3. Heading 3</h3>
|
|
||||||
<h4>h4. Heading 4</h4>
|
|
||||||
<h5>h5. Heading 5</h5>
|
|
||||||
<h6>h6. Heading 6</h6>
|
|
||||||
</div>
|
|
||||||
<div class="span8 columns">
|
|
||||||
<h3>Example paragraph</h3>
|
|
||||||
<p>Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
|
|
||||||
<h1>Example heading <small>Has sub-heading…</small></h1>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row">
|
<!-- Misc Elements -->
|
||||||
<div class="span4 columns">
|
<div class="row">
|
||||||
<h2>Misc. elements</h2>
|
<div class="span4 columns">
|
||||||
<p>Using emphasis, addresses, & abbreviations</p>
|
<h2>Misc. elements</h2>
|
||||||
<p>
|
<p>Using emphasis, addresses, & abbreviations</p>
|
||||||
<code><strong></code>
|
<p>
|
||||||
<code><em></code>
|
<code><strong></code>
|
||||||
<code><address></code>
|
<code><em></code>
|
||||||
<code><abbr></code>
|
<code><address></code>
|
||||||
</p>
|
<code><abbr></code>
|
||||||
</div>
|
</p>
|
||||||
<div class="span12 columns">
|
</div>
|
||||||
<h4>When to use</h4>
|
<div class="span12 columns">
|
||||||
<p>Emphasis tags (<code><strong></code> and <code><em></code>) should be used to indicate additional importance or emphasis of a word or phrase relative to its surrounding copy. Use <code><strong></code> for importance and <code><em></code> for <em>stress</em> emphasis.</p>
|
<h4>When to use</h4>
|
||||||
<h3>Emphasis in a paragraph</h3>
|
<p>Emphasis tags (<code><strong></code> and <code><em></code>) should be used to indicate additional importance or emphasis of a word or phrase relative to its surrounding copy. Use <code><strong></code> for importance and <code><em></code> for <em>stress</em> emphasis.</p>
|
||||||
<p><a href="#">Fusce dapibus</a>, <strong>tellus ac cursus commodo</strong>, <em>tortor mauris condimentum nibh</em>, ut fermentum massa justo sit amet risus. Maecenas faucibus mollis interdum. Nulla vitae elit libero, a pharetra augue.</p>
|
<h3>Emphasis in a paragraph</h3>
|
||||||
<p><strong>Note:</strong> It's still okay to use <code><b></code> and <code><i></code> tags in HTML5, but they don't come with inherent styles anymore. <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><a href="#">Fusce dapibus</a>, <strong>tellus ac cursus commodo</strong>, <em>tortor mauris condimentum nibh</em>, ut fermentum massa justo sit amet risus. Maecenas faucibus mollis interdum. Nulla vitae elit libero, a pharetra augue.</p>
|
||||||
<h3>Addresses</h3>
|
<p><strong>Note:</strong> It's still okay to use <code><b></code> and <code><i></code> tags in HTML5, but they don't come with inherent styles anymore. <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>The <code><address></code> element is used for contact information for its nearest ancestor, or the entire body of work. Here’s how it looks:</p>
|
<h3>Addresses</h3>
|
||||||
<address>
|
<p>The <code><address></code> element is used for contact information for its nearest ancestor, or the entire body of work. Here’s how it looks:</p>
|
||||||
<strong>Twitter, Inc.</strong><br />
|
<address>
|
||||||
795 Folsom Ave, Suite 600<br />
|
<strong>Twitter, Inc.</strong><br />
|
||||||
San Francisco, CA 94107<br />
|
795 Folsom Ave, Suite 600<br />
|
||||||
<abbr title="Phone">P:</abbr> (123) 456-7890
|
San Francisco, CA 94107<br />
|
||||||
</address>
|
<abbr title="Phone">P:</abbr> (123) 456-7890
|
||||||
<p><strong>Note:</strong> Each line in an <code><address></code> must end with a line-break (<code><br /></code>) or be wrapped in a block-level tag (e.g., <code><p></code>) to properly structure the content.</p>
|
</address>
|
||||||
<h3>Abbreviations</h3>
|
<p><strong>Note:</strong> Each line in an <code><address></code> must end with a line-break (<code><br /></code>) or be wrapped in a block-level tag (e.g., <code><p></code>) to properly structure the content.</p>
|
||||||
<p>For abbreviations and acronyms, use the <code><abbr></code> tag (<code><acronym></code> is deprecated in <abbr title="HyperText Markup Langugage 5">HTML5</abbr>). Put the shorthand form within the tag and set a title for the complete name.</p>
|
<h3>Abbreviations</h3>
|
||||||
</div>
|
<p>For abbreviations and acronyms, use the <code><abbr></code> tag (<code><acronym></code> is deprecated in <abbr title="HyperText Markup Langugage 5">HTML5</abbr>). Put the shorthand form within the tag and set a title for the complete name.</p>
|
||||||
</div>
|
</div>
|
||||||
|
</div> <!-- /row -->
|
||||||
|
|
||||||
<div class="row">
|
<!-- Blockquotes -->
|
||||||
<div class="span4 columns">
|
<div class="row">
|
||||||
<h2>Blockquotes</h2>
|
<div class="span4 columns">
|
||||||
<p>
|
<h2>Blockquotes</h2>
|
||||||
<code><blockquote></code>
|
<p>
|
||||||
<code><p></code>
|
<code><blockquote></code>
|
||||||
<code><small></code>
|
<code><p></code>
|
||||||
</p>
|
<code><small></code>
|
||||||
</div>
|
</p>
|
||||||
<div class="span12 columns">
|
</div>
|
||||||
<p>Be sure to wrap your <code><blockquote></code> around <code><p></code> and <code><small></code> tags. When citing a source, use the <code><small></code> element. The CSS will automatically preface a name with an em dash (&mdash;).</p>
|
<div class="span12 columns">
|
||||||
<blockquote>
|
<p>Be sure to wrap your <code><blockquote></code> around <code><p></code> and <code><small></code> tags. When citing a source, use the <code><small></code> element. The CSS will automatically preface a name with an em dash (&mdash;).</p>
|
||||||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua…</p>
|
<blockquote>
|
||||||
<small>Dr. Julius Hibbert</small>
|
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua…</p>
|
||||||
</blockquote>
|
<small>Dr. Julius Hibbert</small>
|
||||||
</div>
|
</blockquote>
|
||||||
</div>
|
</div>
|
||||||
|
</div> <!-- /row -->
|
||||||
|
|
||||||
|
<!-- Types of Lists -->
|
||||||
<h2>Lists</h2>
|
<h2>Lists</h2>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span4 columns">
|
<div class="span4 columns">
|
||||||
<h4>Unordered <code><ul></code></h4>
|
<h4>Unordered <code><ul></code></h4>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Jeremy Bixby</li>
|
<li>Jeremy Bixby</li>
|
||||||
<li>Robert Dezure</li>
|
<li>Robert Dezure</li>
|
||||||
<li>Josh Washington</li>
|
<li>Josh Washington</li>
|
||||||
<li>Anton Capresi</li>
|
<li>Anton Capresi</li>
|
||||||
<li>My Team Mates
|
<li>My Team Mates
|
||||||
<ul>
|
<ul>
|
||||||
<li>George Castanza</li>
|
<li>George Castanza</li>
|
||||||
<li>Jerry Seinfeld</li>
|
<li>Jerry Seinfeld</li>
|
||||||
<li>Cosmo Kramer</li>
|
<li>Cosmo Kramer</li>
|
||||||
<li>Elaine Bennis</li>
|
<li>Elaine Bennis</li>
|
||||||
<li>Newman</li>
|
<li>Newman</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li>John Jacob</li>
|
<li>John Jacob</li>
|
||||||
<li>Paul Pierce</li>
|
<li>Paul Pierce</li>
|
||||||
<li>Kevin Garnett</li>
|
<li>Kevin Garnett</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="span4 columns">
|
<div class="span4 columns">
|
||||||
<h4>Unstyled <code><ul.unstyled></code></h4>
|
<h4>Unstyled <code><ul.unstyled></code></h4>
|
||||||
<ul class="unstyled">
|
<ul class="unstyled">
|
||||||
<li>Jeremy Bixby</li>
|
<li>Jeremy Bixby</li>
|
||||||
<li>Robert Dezure</li>
|
<li>Robert Dezure</li>
|
||||||
<li>Josh Washington</li>
|
<li>Josh Washington</li>
|
||||||
<li>Anton Capresi</li>
|
<li>Anton Capresi</li>
|
||||||
<li>My Team Mates
|
<li>My Team Mates
|
||||||
<ul>
|
<ul>
|
||||||
<li>George Castanza</li>
|
<li>George Castanza</li>
|
||||||
<li>Jerry Seinfeld</li>
|
<li>Jerry Seinfeld</li>
|
||||||
<li>Cosmo Kramer</li>
|
<li>Cosmo Kramer</li>
|
||||||
<li>Elaine Bennis</li>
|
<li>Elaine Bennis</li>
|
||||||
<li>Newman</li>
|
<li>Newman</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li>John Jacob</li>
|
<li>John Jacob</li>
|
||||||
<li>Paul Pierce</li>
|
<li>Paul Pierce</li>
|
||||||
<li>Kevin Garnett</li>
|
<li>Kevin Garnett</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="span4 columns">
|
<div class="span4 columns">
|
||||||
<h4>Ordered <code><ol></code></h4>
|
<h4>Ordered <code><ol></code></h4>
|
||||||
<ol>
|
<ol>
|
||||||
<li>Jeremy Bixby</li>
|
<li>Jeremy Bixby</li>
|
||||||
<li>Robert Dezure</li>
|
<li>Robert Dezure</li>
|
||||||
<li>Josh Washington</li>
|
<li>Josh Washington</li>
|
||||||
<li>Anton Capresi</li>
|
<li>Anton Capresi</li>
|
||||||
<li>My Team Mates
|
<li>My Team Mates
|
||||||
<ol>
|
<ol>
|
||||||
<li>George Castanza</li>
|
<li>George Castanza</li>
|
||||||
<li>Jerry Seinfeld</li>
|
<li>Jerry Seinfeld</li>
|
||||||
<li>Cosmo Kramer</li>
|
<li>Cosmo Kramer</li>
|
||||||
<li>Elaine Bennis</li>
|
<li>Elaine Bennis</li>
|
||||||
<li>Newman</li>
|
<li>Newman</li>
|
||||||
</ol>
|
</ol>
|
||||||
</li>
|
</li>
|
||||||
<li>John Jacob</li>
|
<li>John Jacob</li>
|
||||||
<li>Paul Pierce</li>
|
<li>Paul Pierce</li>
|
||||||
<li>Kevin Garnett</li>
|
<li>Kevin Garnett</li>
|
||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
<div class="span4 columns">
|
<div class="span4 columns">
|
||||||
<h4>Description <code>dl</code></h4>
|
<h4>Description <code>dl</code></h4>
|
||||||
<dl>
|
<dl>
|
||||||
<dt>Description lists</dt>
|
<dt>Description lists</dt>
|
||||||
<dd>A description list is perfect for defining terms.</dd>
|
<dd>A description list is perfect for defining terms.</dd>
|
||||||
<dt>Euismod</dt>
|
<dt>Euismod</dt>
|
||||||
<dd>Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.</dd>
|
<dd>Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.</dd>
|
||||||
<dd>Donec id elit non mi porta gravida at eget metus.</dd>
|
<dd>Donec id elit non mi porta gravida at eget metus.</dd>
|
||||||
<dt>Malesuada porta</dt>
|
<dt>Malesuada porta</dt>
|
||||||
<dd>Etiam porta sem malesuada magna mollis euismod.</dd>
|
<dd>Etiam porta sem malesuada magna mollis euismod.</dd>
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div> <!-- /row -->
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
||||||
<section id="tables">
|
|
||||||
<div class="page-header">
|
|
||||||
<h1>Tables <small>For, you guessed it, tabular data</small></h1>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row">
|
<section id="tables">
|
||||||
<div class="span4 columns">
|
<div class="page-header">
|
||||||
<h2>Building tables</h2>
|
<h1>Tables <small>For, you guessed it, tabular data</small></h1>
|
||||||
<p>
|
|
||||||
<code><table></code>
|
|
||||||
<code><thead></code>
|
|
||||||
<code><tbody></code>
|
|
||||||
<code><tr></code>
|
|
||||||
<code><th></code>
|
|
||||||
<code><td></code>
|
|
||||||
<code><colspan></code>
|
|
||||||
<code><caption></code>
|
|
||||||
</p>
|
|
||||||
<p>Tables are great—for a lot of things. Great tables, however, need a bit of markup love to be useful, scalable, and readable (at the code level). Here are a few tips to help.</p>
|
|
||||||
<p>Always wrap your column headers in a <code><thead></code> such that hierarchy is <code><thead></code> > <code><tr></code> > <code><th></code>.</p>
|
|
||||||
<p>Similar to the column headers, all your table’s body content should be wrapped in a <code><tbody></code> so your hierarchy is <code><tbody></code> > <code><tr></code> > <code><td></code>.</p>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="span12 columns">
|
<!-- Table structure -->
|
||||||
<h3>Example: Default table styles</h3>
|
<div class="row">
|
||||||
<p>All tables will be automatically styled with only the essential borders to ensure readability and maintain structure. No need to add extra classes or attributes.</p>
|
<div class="span4 columns">
|
||||||
<table>
|
<h2>Building tables</h2>
|
||||||
<thead>
|
<p>
|
||||||
<tr>
|
<code><table></code>
|
||||||
<th>#</th>
|
<code><thead></code>
|
||||||
<th>First Name</th>
|
<code><tbody></code>
|
||||||
<th>Last Name</th>
|
<code><tr></code>
|
||||||
<th>Language</th>
|
<code><th></code>
|
||||||
</tr>
|
<code><td></code>
|
||||||
</thead>
|
<code><colspan></code>
|
||||||
<tbody>
|
<code><caption></code>
|
||||||
<tr>
|
</p>
|
||||||
<td>1</td>
|
<p>Tables are great—for a lot of things. Great tables, however, need a bit of markup love to be useful, scalable, and readable (at the code level). Here are a few tips to help.</p>
|
||||||
<td>Some</td>
|
<p>Always wrap your column headers in a <code><thead></code> such that hierarchy is <code><thead></code> > <code><tr></code> > <code><th></code>.</p>
|
||||||
<td>One</td>
|
<p>Similar to the column headers, all your table’s body content should be wrapped in a <code><tbody></code> so your hierarchy is <code><tbody></code> > <code><tr></code> > <code><td></code>.</p>
|
||||||
<td>English</td>
|
</div>
|
||||||
</tr>
|
<div class="span12 columns">
|
||||||
<tr>
|
<h3>Example: Default table styles</h3>
|
||||||
<td>2</td>
|
<p>All tables will be automatically styled with only the essential borders to ensure readability and maintain structure. No need to add extra classes or attributes.</p>
|
||||||
<td>Joe</td>
|
<table>
|
||||||
<td>Sixpack</td>
|
<thead>
|
||||||
<td>English</td>
|
<tr>
|
||||||
</tr>
|
<th>#</th>
|
||||||
<tr>
|
<th>First Name</th>
|
||||||
<td>3</td>
|
<th>Last Name</th>
|
||||||
<td>Stu</td>
|
<th>Language</th>
|
||||||
<td>Dent</td>
|
</tr>
|
||||||
<td>Code</td>
|
</thead>
|
||||||
</tr>
|
<tbody>
|
||||||
</tbody>
|
<tr>
|
||||||
</table>
|
<td>1</td>
|
||||||
|
<td>Some</td>
|
||||||
|
<td>One</td>
|
||||||
|
<td>English</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>2</td>
|
||||||
|
<td>Joe</td>
|
||||||
|
<td>Sixpack</td>
|
||||||
|
<td>English</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>3</td>
|
||||||
|
<td>Stu</td>
|
||||||
|
<td>Dent</td>
|
||||||
|
<td>Code</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
<table class="common-table">
|
<table class="common-table">
|
||||||
...
|
...
|
||||||
</table></pre>
|
</table></pre>
|
||||||
|
<h3>Example: Zebra-striped</h3>
|
||||||
<h3>Example: Zebra-striped</h3>
|
<p>Get a little fancy with your tables by adding zebra-striping—just add the <code>.zebra-striped</code> class.</p>
|
||||||
<p>Get a little fancy with your tables by adding zebra-striping—just add the <code>.zebra-striped</code> class.</p>
|
<table class="zebra-striped">
|
||||||
<table class="zebra-striped">
|
<thead>
|
||||||
<thead>
|
<tr>
|
||||||
<tr>
|
<th>#</th>
|
||||||
<th>#</th>
|
<th>First Name</th>
|
||||||
<th>First Name</th>
|
<th>Last Name</th>
|
||||||
<th>Last Name</th>
|
<th>Language</th>
|
||||||
<th>Language</th>
|
</tr>
|
||||||
</tr>
|
</thead>
|
||||||
</thead>
|
<tbody>
|
||||||
<tbody>
|
<tr>
|
||||||
<tr>
|
<td>1</td>
|
||||||
<td>1</td>
|
<td>Some</td>
|
||||||
<td>Some</td>
|
<td>One</td>
|
||||||
<td>One</td>
|
<td>English</td>
|
||||||
<td>English</td>
|
</tr>
|
||||||
</tr>
|
<tr>
|
||||||
<tr>
|
<td>2</td>
|
||||||
<td>2</td>
|
<td>Joe</td>
|
||||||
<td>Joe</td>
|
<td>Sixpack</td>
|
||||||
<td>Sixpack</td>
|
<td>English</td>
|
||||||
<td>English</td>
|
</tr>
|
||||||
</tr>
|
<tr>
|
||||||
<tr>
|
<td>3</td>
|
||||||
<td>3</td>
|
<td>Stu</td>
|
||||||
<td>Stu</td>
|
<td>Dent</td>
|
||||||
<td>Dent</td>
|
<td>Code</td>
|
||||||
<td>Code</td>
|
</tr>
|
||||||
</tr>
|
</tbody>
|
||||||
</tbody>
|
</table>
|
||||||
</table>
|
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
<table class="common-table zebra-striped">
|
<table class="common-table zebra-striped">
|
||||||
...
|
...
|
||||||
</table></pre>
|
</table></pre>
|
||||||
|
<h3>Example: Zebra-striped w/ TableSorter.js</h3>
|
||||||
<h3>Example: Zebra-striped w/ TableSorter.js</h3>
|
<p>Taking the previous example, we improve the usefulness of our tables by providing sorting functionality via <a href="http://jquery.com">jQuery</a> and the <a href="http://tablesorter.com/docs/">Tablesorter</a> plugin. <strong>Click any column’s header to change the sort.</strong></p>
|
||||||
<p>Taking the previous example, we improve the usefulness of our tables by providing sorting functionality via <a href="http://jquery.com">jQuery</a> and the <a href="http://tablesorter.com/docs/">Tablesorter</a> plugin. <strong>Click any column’s header to change the sort.</strong></p>
|
<table class="zebra-striped" id="sortTableExample">
|
||||||
<table class="zebra-striped" id="sortTableExample">
|
<thead>
|
||||||
<thead>
|
<tr>
|
||||||
<tr>
|
<th>#</th>
|
||||||
<th>#</th>
|
<th class="yellow">First Name</th>
|
||||||
<th class="yellow">First Name</th>
|
<th class="blue">Last Name</th>
|
||||||
<th class="blue">Last Name</th>
|
<th class="green">Language</th>
|
||||||
<th class="green">Language</th>
|
</tr>
|
||||||
</tr>
|
</thead>
|
||||||
</thead>
|
<tbody>
|
||||||
<tbody>
|
<tr>
|
||||||
<tr>
|
<td>1</td>
|
||||||
<td>1</td>
|
<td>Your</td>
|
||||||
<td>Your</td>
|
<td>One</td>
|
||||||
<td>One</td>
|
<td>English</td>
|
||||||
<td>English</td>
|
</tr>
|
||||||
</tr>
|
<tr>
|
||||||
<tr>
|
<td>2</td>
|
||||||
<td>2</td>
|
<td>Joe</td>
|
||||||
<td>Joe</td>
|
<td>Sixpack</td>
|
||||||
<td>Sixpack</td>
|
<td>English</td>
|
||||||
<td>English</td>
|
</tr>
|
||||||
</tr>
|
<tr>
|
||||||
<tr>
|
<td>3</td>
|
||||||
<td>3</td>
|
<td>Stu</td>
|
||||||
<td>Stu</td>
|
<td>Dent</td>
|
||||||
<td>Dent</td>
|
<td>Code</td>
|
||||||
<td>Code</td>
|
</tr>
|
||||||
</tr>
|
</tbody>
|
||||||
</tbody>
|
</table>
|
||||||
</table>
|
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
<script src="js/jquery/jquery.tablesorter.min.js"></script>
|
<script src="js/jquery/jquery.tablesorter.min.js"></script>
|
||||||
<script >
|
<script >
|
||||||
@ -574,299 +580,297 @@
|
|||||||
<table class="common-table zebra-striped">
|
<table class="common-table zebra-striped">
|
||||||
...
|
...
|
||||||
</table></pre>
|
</table></pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div> <!-- /row -->
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<section id="forms">
|
<section id="forms">
|
||||||
|
<div class="page-header">
|
||||||
<div class="page-header">
|
<h1>Forms</h1>
|
||||||
<h1>Forms</h1>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="span4 columns">
|
|
||||||
<h2>Default styles</h2>
|
|
||||||
<p>All forms are given default styles to present them in a readable and scalable way. Styles are provided for text inputs, select lists, textareas, radio buttons and checkboxes, and buttons.</p>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="span12 columns">
|
<div class="row">
|
||||||
<form>
|
<div class="span4 columns">
|
||||||
<fieldset>
|
<h2>Default styles</h2>
|
||||||
<legend>Example form legend</legend>
|
<p>All forms are given default styles to present them in a readable and scalable way. Styles are provided for text inputs, select lists, textareas, radio buttons and checkboxes, and buttons.</p>
|
||||||
<div class="clearfix">
|
</div>
|
||||||
<label for="">X-Large Input</label>
|
<div class="span12 columns">
|
||||||
<div class="input">
|
<form>
|
||||||
<input class="xlarge" id="xlInput" name="xlInput" size="30" type="text" />
|
<fieldset>
|
||||||
</div>
|
<legend>Example form legend</legend>
|
||||||
</div> <!-- /clearfix -->
|
<div class="clearfix">
|
||||||
<div class="clearfix">
|
<label for="">X-Large Input</label>
|
||||||
<label for="">Select</label>
|
<div class="input">
|
||||||
<div class="input">
|
<input class="xlarge" id="xlInput" name="xlInput" size="30" type="text" />
|
||||||
<select>
|
</div>
|
||||||
<option>1</option>
|
</div> <!-- /clearfix -->
|
||||||
<option>2</option>
|
<div class="clearfix">
|
||||||
<option>3</option>
|
<label for="">Select</label>
|
||||||
<option>4</option>
|
<div class="input">
|
||||||
<option>5</option>
|
<select>
|
||||||
</select>
|
<option>1</option>
|
||||||
</div>
|
<option>2</option>
|
||||||
</div> <!-- /clearfix -->
|
<option>3</option>
|
||||||
<div class="clearfix">
|
<option>4</option>
|
||||||
<label for="">Select</label>
|
<option>5</option>
|
||||||
<div class="input">
|
</select>
|
||||||
<select class="medium">
|
</div>
|
||||||
<option>1</option>
|
</div> <!-- /clearfix -->
|
||||||
<option>2</option>
|
<div class="clearfix">
|
||||||
<option>3</option>
|
<label for="">Select</label>
|
||||||
<option>4</option>
|
<div class="input">
|
||||||
<option>5</option>
|
<select class="medium">
|
||||||
</select>
|
<option>1</option>
|
||||||
</div>
|
<option>2</option>
|
||||||
</div> <!-- /clearfix -->
|
<option>3</option>
|
||||||
<div class="clearfix">
|
<option>4</option>
|
||||||
<label>Uneditable Input</label>
|
<option>5</option>
|
||||||
<div class="input">
|
</select>
|
||||||
<span class="uneditable-input">Some Value Here</span>
|
</div>
|
||||||
</div>
|
</div> <!-- /clearfix -->
|
||||||
</div> <!-- /clearfix -->
|
<div class="clearfix">
|
||||||
<div class="clearfix">
|
<label>Uneditable Input</label>
|
||||||
<label for="disabledInput">Disabled Input</label>
|
<div class="input">
|
||||||
<div class="input">
|
<span class="uneditable-input">Some Value Here</span>
|
||||||
<input class="xlarge disabled" id="disabledInput" name="disabledInput" size="30" type="text" placeholder="Disabled input here… carry on." disabled />
|
</div>
|
||||||
</div>
|
</div> <!-- /clearfix -->
|
||||||
</div> <!-- /clearfix -->
|
<div class="clearfix">
|
||||||
<div class="clearfix error">
|
<label for="disabledInput">Disabled Input</label>
|
||||||
<label for="xlInput">X-Large Input</label>
|
<div class="input">
|
||||||
<div class="input">
|
<input class="xlarge disabled" id="disabledInput" name="disabledInput" size="30" type="text" placeholder="Disabled input here… carry on." disabled />
|
||||||
<input class="xlarge error" id="xlInput" name="xlInput" size="30" type="text" />
|
</div>
|
||||||
<span class="help-inline">Small snippet of help text</span>
|
</div> <!-- /clearfix -->
|
||||||
</div>
|
<div class="clearfix error">
|
||||||
</div> <!-- /clearfix -->
|
<label for="xlInput">X-Large Input</label>
|
||||||
</fieldset>
|
<div class="input">
|
||||||
<fieldset>
|
<input class="xlarge error" id="xlInput" name="xlInput" size="30" type="text" />
|
||||||
<legend>Example form legend</legend>
|
<span class="help-inline">Small snippet of help text</span>
|
||||||
<div class="clearfix">
|
</div>
|
||||||
<label for="prependedInput">Prepended Text</label>
|
</div> <!-- /clearfix -->
|
||||||
<div class="input">
|
</fieldset>
|
||||||
<div class="input-prepend">
|
<fieldset>
|
||||||
<span class="add-on">@</span>
|
<legend>Example form legend</legend>
|
||||||
<input class="medium" id="prependedInput" name="prependedInput" size="16" type="text" />
|
<div class="clearfix">
|
||||||
|
<label for="prependedInput">Prepended Text</label>
|
||||||
|
<div class="input">
|
||||||
|
<div class="input-prepend">
|
||||||
|
<span class="add-on">@</span>
|
||||||
|
<input class="medium" id="prependedInput" name="prependedInput" size="16" type="text" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div> <!-- /clearfix -->
|
||||||
|
<div class="clearfix">
|
||||||
|
<label for="prependedInput2">Prepended Checkbox</label>
|
||||||
|
<div class="input">
|
||||||
|
<div class="input-prepend">
|
||||||
|
<label class="add-on"><input type="checkbox" name="" id="" value="" /></label>
|
||||||
|
<input class="mini" id="prependedInput2" name="prependedInput2" size="16" type="text" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div> <!-- /clearfix -->
|
||||||
|
<div class="clearfix">
|
||||||
|
<label for="appendedInput">Appended Checkbox</label>
|
||||||
|
<div class="input">
|
||||||
|
<div class="input-append">
|
||||||
|
<input class="mini" id="appendedInput" name="appendedInput" size="16" type="text" />
|
||||||
|
<label class="add-on active"><input type="checkbox" name="" id="" value="" checked="checked" /></label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div> <!-- /clearfix -->
|
||||||
|
<div class="clearfix">
|
||||||
|
<label for="xlInput">File Input</label>
|
||||||
|
<div class="input">
|
||||||
|
<input class="input-file" id="fileInput" name="fileInput" type="file" />
|
||||||
|
</div>
|
||||||
|
</div> <!-- /clearfix -->
|
||||||
|
</fieldset>
|
||||||
|
<fieldset>
|
||||||
|
<legend>Example form legend</legend>
|
||||||
|
<div class="clearfix">
|
||||||
|
<label id="optionsCheckboxes">List of Options</label>
|
||||||
|
<div class="input">
|
||||||
|
<ul class="inputs-list">
|
||||||
|
<li>
|
||||||
|
<label>
|
||||||
|
<input type="checkbox" name="optionsCheckboxes" value="option1" />
|
||||||
|
<span>Option one is this and that—be sure to include why it’s great</span>
|
||||||
|
</label>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label>
|
||||||
|
<input type="checkbox" name="optionsCheckboxes" value="option2" />
|
||||||
|
<span>Option two can also be checked and included in form results</span>
|
||||||
|
</label>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label>
|
||||||
|
<input type="checkbox" name="optionsCheckboxes" value="option2" />
|
||||||
|
<span>Option three can—yes, you guessed it—also be checked and included in form results</span>
|
||||||
|
</label>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label class="disabled">
|
||||||
|
<input type="checkbox" name="optionsCheckboxes" value="option2" disabled />
|
||||||
|
<span>Option four cannot be checked as it is disabled.</span>
|
||||||
|
</label>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<span class="help-block">
|
||||||
|
<strong>Note:</strong> Labels surround all the options for much larger click areas and a more usable form.
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div> <!-- /clearfix -->
|
||||||
|
<div class="clearfix">
|
||||||
|
<label>Date Range</label>
|
||||||
|
<div class="input">
|
||||||
|
<div class="inline-inputs">
|
||||||
|
<input class="small" type="text" value="May 1, 2011" />
|
||||||
|
<input class="mini" type="text" value="12:00am" />
|
||||||
|
to
|
||||||
|
<input class="small" type="text" value="May 8, 2011" />
|
||||||
|
<input class="mini" type="text" value="11:59pm" />
|
||||||
|
<span class="help-inline">All times are shown as Pacific Standard Time (GMT -08:00).</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div> <!-- /clearfix -->
|
||||||
|
<div class="clearfix">
|
||||||
|
<label for="textarea">Textarea</label>
|
||||||
|
<div class="input">
|
||||||
|
<textarea class="xxlarge" id="textarea" name="textarea"></textarea>
|
||||||
|
<span class="help-block">
|
||||||
|
Block of help text to describe the field above if need be.
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div> <!-- /clearfix -->
|
||||||
|
<div class="clearfix">
|
||||||
|
<label id="optionsRadio">List of Options</label>
|
||||||
|
<div class="input">
|
||||||
|
<ul class="inputs-list">
|
||||||
|
<li>
|
||||||
|
<label>
|
||||||
|
<input type="checkbox" name="optionsCheckboxes" value="option1" />
|
||||||
|
<span>Option one is this and that—be sure to include why it’s great</span>
|
||||||
|
</label>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label>
|
||||||
|
<input type="checkbox" name="optionsCheckboxes" value="option2" />
|
||||||
|
<span>Option two can also be checked and included in form results</span>
|
||||||
|
</label>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div> <!-- /clearfix -->
|
||||||
|
<div class="actions">
|
||||||
|
<button type="submit" class="btn primary">Save Changes</button>
|
||||||
|
<button type="reset" class="btn">Cancel</button>
|
||||||
</div>
|
</div>
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div> <!-- /row -->
|
||||||
|
|
||||||
|
<br />
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="span4 columns">
|
||||||
|
<h2>Stacked forms</h2>
|
||||||
|
<p>Add <code>.form-stacked</code> to your form’s HTML and you’ll have labels on top of their fields instead of to their left. This works great if your forms are short or you have two columns of inputs for heavier forms.</p>
|
||||||
|
</div>
|
||||||
|
<div class="span12 columns">
|
||||||
|
<form action="" class="form-stacked">
|
||||||
|
<fieldset>
|
||||||
|
<legend>Example form legend</legend>
|
||||||
|
<div class="clearfix">
|
||||||
|
<label for="">X-Large Input</label>
|
||||||
|
<div class="input">
|
||||||
|
<input class="xlarge" id="xlInput" name="xlInput" size="30" type="text" />
|
||||||
|
</div>
|
||||||
|
</div> <!-- /clearfix -->
|
||||||
|
<div class="clearfix">
|
||||||
|
<label for="">Select</label>
|
||||||
|
<div class="input">
|
||||||
|
<select>
|
||||||
|
<option>1</option>
|
||||||
|
<option>2</option>
|
||||||
|
<option>3</option>
|
||||||
|
<option>4</option>
|
||||||
|
<option>5</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div> <!-- /clearfix -->
|
||||||
|
</fieldset>
|
||||||
|
<fieldset>
|
||||||
|
<legend>Example form legend</legend>
|
||||||
|
<div class="clearfix">
|
||||||
|
<label id="optionsCheckboxes">List of Options</label>
|
||||||
|
<div class="input">
|
||||||
|
<ul class="inputs-list">
|
||||||
|
<li>
|
||||||
|
<label>
|
||||||
|
<input type="checkbox" name="optionsCheckboxes" value="option1" />
|
||||||
|
<span>Option one is this and that—be sure to include why it’s great</span>
|
||||||
|
</label>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label>
|
||||||
|
<input type="checkbox" name="optionsCheckboxes" value="option2" />
|
||||||
|
<span>Option two can also be checked and included in form results</span>
|
||||||
|
</label>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<span class="help-block">
|
||||||
|
<strong>Note:</strong> Labels surround all the options for much larger click areas and a more usable form.
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div> <!-- /clearfix -->
|
||||||
|
</fieldset>
|
||||||
|
<div class="actions">
|
||||||
|
<button type="submit" class="btn primary">Save Changes</button>
|
||||||
|
<button type="reset" class="btn">Cancel</button>
|
||||||
</div>
|
</div>
|
||||||
</div> <!-- /clearfix -->
|
</form>
|
||||||
<div class="clearfix">
|
</div>
|
||||||
<label for="prependedInput2">Prepended Checkbox</label>
|
</div> <!-- /row -->
|
||||||
<div class="input">
|
|
||||||
<div class="input-prepend">
|
<div class="row">
|
||||||
<label class="add-on"><input type="checkbox" name="" id="" value="" /></label>
|
<div class="span4 columns">
|
||||||
<input class="mini" id="prependedInput2" name="prependedInput2" size="16" type="text" />
|
<h2>Buttons</h2>
|
||||||
</div>
|
<p>As a convention, buttons are used for actions while links are used for objects. For instance, "Download" could be a button and "recent activity" could be a link.</p>
|
||||||
</div>
|
<p>All buttons default to a light gray style, but a blue <code>.primary</code> class is available. Plus, rolling your own styles is easy peasy.</p>
|
||||||
</div> <!-- /clearfix -->
|
</div>
|
||||||
<div class="clearfix">
|
<div class="span12 columns">
|
||||||
<label for="appendedInput">Appended Checkbox</label>
|
<h3>Example buttons</h3>
|
||||||
<div class="input">
|
<p>Button styles can be applied to anything with the <code>.btn</code> applied. Typically you’ll want to apply these to only <code><a></code>, <code><button></code>, and select <code><input></code> elements. Here’s how it looks:</p>
|
||||||
<div class="input-append">
|
<div class="well" style="padding: 14px 19px;">
|
||||||
<input class="mini" id="appendedInput" name="appendedInput" size="16" type="text" />
|
<button type="submit" class="btn primary">Submit</button>
|
||||||
<label class="add-on active"><input type="checkbox" name="" id="" value="" checked="checked" /></label>
|
<button type="submit" class="btn">Cancel</button>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div> <!-- /clearfix -->
|
|
||||||
<div class="clearfix">
|
|
||||||
<label for="xlInput">File Input</label>
|
|
||||||
<div class="input">
|
|
||||||
<input class="input-file" id="fileInput" name="fileInput" type="file" />
|
|
||||||
</div>
|
|
||||||
</div> <!-- /clearfix -->
|
|
||||||
</fieldset>
|
|
||||||
<fieldset>
|
|
||||||
<legend>Example form legend</legend>
|
|
||||||
<div class="clearfix">
|
|
||||||
<label id="optionsCheckboxes">List of Options</label>
|
|
||||||
<div class="input">
|
|
||||||
<ul class="inputs-list">
|
|
||||||
<li>
|
|
||||||
<label>
|
|
||||||
<input type="checkbox" name="optionsCheckboxes" value="option1" />
|
|
||||||
<span>Option one is this and that—be sure to include why it’s great</span>
|
|
||||||
</label>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<label>
|
|
||||||
<input type="checkbox" name="optionsCheckboxes" value="option2" />
|
|
||||||
<span>Option two can also be checked and included in form results</span>
|
|
||||||
</label>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<label>
|
|
||||||
<input type="checkbox" name="optionsCheckboxes" value="option2" />
|
|
||||||
<span>Option three can—yes, you guessed it—also be checked and included in form results</span>
|
|
||||||
</label>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<label class="disabled">
|
|
||||||
<input type="checkbox" name="optionsCheckboxes" value="option2" disabled />
|
|
||||||
<span>Option four cannot be checked as it is disabled.</span>
|
|
||||||
</label>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<span class="help-block">
|
|
||||||
<strong>Note:</strong> Labels surround all the options for much larger click areas and a more usable form.
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</div> <!-- /clearfix -->
|
|
||||||
<div class="clearfix">
|
|
||||||
<label>Date Range</label>
|
|
||||||
<div class="input">
|
|
||||||
<div class="inline-inputs">
|
|
||||||
<input class="small" type="text" value="May 1, 2011" />
|
|
||||||
<input class="mini" type="text" value="12:00am" />
|
|
||||||
to
|
|
||||||
<input class="small" type="text" value="May 8, 2011" />
|
|
||||||
<input class="mini" type="text" value="11:59pm" />
|
|
||||||
<span class="help-inline">All times are shown as Pacific Standard Time (GMT -08:00).</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div> <!-- /clearfix -->
|
|
||||||
<div class="clearfix">
|
|
||||||
<label for="textarea">Textarea</label>
|
|
||||||
<div class="input">
|
|
||||||
<textarea class="xxlarge" id="textarea" name="textarea"></textarea>
|
|
||||||
<span class="help-block">
|
|
||||||
Block of help text to describe the field above if need be.
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</div> <!-- /clearfix -->
|
|
||||||
<div class="clearfix">
|
|
||||||
<label id="optionsRadio">List of Options</label>
|
|
||||||
<div class="input">
|
|
||||||
<ul class="inputs-list">
|
|
||||||
<li>
|
|
||||||
<label>
|
|
||||||
<input type="checkbox" name="optionsCheckboxes" value="option1" />
|
|
||||||
<span>Option one is this and that—be sure to include why it’s great</span>
|
|
||||||
</label>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<label>
|
|
||||||
<input type="checkbox" name="optionsCheckboxes" value="option2" />
|
|
||||||
<span>Option two can also be checked and included in form results</span>
|
|
||||||
</label>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div> <!-- /clearfix -->
|
|
||||||
<div class="actions">
|
|
||||||
<button type="submit" class="btn primary">Save Changes</button>
|
|
||||||
<button type="reset" class="btn">Cancel</button>
|
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
<h3>Alternate sizes</h3>
|
||||||
</form>
|
<p>Fancy larger or smaller buttons? Have at it!</p>
|
||||||
</div>
|
<div class="well">
|
||||||
</div>
|
<a href="#" class="btn large primary">Primary action</a>
|
||||||
|
<a href="#" class="btn large">Action</a>
|
||||||
<br />
|
</div>
|
||||||
|
<div class="well" style="padding: 16px 19px;">
|
||||||
<div class="row">
|
<a href="#" class="btn small primary">Primary action</a>
|
||||||
<div class="span4 columns">
|
<a href="#" class="btn small">Action</a>
|
||||||
<h2>Stacked forms</h2>
|
</div>
|
||||||
<p>Add <code>.form-stacked</code> to your form’s HTML and you’ll have labels on top of their fields instead of to their left. This works great if your forms are short or you have two columns of inputs for heavier forms.</p>
|
<h3>Disabled state</h3>
|
||||||
</div>
|
<p>For buttons that are not active or are disabled by the app for one reason or another, use the disabled state. That’s <code>.disabled</code> for links and <code>:disabled</code> for <code><button></code> elements.</p>
|
||||||
<div class="span12 columns">
|
<h4>Links</h4>
|
||||||
<form action="" class="form-stacked">
|
<div class="well">
|
||||||
<fieldset>
|
<a href="#" class="btn large primary disabled">Primary action</a>
|
||||||
<legend>Example form legend</legend>
|
<a href="#" class="btn large disabled">Action</a>
|
||||||
<div class="clearfix">
|
</div>
|
||||||
<label for="">X-Large Input</label>
|
<h4>Buttons</h4>
|
||||||
<div class="input">
|
<div class="well">
|
||||||
<input class="xlarge" id="xlInput" name="xlInput" size="30" type="text" />
|
<button class="btn large primary" disabled>Primary action</button>
|
||||||
</div>
|
<button class="btn large" disabled>Action</button>
|
||||||
</div> <!-- /clearfix -->
|
|
||||||
<div class="clearfix">
|
|
||||||
<label for="">Select</label>
|
|
||||||
<div class="input">
|
|
||||||
<select>
|
|
||||||
<option>1</option>
|
|
||||||
<option>2</option>
|
|
||||||
<option>3</option>
|
|
||||||
<option>4</option>
|
|
||||||
<option>5</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
</div> <!-- /clearfix -->
|
|
||||||
</fieldset>
|
|
||||||
<fieldset>
|
|
||||||
<legend>Example form legend</legend>
|
|
||||||
<div class="clearfix">
|
|
||||||
<label id="optionsCheckboxes">List of Options</label>
|
|
||||||
<div class="input">
|
|
||||||
<ul class="inputs-list">
|
|
||||||
<li>
|
|
||||||
<label>
|
|
||||||
<input type="checkbox" name="optionsCheckboxes" value="option1" />
|
|
||||||
<span>Option one is this and that—be sure to include why it’s great</span>
|
|
||||||
</label>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<label>
|
|
||||||
<input type="checkbox" name="optionsCheckboxes" value="option2" />
|
|
||||||
<span>Option two can also be checked and included in form results</span>
|
|
||||||
</label>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<span class="help-block">
|
|
||||||
<strong>Note:</strong> Labels surround all the options for much larger click areas and a more usable form.
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</div> <!-- /clearfix -->
|
|
||||||
</fieldset>
|
|
||||||
<div class="actions">
|
|
||||||
<button type="submit" class="btn primary">Save Changes</button>
|
|
||||||
<button type="reset" class="btn">Cancel</button>
|
|
||||||
</div>
|
</div>
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="span4 columns">
|
|
||||||
<h2>Buttons</h2>
|
|
||||||
<p>As a convention, buttons are used for actions while links are used for objects. For instance, "Download" could be a button and "recent activity" could be a link.</p>
|
|
||||||
<p>All buttons default to a light gray style, but a blue <code>.primary</code> class is available. Plus, rolling your own styles is easy peasy.</p>
|
|
||||||
</div>
|
|
||||||
<div class="span12 columns">
|
|
||||||
<h3>Example buttons</h3>
|
|
||||||
<p>Button styles can be applied to anything with the <code>.btn</code> applied. Typically you’ll want to apply these to only <code><a></code>, <code><button></code>, and select <code><input></code> elements. Here’s how it looks:</p>
|
|
||||||
<div class="well" style="padding: 14px 19px;">
|
|
||||||
<button type="submit" class="btn primary">Submit</button>
|
|
||||||
<button type="submit" class="btn">Cancel</button>
|
|
||||||
</div>
|
</div>
|
||||||
<h3>Alternate sizes</h3>
|
</div> <!-- /row -->
|
||||||
<p>Fancy larger or smaller buttons? Have at it!</p>
|
|
||||||
<div class="well">
|
|
||||||
<a href="#" class="btn large primary">Primary action</a>
|
|
||||||
<a href="#" class="btn large">Action</a>
|
|
||||||
</div>
|
|
||||||
<div class="well" style="padding: 16px 19px;">
|
|
||||||
<a href="#" class="btn small primary">Primary action</a>
|
|
||||||
<a href="#" class="btn small">Action</a>
|
|
||||||
</div>
|
|
||||||
<h3>Disabled state</h3>
|
|
||||||
<p>For buttons that are not active or are disabled by the app for one reason or another, use the disabled state. That’s <code>.disabled</code> for links and <code>:disabled</code> for <code><button></code> elements.</p>
|
|
||||||
<h4>Links</h4>
|
|
||||||
<div class="well">
|
|
||||||
<a href="#" class="btn large primary disabled">Primary action</a>
|
|
||||||
<a href="#" class="btn large disabled">Action</a>
|
|
||||||
</div>
|
|
||||||
<h4>Buttons</h4>
|
|
||||||
<div class="well">
|
|
||||||
<button class="btn large primary" disabled>Primary action</button>
|
|
||||||
<button class="btn large" disabled>Action</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user