From bf9d8fcc070fa826c342282e102fe00e1af76d10 Mon Sep 17 00:00:00 2001 From: Matt Morgan Date: Thu, 26 Apr 2012 14:09:20 -0400 Subject: Alter typeahead to accept synchronous/asynchronous data source via function/callback --- docs/templates/pages/javascript.mustache | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache index 1ae3ffa5a..e6f157689 100644 --- a/docs/templates/pages/javascript.mustache +++ b/docs/templates/pages/javascript.mustache @@ -1385,9 +1385,9 @@ $('.carousel').carousel({ {{_i}}source{{/i}} - {{_i}}array{{/i}} + {{_i}}array, function{{/i}} [ ] - {{_i}}The data source to query against.{{/i}} + {{_i}}The data source to query against. May be an array of strings or a function. The function is passed two arguments, the query value in the input field and the process callback. The function may be used synchronously by returning the data source directly or asynchronously via the process callback's single argument.{{/i}} {{_i}}items{{/i}} @@ -1426,4 +1426,4 @@ $('.carousel').carousel({

{{_i}}Initializes an input with a typeahead.{{/i}}

- \ No newline at end of file + -- cgit v1.2.3 From a404ac33bb9e78323b84d0840735445579634b9e Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Wed, 16 May 2012 19:09:57 -0700 Subject: modal accessibility tab control --- docs/templates/pages/javascript.mustache | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache index 1ae3ffa5a..3fec56d30 100644 --- a/docs/templates/pages/javascript.mustache +++ b/docs/templates/pages/javascript.mustache @@ -146,8 +146,9 @@

{{_i}}Live demo{{/i}}

{{_i}}Toggle a modal via javascript by clicking the button below. It will slide down and fade in from the top of the page.{{/i}}

+ - - -
{{>body}} diff --git a/docs/templates/pages/scaffolding.mustache b/docs/templates/pages/scaffolding.mustache index f2146e17e..abf98da77 100644 --- a/docs/templates/pages/scaffolding.mustache +++ b/docs/templates/pages/scaffolding.mustache @@ -28,7 +28,7 @@

{{_i}}Requires HTML5 doctype{{/i}}

-

{{_i}}Bootstrap makes use of HTML elements and CSS properties that require the use of the HTML5 doctype. Be sure to include it at the beginning of every Bootstrapped page in your project.{{/i}}

+

{{_i}}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.{{/i}}

 <!DOCTYPE html>
 <html lang="en">
@@ -37,17 +37,17 @@
 

{{_i}}Typography and links{{/i}}

-

{{_i}}Within the scaffolding.less file, we set basic global display, typography, and link styles. Specifically, we:{{/i}}

+

{{_i}}Bootstrap sets basic global display, typography, and link styles. Specifically, we:{{/i}}

+

{{_i}}These styles can be found within scaffolding.less.{{/i}}

{{_i}}Reset via Normalize{{/i}}

-

{{_i}}As of Bootstrap 2, the traditional CSS reset has evolved to make use of elements from Normalize.css, a project by Nicolas Gallagher that also powers the HTML5 Boilerplate.{{/i}}

-

{{_i}}The new reset can still be found in reset.less, but with many elements removed for brevity and accuracy.{{/i}}

+

{{_i}}With Bootstrap 2, the old reset block has been dropped in favor of Normalize.css, a project by Nicolas Gallagher that also powers the HTML5 Boilerplate. While we use much of Normalize within our reset.less, we have removed some elements specifically for Bootstrap.{{/i}}

@@ -61,6 +61,8 @@

{{_i}}Default grid system 12 columns with a responsive twist{{/i}}

+

{{_i}}Live grid example{{/i}}

+

{{_i}}The default Bootstrap grid system utilizes 12 columns, making for a 940px wide container without responsive features enabled. With the responsive CSS file added, the grid adapts to be 724px and 1170px wide depending on your viewport. Below 767px viewports, the columns become fluid and stack vertically.{{/i}}

1
@@ -94,19 +96,18 @@
-

{{_i}}The default grid system provided in Bootstrap utilizes 12 columns that render out at widths of 724px, 940px (default without responsive CSS included), and 1170px. Below 767px viewports, the columns become fluid and stack vertically. {{/i}}

+

{{_i}}Basic grid HTML{{/i}}

+

{{_i}}For a simple two column layout, create a .row and add the appropriate number of .span* columns. As this is a 12-column grid, each .span* spans a number of those 12 columns, and should always add up to 12 for each row.{{/i}}

 <div class="row">
   <div class="span4">...</div>
   <div class="span8">...</div>
 </div>
 
- -

{{_i}}As shown here, a basic layout can be created with two "columns", each spanning a number of the 12 foundational columns we defined as part of our grid system.{{/i}}

- -
+

{{_i}}Given this example, we have .span4 and .span8, making for 12 total columns and a complete row.{{/i}}

{{_i}}Offsetting columns{{/i}}

+

{{_i}}Move columns to the left using .offset* classes. Each class increases the left margin of a column by a whole column. For example, .offset4 moves .span4 over four columns.{{/i}}

4
@@ -127,42 +128,34 @@ </div> -
-

{{_i}}Nesting columns{{/i}}

-
-
-

{{_i}}With the static (non-fluid) grid system in Bootstrap, nesting is easy. To nest your content, just add a new .row and set of .span* columns within an existing .span* column.{{/i}}

-

{{_i}}Example{{/i}}

-

{{_i}}Nested rows should include a set of columns that add up to the number of columns of it's parent. For example, two nested .span3 columns should be placed within a .span6.{{/i}}

-
-
- {{_i}}Level 1 of column{{/i}} -
-
- {{_i}}Level 2{{/i}} -
-
- {{_i}}Level 2{{/i}} -
+

{{_i}}To nest your content with the default grid, add a new .row and set of .span* columns within an existing .span* column. Nested rows should include a set of columns that add up to the number of columns of its parent.{{/i}}

+

{{_i}}Example{{/i}}

+

{{_i}}Here two nested .span4 columns are placed within a .span8.{{/i}}

+
+
+ {{_i}}Level 1 of column{{/i}} +
+
+ {{_i}}Level 2{{/i}} +
+
+ {{_i}}Level 2{{/i}}
-
-
+
 <div class="row">
-  <div class="span6">
+  <div class="span8">
     {{_i}}Level 1 column{{/i}}
     <div class="row">
-      <div class="span3">{{_i}}Level 2{{/i}}</div>
-      <div class="span3">{{_i}}Level 2{{/i}}</div>
+      <div class="span4">{{_i}}Level 2{{/i}}</div>
+      <div class="span4">{{_i}}Level 2{{/i}}</div>
     </div>
   </div>
 </div>
 
-
-
@@ -174,7 +167,8 @@

{{_i}}Fluid grid system 12 responsive, percent-based columns{{/i}}

-

{{_i}}Fluid columns{{/i}}

+

{{_i}}Live fluid grid example{{/i}}

+

{{_i}}The fluid grid system uses percents instead of pixels for column widths. It has the same responsive capabilities as our fixed grid system, ensuring proper proportions for key screen resolutions and devices.{{/i}}

1
@@ -208,13 +202,8 @@
-

{{_i}}Percents, not pixels{{/i}}

-

{{_i}}The fluid grid system uses percents for column widths instead of fixed pixels. It also has the same responsive variations as our fixed grid system, ensuring proper proportions for key screen resolutions and devices.{{/i}}

- -

{{_i}}Fluid rows{{/i}}

-

{{_i}}Make any row fluid simply by changing .row to .row-fluid. The columns stay the exact same, making it super straightforward to flip between fixed and fluid layouts.{{/i}}

- -

{{_i}}Markup{{/i}}

+

{{_i}}Basic fluid grid HTML{{/i}}

+

{{_i}}Make any row "fluid" by changing .row to .row-fluid. The column classes stay the exact same, making it easy to flip between fixed and fluid grids.{{/i}}

 <div class="row-fluid">
   <div class="span4">...</div>
@@ -223,7 +212,7 @@
 

{{_i}}Fluid nesting{{/i}}

-

{{_i}}Nesting with fluid grids is a bit different: the number of nested columns doesn't need to match the parent. Instead, your columns are reset at each level because each row takes up 100% of the parent column.{{/i}}

+

{{_i}}Nesting with fluid grids is a bit different: the number of nested columns should not match the parent's number of columns. Instead, each level of nested columns are reset because each row takes up 100% of the parent column.{{/i}}

{{_i}}Fluid 12{{/i}} @@ -237,7 +226,6 @@
-
 <div class="row-fluid">
   <div class="span12">
@@ -260,6 +248,9 @@
   
+
+  

{{_i}}Variables in LESS{{/i}}

+

{{_i}}The default grid is built on a few variables for easy customization via LESS. All variables can be found in variables.less.{{/i}}

@@ -284,17 +275,24 @@ + + + + + + + + + +
20px {{_i}}Negative space between columns{{/i}}
@fluidGridColumnWidth6.382978723%{{_i}}Width of each fluid column{{/i}}
@fluidGridGutterWidth2.127659574%{{_i}}Negative space between fluid columns{{/i}}
-

{{_i}}Variables in LESS{{/i}}

-

{{_i}}Built into Bootstrap are a handful of variables for customizing the default 940px grid system, documented above. All variables for the grid are stored in variables.less.{{/i}}

-

{{_i}}How to customize{{/i}}

-

{{_i}}Modifying the grid means changing the three @grid* variables and recompiling Bootstrap. Change the grid variables in variables.less and use one of the four ways documented to recompile. If you're adding more columns, be sure to add the CSS for those in grid.less.{{/i}}

+

{{_i}}Modifying the grid means changing the three @grid* variables and recompiling Bootstrap. Change the grid variables in variables.less and use one of the four ways documented to recompile. If you're adding more columns, be sure to add the CSS for those in grid.less.{{/i}}

-

{{_i}}Staying responsive{{/i}}

-

{{_i}}Customization of the grid only works at the default level, the 940px grid. To maintain the responsive aspects of Bootstrap, you'll also have to customize the grids in responsive.less.{{/i}}

+

{{_i}}Staying responsive{{/i}}

+

{{_i}}Customization of the grid only works at the default level, the 940px grid. To maintain the responsive aspects of Bootstrap, you'll also have to manually customize the grids in responsive.less until a future update improves this.{{/i}}

@@ -308,7 +306,7 @@

{{_i}}Fixed layout{{/i}}

-

{{_i}}The default and simple 940px-wide, centered layout for just about any website or page provided by a single <div class="container">.{{/i}}

+

{{_i}}Provides a common fixed-width (and optionally responsive) layout with only <div class="container"> required.{{/i}}

@@ -321,7 +319,7 @@

{{_i}}Fluid layout{{/i}}

-

{{_i}}<div class="container-fluid"> gives flexible page structure, min- and max-widths, and a left-hand sidebar. It's great for apps and docs.{{/i}}

+

{{_i}}Create a fluid, two-column page with <div class="container-fluid">—great for applications and docs.{{/i}}

@@ -350,9 +348,18 @@

{{_i}}Responsive design Media queries for various devices and resolutions{{/i}}

- -

Responsive devices

-

{{_i}}What they do{{/i}}

+ {{! Enabling }} +

{{_i}}Enabling responsive features{{/i}}

+

{{_i}}Turn on responsive CSS in your project by including the proper meta tag and additional stylesheet within the <head> of your document. If you've compiled Bootstrap from the Customize page, you need only include the meta tag.{{/i}}

+
+<meta name="viewport" content="width=device-width, initial-scale=1.0">
+<link href="assets/css/bootstrap-responsive.css" rel="stylesheet">
+
+

{{_i}}Heads up!{{/i}} {{_i}} Bootstrap doesn't include responsive features by default at this time as not everything needs to be responsive. Instead of encouraging developers to remove this feature, we figure it best to enable it as needed.{{/i}}

+ + {{! About }} +

{{_i}}About responsive Bootstrap{{/i}}

+ Responsive devices

{{_i}}Media queries allow for custom CSS based on a number of conditions—ratios, widths, display type, etc—but usually focuses around min-width and max-width.{{/i}}

  • {{_i}}Modify the width of column in our grid{{/i}}
  • @@ -361,6 +368,7 @@

{{_i}}Use media queries responsibly and only as a start to your mobile audiences. For larger projects, do consider dedicated code bases and not layers of media queries.{{/i}}

+ {{! Supported }}

{{_i}}Supported devices{{/i}}

{{_i}}Bootstrap supports a handful of media queries in a single file to help make your projects more appropriate on different devices and screen resolutions. Here's what's included:{{/i}}

@@ -403,51 +411,24 @@
- -

{{_i}}Requires meta tag{{/i}}

-

{{_i}}To ensure devices display responsive pages properly, include the viewport meta tag.{{/i}}

-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- - -
- - -

{{_i}}Using the media queries{{/i}}

-

{{_i}}Bootstrap doesn't automatically include these media queries, but understanding and adding them is very easy and requires minimal setup. You have a few options for including the responsive features of Bootstrap:{{/i}}

-
    -
  1. {{_i}}Use the compiled responsive version, bootstrap-responsive.css{{/i}}
  2. -
  3. {{_i}}Add @import "responsive.less" and recompile Bootstrap{{/i}}
  4. -
  5. {{_i}}Modify and recompile responsive.less as a separate file{{/i}}
  6. -
-

{{_i}}Why not just include it? Truth be told, not everything needs to be responsive. Instead of encouraging developers to remove this feature, we figure it best to enable it.{{/i}}

-
-  /* {{_i}}Landscape phones and down{{/i}} */
-  @media (max-width: 480px) { ... }
+/* {{_i}}Landscape phones and down{{/i}} */
+@media (max-width: 480px) { ... }
 
-  /* {{_i}}Landscape phone to portrait tablet{{/i}} */
-  @media (max-width: 767px) { ... }
+/* {{_i}}Landscape phone to portrait tablet{{/i}} */
+@media (max-width: 767px) { ... }
 
-  /* {{_i}}Portrait tablet to landscape and desktop{{/i}} */
-  @media (min-width: 768px) and (max-width: 979px) { ... }
+/* {{_i}}Portrait tablet to landscape and desktop{{/i}} */
+@media (min-width: 768px) and (max-width: 979px) { ... }
 
-  /* {{_i}}Large desktop{{/i}} */
-  @media (min-width: 1200px) { ... }
+/* {{_i}}Large desktop{{/i}} */
+@media (min-width: 1200px) { ... }
 
-
- + {{! Responsive utility classes }}

{{_i}}Responsive utility classes{{/i}}

- -

{{_i}}What are they{{/i}}

-

{{_i}}For faster mobile-friendly development, use these basic utility classes for showing and hiding content by device.{{/i}}

-

{{_i}}When to use{{/i}}

-

{{_i}}Use on a limited basis and avoid creating entirely different versions of the same site. Instead, use them to complement each device's presentation.{{/i}}

-

{{_i}}For example, you might show a <select> element for nav on mobile layouts, but not on tablets or desktops.{{/i}}

- -

{{_i}}Support classes{{/i}}

-

{{_i}}Shown here is a table of the classes we support and their effect on a given media query layout (labeled by device). They can be found in responsive.less.{{/i}}

+

{{_i}}For faster mobile-friendly development, use these utility classes for showing and hiding content by device. Below is a table of the available classes and their effect on a given media query layout (labeled by device). They can be found in responsive.less.{{/i}}

@@ -496,7 +477,11 @@
-

{{_i}}Test case{{/i}}

+ +

{{_i}}When to use{{/i}}

+

{{_i}}Use on a limited basis and avoid creating entirely different versions of the same site. Instead, use them to complement each device's presentation.{{/i}}

+ +

{{_i}}Responsive utilities test case{{/i}}

{{_i}}Resize your browser or load on different devices to test the above classes.{{/i}}

{{_i}}Visible on...{{/i}}

{{_i}}Green checkmarks indicate that class is visible in your current viewport.{{/i}}

-- cgit v1.2.3 From 2c5ac562d2b26485378e4183fe880777bef56bea Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 5 Jun 2012 20:47:40 -0700 Subject: updated type section of base css --- docs/templates/pages/base-css.mustache | 237 ++++++++++++++++----------------- 1 file changed, 112 insertions(+), 125 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/base-css.mustache b/docs/templates/pages/base-css.mustache index 8b1e7c0c5..4cfe05db5 100644 --- a/docs/templates/pages/base-css.mustache +++ b/docs/templates/pages/base-css.mustache @@ -49,7 +49,7 @@
{{! Body copy .lead }} -

{{_i}}Lead body copy{{/i}}

+

{{_i}}Lead body copy{{/i}}

{{_i}}Make a paragraph stand out by adding .lead.{{/i}}

Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus.

@@ -57,80 +57,72 @@ {{! Using LESS }}

{{_i}}Built with Less{{/i}}

-

{{_i}}The typographic scale is based on two Less variables in variables.less file: @baseFontSize and @baseLineHeight. The first is the base font-size used throughout and the second is the base line-height.{{/i}}

-

{{_i}}We use those variables, and some math, to create the margins, paddings, and line-heights of all our type and more. Customize them and watch Bootstrap adapt as you go.{{/i}}

+

{{_i}}The typographic scale is based on two LESS variables in variables.less: @baseFontSize and @baseLineHeight. 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.{{/i}}

-
- {{! Misc Elements }} -

{{_i}}Emphasis, address, and abbreviation{{/i}}

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{{_i}}Element{{/i}}{{_i}}Usage{{/i}}{{_i}}Optional{{/i}}
- <strong> - - {{_i}}For emphasizing a snippet of text with important{{/i}} - - {{_i}}None{{/i}} -
- <em> - - {{_i}}For emphasizing a snippet of text with stress{{/i}} - - {{_i}}None{{/i}} -
- <abbr> - - {{_i}}Wraps abbreviations and acronyms to show the expanded version on hover{{/i}} - -

{{_i}}Include optional title attribute for expanded text{{/i}}

- {{_i}}Use .initialism class for uppercase abbreviations.{{/i}} -
- <address> - - {{_i}}For contact information for its nearest ancestor or the entire body of work{{/i}} - - {{_i}}Preserve formatting by ending all lines with <br>{{/i}} -
+
+ {{! Emphasis }} -

{{_i}}Using emphasis{{/i}}

+

{{_i}}Emphasis{{/i}}

+

{{_i}}Make use of HTML's default emphasis tags, <strong> and <em>.{{/i}}

+ +

<strong>

+

{{_i}}For emphasizing a snippet of text with important{{/i}}

+
+

The following snippet of text is rendered as bold text.

+
+
+<strong>rendered as bold text</strong>
+
+ +

<em>

+

{{_i}}For emphasizing a snippet of text with stress{{/i}}

+
+

The following snippet of text is rendered as italicized text.

+
+
+<em>rendered as italicized text</em>
+
+ +

{{_i}}Heads up!{{/i}} {{_i}}Feel free to use <b> and <i> in HTML5. <b> is meant to highlight words or phrases without conveying additional importance while <i> is mostly for voice, technical terms, etc.{{/i}}

+ + +
+ + + {{! Abbreviations }} +

{{_i}}Abbreviations{{/i}}

+

{{_i}}Stylized implemenation of HTML's <abbr> element for abbreviations and acronyms to show the expanded version on hover. Abbreviations with a title attribute have a light dotted bottom border and a help cursor on hover, providing additional context on hover.{{/i}}

+ +

<abbr>

+

{{_i}}For expanded text on long hover of an abbreviation, include the title attribute.{{/i}}

+
+

{{_i}}An abbreviation of the word attribute is attr.{{/i}}

+
+
+<abbr title="attribute">attr</abbr>
+
+ +

<abbr class="initialism">

+

{{_i}}Add .initialism to an abbreviation for a slightly smaller font-size.{{/i}}

-

Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Maecenas faucibus mollis interdum. Nulla vitae elit libero, a pharetra augue.

+

{{_i}}HTML is the best thing since sliced bread.{{/i}}

-

{{_i}}Note: Feel free to use <b> and <i> in HTML5. <b> is meant to highlight words or phrases without conveying additional importance while <i> is mostly for voice, technical terms, etc.{{/i}}

+
+<abbr title="attribute" class="initialism">attr</abbr>
+
+ + +
+ {{! Addresses }} -

{{_i}}Example addresses{{/i}}

-

{{_i}}Here are two examples of how the <address> tag can be used:{{/i}}

+

{{_i}}Addresses{{/i}}

+

{{_i}}Present contact information for the nearest ancestor or the entire body of work.{{/i}}

+ +

<address>

+

{{_i}}Preserve formatting by ending all lines with <br>.{{/i}}

Twitter, Inc.
@@ -143,81 +135,77 @@ {{_i}}first.last@gmail.com{{/i}}
+
+<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>{{_i}}Full Name{{/i}}</strong><br>
+  <a href="mailto:#">{{_i}}first.last@gmail.com{{/i}}</a>
+</address>
+
- {{! Abbreviations }} -

{{_i}}Example abbreviations{{/i}}

-

{{_i}}Abbreviations with a title attribute have a light dotted bottom border and a help cursor on hover. This gives users extra indication something will be shown on hover.{{/i}}

-
-

{{_i}}An abbreviation of the word attribute is attr.{{/i}}

-
-

{{_i}}Add the initialism class to an abbreviation for a slightly smaller font-size.{{/i}}

-
-

{{_i}}HTML is the best thing since sliced bread.{{/i}}

-
-
+
+ {{! Blockquotes }}

{{_i}}Blockquotes{{/i}}

- - - - - - - - - - - - - - - - - - - - -
{{_i}}Element{{/i}}{{_i}}Usage{{/i}}{{_i}}Optional{{/i}}
- <blockquote> - - {{_i}}Block-level element for quoting content from another source{{/i}} - -

{{_i}}Add cite attribute for source URL{{/i}}

- {{_i}}Use .pull-left and .pull-right classes for floated options{{/i}} -
- <small> - - {{_i}}Optional element for adding a user-facing citation, typically an author with title of work{{/i}} - - {{_i}}Place the <cite> around the title or name of source{{/i}} -
-

{{_i}}To include a blockquote, wrap <blockquote> around any HTML as the quote. For straight quotes we recommend a <p>.{{/i}}

-

{{_i}}Include an optional <small> element to cite your source and you'll get an em dash &mdash; before it for styling purposes.{{/i}}

+

{{_i}}For quoting blocks of content from another source within your document.{{/i}}

+ +

{{_i}}Default blockqoute{{/i}}

+

{{_i}}Wrap <blockquote> around any HTML as the quote. For straight quotes we recommend a <p>.{{/i}}

+
+
+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

+
+
 <blockquote>
-  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante venenatis.</p>
-  <small>{{_i}}Someone famous{{/i}}</small>
+  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
 </blockquote>
 
-

{{_i}}Example blockquotes{{/i}}

-

{{_i}}Default blockquotes are styled as such:{{/i}}

+ +

{{_i}}Blockquote options{{/i}}

+

{{_i}}Style and content changes for simple variations on a standard blockquote.{{/i}}

+ +

{{_i}}Naming a source{{/i}}

+

{{_i}}Add <small> tag for identifying the source. Wrap the name of the source work in <cite>.{{/i}}

-

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante venenatis.

- {{_i}}Someone famous in Body of work{{/i}} +

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

+ {{_i}}Someone famous in Source Title{{/i}}
-

{{_i}}To float your blockquote to the right, add class="pull-right":{{/i}}

+
+<blockquote>
+  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
+  <small>{{_i}}Someone famous <cite title="Source Title">Source Title</cite>{{/i}}</small>
+</blockquote>
+
+ +

{{_i}}Alternate displays{{/i}}

+

{{_i}}Use .pull-left and .pull-right classes for floated, right-aligned blockquote content.{{/i}}

-

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante venenatis.

- {{_i}}Someone famous in Body of work{{/i}} +

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

+ {{_i}}Someone famous in Source Title{{/i}}
+
+<blockquote class="pull-right">
+  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
+  <small>{{_i}}Someone famous <cite title="Source Title">Source Title</cite>{{/i}}</small>
+</blockquote>
+
+ + +
-

{{_i}}Lists{{/i}}

@@ -337,7 +325,6 @@ <dd>...</dd> </dl> -

{{_i}}Heads up!{{/i}} {{_i}}Horizontal description lists will truncate terms that are too long to fit in the left column fix text-overflow. In narrower viewports, they will change to the default stacked layout.{{/i}} -- cgit v1.2.3 From 10d68406fe5aa8e20183d02116f1a6e87b85a788 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 5 Jun 2012 23:59:50 -0700 Subject: examples-wrap tables --- docs/templates/pages/base-css.mustache | 360 +++++++++++++++++---------------- 1 file changed, 186 insertions(+), 174 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/base-css.mustache b/docs/templates/pages/base-css.mustache index 4cfe05db5..595f4b5a9 100644 --- a/docs/templates/pages/base-css.mustache +++ b/docs/templates/pages/base-css.mustache @@ -475,7 +475,7 @@

{{_i}}Table options{{/i}}

- + @@ -524,203 +524,215 @@

1. {{_i}}Default table styles{{/i}}

{{_i}}Tables are automatically styled with only a few borders to ensure readability and maintain structure. With 2.0, the .table class is required.{{/i}}

+
+
{{_i}}Name{{/i}} {{_i}}Class{{/i}}
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
#{{_i}}First Name{{/i}}{{_i}}Last Name{{/i}}{{_i}}Username{{/i}}
1MarkOtto@mdo
2JacobThornton@fat
3Larrythe Bird@twitter
+
{{! /example }}
 <table class="table">
   …
-</table>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#{{_i}}First Name{{/i}}{{_i}}Last Name{{/i}}{{_i}}Username{{/i}}
1MarkOtto@mdo
2JacobThornton@fat
3Larrythe Bird@twitter
- +</table> +

2. {{_i}}Striped table{{/i}}

{{_i}}Get a little fancy with your tables by adding zebra-striping—just add the .table-striped class.{{/i}}

{{_i}}Note: Striped tables use the :nth-child CSS selector and is not available in IE7-IE8.{{/i}}

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
#{{_i}}First Name{{/i}}{{_i}}Last Name{{/i}}{{_i}}Username{{/i}}
1MarkOtto@mdo
2JacobThornton@fat
3Larrythe Bird@twitter
+
{{! /example }}
 <table class="table table-striped">
   …
-</table>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#{{_i}}First Name{{/i}}{{_i}}Last Name{{/i}}{{_i}}Username{{/i}}
1MarkOtto@mdo
2JacobThornton@fat
3Larrythe Bird@twitter
+</table> +

3. {{_i}}Bordered table{{/i}}

{{_i}}Add borders around the entire table and rounded corners for aesthetic purposes.{{/i}}

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
#{{_i}}First Name{{/i}}{{_i}}Last Name{{/i}}{{_i}}Username{{/i}}
1MarkOtto@mdo
MarkOtto@TwBootstrap
2JacobThornton@fat
3Larry the Bird@twitter
+
{{! /example }}
 <table class="table table-bordered">
   …
-</table>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#{{_i}}First Name{{/i}}{{_i}}Last Name{{/i}}{{_i}}Username{{/i}}
1MarkOtto@mdo
MarkOtto@TwBootstrap
2JacobThornton@fat
3Larry the Bird@twitter
+</table> +

4. {{_i}}Condensed table{{/i}}

{{_i}}Make your tables more compact by adding the .table-condensed class to cut table cell padding in half (from 8px to 4px).{{/i}}

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
#{{_i}}First Name{{/i}}{{_i}}Last Name{{/i}}{{_i}}Username{{/i}}
1MarkOtto@mdo
2JacobThornton@fat
3Larry the Bird@twitter
+
{{! /example }}
 <table class="table table-condensed">
   …
-</table>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#{{_i}}First Name{{/i}}{{_i}}Last Name{{/i}}{{_i}}Username{{/i}}
1MarkOtto@mdo
2JacobThornton@fat
3Larry the Bird@twitter
+</table> +

5. {{_i}}Combine them all!{{/i}}

{{_i}}Feel free to combine any of the table classes to achieve different looks by utilizing any of the available classes.{{/i}}

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{{_i}}Full name{{/i}}
#{{_i}}First Name{{/i}}{{_i}}Last Name{{/i}}{{_i}}Username{{/i}}
1MarkOtto@mdo
2JacobThornton@fat
3Larry the Bird@twitter
+
{{! /example }}
 <table class="table table-striped table-bordered table-condensed">
   ...
-</table>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{{_i}}Full name{{/i}}
#{{_i}}First Name{{/i}}{{_i}}Last Name{{/i}}{{_i}}Username{{/i}}
1MarkOtto@mdo
2JacobThornton@fat
3Larry the Bird@twitter
+</table> + + @@ -789,7 +801,7 @@

{{_i}}Example forms using just form controls, no extra markup{{/i}}

{{_i}}Basic form{{/i}}

{{_i}}Smart and lightweight defaults without extra markup.{{/i}}

- +

{{_i}}Example block-level help text here.{{/i}}

@@ -797,7 +809,7 @@ {{_i}}Check me out{{/i}} - + {{! /example }}
 <form class="well">
   <label>{{_i}}Label name{{/i}}</label>
@@ -812,10 +824,10 @@
 
   

{{_i}}Search form{{/i}}

{{_i}}Add .form-search to the form and .search-query to the input.{{/i}}

- + {{! /example }}
 <form class="well form-search">
   <input type="text" class="input-medium search-query">
@@ -825,14 +837,14 @@
 
   

{{_i}}Inline form{{/i}}

{{_i}}Add .form-inline to finesse the vertical alignment and spacing of form controls.{{/i}}

-
+ -
+ {{! /example }}
 <form class="well form-inline">
   <input type="text" class="input-small" placeholder="{{_i}}Email{{/i}}">
-- 
cgit v1.2.3


From 2ecbd36cbf0cb8b2e894b2e36400e59a1c88eb1c Mon Sep 17 00:00:00 2001
From: Mark Otto 
Date: Wed, 6 Jun 2012 00:48:31 -0700
Subject: add back left rail nav, tweak colors

---
 docs/templates/layout.mustache            | 125 +++++++++++++++++++-----------
 docs/templates/pages/base-css.mustache    |  13 ----
 docs/templates/pages/components.mustache  |  24 ------
 docs/templates/pages/javascript.mustache  |  22 ------
 docs/templates/pages/scaffolding.mustache |  13 ----
 5 files changed, 79 insertions(+), 118 deletions(-)

(limited to 'docs/templates')

diff --git a/docs/templates/layout.mustache b/docs/templates/layout.mustache
index 3e8448d19..1d23c8370 100644
--- a/docs/templates/layout.mustache
+++ b/docs/templates/layout.mustache
@@ -39,51 +39,84 @@
     {{/production}}
   
 
-  
-
-
-  
-    
-
+
{{! Addresses }} @@ -137,7 +137,7 @@
-
+
{{! Blockquotes }} @@ -191,7 +191,7 @@
-
+
@@ -731,27 +731,10 @@

{{_i}}Forms{{/i}}

-

{{_i}}Flexible HTML and CSS{{/i}}

-

{{_i}}The best part about forms in Bootstrap is that all your inputs and controls look great no matter how you build them in your markup. No superfluous HTML is required, but we provide the patterns for those who require it.{{/i}}

-

{{_i}}More complicated layouts come with succinct and scalable classes for easy styling and event binding, so you're covered at every step.{{/i}}

- -

{{_i}}Four layouts included{{/i}}

-

{{_i}}Bootstrap comes with support for four types of form layouts:{{/i}}

- -

{{_i}}Different types of form layouts require some changes to markup, but the controls themselves remain and behave the same.{{/i}}

- -

{{_i}}Control states and more{{/i}}

-

{{_i}}Bootstrap's forms include styles for all the base form controls like input, textarea, and select you'd expect. But it also comes with a number of custom components like appended and prepended inputs and support for lists of checkboxes.{{/i}}

-

{{_i}}States like error, warning, and success are included for each type of form control. Also included are styles for disabled controls.{{/i}}

- - -

{{_i}}Four types of forms{{/i}}

-

{{_i}}Bootstrap provides simple markup and styles for four styles of common web forms.{{/i}}

+

{{_i}}Controls and layouts{{/i}}

+

{{_i}}Forms include styles for all the base form controls like input, textarea, and select you'd expect. There are also a number of custom components like appended and prepended inputs and support for lists of checkboxes.{{/i}}

+

{{_i}}Bootstrap provides simple markup and styles for four styles of common web forms. Each layout requires small changes to surrounding markup, but the controls themselves remain and behave the same.{{/i}}

+

{{_i}}Error, warning, and success states are included for form controls, as wel as disabled.{{/i}}

@@ -784,7 +767,6 @@
-

{{_i}}Example forms using just form controls, no extra markup{{/i}}

{{_i}}Basic form{{/i}}

{{_i}}Smart and lightweight defaults without extra markup.{{/i}}

diff --git a/docs/templates/pages/index.mustache b/docs/templates/pages/index.mustache index a755ced78..e7f19fa77 100644 --- a/docs/templates/pages/index.mustache +++ b/docs/templates/pages/index.mustache @@ -35,7 +35,7 @@ -
+

{{_i}}Designed for everyone, everywhere.{{/i}}

@@ -77,7 +77,7 @@
-
+

{{_i}}Built with Bootstrap.{{/i}}

diff --git a/docs/templates/pages/less.mustache b/docs/templates/pages/less.mustache index 72b7f3bb3..fe33cd247 100644 --- a/docs/templates/pages/less.mustache +++ b/docs/templates/pages/less.mustache @@ -177,7 +177,7 @@ @tableBorder - ddd + #ddd -- cgit v1.2.3 From 860a96939a58831228c2ea90055ca82cd9c84698 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 7 Jun 2012 10:58:15 -0700 Subject: fix grid tooltips, tweaks --- docs/templates/pages/index.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/index.mustache b/docs/templates/pages/index.mustache index e7f19fa77..bee3fc19c 100644 --- a/docs/templates/pages/index.mustache +++ b/docs/templates/pages/index.mustache @@ -104,4 +104,4 @@ - \ No newline at end of file + -- cgit v1.2.3 From ff6dd0cf56c1b50b7fa7cba35aab4d13cb251f05 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 7 Jun 2012 14:01:03 -0700 Subject: nav and content tweaks --- docs/templates/pages/scaffolding.mustache | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/scaffolding.mustache b/docs/templates/pages/scaffolding.mustache index ee447da3d..8eabe21cf 100644 --- a/docs/templates/pages/scaffolding.mustache +++ b/docs/templates/pages/scaffolding.mustache @@ -62,24 +62,22 @@
1
1
1
-
1
-
1
-
4
+
2
4
4
4
-
8
+
6
-
6
-
6
+
5
+
5
-
12
+
10
-- cgit v1.2.3 From df869f1eb074f5c2baaaf744f333c5f5d6ce0bee Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 7 Jun 2012 21:45:37 -0700 Subject: fix grids --- docs/templates/pages/scaffolding.mustache | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/scaffolding.mustache b/docs/templates/pages/scaffolding.mustache index 8eabe21cf..3ccc87a2b 100644 --- a/docs/templates/pages/scaffolding.mustache +++ b/docs/templates/pages/scaffolding.mustache @@ -70,7 +70,7 @@
4
-
6
+
6
5
@@ -96,14 +96,14 @@
4
-
4 offset 4
+
4 offset 2
-
3 offset 3
-
3 offset 3
+
3 offset 2
+
3 offset 2
-
8 offset 4
+
6 offset 4
@@ -118,13 +118,13 @@
     

{{_i}}Example{{/i}}

{{_i}}Here two nested .span4 columns are placed within a .span8.{{/i}}

-
+
{{_i}}Level 1 of column{{/i}}
-
+
{{_i}}Level 2{{/i}}
-
+
{{_i}}Level 2{{/i}}
@@ -132,11 +132,11 @@
 <div class="row">
-  <div class="span8">
+  <div class="span10">
     {{_i}}Level 1 column{{/i}}
     <div class="row">
-      <div class="span4">{{_i}}Level 2{{/i}}</div>
-      <div class="span4">{{_i}}Level 2{{/i}}</div>
+      <div class="span5">{{_i}}Level 2{{/i}}</div>
+      <div class="span5">{{_i}}Level 2{{/i}}</div>
     </div>
   </div>
 </div>
-- 
cgit v1.2.3


From c1c7528dd9f0617cb65bc5fac7aa6b2cfc2eb822 Mon Sep 17 00:00:00 2001
From: Mark Otto 
Date: Thu, 7 Jun 2012 21:48:03 -0700
Subject: drop the side nav, restore topbar

---
 docs/templates/layout.mustache | 44 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

(limited to 'docs/templates')

diff --git a/docs/templates/layout.mustache b/docs/templates/layout.mustache
index 3c0d2b4ca..779e10663 100644
--- a/docs/templates/layout.mustache
+++ b/docs/templates/layout.mustache
@@ -41,6 +41,50 @@
 
   
 
+    
+    
+
     
    -- cgit v1.2.3 From bba0b34c36ae54e923cf89fe17914e715aaa9746 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 7 Jun 2012 22:10:36 -0700 Subject: restore top navs entirely --- docs/templates/layout.mustache | 8 ++++---- docs/templates/pages/base-css.mustache | 10 ++++++++++ docs/templates/pages/components.mustache | 27 +++++++++++++++++++++++++++ docs/templates/pages/download.mustache | 20 ++++++++------------ docs/templates/pages/index.mustache | 14 +++++++------- docs/templates/pages/javascript.mustache | 16 ++++++++++++++++ docs/templates/pages/less.mustache | 14 ++++---------- docs/templates/pages/scaffolding.mustache | 10 ++++++++++ 8 files changed, 86 insertions(+), 33 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/layout.mustache b/docs/templates/layout.mustache index 779e10663..f48878014 100644 --- a/docs/templates/layout.mustache +++ b/docs/templates/layout.mustache @@ -45,7 +45,7 @@ ================================================== --> {{! /container }} -- cgit v1.2.3 From aff3694f28946a0640f15dc07591dbfb332fcbaf Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 9 Jun 2012 12:58:55 -0700 Subject: remove mention of prettify from docs, fix docs subnav width when fixed --- docs/templates/pages/base-css.mustache | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/base-css.mustache b/docs/templates/pages/base-css.mustache index 9010bef7a..ee95ac755 100644 --- a/docs/templates/pages/base-css.mustache +++ b/docs/templates/pages/base-css.mustache @@ -355,19 +355,6 @@

{{_i}}Note: Be sure to keep code within <pre> tags as close to the left as possible; it will render all tabs.{{/i}}

{{_i}}You may optionally add the .pre-scrollable class which will set a max-height of 350px and provide a y-axis scrollbar.{{/i}}

- -

Google Prettify

-

Take the same <pre> element and add two optional classes for enhanced rendering.

-
-<p>{{_i}}Sample text here...{{/i}}</p>
-
-
-<pre class="prettyprint
-     linenums">
-  &lt;p&gt;{{_i}}Sample text here...{{/i}}&lt;/p&gt;
-</pre>
-
-

{{_i}}Download google-code-prettify and view the readme for how to use.{{/i}}

@@ -379,6 +366,8 @@

{{_i}}Tables For, you guessed it, tabular data{{/i}}

+ +

{{_i}}Table markup{{/i}}

-- cgit v1.2.3 From ca63ea2f26facca1510390f85eed77d55f8f2b89 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 9 Jun 2012 13:15:28 -0700 Subject: overhaul tables docs for more streamlined content --- docs/templates/pages/base-css.mustache | 299 ++++++++++++--------------------- 1 file changed, 105 insertions(+), 194 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/base-css.mustache b/docs/templates/pages/base-css.mustache index ee95ac755..5910d66ba 100644 --- a/docs/templates/pages/base-css.mustache +++ b/docs/templates/pages/base-css.mustache @@ -366,150 +366,8 @@

{{_i}}Tables For, you guessed it, tabular data{{/i}}

- - -

{{_i}}Table markup{{/i}}

- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{{_i}}Tag{{/i}}{{_i}}Description{{/i}}
- <table> - - {{_i}}Wrapping element for displaying data in a tabular format{{/i}} -
- <thead> - - {{_i}}Container element for table header rows (<tr>) to label table columns{{/i}} -
- <tbody> - - {{_i}}Container element for table rows (<tr>) in the body of the table{{/i}} -
- <tr> - - {{_i}}Container element for a set of table cells (<td> or <th>) that appears on a single row{{/i}} -
- <td> - - {{_i}}Default table cell{{/i}} -
- <th> - - {{_i}}Special table cell for column (or row, depending on scope and placement) labels{{/i}}
- {{_i}}Must be used within a <thead>{{/i}} -
- <caption> - - {{_i}}Description or summary of what the table holds, especially useful for screen readers{{/i}} -
-
-<table>
-  <thead>
-    <tr>
-      <th>…</th>
-      <th>…</th>
-    </tr>
-  </thead>
-  <tbody>
-    <tr>
-      <td>…</td>
-      <td>…</td>
-    </tr>
-  </tbody>
-</table>
-
- - -

{{_i}}Table options{{/i}}

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{{_i}}Name{{/i}}{{_i}}Class{{/i}}{{_i}}Description{{/i}}
{{_i}}Default{{/i}}{{_i}}None{{/i}}{{_i}}No styles, just columns and rows{{/i}}
{{_i}}Basic{{/i}} - .table - {{_i}}Only horizontal lines between rows{{/i}}
{{_i}}Bordered{{/i}} - .table-bordered - {{_i}}Rounds corners and adds outer border{{/i}}
{{_i}}Zebra-stripe{{/i}} - .table-striped - {{_i}}Adds light gray background color to odd rows (1, 3, 5, etc){{/i}}
{{_i}}Condensed{{/i}} - .table-condensed - {{_i}}Cuts vertical padding in half, from 8px to 4px, within all td and th elements{{/i}}
- - -

{{_i}}Example tables{{/i}}

- -

1. {{_i}}Default table styles{{/i}}

-

{{_i}}Tables are automatically styled with only a few borders to ensure readability and maintain structure. With 2.0, the .table class is required.{{/i}}

+

{{_i}}Default styles{{/i}}

+

{{_i}}For basic styling—light padding and only horizontal dividers—add the base class .table to any <table>.{{/i}}

@@ -548,9 +406,15 @@ </table> -

2. {{_i}}Striped table{{/i}}

-

{{_i}}Get a little fancy with your tables by adding zebra-striping—just add the .table-striped class.{{/i}}

-

{{_i}}Note: Striped tables use the :nth-child CSS selector and is not available in IE7-IE8.{{/i}}

+ +
+ + +

{{_i}}Optional classes{{/i}}

+

{{_i}}Add any of the follow classes to the .table base class.{{/i}}

+ +

{{_i}}.table-striped{{/i}}

+

{{_i}}Adds zebra-striping to any table row within the <tbody> via the :nth-child CSS selector (not available in IE7-IE8).{{/i}}

@@ -589,9 +453,8 @@ </table> - -

3. {{_i}}Bordered table{{/i}}

-

{{_i}}Add borders around the entire table and rounded corners for aesthetic purposes.{{/i}}

+

{{_i}}.table-bordered{{/i}}

+

{{_i}}Add borders and rounded corners to the table.{{/i}}

@@ -634,8 +497,8 @@ </table> -

4. {{_i}}Condensed table{{/i}}

-

{{_i}}Make your tables more compact by adding the .table-condensed class to cut table cell padding in half (from 8px to 4px).{{/i}}

+

{{_i}}.table-condensed{{/i}}

+

{{_i}}Makes tables more compact by cutting cell padding in half.{{/i}}

@@ -674,48 +537,96 @@ -

5. {{_i}}Combine them all!{{/i}}

-

{{_i}}Feel free to combine any of the table classes to achieve different looks by utilizing any of the available classes.{{/i}}

-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{{_i}}Full name{{/i}}
#{{_i}}First Name{{/i}}{{_i}}Last Name{{/i}}{{_i}}Username{{/i}}
1MarkOtto@mdo
2JacobThornton@fat
3Larry the Bird@twitter
-
{{! /example }} -
-<table class="table table-striped table-bordered table-condensed">
-  ...
+  
+ + +

{{_i}}Supported table markup{{/i}}

+

{{_i}}List of supported table HTML elements and how they should be used.{{/i}}

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{{_i}}Tag{{/i}}{{_i}}Description{{/i}}
+ <table> + + {{_i}}Wrapping element for displaying data in a tabular format{{/i}} +
+ <thead> + + {{_i}}Container element for table header rows (<tr>) to label table columns{{/i}} +
+ <tbody> + + {{_i}}Container element for table rows (<tr>) in the body of the table{{/i}} +
+ <tr> + + {{_i}}Container element for a set of table cells (<td> or <th>) that appears on a single row{{/i}} +
+ <td> + + {{_i}}Default table cell{{/i}} +
+ <th> + + {{_i}}Special table cell for column (or row, depending on scope and placement) labels{{/i}}
+ {{_i}}Must be used within a <thead>{{/i}} +
+ <caption> + + {{_i}}Description or summary of what the table holds, especially useful for screen readers{{/i}} +
+
+<table>
+  <thead>
+    <tr>
+      <th>…</th>
+      <th>…</th>
+    </tr>
+  </thead>
+  <tbody>
+    <tr>
+      <td>…</td>
+      <td>…</td>
+    </tr>
+  </tbody>
 </table>
 
-- cgit v1.2.3 From c65006601e65cbfa23611f55c0af314fc762d84d Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 9 Jun 2012 19:15:46 -0700 Subject: overhaul forms docs to simplify presentation of everything, reduce text, and increase visibility of examples --- docs/templates/pages/base-css.mustache | 755 ++++++++++++++++++--------------- 1 file changed, 409 insertions(+), 346 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/base-css.mustache b/docs/templates/pages/base-css.mustache index 5910d66ba..24c5ae359 100644 --- a/docs/templates/pages/base-css.mustache +++ b/docs/templates/pages/base-css.mustache @@ -641,48 +641,11 @@

{{_i}}Forms{{/i}}

-

{{_i}}Controls and layouts{{/i}}

-

{{_i}}Forms include styles for all the base form controls like input, textarea, and select you'd expect. There are also a number of custom components like appended and prepended inputs and support for lists of checkboxes.{{/i}}

-

{{_i}}Bootstrap provides simple markup and styles for four styles of common web forms. Each layout requires small changes to surrounding markup, but the controls themselves remain and behave the same.{{/i}}

-

{{_i}}Error, warning, and success states are included for form controls, as wel as disabled.{{/i}}

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{{_i}}Name{{/i}}{{_i}}Class{{/i}}{{_i}}Description{{/i}}
{{_i}}Vertical (default){{/i}}.form-vertical ({{_i}}not required{{/i}}){{_i}}Stacked, left-aligned labels over controls{{/i}}
{{_i}}Inline{{/i}}.form-inline{{_i}}Left-aligned label and inline-block controls for compact style{{/i}}
{{_i}}Search{{/i}}.form-search{{_i}}Extra-rounded text input for a typical search aesthetic{{/i}}
{{_i}}Horizontal{{/i}}.form-horizontal{{_i}}Float left, right-aligned labels on same line as controls{{/i}}
- -

{{_i}}Example forms using just form controls, no extra markup{{/i}}

-

{{_i}}Basic form{{/i}}

-

{{_i}}Smart and lightweight defaults without extra markup.{{/i}}

+

{{_i}}Default styles{{/i}}

+

{{_i}}Individual form controls receive styling, but without any required base class on the <form> or large changes in markup. Results in stacked, left-aligned labels on top of form controls.{{/i}}

- +

{{_i}}Example block-level help text here.{{/i}}

-

{{_i}}Example markup{{/i}}

-

{{_i}}Given the above example form layout, here's the markup associated with the first input and control group. The .control-group, .control-label, and .controls classes are all required for styling.{{/i}}

 <form class="form-horizontal">
-  <fieldset>
-    <legend>{{_i}}Legend text{{/i}}</legend>
-    <div class="control-group">
-      <label class="control-label" for="input01">{{_i}}Text input{{/i}}</label>
-      <div class="controls">
-        <input type="text" class="input-xlarge" id="input01">
-        <p class="help-block">{{_i}}Supporting help text{{/i}}</p>
-      </div>
+  <div class="control-group">
+    <label class="control-label" for="">{{_i}}Email{{/i}}</label>
+    <div class="controls">
+      <input type="text" placeholder="{{_i}}Email{{/i}}">
     </div>
-  </fieldset>
+  </div>
+  <div class="control-group">
+    <label class="control-label" for="">{{_i}}Password{{/i}}</label>
+    <div class="controls">
+      <input type="password" placeholder="{{_i}}Password{{/i}}">
+    </div>
+  </div>
+  <div class="control-group">
+    <div class="controls">
+      <label class="checkbox">
+        <input type="checkbox"> {{_i}}Remember me{{/i}}
+      </label>
+      <button type="submit" class="btn">{{_i}}Sign in{{/i}}</button>
+    </div>
+  </div>
 </form>
 
-
-

{{_i}}Form control states{{/i}}

-

{{_i}}Bootstrap features styles for browser-supported focused and disabled states. We remove the default Webkit outline and apply a box-shadow in its place for :focus.{{/i}}

-
-

{{_i}}Form validation{{/i}}

-

{{_i}}It also includes validation styles for errors, warnings, and success. To use, add the error class to the surrounding .control-group.{{/i}}

+
+ + +

{{_i}}Supported form controls{{/i}}

+

{{_i}}Examples of standard form controls supported in an example form layout.{{/i}}

+ +

{{_i}}Inputs{{/i}}

+

{{_i}}Most common form control, text-based input fields. Includes support for all HTML5 types: text, password, datetime, datetime-local, date, month, time, week, number, email, url, search, tel, and color.{{/i}}

+

{{_i}}Requires the use of a specified type at all times.{{/i}}

+
+ +
-<fieldset
-  class="control-group error">
-  …
-</fieldset>
+<input type="text" placeholder="Text input">
 
-
-
-
- -
- -
-
-
- -
- Some value here -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- - {{_i}}Something may have gone wrong{{/i}} -
-
-
- -
- - {{_i}}Please correct the error{{/i}} -
-
-
- -
- - {{_i}}Woohoo!{{/i}} -
-
-
- -
- - {{_i}}Woohoo!{{/i}} -
-
-
- - -
-
+

{{_i}}Textarea{{/i}}

+

{{_i}}Form control which supports multiple lines of text. Change row attribute as necessary.{{/i}}

+ +
+
+<textarea id="textarea" rows="3"></textarea>
+
+ +

{{_i}}Checkboxes and radios{{/i}}

+

{{_i}}Checkboxes are for selecting one or several options in a list while radios are for selecting one option from many.{{/i}}

+

{{_i}}Default (stacked){{/i}}

+
+ +
+ + +
+
+<label class="checkbox">
+  <input type="checkbox" value="">
+  {{_i}}Option one is this and that—be sure to include why it's great{{/i}}
+</label>
+
+<label class="radio">
+  <input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked>
+  {{_i}}Option one is this and that—be sure to include why it's great{{/i}}
+</label>
+<label class="radio">
+  <input type="radio" name="optionsRadios" id="optionsRadios2" value="option2">
+  {{_i}}Option two can be something else and selecting it will deselect option one{{/i}}
+</label>
+
+ +

{{_i}}Inline checkboxes{{/i}}

+

{{_i}}Add the .inline class to a series of checkboxes or radios for controls appear on the same line.{{/i}}

+
+ + + +
+
+<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>
+
+ +

{{_i}}Selects{{/i}}

+

{{_i}}Use the default option or specify a multiple="multiple" to show multiple options at once.{{/i}}

+
+ +
+ +
+
+<select>
+  <option>something</option>
+  <option>2</option>
+  <option>3</option>
+  <option>4</option>
+  <option>5</option>
+</select>
+
+<select>
+  <option>1</option>
+  <option>2</option>
+  <option>3</option>
+  <option>4</option>
+  <option>5</option>
+</select>
+
+ + +
-

{{_i}}Extending form controls{{/i}}

-

{{_i}}Prepend & append inputs{{/i}}

-

{{_i}}Input groups—with appended or prepended text—provide an easy way to give more context for your inputs. Great examples include the @ sign for Twitter usernames or $ for finances.{{/i}}

-
-

{{_i}}Checkboxes and radios{{/i}}

-

{{_i}}Up to v1.4, Bootstrap required extra markup around checkboxes and radios to stack them. Now, it's a simple matter of repeating the <label class="checkbox"> that wraps the <input type="checkbox">.{{/i}}

-

{{_i}}Inline checkboxes and radios are also supported. Just add .inline to any .checkbox or .radio and you're done.{{/i}}

-
-

{{_i}}Inline forms and append/prepend{{/i}}

-

{{_i}}To use prepend or append inputs in an inline form, be sure to place the .add-on and input on the same line, without spaces.{{/i}}

-
-

{{_i}}Form help text{{/i}}

-

{{_i}}To add help text for your form inputs, include inline help text with <span class="help-inline"> or a help text block with <p class="help-block"> after the input element.{{/i}}

- -
-
-
- -
- - - - - - -

{{_i}}Use the same .span* classes from the grid system for input sizes.{{/i}}

-
-
-
- -
- - - -

{{_i}}You may also use static classes that don't map to the grid, adapt to the responsive CSS styles, or account for varying types of controls (e.g., input vs. select).{{/i}}

-
-
-
- -
-
- @ -
-

{{_i}}Here's some help text{{/i}}

-
-
-
- -
-
- .00 -
- {{_i}}Here's more help text{{/i}} -
-
-
- -
-
- $.00 -
-
-
-
- -
-
- -
-
-
-
- -
-
- -
-
-
-
- -
- - - -
-
-
- -
- - - -

{{_i}}Note: Labels surround all the options for much larger click areas and a more usable form.{{/i}}

-
+

{{_i}}Adding on top of existing browser controls, Bootstrap includes other useful form components.{{/i}}

+ +

{{_i}}Prepended and appended inputs{{/i}}

+

{{_i}}Add text or buttons before or after any text-based input.{{/i}}

+ +

{{_i}}Default options{{/i}}

+

{{_i}}Wrap a .add-on and an input with one of two classes to prepend or append text to an input.{{/i}}

+ +
+ @ +
+
+
+ .00 +
+ +
+<div class="input-prepend">
+  <span class="add-on">@</span><input class="span2" id="prependedInput" size="16" type="text" placeholder="{{_i}}Username{{/i}}">
+</div>
+<div class="input-append">
+  <input class="span2" id="appendedInput" size="16" type="text"><span class="add-on">.00</span>
+</div>
+
+ +

{{_i}}Combined{{/i}}

+

{{_i}}Use both classes and two instances of .add-on to prepend and append an input.{{/i}}

+
+
+ $.00 +
+
+
+<div class="input-prepend input-append">
+  <span class="add-on">$</span><input class="span2" id="appendedPrependedInput" size="16" type="text"><span class="add-on">.00</span>
+</div>
+
+ +

{{_i}}Buttons instead of text{{/i}}

+

{{_i}}Instead of a <span> with text, use a .btn to attach a button (or two) to an input.{{/i}}

+
+
+ +
+
+
+ +
+
+
+<div class="input-append">
+  <input class="span2" id="appendedInputButton" size="16" type="text"><button class="btn" type="button">Go!</button>
+</div>
+
+<div class="input-append">
+  <input class="span2" id="appendedInputButtons" size="16" type="text"><button class="btn" type="button">Search</button><button class="btn" type="button">Options</button>
+</div>
+
+ +

{{_i}}Control sizing{{/i}}

+

{{_i}}Use relative sizing classes like .input-large or match your inputs to the grid column sizes using .span* classes.{{/i}}

+ +

{{_i}}Relative sizing{{/i}}

+
+
+ + + + + + +
+
+
+<input class="input-mini" type="text">
+<input class="input-small" type="text">
+<input class="input-medium" type="text">
+<input class="input-large" type="text">
+<input class="input-xlarge" type="text">
+<input class="input-xxlarge" type="text">
+
+ +

{{_i}}Grid sizing{{/i}}

+

{{_i}}Use .span1 to .span12 for inputs that match the same sizes of the grid columns.{{/i}}

+
+
+ + + + + + +
+
+
+<input class="span1" type="text">
+<input class="span2" type="text">
+<input class="span3" type="text">
+
+ +

{{_i}}Uneditable inputs{{/i}}

+

{{_i}}Present data in a form that's not editable without using actual form markup.{{/i}}

+
+ Some value here +
+
+  <span class="input-xlarge uneditable-input">Some value here</span>
+
+ +

{{_i}}Form actions{{/i}}

+

{{_i}}End a form with a group of actions (buttons). When placed within a .form-horizontal, the buttons will automatically indent to line up with the form controls.{{/i}}

+
+
+ + +
+
+
+<div class="form-actions">
+  <button type="submit" class="btn btn-primary">{{_i}}Save changes{{/i}}</button>
+  <button class="btn">{{_i}}Cancel{{/i}}</button>
+</div>
+
+ +

{{_i}}Help text{{/i}}

+

{{_i}}Inline and block level support for help text that appears around form controls.{{/i}}

+

{{_i}}Inline help{{/i}}

+
+ Inline help text +
+
+<span class="help-inline">Inline help text</span>
+
+ +

{{_i}}Block help{{/i}}

+
+ + A longer block of help text that breaks onto a new line and may extend beyond one line. +
+
+<span class="help-block">A longer block of help text that breaks onto a new line and may extend beyond one line.</span>
+
+ + +
+ + +

{{_i}}Form control states{{/i}}

+

{{_i}}Provide feedback to users or visitors with basic feedback states on form controls and labels.{{/i}}

+ +

{{_i}}Input focus{{/i}}

+

{{_i}}We remove the default outline styles on some form controls and apply a box-shadow in its place for :focus.{{/i}}

+
+ +
+
+<input class="input-xlarge" id="focusedInput" type="text" value="{{_i}}This is focused...{{/i}}">
+
+ +

{{_i}}Disabled inputs{{/i}}

+

{{_i}}Add the disabled attribute on an input to prevent user input and trigger a slightly different look.{{/i}}

+
+ +
+
+<input class="input-xlarge" id="disabledInput" type="text" placeholder="{{_i}}Disabled input here...{{/i}}" disabled>
+
+ +

{{_i}}Validation states{{/i}}

+

{{_i}}Bootstrap includes validation styles for error, warning, and success messages. To use, add the appropriate class to the surrounding .control-group.{{/i}}

+ +
+
+ +
+ + {{_i}}Something may have gone wrong{{/i}}
-
- -
- - -
+
+
+ +
+ + {{_i}}Please correct the error{{/i}}
-
- - +
+
+ +
+ + {{_i}}Woohoo!{{/i}}
-
+
+
+<div class="control-group warning">
+  <label class="control-label" for="inputWarning">{{_i}}Input with warning{{/i}}</label>
+  <div class="controls">
+    <input type="text" id="inputWarning">
+    <span class="help-inline">{{_i}}Something may have gone wrong{{/i}}</span>
+  </div>
+</div>
+<div class="control-group error">
+  <label class="control-label" for="inputError">{{_i}}Input with error{{/i}}</label>
+  <div class="controls">
+    <input type="text" id="inputError">
+    <span class="help-inline">{{_i}}Please correct the error{{/i}}</span>
+  </div>
+</div>
+<div class="control-group success">
+  <label class="control-label" for="inputSuccess">{{_i}}Input with success{{/i}}</label>
+  <div class="controls">
+    <input type="text" id="inputSuccess">
+    <span class="help-inline">{{_i}}Woohoo!{{/i}}</span>
+  </div>
+</div>
+
+ -- cgit v1.2.3 From fc2481b8e57ec79a4ec0e7f6d26f4c8492bc84f7 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 9 Jun 2012 19:26:06 -0700 Subject: fix form display issue in docs --- docs/templates/pages/base-css.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/base-css.mustache b/docs/templates/pages/base-css.mustache index 24c5ae359..f7f12c878 100644 --- a/docs/templates/pages/base-css.mustache +++ b/docs/templates/pages/base-css.mustache @@ -894,7 +894,7 @@

{{_i}}Default options{{/i}}

{{_i}}Wrap a .add-on and an input with one of two classes to prepend or append text to an input.{{/i}}

-
+
@
-- cgit v1.2.3 From 5ef2b6561a8409cc26c413e4a152df89a383f0e8 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 9 Jun 2012 22:47:45 -0700 Subject: realign icons to five cols, fix buttons --- docs/templates/pages/base-css.mustache | 92 ++++++++++++++++++++++------------ 1 file changed, 61 insertions(+), 31 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/base-css.mustache b/docs/templates/pages/base-css.mustache index f7f12c878..48043cbc8 100644 --- a/docs/templates/pages/base-css.mustache +++ b/docs/templates/pages/base-css.mustache @@ -1133,6 +1133,9 @@ + +

Default buttons

+

{{_i}}Button styles can be applied to anything with the .btn class applied. However, typically you'll want to apply these to only <a> and <button> elements for the best rendering.{{/i}}

@@ -1180,13 +1183,14 @@
-

{{_i}}Buttons for actions{{/i}}

-

{{_i}}As a convention, buttons should only be used for actions while hyperlinks are to be used for objects. For instance, "Download" should be a button while "recent activity" should be a link.{{/i}}

-

{{_i}}Button styles can be applied to anything with the .btn class applied. However, typically you'll want to apply these to only <a> and <button> elements.{{/i}}

-

{{_i}}Cross browser compatibility{{/i}}

+

{{_i}}Cross browser compatibility{{/i}}

{{_i}}IE9 doesn't crop background gradients on rounded corners, so we remove it. Related, IE9 jankifies disabled button elements, rendering text gray with a nasty text-shadow that we cannot fix.{{/i}}

-

{{_i}}Multiple sizes{{/i}}

+ +
+ + +

{{_i}}Button sizes{{/i}}

{{_i}}Fancy larger or smaller buttons? Add .btn-large, .btn-small, or .btn-mini for two additional sizes.{{/i}}

@@ -1200,29 +1204,51 @@

-
-

{{_i}}Disabled state{{/i}}

-

{{_i}}For disabled buttons, add the .disabled class to links and the disabled attribute for <button> elements.{{/i}}

-

+ + +


+ + +

{{_i}}Disabled state{{/i}}

+

{{_i}}Make buttons look unclickable by fading them back 50%.{{/i}}

+ +

Anchor element

+

{{_i}}Add the .disabled class to <a> buttons.{{/i}}

+

{{_i}}Primary link{{/i}} {{_i}}Link{{/i}}

-

- - -

+
+<a href="#" class="btn btn-large btn-primary disabled">{{_i}}Primary link{{/i}}</a>
+<a href="#" class="btn btn-large disabled">{{_i}}Link{{/i}}</a>
+

{{_i}}Heads up!{{/i}} {{_i}}We use .disabled as a utility class here, similar to the common .active class, so no prefix is required.{{/i}}

-

{{_i}}One class, multiple tags{{/i}}

+

Button element

+

{{_i}}Add the disabled attribute to <button> buttons.{{/i}}

+

+ + +

+
+<button class="btn btn-large btn-primary disabled" disabled="disabled">{{_i}}Primary button{{/i}}</button>
+<button class="btn btn-large" disabled>{{_i}}Button{{/i}}</button>
+
+ + +
+ + +

{{_i}}One class, multiple tags{{/i}}

{{_i}}Use the .btn class on an <a>, <button>, or <input> element.{{/i}}

- -{{_i}}Link{{/i}} - - - + + {{_i}}Link{{/i}} + + +
 <a class="btn" href="">{{_i}}Link{{/i}}</a>
@@ -1277,6 +1303,10 @@
         
  • icon-download
  • icon-upload
  • icon-inbox
  • + +
    +
    +
    • icon-play-circle
    • icon-repeat
    • icon-refresh
    • @@ -1284,10 +1314,6 @@
    • icon-lock
    • icon-flag
    • icon-headphones
    • -
    -
    -
    -
    • icon-volume-off
    • icon-volume-down
    • icon-volume-up
    • @@ -1309,6 +1335,10 @@
    • icon-align-right
    • icon-align-justify
    • icon-list
    • +
    +
    +
    +
    • icon-indent-left
    • icon-indent-right
    • icon-facetime-video
    • @@ -1323,10 +1353,6 @@
    • icon-move
    • icon-step-backward
    • icon-fast-backward
    • -
    -
    -
    -
    • icon-backward
    • icon-play
    • icon-pause
    • @@ -1341,6 +1367,10 @@
    • icon-minus-sign
    • icon-remove-sign
    • icon-ok-sign
    • +
    +
    +
    +
    • icon-question-sign
    • icon-info-sign
    • icon-screenshot
    • @@ -1362,10 +1392,6 @@
    • icon-leaf
    • icon-fire
    • icon-eye-open
    • -
    -
    -
    -
    • icon-eye-close
    • icon-warning-sign
    • icon-plane
    • @@ -1373,6 +1399,10 @@
    • icon-random
    • icon-comment
    • icon-magnet
    • +
    +
    +
    +
    • icon-chevron-up
    • icon-chevron-down
    • icon-retweet
    • -- cgit v1.2.3 From 4a907709ba38767b118c1a880dadfb58df8ae1d6 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 9 Jun 2012 23:26:46 -0700 Subject: redo icons section --- docs/templates/pages/base-css.mustache | 98 +++++++++++++++------------------- 1 file changed, 43 insertions(+), 55 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/base-css.mustache b/docs/templates/pages/base-css.mustache index 48043cbc8..a1f4a3501 100644 --- a/docs/templates/pages/base-css.mustache +++ b/docs/templates/pages/base-css.mustache @@ -1272,6 +1272,9 @@ + +

      {{_i}}Icon glyphs{{/i}}

      +

      {{_i}}140 icons in sprite form, available in dark gray (default) and white, provided by Glyphicons.{{/i}}

        @@ -1435,16 +1438,12 @@
      -
      +
      -

      {{_i}}Built as a sprite{{/i}}

      -

      {{_i}}Instead of making every icon an extra request, we've compiled them into a sprite—a bunch of images in one file that uses CSS to position the images with background-position. This is the same method we use on Twitter.com and it has worked well for us.{{/i}}

      -

      {{_i}}All icons classes are prefixed with .icon- for proper namespacing and scoping, much like our other components. This will help avoid conflicts with other tools.{{/i}}

      -

      {{_i}}Glyphicons has granted us use of the Halflings set in our open-source toolkit so long as we provide a link and credit here in the docs. Please consider doing the same in your projects.{{/i}}

      -

      {{_i}}How to use{{/i}}

      -

      {{_i}}Bootstrap uses an <i> tag for all icons, but they have no case class—only a shared prefix. To use, place the following code just about anywhere:{{/i}}

      +

      {{_i}}How to use{{/i}}

      +

      {{_i}}All icons require an <i> tag with a unique class, prefixed with icon-. To use, place the following code just about anywhere:{{/i}}

       <i class="icon-search"></i>
       
      @@ -1452,66 +1451,55 @@
       <i class="icon-search icon-white"></i>
       
      -

      {{_i}}There are 140 classes to choose from for your icons. Just add an <i> tag with the right classes and you're set. You can find the full list in sprites.less or right here in this document.{{/i}}

      {{_i}}Heads up!{{/i}} {{_i}}When using beside strings of text, as in buttons or nav links, be sure to leave a space after the <i> tag for proper spacing.{{/i}}

      -

      {{_i}}Use cases{{/i}}

      -

      {{_i}}Icons are great, but where would one use them? Here are a few ideas:{{/i}}

      -
        -
      • {{_i}}As visuals for your sidebar navigation{{/i}}
      • -
      • {{_i}}For a purely icon-driven navigation{{/i}}
      • -
      • {{_i}}For buttons to help convey the meaning of an action{{/i}}
      • -
      • {{_i}}With links to share context on a user's destination{{/i}}
      • -
      -

      {{_i}}Essentially, anywhere you can put an <i> tag, you can put an icon.{{/i}}

      + +
      -

      {{_i}}Examples{{/i}}

      +

      {{_i}}Icon examples{{/i}}

      {{_i}}Use them in buttons, button groups for a toolbar, navigation, or prepended form inputs.{{/i}}

      -
      -
      - - - - -
      - {{! /bs-docs-example }} - +

      {{_i}}Navigation{{/i}}

      + {{! /bs-docs-example }} -
      +

      {{_i}}Form fields{{/i}}

      +
      -- cgit v1.2.3 From f2e39233f54a733df54d5d998abd79233e0f143f Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 10 Jun 2012 15:12:02 -0700 Subject: rewrite alerts and progress bars sections --- docs/templates/pages/components.mustache | 238 ++++++++++++++++++++----------- 1 file changed, 156 insertions(+), 82 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/components.mustache b/docs/templates/pages/components.mustache index acdae3d92..c90b2997e 100644 --- a/docs/templates/pages/components.mustache +++ b/docs/templates/pages/components.mustache @@ -1502,50 +1502,68 @@

      {{_i}}Alerts{{/i}} {{_i}}Styles for success, warning, and error messages{{/i}}

      -

      {{_i}}Lightweight defaults{{/i}}

      - -

      {{_i}}Rewritten base class{{/i}}

      -

      {{_i}}With Bootstrap 2, we've simplified the base class: .alert instead of .alert-message. We've also reduced the minimum required markup—no <p> is required by default, just the outer <div>.{{/i}}

      -

      {{_i}}Single alert message{{/i}}

      -

      {{_i}}For a more durable component with less code, we've removed the differentiating look for block alerts, messages that come with more padding and typically more text. The class also has changed to .alert-block.{{/i}}

      -
      -

      {{_i}}Goes great with javascript{{/i}}

      -

      {{_i}}Bootstrap comes with a great jQuery plugin that supports alert messages, making dismissing them quick and easy.{{/i}}

      -

      {{_i}}Get the plugin »{{/i}}

      - -

      {{_i}}Example alerts{{/i}}

      -

      {{_i}}Wrap your message and an optional close icon in a div with simple class.{{/i}}

      -
      - - {{_i}}Warning!{{/i}} {{_i}}Best check yo self, you're not looking too good.{{/i}} +

      {{_i}}Default alert{{/i}}

      +

      {{_i}}Wrap any text and an optional dismiss button in .alert for a basic warning alert message.{{/i}}

      +
      +
      + + {{_i}}Warning!{{/i}} {{_i}}Best check yo self, you're not looking too good.{{/i}} +
       <div class="alert">
      -  <button class="close" data-dismiss="alert">×</button>
      +  <button type="button" class="close" data-dismiss="alert">×</button>
         <strong>{{_i}}Warning!{{/i}}</strong> {{_i}}Best check yo self, you're not looking too good.{{/i}}
       </div>
       
      -

      {{_i}}Heads up!{{/i}} {{_i}}iOS devices require an href="#" for the dismissal of alerts. Be sure to include it and the data attribute for anchor close icons. Alternatively, you may use a <button> element with the data attribute, which we have opted to do for our docs. When using <button>, you must include type="button" or your forms may not submit.{{/i}}

      -

      {{_i}}Easily extend the standard alert message with two optional classes: .alert-block for more padding and text controls and .alert-heading for a matching heading.{{/i}}

      -
      - -

      {{_i}}Warning!{{/i}}

      -

      {{_i}}Best check yo self, you're not looking too good.{{/i}} Nulla vitae elit libero, a pharetra augue. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

      + +

      {{_i}}Dismiss buttons{{/i}}

      +

      {{_i}}Mobile Safari and Mobile Opera browsers, in addition to the data-dismiss="alert" attribute, require an href="#" for the dismissal of alerts when using an <a> tag.{{/i}}

      +
      +<a href="#" class="close" data-dismiss="alert">×</button>
      +
      +

      {{_i}}Alternatively, you may use a <button> element with the data attribute, which we have opted to do for our docs. When using <button>, you must include type="button" or your forms may not submit.{{/i}}

      +
      +<button type="button" class="close" data-dismiss="alert">×</button>
      +
      + +

      {{_i}}Dismiss alerts via javascript{{/i}}

      +

      {{_i}}Use the alerts jQuery plugin for quick and easy dismissal of alerts.{{/i}}

      + + +
      + + +

      {{_i}}Options{{/i}}

      +

      {{_i}}For longer messages, increase the padding on the top and bottom of the alert wrapper by adding .alert-block.{{/i}}

      +
      +
      + +

      {{_i}}Warning!{{/i}}

      +

      {{_i}}Best check yo self, you're not looking too good.{{/i}} Nulla vitae elit libero, a pharetra augue. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

      +
       <div class="alert alert-block">
      -  <a class="close" data-dismiss="alert" href="#">×</a>
      -  <h4 class="alert-heading">{{_i}}Warning!{{/i}}</h4>
      +  <a class="close" data-dismiss="alert" href="#">&times;</a>
      +  <h4>{{_i}}Warning!{{/i}}</h4>
         {{_i}}Best check yo self, you're not...{{/i}}
       </div>
       
      -

      {{_i}}Contextual alternatives{{/i}} {{_i}}Add optional classes to change an alert's connotation{{/i}}

      + +
      + + +

      {{_i}}Contextual alternatives{{/i}}

      +

      {{_i}}Add optional classes to change an alert's connotation.{{/i}}

      {{_i}}Error or danger{{/i}}

      -
      - - {{_i}}Oh snap!{{/i}} {{_i}}Change a few things up and try submitting again.{{/i}} +
      +
      + + {{_i}}Oh snap!{{/i}} {{_i}}Change a few things up and try submitting again.{{/i}} +
       <div class="alert alert-error">
      @@ -1554,9 +1572,11 @@
       

      {{_i}}Success{{/i}}

      -
      - - {{_i}}Well done!{{/i}} {{_i}}You successfully read this important alert message.{{/i}} +
      +
      + + {{_i}}Well done!{{/i}} {{_i}}You successfully read this important alert message.{{/i}} +
       <div class="alert alert-success">
      @@ -1565,9 +1585,11 @@
       

      {{_i}}Information{{/i}}

      -
      - - {{_i}}Heads up!{{/i}} {{_i}}This alert needs your attention, but it's not super important.{{/i}} +
      +
      + + {{_i}}Heads up!{{/i}} {{_i}}This alert needs your attention, but it's not super important.{{/i}} +
       <div class="alert alert-info">
      @@ -1590,78 +1612,116 @@
       
         

      {{_i}}Basic{{/i}}

      {{_i}}Default progress bar with a vertical gradient.{{/i}}

      -
      -
      +
      +
      +
      +
       <div class="progress">
      -  <div class="bar"
      -       style="width: 60%;"></div>
      +  <div class="bar" style="width: 60%;"></div>
       </div>
       

      {{_i}}Striped{{/i}}

      -

      {{_i}}Uses a gradient to create a striped effect (no IE).{{/i}}

      -
      -
      +

      {{_i}}Uses a gradient to create a striped effect. Not available in IE7-8.{{/i}}

      +
      +
      +
      +
       <div class="progress progress-striped">
      -  <div class="bar"
      -       style="width: 20%;"></div>
      +  <div class="bar" style="width: 20%;"></div>
       </div>
       

      {{_i}}Animated{{/i}}

      -

      {{_i}}Takes the striped example and animates it (no IE).{{/i}}

      -
      -
      +

      {{_i}}Add .active to .progress-striped to animate the stripes right to left. Not available in all versions of IE.{{/i}}

      +
      +
      +
      +
      -<div class="progress progress-striped
      -     active">
      -  <div class="bar"
      -       style="width: 40%;"></div>
      +<div class="progress progress-striped active">
      +  <div class="bar" style="width: 40%;"></div>
       </div>
       
      -

      {{_i}}Options and browser support{{/i}}

      + +
      + + +

      {{_i}}Options{{/i}}

      {{_i}}Additional colors{{/i}}

      {{_i}}Progress bars use some of the same button and alert classes for consistent styles.{{/i}}

      -
      -
      -
      -
      -
      -
      -
      -
      -
      -
      -
      +
      +
      +
      +
      +
      +
      +
      +
      +
      +
      +
      +
      +
      +
      +<div class="progress progress-info">
      +  <div class="bar" style="width: 20%"></div>
      +</div>
      +<div class="progress progress-success">
      +  <div class="bar" style="width: 40%"></div>
      +</div>
      +<div class="progress progress-warning">
      +  <div class="bar" style="width: 60%"></div>
      +</div>
      +<div class="progress progress-danger">
      +  <div class="bar" style="width: 80%"></div>
      +</div>
      +

      {{_i}}Striped bars{{/i}}

      {{_i}}Similar to the solid colors, we have varied striped progress bars.{{/i}}

      -
      -
      -
      -
      -
      -
      -
      -
      -
      -
      -
      +
      +
      +
      +
      +
      +
      +
      +
      +
      +
      +
      +
      +
      +
      +<div class="progress progress-info progress-striped">
      +  <div class="bar" style="width: 20%"></div>
      +</div>
      +<div class="progress progress-success progress-striped">
      +  <div class="bar" style="width: 40%"></div>
      +</div>
      +<div class="progress progress-warning progress-striped">
      +  <div class="bar" style="width: 60%"></div>
      +</div>
      +<div class="progress progress-danger progress-striped">
      +  <div class="bar" style="width: 80%"></div>
      +</div>
      +
      + -

      {{_i}}Behavior{{/i}}

      -

      {{_i}}Progress bars use CSS3 transitions, so if you dynamically adjust the width via javascript, it will smoothly resize.{{/i}}

      -

      {{_i}}If you use the .active class, your .progress-striped progress bars will animate the stripes left to right.{{/i}}

      +
      -

      {{_i}}Browser support{{/i}}

      + +

      {{_i}}Browser support{{/i}}

      {{_i}}Progress bars use CSS3 gradients, transitions, and animations to achieve all their effects. These features are not supported in IE7-9 or older versions of Firefox.{{/i}}

      {{_i}}Opera and IE do not support animations at this time.{{/i}}

      @@ -1680,21 +1740,33 @@

      {{_i}}Wells{{/i}}

      {{_i}}Use the well as a simple effect on an element to give it an inset effect.{{/i}}

      -
      - {{_i}}Look, I'm in a well!{{/i}} +
      +
      + {{_i}}Look, I'm in a well!{{/i}} +
       <div class="well">
         ...
       </div>
       
      -

      {{_i}}Optional classes{{/i}}

      +

      {{_i}}Optional classes{{/i}}

      {{_i}}Control padding and rounded corners with two optional modifier classes.{{/i}}

      +
      +
      + {{_i}}Look, I'm in a well!{{/i}} +
      +
       <div class="well well-large">
         ...
       </div>
       
      +
      +
      + {{_i}}Look, I'm in a well!{{/i}} +
      +
       <div class="well well-small">
         ...
      @@ -1702,7 +1774,9 @@
       

      {{_i}}Close icon{{/i}}

      {{_i}}Use the generic close icon for dismissing content like modals and alerts.{{/i}}

      -

      +
      +

      +
      <button class="close">&times;</button>

      {{_i}}iOS devices require an href="#" for click events if you rather use an anchor.{{/i}}

      <a class="close" href="#">&times;</a>
      -- cgit v1.2.3 From 3985379ccabcdcf9f96432ba37be2dd38ed117bc Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 10 Jun 2012 15:14:21 -0700 Subject: rearrange hero unit section --- docs/templates/pages/components.mustache | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/components.mustache b/docs/templates/pages/components.mustache index c90b2997e..aa1032c06 100644 --- a/docs/templates/pages/components.mustache +++ b/docs/templates/pages/components.mustache @@ -1321,11 +1321,16 @@ -

      {{_i}}Hero unit{{/i}}

      -

      {{_i}}Bootstrap provides a lightweight, flexible component called a hero unit to showcase content on your site. It works well on marketing and content-heavy sites.{{/i}}

      -

      {{_i}}Markup{{/i}}

      -

      {{_i}}Wrap your content in a div like so:{{/i}}

      +

      {{_i}}Hero unit{{/i}}

      +

      {{_i}}A lightweight, flexible component called a hero unit to showcase content on your site. It works well on marketing and content-heavy sites.{{/i}}

      +
      +
      +

      {{_i}}Hello, world!{{/i}}

      +

      {{_i}}This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.{{/i}}

      +

      {{_i}}Learn more{{/i}}

      +
      +
       <div class="hero-unit">
         <h1>{{_i}}Heading{{/i}}</h1>
      @@ -1338,16 +1343,7 @@
       </div>
       
      -
      -
      -

      {{_i}}Hello, world!{{/i}}

      -

      {{_i}}This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.{{/i}}

      -

      {{_i}}Learn more{{/i}}

      -
      -
      -

      {{_i}}Page header{{/i}}

      -

      {{_i}}A simple shell for an h1 to appropriately space out and segment sections of content on a page. It can utilize the h1's default small, element as well most other components (with additional styles).{{/i}}

      -

      {{_i}}Why use them{{/i}}

      -

      {{_i}}Breadcrumb navigation is used as a way to show users where they are within an app or a site, but not for primary navigation. Keep their use sparse and succinct to be most effective.{{/i}}

      - -

      {{_i}}Examples{{/i}}

      +

      {{_i}}Examples{{/i}}

      {{_i}}A single example shown as it might be displayed across multiple pages.{{/i}}

      - - - - -

      {{_i}}Markup{{/i}}

      -

      {{_i}}HTML is your standard unordered list with links.{{/i}}

      +
      + + + +
       <ul class="breadcrumb">
      -  <li>
      -    <a href="#">{{_i}}Home{{/i}}</a> <span class="divider">/</span>
      -  </li>
      -  <li>
      -    <a href="#">{{_i}}Library{{/i}}</a> <span class="divider">/</span>
      -  </li>
      +  <li><a href="#">{{_i}}Home{{/i}}</a> <span class="divider">/</span></li>
      +  <li><a href="#">{{_i}}Library{{/i}}</a> <span class="divider">/</span></li>
         <li class="active">{{_i}}Data{{/i}}</li>
       </ul>
       
      @@ -1043,85 +1035,119 @@

      {{_i}}Pagination{{/i}} {{_i}}Two options for paging through content{{/i}}

      -

      {{_i}}Multicon-page pagination{{/i}}

      - -

      {{_i}}When to use{{/i}}

      -

      {{_i}}Ultra simplistic and minimally styled pagination inspired by Rdio, great for apps and search results. The large block is hard to miss, easily scalable, and provides large click areas.{{/i}}

      -

      {{_i}}Stateful page links{{/i}}

      -

      {{_i}}Links are customizable and work in a number of circumstances with the right class. .disabled for unclickable links and .active for current page.{{/i}}

      -

      {{_i}}Flexible alignment{{/i}}

      -

      {{_i}}Add either of two optional classes to change the alignment of pagination links: .pagination-centered and .pagination-right.{{/i}}

      - -

      {{_i}}Examples{{/i}}

      -

      {{_i}}The default pagination component is flexible and works in a number of variations.{{/i}}

      - - - - -

      {{_i}}Nav links{{/i}}

      -

      {{_i}}Nav items are simple to add via unordered lists.{{/i}}

      -
      -<ul class="nav">
      -  <li class="active">
      -    <a href="#">{{_i}}Home{{/i}}</a>
      -  </li>
      -  <li><a href="#">{{_i}}Link{{/i}}</a></li>
      -  <li><a href="#">{{_i}}Link{{/i}}</a></li>
      -</ul>
      -
      -

      {{_i}}You can easily add dividers to your nav links with an empty list item and a simple class. Just add this between links:{{/i}}

      -
      -<ul class="nav">
      -  ...
      -  <li class="divider-vertical"></li>
      -  ...
      -</ul>
      -
      -

      {{_i}}Component alignment{{/i}}

      -

      {{_i}}To align a nav, search form, or text, use the .pull-left or .pull-right utility classes. Both classes will add a CSS float in the specified direction.{{/i}}

      -

      {{_i}}Adding dropdown menus{{/i}}

      -

      {{_i}}Adding dropdowns and dropups to the nav is super simple, but does require the use of our javascript plugin.{{/i}}

      -
      -<ul class="nav">
      -  <li class="dropdown">
      -    <a href="#"
      -          class="dropdown-toggle"
      -          data-toggle="dropdown">
      -          {{_i}}Account{{/i}}
      -          <b class="caret"></b>
      -    </a>
      -    <ul class="dropdown-menu">
      -      ...
      -    </ul>
      -  </li>
      -</ul>
      -
      -

      {{_i}}Get the javascript →{{/i}}

      -
      -

      {{_i}}Text in the navbar{{/i}}

      -

      {{_i}}Wrap strings of text in a <.navbar-text>, usually on a <p> tag for proper leading and color.{{/i}}

      - -- cgit v1.2.3 From 081a07c168b095c2e9d34e1a77164cf9ac21f449 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 10 Jun 2012 20:50:49 -0700 Subject: updated button groups section --- docs/templates/pages/components.mustache | 57 +++++++++++++++++++------------- 1 file changed, 34 insertions(+), 23 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/components.mustache b/docs/templates/pages/components.mustache index 3f4ad2d08..3001102a8 100644 --- a/docs/templates/pages/components.mustache +++ b/docs/templates/pages/components.mustache @@ -33,6 +33,7 @@ +
      @@ -40,10 +41,9 @@

      {{_i}}Button groups{{/i}} {{_i}}Join buttons for more toolbar-like functionality{{/i}}

      -

      {{_i}}Button groups{{/i}}

      -

      {{_i}}Use button groups to join multiple buttons together as one composite component. Build them with a series of <a> or <button> elements.{{/i}}

      -

      {{_i}}Best practices{{/i}}

      -

      {{_i}}We recommend the following guidelines for using button groups and toolbars:{{/i}}

      + +

      {{_i}}Description and best practices{{/i}}

      +

      {{_i}}Use button groups to join multiple buttons together as one composite component. Build them with a series of <a> or <button> elements. We recommend the following guidelines for using button groups and toolbars:{{/i}}

      • {{_i}}Always use the same element in a single button group, <a> or <button>.{{/i}}
      • {{_i}}Don't mix buttons of different colors in the same button group.{{/i}}
      • @@ -51,10 +51,17 @@

      {{_i}}Related Button groups with dropdowns (see below) should be called out separately and always include a dropdown caret to indicate intended behavior.{{/i}}

      -

      {{_i}}Default example{{/i}}

      -

      {{_i}}Here's how the HTML looks for a standard button group built with anchor tag buttons:{{/i}}

      -
      -
      + +
      + + +

      {{_i}}Examples and variations{{/i}}

      +

      {{_i}}Two basic options, along with two more specific variations.{{/i}}

      + +

      {{_i}}Basic button group{{/i}}

      +

      {{_i}}Wrap a series of buttons with .btn in .btn-group.{{/i}}

      +
      +
      @@ -67,22 +74,25 @@ <button class="btn">3</button> </div>
      +

      {{_i}}Toolbar example{{/i}}

      {{_i}}Combine sets of <div class="btn-group"> into a <div class="btn-toolbar"> for more complex components.{{/i}}

      -
      -
      - - - - -
      -
      - - - -
      -
      - +
      +
      +
      + + + + +
      +
      + + + +
      +
      + +
      @@ -92,9 +102,10 @@
         </div>
       </div>
       
      +

      {{_i}}Checkbox and radio flavors{{/i}}

      {{_i}}Button groups can also function as radios, where only one button may be active, or checkboxes, where any number of buttons may be active. View the Javascript docs for that.{{/i}}

      -

      {{_i}}Get the javascript »{{/i}}

      +

      {{_i}}Dropdowns in button groups{{/i}}

      {{_i}}Heads up!{{/i}} {{_i}}Buttons with dropdowns must be individually wrapped in their own .btn-group within a .btn-toolbar for proper rendering.{{/i}}

      -- cgit v1.2.3 From c90c66e61f5e3f09a46d63cd79086c7b2ab6db5c Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 10 Jun 2012 21:00:20 -0700 Subject: rewrite the split button dropdowns section --- docs/templates/pages/components.mustache | 538 ++++++++++++++++--------------- 1 file changed, 270 insertions(+), 268 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/components.mustache b/docs/templates/pages/components.mustache index 3001102a8..cf40248af 100644 --- a/docs/templates/pages/components.mustache +++ b/docs/templates/pages/components.mustache @@ -119,87 +119,83 @@

      {{_i}}Button dropdown menus{{/i}} {{_i}}Built on button groups to provide contextual menus{{/i}}

      -

      {{_i}}Button dropdowns{{/i}}

      -

      {{_i}}Overview and examples{{/i}}

      +

      {{_i}}Overview and examples{{/i}}

      {{_i}}Use any button to trigger a dropdown menu by placing it within a .btn-group and providing the proper menu markup.{{/i}}

      - - - -

      {{_i}}Example markup{{/i}}

      -

      {{_i}}Similar to a button group, our markup uses regular button markup, but with a handful of additions to refine the style and support Bootstrap's dropdown jQuery plugin.{{/i}}

      + {{! /example }}
       <div class="btn-group">
         <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
      @@ -214,188 +210,191 @@
       
         

      {{_i}}Works with all button sizes{{/i}}

      {{_i}}Button dropdowns work at any size. your button sizes to .btn-large, .btn-small, or .btn-mini.{{/i}}

      - + {{! /example }}

      {{_i}}Requires javascript{{/i}}

      {{_i}}Button dropdowns require the Bootstrap dropdown plugin to function.{{/i}}

      {{_i}}In some cases—like mobile—dropdown menus will extend outside the viewport. You need to resolve the alignment manually or with custom javascript.{{/i}}

      -
      -

      {{_i}}Split button dropdowns{{/i}}

      +
      -

      {{_i}}Overview and examples{{/i}}

      + +

      {{_i}}Split button dropdowns{{/i}}

      {{_i}}Building on the button group styles and markup, we can easily create a split button. Split buttons feature a standard action on the left and a dropdown toggle on the right with contextual links.{{/i}}

      - - - -

      {{_i}}Sizes{{/i}}

      -

      {{_i}}Utilize the extra button classes .btn-mini, .btn-small, or .btn-large for sizing.{{/i}}

      - - - + {{! /example }}
       <div class="btn-group">
      -  ...
      -  <ul class="dropdown-menu pull-right">
      +  <button class="btn">{{_i}}Action{{/i}}</button>
      +  <button class="btn dropdown-toggle" data-toggle="dropdown">
      +    <span class="caret"></span>
      +  </button>
      +  <ul class="dropdown-menu">
           <!-- {{_i}}dropdown menu links{{/i}} -->
         </ul>
       </div>
       
      -

      {{_i}}Example markup{{/i}}

      -

      {{_i}}We expand on the normal button dropdowns to provide a second button action that operates as a separate dropdown trigger.{{/i}}

      +

      {{_i}}Sizes{{/i}}

      +

      {{_i}}Utilize the extra button classes .btn-mini, .btn-small, or .btn-large for sizing.{{/i}}

      + {{! /example }}
       <div class="btn-group">
      -  <button class="btn">{{_i}}Action{{/i}}</button>
      -  <button class="btn dropdown-toggle" data-toggle="dropdown">
      +  <button class="btn btn-mini">{{_i}}Action{{/i}}</button>
      +  <button class="btn btn-mini dropdown-toggle" data-toggle="dropdown">
           <span class="caret"></span>
         </button>
         <ul class="dropdown-menu">
      @@ -403,32 +402,35 @@
         </ul>
       </div>
       
      +

      {{_i}}Dropup menus{{/i}}

      {{_i}}Dropdown menus can also be toggled from the bottom up by adding a single class to the immediate parent of .dropdown-menu. It will flip the direction of the .caret and reposition the menu itself to move from the bottom up instead of top down.{{/i}}

      - + {{! /example }}
       <div class="btn-group dropup">
         <button class="btn">{{_i}}Dropup{{/i}}</button>
      -- 
      cgit v1.2.3
      
      
      From a0cd886c56708bbd8d6896ee81b04579f86fb0aa Mon Sep 17 00:00:00 2001
      From: Mark Otto 
      Date: Sun, 10 Jun 2012 21:24:13 -0700
      Subject: rewrite the rest of the nav section
      
      ---
       docs/templates/pages/components.mustache | 386 ++++++++++++++++---------------
       1 file changed, 201 insertions(+), 185 deletions(-)
      
      (limited to 'docs/templates')
      
      diff --git a/docs/templates/pages/components.mustache b/docs/templates/pages/components.mustache
      index cf40248af..ea8621b45 100644
      --- a/docs/templates/pages/components.mustache
      +++ b/docs/templates/pages/components.mustache
      @@ -455,21 +455,17 @@
         

      {{_i}}Lightweight defaults{{/i}} {{_i}}Same markup, different classes{{/i}}

      - -

      {{_i}}Powerful base class{{/i}}

      {{_i}}All nav components here—tabs, pills, and lists—share the same base markup and styles through the .nav class.{{/i}}

      -

      {{_i}}When to use{{/i}}

      -

      {{_i}}Tabs and pills are great for sections of content or navigating between pages of related content.{{/i}}

      -

      {{_i}}Component alignment{{/i}}

      -

      {{_i}}To align nav links, use the .pull-left or .pull-right utility classes. Both classes will add a CSS float in the specified direction.{{/i}}

      {{_i}}Basic tabs{{/i}}

      {{_i}}Take a regular <ul> of links and add .nav-tabs:{{/i}}

      - +
       <ul class="nav nav-tabs">
         <li class="active">
      @@ -482,11 +478,13 @@
       
         

      {{_i}}Basic pills{{/i}}

      {{_i}}Take that same HTML, but use .nav-pills instead:{{/i}}

      - +
       <ul class="nav nav-pills">
         <li class="active">
      @@ -497,18 +495,24 @@
       </ul>
       
      +

      {{_i}}Component alignment{{/i}}

      +

      {{_i}}To align nav links, use the .pull-left or .pull-right utility classes. Both classes will add a CSS float in the specified direction.{{/i}}

      + + +
      -

      {{_i}}Stackable{{/i}} {{_i}}Make tabs or pills vertical{{/i}}

      -

      {{_i}}How to stack 'em{{/i}}

      +

      {{_i}}Stackable{{/i}}

      {{_i}}As tabs and pills are horizontal by default, just add a second class, .nav-stacked, to make them appear vertically stacked.{{/i}}

      {{_i}}Stacked tabs{{/i}}

      - +
       <ul class="nav nav-tabs nav-stacked">
         ...
      @@ -516,38 +520,43 @@
       

      {{_i}}Stacked pills{{/i}}

      - +
       <ul class="nav nav-pills nav-stacked">
         ...
       </ul>
       
      -

      {{_i}}Dropdowns{{/i}} {{_i}}For advanced nav components{{/i}}

      -

      {{_i}}Rich menus made easy{{/i}}

      -

      {{_i}}Dropdown menus in Bootstrap tabs and pills are super easy and require only a little extra HTML and a lightweight jQuery plugin.{{/i}}

      -

      {{_i}}Head over to the Javascript page to read the docs on initializing dropdowns in Bootstrap.{{/i}}

      +
      + + +

      {{_i}}Dropdowns{{/i}}

      +

      {{_i}}Add dropdown menus with a little extra HTML and the dropdowns javascript plugin.{{/i}}

      {{_i}}Tabs with dropdowns{{/i}}

      - +
       <ul class="nav nav-tabs">
         <li class="dropdown">
      @@ -565,20 +574,22 @@
       

      {{_i}}Pills with dropdowns{{/i}}

      - + {{! /example }}
       <ul class="nav nav-pills">
         <li class="dropdown">
      @@ -595,39 +606,30 @@
       </ul>
       
      -

      {{_i}}Nav lists{{/i}} {{_i}}Build simple stacked navs, great for sidebars{{/i}}

      -

      {{_i}}Application-style navigation{{/i}}

      -

      {{_i}}Nav lists provide a simple and easy way to build groups of nav links with optional headers. They're best used in sidebars like the Finder in OS X.{{/i}}

      -

      {{_i}}Structurally, they're built on the same core nav styles as tabs and pills, so usage and customization are straightforward.{{/i}}

      -
      -

      {{_i}}With icons{{/i}}

      -

      {{_i}}Nav lists are also easy to equip with icons. Add the proper <i> tag with class and you're set.{{/i}}

      -

      {{_i}}Horizontal dividers{{/i}}

      -

      {{_i}}Add a horizontal divider by creating an empty list item with the class .divider, like so:{{/i}}

      -
      -<ul class="nav nav-list">
      -  ...
      -  <li class="divider"></li>
      -  ...
      -</ul>
      -
      +
      + + +

      {{_i}}Nav lists{{/i}}

      +

      {{_i}}A simple and easy way to build groups of nav links with optional headers. They're best used in sidebars like the Finder in OS X.{{/i}}

      {{_i}}Example nav list{{/i}}

      {{_i}}Take a list of links and add class="nav nav-list":{{/i}}

      -
      - -
      +
      +
      + +
      +
      {{! /example }}
       <ul class="nav nav-list">
         <li class="nav-header">
      @@ -645,19 +647,21 @@
       
         

      {{_i}}Example with icons{{/i}}

      {{_i}}Same example, but with <i> tags for icons.{{/i}}

      -
      - -
      +
      +
      + +
      +
      {{! /example }}
       <ul class="nav nav-list">
         ...
      @@ -671,44 +675,45 @@
       </ul>
       
      +

      {{_i}}Horizontal dividers{{/i}}

      +

      {{_i}}Add a horizontal divider by creating an empty list item with the class .divider, like so:{{/i}}

      +
      +<ul class="nav nav-list">
      +  ...
      +  <li class="divider"></li>
      +  ...
      +</ul>
      +
      + + +
      -

      {{_i}}Tabbable nav{{/i}} {{_i}}Bring tabs to life via javascript{{/i}}

      -

      {{_i}}What's included{{/i}}

      +

      {{_i}}Tabbable nav{{/i}}

      {{_i}}Bring your tabs to life with a simple plugin to toggle between content via tabs. Bootstrap integrates tabbable tabs in four styles: top (default), right, bottom, and left.{{/i}}

      -

      {{_i}}Changing between them is easy and only requires changing very little markup.{{/i}}

      -
      -

      {{_i}}Fade in tabs{{/i}}

      -

      {{_i}}To make tabs fade in, add .fade to each .tab-pane.{{/i}}

      -
      -

      {{_i}}Requires jQuery plugin{{/i}}

      -

      {{_i}}All tabbable tabs are powered by our lightweight jQuery plugin. Read more about how to bring tabbable tabs to life on the javascript docs page.{{/i}}

      -

      {{_i}}Get the javascript →{{/i}}

      {{_i}}Tabbable example{{/i}}

      {{_i}}To make tabs tabbable, create a .tab-pane with unique ID for every tab and wrap them in .tab-content.{{/i}}

      -
      - -
      -
      -

      {{_i}}I'm in Section 1.{{/i}}

      -
      -
      -

      {{_i}}Howdy, I'm in Section 2.{{/i}}

      -
      -
      -

      {{_i}}What up girl, this is Section 3.{{/i}}

      +
      +
      + +
      +
      +

      {{_i}}I'm in Section 1.{{/i}}

      +
      +
      +

      {{_i}}Howdy, I'm in Section 2.{{/i}}

      +
      +
      +

      {{_i}}What up girl, this is Section 3.{{/i}}

      +
      -
      -
      -

      {{_i}}For right or left aligned tabs, wrap the .nav-tabs and .tab-content in .tabbable.{{/i}}

      - -

      {{_i}}Straightforward markup{{/i}}

      -

      {{_i}}Using tabbable tabs requires a wrapping div, a set of tabs, and a set of tabbable panes of content.{{/i}}

      +
      +
      {{! /example }}
       <div class="tabbable"> <!-- Only required for left/right tabs -->
         <ul class="nav nav-tabs">
      @@ -726,30 +731,37 @@
       </div>
       
      +

      {{_i}}Fade in tabs{{/i}}

      +

      {{_i}}To make tabs fade in, add .fade to each .tab-pane.{{/i}}

      + +

      {{_i}}Requires jQuery plugin{{/i}}

      +

      {{_i}}All tabbable tabs are powered by our lightweight jQuery plugin. Read more about how to bring tabbable tabs to life on the javascript docs page.{{/i}}

      {{_i}}Tabbable in any direction{{/i}}

      {{_i}}Tabs on the bottom{{/i}}

      {{_i}}Flip the order of the HTML and add a class to put tabs on the bottom.{{/i}}

      -
      -
      -
      -

      {{_i}}I'm in Section A.{{/i}}

      -
      -
      -

      {{_i}}Howdy, I'm in Section B.{{/i}}

      -
      -
      -

      {{_i}}What up girl, this is Section C.{{/i}}

      +
      +
      +
      +
      +

      {{_i}}I'm in Section A.{{/i}}

      +
      +
      +

      {{_i}}Howdy, I'm in Section B.{{/i}}

      +
      +
      +

      {{_i}}What up girl, this is Section C.{{/i}}

      +
      -
      - -
      -
      +      
      +    
      +
      {{! /example }} +
       <div class="tabbable tabs-below">
         <div class="tab-content">
           ...
      @@ -762,24 +774,26 @@
       
         

      {{_i}}Tabs on the left{{/i}}

      {{_i}}Swap the class to put tabs on the left.{{/i}}

      -
      - -
      -
      -

      {{_i}}I'm in Section A.{{/i}}

      -
      -
      -

      {{_i}}Howdy, I'm in Section B.{{/i}}

      -
      -
      -

      {{_i}}What up girl, this is Section C.{{/i}}

      +
      +
      + +
      +
      +

      {{_i}}I'm in Section A.{{/i}}

      +
      +
      +

      {{_i}}Howdy, I'm in Section B.{{/i}}

      +
      +
      +

      {{_i}}What up girl, this is Section C.{{/i}}

      +
      -
      -
      +
      +
      {{! /example }}
       <div class="tabbable tabs-left">
         <ul class="nav nav-tabs">
      @@ -793,24 +807,26 @@
       
         

      {{_i}}Tabs on the right{{/i}}

      {{_i}}Swap the class to put tabs on the right.{{/i}}

      -
      - -
      -
      -

      {{_i}}I'm in Section A.{{/i}}

      -
      -
      -

      {{_i}}Howdy, I'm in Section B.{{/i}}

      -
      -
      -

      {{_i}}What up girl, this is Section C.{{/i}}

      +
      +
      + +
      +
      +

      {{_i}}I'm in Section A.{{/i}}

      +
      +
      +

      {{_i}}Howdy, I'm in Section B.{{/i}}

      +
      +
      +

      {{_i}}What up girl, this is Section C.{{/i}}

      +
      -
      -
      +
      +
      {{! /example }}
       <div class="tabbable tabs-right">
         <ul class="nav nav-tabs">
      -- 
      cgit v1.2.3
      
      
      From 7ed02b461be8f520f672284f9984fdc9ce4487e7 Mon Sep 17 00:00:00 2001
      From: Mark Otto 
      Date: Mon, 11 Jun 2012 20:20:51 -0700
      Subject: fix blockquote alignment
      
      ---
       docs/templates/pages/base-css.mustache | 2 +-
       1 file changed, 1 insertion(+), 1 deletion(-)
      
      (limited to 'docs/templates')
      
      diff --git a/docs/templates/pages/base-css.mustache b/docs/templates/pages/base-css.mustache
      index a1f4a3501..83418bd1b 100644
      --- a/docs/templates/pages/base-css.mustache
      +++ b/docs/templates/pages/base-css.mustache
      @@ -187,7 +187,7 @@
       
         

      {{_i}}Alternate displays{{/i}}

      {{_i}}Use .pull-left and .pull-right classes for floated, right-aligned blockquote content.{{/i}}

      -
      +

      Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

      {{_i}}Someone famous in Source Title{{/i}} -- cgit v1.2.3 From 5dd47f11967f25aa8f5fe4ad25db807c5b33ccca Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 11 Jun 2012 20:33:00 -0700 Subject: keep tables at 13px in docs for now, clean up some modals js docs stuff --- docs/templates/pages/javascript.mustache | 50 +++++++++++++++++++++++++------- 1 file changed, 39 insertions(+), 11 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache index d90184c7b..38e38a9e4 100644 --- a/docs/templates/pages/javascript.mustache +++ b/docs/templates/pages/javascript.mustache @@ -29,10 +29,13 @@ +

      {{_i}}Individual or compiled{{/i}}

      {{_i}}If you have downloaded the latest version of Bootstrap, both bootstrap.js and bootstrap.min.js contain all of these plugins.{{/i}}

      -

      {{_i}}Data attributea{{/i}}

      + +

      {{_i}}Data attributes{{/i}}

      {{_i}}...{{/i}}

      +

      {{_i}}Programmatic API{{/i}}

      {{_i}}...{{/i}}

      @@ -50,8 +53,17 @@

      {{_i}}Transitions{{/i}} bootstrap-transition.js

      {{_i}}About transitions{{/i}}

      -

      {{_i}}For simple transition effects, include bootstrap-transition.js once to slide in modals or fade out alerts.{{/i}}

      -

      * {{_i}}Required for animation in plugins{{/i}}

      +

      {{_i}}For simple transition effects, include bootstrap-transition.js once alongside the other JS files. If you're using the compiled (or minified) bootstrap.js, there is no need to include this—it's already there.{{/i}}

      +

      {{_i}}Use cases{{/i}}

      +

      {{_i}}A few examples of the transition plugin:{{/i}}

      +
        +
      • {{_i}}Sliding or fading in modals{{/i}}
      • +
      • {{_i}}Fading out tabs{{/i}}
      • +
      • {{_i}}Fading out alerts{{/i}}
      • +
      • {{_i}}Sliding carousel panes{{/i}}
      • +
      + + {{! Ideas: include docs for .fade.in, .slide.in, etc }} @@ -63,11 +75,11 @@

      {{_i}}Modals{{/i}} bootstrap-modal.js

      -

      {{_i}}About modals{{/i}}

      + +

      {{_i}}About modals{{/i}}

      {{_i}}A streamlined, but flexible, take on the traditional javascript modal plugin with only the minimum required functionality and smart defaults.{{/i}}

      -

      {{_i}}Static example{{/i}}

      -

      {{_i}}Below is a statically rendered modal.{{/i}}

      +

      {{_i}}Static example{{/i}}

      {{! /example }} +
      +<div class="modal hide fade">
      +  <div class="modal-header">
      +    <button type="button" class="close" data-dismiss="modal">&times;</button>
      +    <h3>{{_i}}Modal header{{/i}}</h3>
      +  </div>
      +  <div class="modal-body">
      +    <p>{{_i}}One fine body…{{/i}}</p>
      +  </div>
      +  <div class="modal-footer">
      +    <a href="#" class="btn">{{_i}}Close{{/i}}</a>
      +    <a href="#" class="btn btn-primary">{{_i}}Save changes{{/i}}</a>
      +  </div>
      +</div>
      +
      -

      {{_i}}Live demo{{/i}}

      +

      {{_i}}Live demo{{/i}}

      {{_i}}Toggle a modal via javascript by clicking the button below. It will slide down and fade in from the top of the page.{{/i}}

      - - {{! /example }} -
      -

      {{_i}}Using bootstrap-modal{{/i}}

      +
      + + +

      {{_i}}Usage{{/i}}

      {{_i}}Call the modal via javascript:{{/i}}

      $('#myModal').modal(options)
      +

      {{_i}}Options{{/i}}

      -- cgit v1.2.3 From f453909f390f88664cc590fe3f1fa3c0df041200 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 11 Jun 2012 21:48:41 -0700 Subject: add a dropdowns section to Components (still needs work) and reformat much of the js docs --- docs/templates/pages/components.mustache | 87 ++++++++++- docs/templates/pages/javascript.mustache | 254 ++++++++++++++++++------------- 2 files changed, 231 insertions(+), 110 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/components.mustache b/docs/templates/pages/components.mustache index ea8621b45..09e77724d 100644 --- a/docs/templates/pages/components.mustache +++ b/docs/templates/pages/components.mustache @@ -5,6 +5,7 @@

      {{_i}}Dozens of reusable components are built into Bootstrap to provide navigation, alerts, popovers, and much more.{{/i}}

      + + + + + +
      diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache index 38e38a9e4..825a40d92 100644 --- a/docs/templates/pages/javascript.mustache +++ b/docs/templates/pages/javascript.mustache @@ -76,10 +76,11 @@ -

      {{_i}}About modals{{/i}}

      -

      {{_i}}A streamlined, but flexible, take on the traditional javascript modal plugin with only the minimum required functionality and smart defaults.{{/i}}

      +

      {{_i}}Examples{{/i}}

      +

      {{_i}}Modals are streamlined, but flexible, dialog prompts with the minimum required functionality and smart defaults.{{/i}}

      {{_i}}Static example{{/i}}

      +

      {{_i}}A rendered modal with header, body, and set of actions in the footer.{{/i}}

      -

      {{_i}}Markup{{/i}}

      -

      {{_i}}You can activate modals on your page easily without having to write a single line of javascript. Just set data-toggle="modal" on a controller element with a data-target="#foo" or href="#foo" which corresponds to a modal element id, and when clicked, it will launch your modal.

      -

      Also, to add options to your modal instance, just include them as additional data attributes on either the control element or the modal markup itself.{{/i}}

      -
      -<a href="#myModal" role="button" class="btn" data-toggle="modal">{{_i}}Launch Modal{{/i}}</a>
      -
      - -
      -<div class="modal" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
      -  <div class="modal-header">
      -    <button type="button" class="close" data-dismiss="modal">×</button>
      -    <h3 id="myModalLabel">Modal header</h3>
      -  </div>
      -  <div class="modal-body">
      -    <p>{{_i}}One fine body…{{/i}}</p>
      -  </div>
      -  <div class="modal-footer">
      -    <a href="#" role="button" class="btn">{{_i}}Close{{/i}}</a>
      -    <a href="#" role="button" class="btn btn-primary">{{_i}}Save changes{{/i}}</a>
      -  </div>
      -</div>
      -
      -
      - {{_i}}Heads up!{{/i}} {{_i}}If you want your modal to animate in and out, just add a .fade class to the .modal element (refer to the demo to see this in action) and include bootstrap-transition.js.{{/i}} -
      Methods{{/i}}

      .modal({{_i}}options{{/i}})

      {{_i}}Activates your content as a modal. Accepts an optional options object.{{/i}}

      @@ -280,12 +283,11 @@ $('#myModal').on('hidden', function () {

      {{_i}}Dropdowns{{/i}} bootstrap-dropdown.js

      -

      {{_i}}About dropdowns{{/i}}

      -

      {{_i}}Add dropdown menus to nearly anything in Bootstrap with this simple plugin. Bootstrap features full dropdown menu support on in the navbar, tabs, and pills.{{/i}}

      {{_i}}Examples{{/i}}

      -

      {{_i}}Click on the dropdown nav links in the navbar and pills below to test dropdowns.{{/i}}

      +

      {{_i}}Add dropdown menus to nearly anything with this simple plugin, including the navbar, tabs, and pills.{{/i}}

      +

      {{_i}}Within a navbar{{/i}}

      {{! /example }} +

      {{_i}}Within tabs{{/i}}

      {{! /example }} -
      -

      {{_i}}Using{{/i}} bootstrap-dropdown.js

      -

      {{_i}}Call the dropdowns via javascript:{{/i}}

      -
      $('.dropdown-toggle').dropdown()
      -

      {{_i}}Markup{{/i}}

      -

      {{_i}}To quickly add dropdown functionality to any element just add data-toggle="dropdown" and any valid bootstrap dropdown will automatically be activated.{{/i}}

      -
      - {{_i}}Heads up!{{/i}}{{_i}} You may optionally target a specific dropdown by using data-target="#fat" or href="#fat".{{/i}} -
      +
      + +

      {{_i}}Usage{{/i}}

      + +

      {{_i}}Via data attributes{{/i}}

      +

      {{_i}}Add data-toggle="dropdown" to a link or button to toggle a dropdown.{{/i}}

      -<ul class="nav nav-pills">
      -  <li class="active"><a href="#">Regular link</a></li>
      -  <li class="dropdown" id="menu1">
      -    <a id="dLabel" role="button" class="dropdown-toggle" data-toggle="dropdown" href="#menu1">
      -      {{_i}}Dropdown{{/i}}
      -      <b class="caret"></b>
      -    </a>
      -    <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
      -      <li><a tabindex="-1" href="#">{{_i}}Action{{/i}}</a></li>
      -      <li><a tabindex="-1" href="#">{{_i}}Another action{{/i}}</a></li>
      -      <li><a tabindex="-1" href="#">{{_i}}Something else here{{/i}}</a></li>
      -      <li class="divider"></li>
      -      <li><a tabindex="-1" href="#">{{_i}}Separated link{{/i}}</a></li>
      -    </ul>
      -  </li>
      -  ...
      -</ul>
      +<div class="dropdown"> + <a class="dropdown-toggle" href="#">Dropdown trigger</a> + <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel"> + ... + </ul> +</div> +

      {{_i}}To keep URLs intact, use the data-target attribute instead of href="#".{{/i}}

      -<ul class="nav nav-pills">
      -  <li class="dropdown">
      -    <a class="dropdown-toggle" id="dLabel" role="button" data-toggle="dropdown" data-target="#" href="/page.html">
      -      {{_i}}Dropdown{{/i}}
      -      <b class="caret"></b>
      -    </a>
      -    <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
      -      ...
      -    </ul>
      -  </li>
      -</ul>
      +<div class="dropdown">
      +  <a class="dropdown-toggle" id="dLabel" role="button" data-toggle="dropdown" data-target="#" href="/page.html">
      +    {{_i}}Dropdown{{/i}}
      +    <b class="caret"></b>
      +  </a>
      +  <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
      +    ...
      +  </ul>
      +</div>
       
      + +

      {{_i}}Via javascript{{/i}}

      +

      {{_i}}Call the dropdowns via javascript:{{/i}}

      +
      $('.dropdown-toggle').dropdown()
      +

      {{_i}}Methods{{/i}}

      $().dropdown()

      {{_i}}A programatic api for activating menus for a given navbar or tabbed navigation.{{/i}}

      @@ -423,10 +416,9 @@ $('#myModal').on('hidden', function () {

      {{_i}}ScrollSpy{{/i}} bootstrap-scrollspy.js

      -

      {{_i}}The ScrollSpy plugin is for automatically updating nav targets based on scroll position.{{/i}}

      -

      {{_i}}Example navbar with scrollspy{{/i}}

      -

      {{_i}}Scroll the area below and watch the navigation update. The dropdown sub items will be highlighted as well. Try it!{{/i}}

      +

      {{_i}}Example in navbar{{/i}}

      +

      {{_i}}The ScrollSpy plugin is for automatically updating nav targets based on scroll position. Scroll the area below the navbar and watch the active class change. The dropdown sub items will be highlighted as well.{{/i}}

      {{! /example }} -
      -

      {{_i}}Using bootstrap-scrollspy.js{{/i}}

      + +
      + + +

      {{_i}}Usage{{/i}}

      + +

      {{_i}}Via data attributes{{/i}}

      +

      {{_i}}To easily add scrollspy behavior to your topbar navigation, just add data-spy="scroll" to the element you want to spy on (most typically this would be the body) and data-target=".navbar" to select which nav to use.{{/i}}

      +
      <body data-spy="scroll" data-target=".navbar">...</body>
      + +

      {{_i}}Via javascript{{/i}}

      {{_i}}Call the scrollspy via javascript:{{/i}}

      $('#navbar').scrollspy()
      -

      {{_i}}Markup{{/i}}

      -

      {{_i}}To easily add scrollspy behavior to your topbar navigation, just add data-spy="scroll" to the element you want to spy on (most typically this would be the body).{{/i}}

      -
      <body data-spy="scroll" >...</body>
      +
      {{_i}}Heads up!{{/i}} {{_i}}Navbar links must have resolvable id targets. For example, a <a href="#home">home</a> must correspond to something in the dom like <div id="home"></div>.{{/i}}
      +

      {{_i}}Methods{{/i}}

      .scrollspy('refresh')

      {{_i}}When using scrollspy in conjunction with adding or removing of elements from the DOM, you'll need to call the refresh method like so:{{/i}}

      @@ -493,6 +483,7 @@ $('[data-spy="scroll"]').each(function () { var $spy = $(this).scrollspy('refresh') });
      +

      {{_i}}Options{{/i}}

      @@ -512,7 +503,8 @@ $('[data-spy="scroll"]').each(function () {
      -

      {{_i}}Events{{/i}}

      + +

      {{_i}}Events{{/i}}

      @@ -570,7 +562,11 @@ $('[data-spy="scroll"]').each(function () { {{! /example }} -

      {{_i}}Using bootstrap-tab.js{{/i}}

      + +
      + + +

      {{_i}}Usage{{/i}}

      {{_i}}Enable tabbable tabs via javascript (each tab needs to be activated individually):{{/i}}

       $('#myTab a').click(function (e) {
      @@ -584,6 +580,7 @@ $('#myTab a:first').tab('show'); // Select first tab
       $('#myTab a:last').tab('show'); // Select last tab
       $('#myTab li:eq(2) a').tab('show'); // Select third tab (0-indexed)
       
      +

      {{_i}}Markup{{/i}}

      {{_i}}You can activate a tab or pill navigation without writing any javascript by simply specifying data-toggle="tab" or data-toggle="pill" on an element. Adding the nav and nav-tabs classes to the tab ul will apply the bootstrap tab styling.{{/i}}

      @@ -593,6 +590,7 @@ $('#myTab li:eq(2) a').tab('show'); // Select third tab (0-indexed)
         <li><a href="#messages" data-toggle="tab">{{_i}}Messages{{/i}}</a></li>
         <li><a href="#settings" data-toggle="tab">{{_i}}Settings{{/i}}</a></li>
       </ul>
      +

      {{_i}}Methods{{/i}}

      $().tab

      @@ -618,6 +616,7 @@ $('#myTab li:eq(2) a').tab('show'); // Select third tab (0-indexed) $('#myTab a:last').tab('show'); }) </script> +

      {{_i}}Events{{/i}}

      @@ -662,9 +661,14 @@ $('a[data-toggle="tab"]').on('shown', function (e) {

      {{! /example }} -

      {{_i}}Using{{/i}} bootstrap-tooltip.js

      + +
      + + +

      {{_i}}Usage{{/i}}

      {{_i}}Trigger the tooltip via javascript:{{/i}}

      $('#example').tooltip({{_i}}options{{/i}})
      +

      {{_i}}Options{{/i}}

      @@ -728,6 +732,7 @@ $('a[data-toggle="tab"]').on('shown', function (e) { {{_i}}Heads up!{{/i}} {{_i}}Options for individual tooltips can alternatively be specified through the use of data attributes.{{/i}} +

      {{_i}}Markup{{/i}}

      {{_i}}For performance reasons, the Tooltip and Popover data-apis are opt in. If you would like to use them just specify a selector option.{{/i}}

      @@ -767,9 +772,14 @@ $('a[data-toggle="tab"]').on('shown', function (e) {
           {{_i}}hover for popover{{/i}}
         
       
      -  

      {{_i}}Using bootstrap-popover.js{{/i}}

      + +
      + + +

      {{_i}}Usage{{/i}}

      {{_i}}Enable popovers via javascript:{{/i}}

      $('#example').popover({{_i}}options{{/i}})
      +

      {{_i}}Options{{/i}}

      @@ -839,10 +849,9 @@ $('a[data-toggle="tab"]').on('shown', function (e) { {{_i}}Heads up!{{/i}} {{_i}}Options for individual popovers can alternatively be specified through the use of data attributes.{{/i}} +

      {{_i}}Markup{{/i}}

      -

      - {{_i}}For performance reasons, the Tooltip and Popover data-apis are opt in. If you would like to use them just specify a selector option.{{/i}} -

      +

      {{_i}}For performance reasons, the Tooltip and Popover data-apis are opt in. If you would like to use them just specify a selector option.{{/i}}

      {{_i}}Methods{{/i}}

      $().popover({{_i}}options{{/i}})

      {{_i}}Initializes popovers for an element collection.{{/i}}

      @@ -889,18 +898,25 @@ $('a[data-toggle="tab"]').on('shown', function (e) { {{! /example }} -

      {{_i}}Using bootstrap-alert.js{{/i}}

      + +
      + + +

      {{_i}}Usage{{/i}}

      {{_i}}Enable dismissal of an alert via javascript:{{/i}}

      $(".alert").alert()
      +

      {{_i}}Markup{{/i}}

      {{_i}}Just add data-dismiss="alert" to your close button to automatically give an alert close functionality.{{/i}}

      <a class="close" data-dismiss="alert" href="#">&times;</a>
      +

      {{_i}}Methods{{/i}}

      $().alert()

      {{_i}}Wraps all alerts with close functionality. To have your alerts animate out when closed, make sure they have the .fade and .in class already applied to them.{{/i}}

      .alert('close')

      {{_i}}Closes an alert.{{/i}}

      $(".alert").alert('close')
      +

      {{_i}}Events{{/i}}

      {{_i}}Bootstrap's alert class exposes a few events for hooking into alert functionality.{{/i}}

      @@ -972,10 +988,15 @@ $('#my-alert').bind('closed', function () { {{! /example }} -

      {{_i}}Using bootstrap-button.js{{/i}}

      + +
      + + +

      {{_i}}Usage{{/i}}

      {{_i}}Enable buttons via javascript:{{/i}}

      $('.nav-tabs').button()
      -

      {{_i}}Markup{{/i}}

      + +

      {{_i}}Markup{{/i}}

      {{_i}}Data attributes are integral to the button plugin. Check out the example code below for the various markup types.{{/i}}

       <!-- {{_i}}Add data-toggle="button" to activate toggling on a single button{{/i}} -->
      @@ -995,6 +1016,7 @@ $('#my-alert').bind('closed', function () {
         <button class="btn">Right</button>
       </div>
       
      +

      {{_i}}Methods{{/i}}

      $().button('toggle')

      {{_i}}Toggles push state. Gives the button the appearance that it has been activated.{{/i}}

      @@ -1078,9 +1100,14 @@ $('#my-alert').bind('closed', function () { {{! /example }} -

      {{_i}}Using bootstrap-collapse.js{{/i}}

      + +
      + + +

      {{_i}}Usage{{/i}}

      {{_i}}Enable via javascript:{{/i}}

      $(".collapse").collapse()
      +

      {{_i}}Options{{/i}}

      @@ -1118,6 +1145,7 @@ $('#my-alert').bind('closed', function () { {{_i}}Heads up!{{/i}} {{_i}}To add accordion-like group management to a collapsible control, add the data attribute data-parent="#selector". Refer to the demo to see this in action.{{/i}} +

      {{_i}}Methods{{/i}}

      .collapse({{_i}}options{{/i}})

      {{_i}}Activates your content as a collapsible element. Accepts an optional options object.{{/i}} @@ -1131,10 +1159,9 @@ $('#myCollapsible').collapse({

      {{_i}}Shows a collapsible element.{{/i}}

      .collapse('hide')

      {{_i}}Hides a collapsible element.{{/i}}

      +

      {{_i}}Events{{/i}}

      -

      - {{_i}}Bootstrap's collapse class exposes a few events for hooking into collapse functionality.{{/i}} -

      +

      {{_i}}Bootstrap's collapse class exposes a few events for hooking into collapse functionality.{{/i}}

      @@ -1218,8 +1245,12 @@ $('#myCollapsible').on('hidden', function () { {{_i}}Heads up!{{/i}} {{_i}}When implementing this carousel, remove the images we have provided and replace them with your own.{{/i}} -
      -

      {{_i}}Using bootstrap-carousel.js{{/i}}

      + + +
      + + +

      {{_i}}Usage{{/i}}

      {{_i}}Call via javascript:{{/i}}

      $('.carousel').carousel()

      {{_i}}Options{{/i}}

      @@ -1247,6 +1278,7 @@ $('#myCollapsible').on('hidden', function () {
      +

      {{_i}}Markup{{/i}}

      {{_i}}Data attributes are used for the previous and next conrols. Check out the example markup below.{{/i}}

      @@ -1262,6 +1294,7 @@ $('#myCollapsible').on('hidden', function () {
         <a class="carousel-control right" href="#myCarousel" data-slide="next">&rsaquo;</a>
       </div>
       
      +

      {{_i}}Methods{{/i}}

      .carousel({{_i}}options{{/i}})

      {{_i}}Initializes the carousel with an optional options object and starts cycling through items.{{/i}}

      @@ -1280,6 +1313,7 @@ $('.carousel').carousel({

      {{_i}}Cycles to the previous item.{{/i}}

      .carousel('next')

      {{_i}}Cycles to the next item.{{/i}}

      +

      {{_i}}Events{{/i}}

      {{_i}}Bootstrap's carousel class exposes two events for hooking into carousel functionality.{{/i}}

      @@ -1320,7 +1354,11 @@ $('.carousel').carousel({ {{! /example }} -

      {{_i}}Using bootstrap-typeahead.js{{/i}}

      + +
      + + +

      {{_i}}Usage{{/i}}

      {{_i}}Call the typeahead via javascript:{{/i}}

      $('.typeahead').typeahead()

      {{_i}}Options{{/i}}

      -- cgit v1.2.3 From c7ffe6edc894b00db16bc4386f421a3d8efadd50 Mon Sep 17 00:00:00 2001 From: Purwandi Date: Tue, 12 Jun 2012 12:17:10 +0700 Subject: Add space on navbar button --- docs/templates/layout.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/templates') diff --git a/docs/templates/layout.mustache b/docs/templates/layout.mustache index 766cac822..eeda3c2c4 100644 --- a/docs/templates/layout.mustache +++ b/docs/templates/layout.mustache @@ -46,7 +46,7 @@
      @@ -402,6 +403,9 @@ $('#myModal').on('hidden', function () {

      {{_i}}Call the dropdowns via javascript:{{/i}}

      $('.dropdown-toggle').dropdown()
      +

      {{_i}}Options{{/i}}

      +

      {{_i}}None{{/i}}

      +

      {{_i}}Methods{{/i}}

      $().dropdown()

      {{_i}}A programatic api for activating menus for a given navbar or tabbed navigation.{{/i}}

      @@ -485,6 +489,7 @@ $('[data-spy="scroll"]').each(function () {

      {{_i}}Options{{/i}}

      +

      {{_i}}Options can be passed via data attributes or javascript. For data attributes, append the option name to data-, as in data-offset="".{{/i}}

      @@ -670,6 +675,7 @@ $('a[data-toggle="tab"]').on('shown', function (e) {
      $('#example').tooltip({{_i}}options{{/i}})

      {{_i}}Options{{/i}}

      +

      {{_i}}Options can be passed via data attributes or javascript. For data attributes, append the option name to data-, as in data-animation="".{{/i}}

      @@ -781,6 +787,7 @@ $('a[data-toggle="tab"]').on('shown', function (e) {
      $('#example').popover({{_i}}options{{/i}})

      {{_i}}Options{{/i}}

      +

      {{_i}}Options can be passed via data attributes or javascript. For data attributes, append the option name to data-, as in data-animation="".{{/i}}

      @@ -852,6 +859,7 @@ $('a[data-toggle="tab"]').on('shown', function (e) {

      {{_i}}Markup{{/i}}

      {{_i}}For performance reasons, the Tooltip and Popover data-apis are opt in. If you would like to use them just specify a selector option.{{/i}}

      +

      {{_i}}Methods{{/i}}

      $().popover({{_i}}options{{/i}})

      {{_i}}Initializes popovers for an element collection.{{/i}}

      @@ -917,6 +925,7 @@ $('a[data-toggle="tab"]').on('shown', function (e) {

      {{_i}}Closes an alert.{{/i}}

      $(".alert").alert('close')
      +

      {{_i}}Events{{/i}}

      {{_i}}Bootstrap's alert class exposes a few events for hooking into alert functionality.{{/i}}

      @@ -1017,6 +1026,9 @@ $('#my-alert').bind('closed', function () { </div> +

      {{_i}}Options{{/i}}

      +

      {{_i}}None{{/i}}

      +

      {{_i}}Methods{{/i}}

      $().button('toggle')

      {{_i}}Toggles push state. Gives the button the appearance that it has been activated.{{/i}}

      @@ -1109,6 +1121,7 @@ $('#my-alert').bind('closed', function () {
      $(".collapse").collapse()

      {{_i}}Options{{/i}}

      +

      {{_i}}Options can be passed via data attributes or javascript. For data attributes, append the option name to data-, as in data-parent="".{{/i}}

      @@ -1253,7 +1266,9 @@ $('#myCollapsible').on('hidden', function () {

      {{_i}}Usage{{/i}}

      {{_i}}Call via javascript:{{/i}}

      $('.carousel').carousel()
      +

      {{_i}}Options{{/i}}

      +

      {{_i}}Options can be passed via data attributes or javascript. For data attributes, append the option name to data-, as in data-interval="".{{/i}}

      @@ -1345,23 +1360,31 @@ $('.carousel').carousel({

      {{_i}}Typeahead{{/i}} bootstrap-typeahead.js

      -

      {{_i}}About{{/i}}

      -

      {{_i}}A basic, easily extended plugin for quickly creating elegant typeaheads with any form text input.{{/i}}

      {{_i}}Example{{/i}}

      -

      {{_i}}Start typing in the field below to show the typeahead results.{{/i}}

      +

      {{_i}}A basic, easily extended plugin for quickly creating elegant typeaheads with any form text input.{{/i}}

      {{! /example }} +
      +<input type="text" data-provide="typeahead">
      +

      {{_i}}Usage{{/i}}

      -

      {{_i}}Call the typeahead via javascript:{{/i}}

      + +

      {{_i}}Via data attributes{{/i}}

      +

      {{_i}}Add data attributes to register an element with typeahead functionality as shown in the example above.{{/i}}

      + +

      {{_i}}Via javascript{{/i}}

      +

      {{_i}}Call the typeahead manually with:{{/i}}

      $('.typeahead').typeahead()
      +

      {{_i}}Options{{/i}}

      +

      {{_i}}Options can be passed via data attributes or javascript. For data attributes, append the option name to data-, as in data-source="".{{/i}}

      @@ -1405,11 +1428,6 @@ $('.carousel').carousel({
      -

      {{_i}}Markup{{/i}}

      -

      {{_i}}Add data attributes to register an element with typeahead functionality.{{/i}}

      -
      -<input type="text" data-provide="typeahead">
      -

      {{_i}}Methods{{/i}}

      .typeahead({{_i}}options{{/i}})

      {{_i}}Initializes an input with a typeahead.{{/i}}

      -- cgit v1.2.3 From 2e6d4e9439d489dc1c45f27d626a4f5d3399e483 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 11 Jun 2012 22:28:10 -0700 Subject: more rearrangement and removal of about sections in js docs --- docs/templates/pages/javascript.mustache | 138 +++++++++++++++---------------- 1 file changed, 67 insertions(+), 71 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache index e7c4a5bf0..0a3a7aa80 100644 --- a/docs/templates/pages/javascript.mustache +++ b/docs/templates/pages/javascript.mustache @@ -535,10 +535,9 @@ $('[data-spy="scroll"]').each(function () {

      {{_i}}Togglable tabs{{/i}} bootstrap-tab.js

      -

      {{_i}}This plugin adds quick, dynamic tab and pill functionality for transitioning through local content.{{/i}}

      {{_i}}Example tabs{{/i}}

      -

      {{_i}}Click the tabs below to toggle between hidden panes, even via dropdown menus.{{/i}}

      +

      {{_i}}Add quick, dynamic tab functionality to transiton through panes of local content, even via dropdown menus.{{/i}}

      -

      {{_i}}About Tooltips{{/i}}

      -

      {{_i}}Inspired by the excellent jQuery.tipsy plugin written by Jason Frame; Tooltips are an updated version, which don't rely on images, use css3 for animations, and data-attributes for local title storage.{{/i}}

      -

      {{_i}}Example use of Tooltips{{/i}}

      +

      {{_i}}Examples{{/i}}

      +

      {{_i}}Inspired by the excellent jQuery.tipsy plugin written by Jason Frame; Tooltips are an updated version, which don't rely on images, use CSS3 for animations, and data-attributes for local title storage.{{/i}}

      {{_i}}Hover over the links below to see tooltips:{{/i}}

      {{_i}}Tight pants next level keffiyeh you probably haven't heard of them. Photo booth beard raw denim letterpress vegan messenger bag stumptown. Farm-to-table seitan, mcsweeney's fixie sustainable quinoa 8-bit american apparel have a terry richardson vinyl chambray. Beard stumptown, cardigans banh mi lomo thundercats. Tofu biodiesel williamsburg marfa, four loko mcsweeney's cleanse vegan chambray. A really ironic artisan whatever keytar, scenester farm-to-table banksy Austin twitter handle freegan cred raw denim single-origin coffee viral.{{/i}} @@ -768,12 +766,9 @@ $('a[data-toggle="tab"]').on('shown', function (e) {

      {{_i}}Popovers{{/i}} bootstrap-popover.js

      -

      {{_i}}About popovers{{/i}}

      -

      {{_i}}Add small overlays of content, like those on the iPad, to any element for housing secondary information.{{/i}}

      +

      {{_i}}Example{{/i}}

      +

      {{_i}}Add small overlays of content, like those on the iPad, to any element for housing secondary information. Hover over the button to trigger the popover.{{/i}}

      * {{_i}}Requires Tooltip to be included{{/i}}

      - -

      {{_i}}Example hover popover{{/i}}

      -

      {{_i}}Hover over the button to trigger the popover.{{/i}}

      @@ -883,11 +878,9 @@ $('a[data-toggle="tab"]').on('shown', function (e) {

      {{_i}}Alert messages{{/i}} bootstrap-alert.js

      -

      {{_i}}About alerts{{/i}}

      -

      {{_i}}The alert plugin is a tiny class for adding close functionality to alerts.{{/i}}

      {{_i}}Example alerts{{/i}}

      -

      {{_i}}The alerts plugin works on regular alert messages, and block messages.{{/i}}

      +

      {{_i}}Add dismiss functionality to all alerge messages with this plugin.{{/i}}

      @@ -961,25 +954,31 @@ $('#my-alert').bind('closed', function () {

      {{_i}}Buttons{{/i}} bootstrap-button.js

      -

      {{_i}}About{{/i}}

      -

      {{_i}}Do more with buttons. Control button states or create groups of buttons for more components like toolbars.{{/i}}

      -

      {{_i}}Example uses{{/i}}

      -

      {{_i}}Use the buttons plugin for states and toggles.{{/i}}

      +

      {{_i}}Do more with buttons. Control button states or create groups of buttons for more components like toolbars.{{/i}}

      {{_i}}Stateful{{/i}}

      +

      {{_i}}Add data-loading-text="Loading..." to use a loading state on a button.{{/i}}

      {{! /example }} +
      +<button class="btn btn-primary" data-loading-text="Loading...">Loading state</button>
      +

      {{_i}}Single toggle{{/i}}

      +

      {{_i}}Add data-toggle="button" to activate toggling on a single button.{{/i}}

      {{! /example }} +
      +<button class="btn" data-toggle="button">Single Toggle</button>
      +

      {{_i}}Checkbox{{/i}}

      +

      {{_i}}Add data-toggle="buttons-checkbox" for checkbox style toggling on btn-group.{{/i}}

      @@ -987,8 +986,16 @@ $('#my-alert').bind('closed', function () {
      {{! /example }} +
      +<div class="btn-group" data-toggle="buttons-checkbox">
      +  <button class="btn">Left</button>
      +  <button class="btn">Middle</button>
      +  <button class="btn">Right</button>
      +</div>
      +

      {{_i}}Radio{{/i}}

      +

      {{_i}}Add data-toggle="buttons-radio" for radio style toggling on btn-group.{{/i}}

      @@ -996,6 +1003,13 @@ $('#my-alert').bind('closed', function () {
      {{! /example }} +
      +<div class="btn-group" data-toggle="buttons-radio">
      +  <button class="btn">Left</button>
      +  <button class="btn">Middle</button>
      +  <button class="btn">Right</button>
      +</div>
      +

      @@ -1007,24 +1021,6 @@ $('#my-alert').bind('closed', function () {

      {{_i}}Markup{{/i}}

      {{_i}}Data attributes are integral to the button plugin. Check out the example code below for the various markup types.{{/i}}

      -
      -<!-- {{_i}}Add data-toggle="button" to activate toggling on a single button{{/i}} -->
      -<button class="btn" data-toggle="button">Single Toggle</button>
      -
      -<!-- {{_i}}Add data-toggle="buttons-checkbox" for checkbox style toggling on btn-group{{/i}} -->
      -<div class="btn-group" data-toggle="buttons-checkbox">
      -  <button class="btn">Left</button>
      -  <button class="btn">Middle</button>
      -  <button class="btn">Right</button>
      -</div>
      -
      -<!-- {{_i}}Add data-toggle="buttons-radio" for radio style toggling on btn-group{{/i}} -->
      -<div class="btn-group" data-toggle="buttons-radio">
      -  <button class="btn">Left</button>
      -  <button class="btn">Middle</button>
      -  <button class="btn">Right</button>
      -</div>
      -

      {{_i}}Options{{/i}}

      {{_i}}None{{/i}}

      @@ -1111,13 +1107,26 @@ $('#my-alert').bind('closed', function () {
      {{! /example }} +
      +<button class="btn btn-danger" data-toggle="collapse" data-target="#demo">
      +  {{_i}}simple collapsible{{/i}}
      +</button>
      +
      +<div id="demo" class="collapse in"> … </div>
      +

      {{_i}}Usage{{/i}}

      -

      {{_i}}Enable via javascript:{{/i}}

      + +

      {{_i}}Via data attributes{{/i}}

      +

      {{_i}}Just add data-toggle="collapse" and a data-target to element to automatically assign control of a collapsible element. The data-target attribute accepts a css selector to apply the collapse to. Be sure to add the class collapse to the collapsible element. If you'd like it to default open, add the additional class in.{{/i}}

      +

      {{_i}}To add accordion-like group management to a collapsible control, add the data attribute data-parent="#selector". Refer to the demo to see this in action.{{/i}}

      + +

      {{_i}}Via javascript{{/i}}

      +

      {{_i}}Enable manually with:{{/i}}

      $(".collapse").collapse()

      {{_i}}Options{{/i}}

      @@ -1146,18 +1155,7 @@ $('#my-alert').bind('closed', function () { -

      {{_i}}Markup{{/i}}

      -

      {{_i}}Just add data-toggle="collapse" and a data-target to element to automatically assign control of a collapsible element. The data-target attribute accepts a css selector to apply the collapse to. Be sure to add the class collapse to the collapsible element. If you'd like it to default open, add the additional class in.{{/i}}

      -
      -<button class="btn btn-danger" data-toggle="collapse" data-target="#demo">
      -  {{_i}}simple collapsible{{/i}}
      -</button>
       
      -<div id="demo" class="collapse in"> … </div>
      -
      - {{_i}}Heads up!{{/i}} - {{_i}}To add accordion-like group management to a collapsible control, add the data attribute data-parent="#selector". Refer to the demo to see this in action.{{/i}} -

      {{_i}}Methods{{/i}}

      .collapse({{_i}}options{{/i}})

      @@ -1218,12 +1216,8 @@ $('#myCollapsible').on('hidden', function () {

      {{_i}}Carousel{{/i}} bootstrap-carousel.js

      -

      {{_i}}About{{/i}}

      -

      {{_i}}A generic plugin for cycling through elements. A merry-go-round.{{/i}}

      -

      {{_i}}Example carousel{{/i}}

      -

      {{_i}}Watch the slideshow below.{{/i}}

      - +

      {{_i}}The slideshow below shows a generic plugin and component for cycling through elements like a carousel.{{/i}}

      {{! /example }} +
      +<div id="myCarousel" class="carousel slide">
      +  <!-- {{_i}}Carousel items{{/i}} -->
      +  <div class="carousel-inner">
      +    <div class="active item">…</div>
      +    <div class="item">…</div>
      +    <div class="item">…</div>
      +  </div>
      +  <!-- {{_i}}Carousel nav{{/i}} -->
      +  <a class="carousel-control left" href="#myCarousel" data-slide="prev">&lsaquo;</a>
      +  <a class="carousel-control right" href="#myCarousel" data-slide="next">&rsaquo;</a>
      +</div>
      +
      -
      +
      {{_i}}Heads up!{{/i}} {{_i}}When implementing this carousel, remove the images we have provided and replace them with your own.{{/i}}
      @@ -1264,7 +1271,12 @@ $('#myCollapsible').on('hidden', function () {

      {{_i}}Usage{{/i}}

      -

      {{_i}}Call via javascript:{{/i}}

      + +

      {{_i}}Via data attributes{{/i}}

      +

      {{_i}}...{{/i}}

      + +

      {{_i}}Via javascript{{/i}}

      +

      {{_i}}Call carousel manually with:{{/i}}

      $('.carousel').carousel()

      {{_i}}Options{{/i}}

      @@ -1294,22 +1306,6 @@ $('#myCollapsible').on('hidden', function () { -

      {{_i}}Markup{{/i}}

      -

      {{_i}}Data attributes are used for the previous and next conrols. Check out the example markup below.{{/i}}

      -
      -<div id="myCarousel" class="carousel slide">
      -  <!-- {{_i}}Carousel items{{/i}} -->
      -  <div class="carousel-inner">
      -    <div class="active item">…</div>
      -    <div class="item">…</div>
      -    <div class="item">…</div>
      -  </div>
      -  <!-- {{_i}}Carousel nav{{/i}} -->
      -  <a class="carousel-control left" href="#myCarousel" data-slide="prev">&lsaquo;</a>
      -  <a class="carousel-control right" href="#myCarousel" data-slide="next">&rsaquo;</a>
      -</div>
      -
      -

      {{_i}}Methods{{/i}}

      .carousel({{_i}}options{{/i}})

      {{_i}}Initializes the carousel with an optional options object and starts cycling through items.{{/i}}

      -- cgit v1.2.3 From 2cbff258b9351569c76be8e7be1dd9f227a7d2ae Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 11 Jun 2012 22:33:16 -0700 Subject: fix examples page --- docs/templates/pages/examples.mustache | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/examples.mustache b/docs/templates/pages/examples.mustache index dee7d5651..e5c9143ef 100644 --- a/docs/templates/pages/examples.mustache +++ b/docs/templates/pages/examples.mustache @@ -7,21 +7,21 @@
        -
      • +
      • {{_i}}Basic marketing site{{/i}}

        {{_i}}Featuring a hero unit for a primary message and three supporting elements.{{/i}}

      • -
      • +
      • {{_i}}Fluid layout{{/i}}

        {{_i}}Uses our new responsive, fluid grid system to create a seamless liquid layout.{{/i}}

      • -
      • +
      • -- cgit v1.2.3 From 3ead14a1e082b95a792339a549b14df59f53de2b Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Wed, 13 Jun 2012 22:00:10 -0700 Subject: clarify support of select items (which is none) for input-prepend/append --- docs/templates/pages/base-css.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/base-css.mustache b/docs/templates/pages/base-css.mustache index 83418bd1b..5ad952c85 100644 --- a/docs/templates/pages/base-css.mustache +++ b/docs/templates/pages/base-css.mustache @@ -890,7 +890,7 @@

        {{_i}}Adding on top of existing browser controls, Bootstrap includes other useful form components.{{/i}}

        {{_i}}Prepended and appended inputs{{/i}}

        -

        {{_i}}Add text or buttons before or after any text-based input.{{/i}}

        +

        {{_i}}Add text or buttons before or after any text-based input. Do note that select elements are not supported here.{{/i}}

        {{_i}}Default options{{/i}}

        {{_i}}Wrap a .add-on and an input with one of two classes to prepend or append text to an input.{{/i}}

        -- cgit v1.2.3 From cda48d41baacf1f515dbdd4ef091a42eff26b469 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Wed, 13 Jun 2012 22:04:02 -0700 Subject: fix #gradientBar to .gradientBar in LESS docs --- docs/templates/pages/less.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/less.mustache b/docs/templates/pages/less.mustache index 6606f4ca8..4c0a9f19f 100644 --- a/docs/templates/pages/less.mustache +++ b/docs/templates/pages/less.mustache @@ -871,7 +871,7 @@ {{_i}}Create a cross-browser striped background gradient{{/i}} - #gradientBar() + .gradientBar() @primaryColor, @secondaryColor {{_i}}Used for buttons to assign a gradient and slightly darker border{{/i}} -- cgit v1.2.3 From b1cb5565039f492766fdfd727f776f3e9dfa7e45 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 14 Jun 2012 11:56:46 -0700 Subject: improve inline-block of append/prepend inputs with font-size: 0; --- docs/templates/pages/base-css.mustache | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/base-css.mustache b/docs/templates/pages/base-css.mustache index 5ad952c85..9a122711a 100644 --- a/docs/templates/pages/base-css.mustache +++ b/docs/templates/pages/base-css.mustache @@ -896,11 +896,13 @@

        {{_i}}Wrap a .add-on and an input with one of two classes to prepend or append text to an input.{{/i}}

        - @ + @ +

        - .00 + + .00
        @@ -916,7 +918,9 @@
           

        {{_i}}Use both classes and two instances of .add-on to prepend and append an input.{{/i}}

        - $.00 + $ + + .00
        @@ -929,11 +933,14 @@
           

        {{_i}}Instead of a <span> with text, use a .btn to attach a button (or two) to an input.{{/i}}

        - + +

        - + + +
        -- 
        cgit v1.2.3
        
        
        From 6a974f9ff7962afc9aaf5510055e574d147a6c42 Mon Sep 17 00:00:00 2001
        From: Jon Stevens 
        Date: Mon, 18 Jun 2012 19:25:54 -0700
        Subject: enable the ability to destroy tooltips and popovers from elements.
         related to issue #3453
        
        ---
         docs/templates/pages/javascript.mustache | 8 +++++++-
         1 file changed, 7 insertions(+), 1 deletion(-)
        
        (limited to 'docs/templates')
        
        diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache
        index 0a3a7aa80..bad720889 100644
        --- a/docs/templates/pages/javascript.mustache
        +++ b/docs/templates/pages/javascript.mustache
        @@ -755,6 +755,9 @@ $('a[data-toggle="tab"]').on('shown', function (e) {
           

        .tooltip('toggle')

        {{_i}}Toggles an element's tooltip.{{/i}}

        $('#element').tooltip('toggle')
        +

        .tooltip('destroy')

        +

        {{_i}}Destroys an element's tooltip.{{/i}}

        +
        $('#element').tooltip('destroy')
        @@ -821,7 +824,7 @@ $('a[data-toggle="tab"]').on('shown', function (e) { {{_i}}trigger{{/i}} {{_i}}string{{/i}} 'hover' - {{_i}}how tooltip is triggered{{/i}} - hover | focus | manual + {{_i}}how popover is triggered{{/i}} - hover | focus | manual {{_i}}title{{/i}} @@ -867,6 +870,9 @@ $('a[data-toggle="tab"]').on('shown', function (e) {

        .popover('toggle')

        {{_i}}Toggles an elements popover.{{/i}}

        $('#element').popover('toggle')
        +

        .popover('popover')

        +

        {{_i}}Destroys an element's popover.{{/i}}

        +
        $('#element').popover('destroy')
        -- cgit v1.2.3 From af88f54e5d70c8a9e342f14f937aa5985b4b9d68 Mon Sep 17 00:00:00 2001 From: Jon Stevens Date: Mon, 18 Jun 2012 19:56:52 -0700 Subject: small typo fix to docs --- docs/templates/pages/javascript.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache index bad720889..3e558c4f7 100644 --- a/docs/templates/pages/javascript.mustache +++ b/docs/templates/pages/javascript.mustache @@ -870,7 +870,7 @@ $('a[data-toggle="tab"]').on('shown', function (e) {

        .popover('toggle')

        {{_i}}Toggles an elements popover.{{/i}}

        $('#element').popover('toggle')
        -

        .popover('popover')

        +

        .popover('destroy')

        {{_i}}Destroys an element's popover.{{/i}}

        $('#element').popover('destroy')
        -- cgit v1.2.3 From 9aa5a6db12fcbc1638610132c1a0f64633325f44 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 19 Jun 2012 13:21:35 -0700 Subject: updated tests and homepage marketing copy --- docs/templates/pages/index.mustache | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/index.mustache b/docs/templates/pages/index.mustache index fe7a02717..d7c971372 100644 --- a/docs/templates/pages/index.mustache +++ b/docs/templates/pages/index.mustache @@ -56,12 +56,12 @@

        {{_i}}Responsive design{{/i}}

        -

        {{_i}}As of Bootstrap 2, our components are scaled according to a range of resolutions and devices to provide a consistent experience, no matter what.{{/i}}

        +

        {{_i}}Beginning with Bootstrap 2, components are scaled according to a range of resolutions and devices to provide a consistent experience, no matter what.{{/i}}

      -

      {{_i}}Styleguide docs{{/i}}

      -

      {{_i}}Unlike other front-end toolkits, Bootstrap was designed first and foremost as a styleguide to document not only our features, but best practices and living, coded examples.{{/i}}

      +

      {{_i}}Living, coded examples{{/i}}

      +

      {{_i}}Bootstrap was designed first and foremost as a way to document not only the code of our components, but the visual and interaction design through live examples.{{/i}}

      {{_i}}Growing library{{/i}}

      @@ -69,7 +69,7 @@

      {{_i}}Custom jQuery plugins{{/i}}

      -

      {{_i}}Easy-to-use, proper, and extensible interactions for many common components with custom-built jQuery plugins to bring your projects to life.{{/i}}

      +

      {{_i}}Easy-to-use, proper, and extensible interactions for many of our components with custom-built jQuery plugins to quickly bring any project to life.{{/i}}

      {{_i}}Built on LESS{{/i}}

      -- cgit v1.2.3 From 143b6ae2de0e7f0c4e835a20765c81c26dba0423 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 19 Jun 2012 13:23:30 -0700 Subject: fix less docs typos --- docs/templates/pages/less.mustache | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/less.mustache b/docs/templates/pages/less.mustache index 4c0a9f19f..be8adb766 100644 --- a/docs/templates/pages/less.mustache +++ b/docs/templates/pages/less.mustache @@ -308,7 +308,7 @@ @btnSuccessBackgroundHighlight - 51a351 + #51a351 @@ -546,7 +546,7 @@ @heroUnitLeadColor - inhereit + inherit -- cgit v1.2.3 From 64ba423b6d06c98e95e23d8c34df62a47a421a03 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 19 Jun 2012 13:52:07 -0700 Subject: #2764: add disabled styles to navs and dropdowns --- docs/templates/pages/components.mustache | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/components.mustache b/docs/templates/pages/components.mustache index 09e77724d..1c33073a8 100644 --- a/docs/templates/pages/components.mustache +++ b/docs/templates/pages/components.mustache @@ -37,7 +37,7 @@ -
      {{! /example }}
       <ul class="nav nav-list">
      -  <li class="nav-header">
      -    {{_i}}List header{{/i}}
      -  </li>
      -  <li class="active">
      -    <a href="#">{{_i}}Home{{/i}}</a>
      -  </li>
      -  <li>
      -    <a href="#">{{_i}}Library{{/i}}</a>
      -  </li>
      +  <li class="nav-header">{{_i}}List header{{/i}}</li>
      +  <li class="active"><a href="#">{{_i}}Home{{/i}}</a></li>
      +  <li><a href="#">{{_i}}Library{{/i}}</a></li>
         ...
       </ul>
       
      +

      + {{_i}}Note{{/i}} + {{_i}}For nesting within a nav list, include class="nav nav-list" on any nested <ul>.{{/i}} +

      {{_i}}Horizontal dividers{{/i}}

      {{_i}}Add a horizontal divider by creating an empty list item with the class .divider, like so:{{/i}}

      -- cgit v1.2.3 From 9df832b4bb81d80fd02b4fe6cc9ea826b0b0454e Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 19 Jun 2012 19:17:42 -0700 Subject: add separate vars for dropdown link hover and active states --- docs/templates/pages/less.mustache | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'docs/templates') diff --git a/docs/templates/pages/less.mustache b/docs/templates/pages/less.mustache index be8adb766..ccd829963 100644 --- a/docs/templates/pages/less.mustache +++ b/docs/templates/pages/less.mustache @@ -517,8 +517,16 @@ @dropdownLinkColorHover @white + + @dropdownLinkColorActive + @linkColor + @dropdownLinkBackgroundHover + @grayLighter + + + @dropdownLinkBackgroundActive @linkColor -- cgit v1.2.3 From 089f42a07fd9e7ed393e9e4961ec4f5ff61aa173 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Wed, 20 Jun 2012 00:06:05 -0700 Subject: fix html typos --- docs/templates/pages/components.mustache | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/components.mustache b/docs/templates/pages/components.mustache index 1e6d6fe41..16c910bbd 100644 --- a/docs/templates/pages/components.mustache +++ b/docs/templates/pages/components.mustache @@ -1239,7 +1239,7 @@
       <div class="pagination">
         <ul>
      -    <li><a href="#">Prev</a></li>
      +    <li><a href="#">Prev</a></li>
           <li><a href="#">1</a></li>
           <li><a href="#">2</a></li>
           <li><a href="#">3</a></li>
      @@ -1273,7 +1273,7 @@
       
       <div class="pagination ">
         <ul>
      -    <li class="disabled"><a href="#">Prev</a></li>
      +    <li class="disabled"><a href="#">Prev</a></li>
           <li class="active"><a href="#">1</a></li>
           ...
         </ul>
      -- 
      cgit v1.2.3
      
      
      From b353565d4e0bf7d6a05b3295c0d8db5ca745bd1c Mon Sep 17 00:00:00 2001
      From: Mark Otto 
      Date: Wed, 20 Jun 2012 20:26:50 -0700
      Subject: add docs for fluid offsetting
      
      ---
       docs/templates/pages/scaffolding.mustache | 22 ++++++++++++++++++++++
       1 file changed, 22 insertions(+)
      
      (limited to 'docs/templates')
      
      diff --git a/docs/templates/pages/scaffolding.mustache b/docs/templates/pages/scaffolding.mustache
      index 850654aa3..ec0bde55e 100644
      --- a/docs/templates/pages/scaffolding.mustache
      +++ b/docs/templates/pages/scaffolding.mustache
      @@ -204,6 +204,28 @@
         <div class="span4">...</div>
         <div class="span8">...</div>
       </div>
      +
      + +

      {{_i}}Fluid offsetting{{/i}}

      +

      {{_i}}Operates the same way as the fixed grid system offsetting: add .offset* to any column to offset by that many columns.{{/i}}

      +
      +
      +
      4
      +
      4 offset 4
      +
      +
      +
      3 offset 3
      +
      3 offset 3
      +
      +
      +
      6 offset 6
      +
      +
      +
      +<div class="row-fluid">
      +  <div class="span4">...</div>
      +  <div class="span4 offset2">...</div>
      +</div>
       

      {{_i}}Fluid nesting{{/i}}

      -- cgit v1.2.3 From 160fe7ca597ff0fdaab0bb49494713724468b05b Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Wed, 20 Jun 2012 23:46:51 -0700 Subject: create vars for responsive grid values, fixed and fluid, and document them in the customizer --- docs/templates/pages/download.mustache | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'docs/templates') diff --git a/docs/templates/pages/download.mustache b/docs/templates/pages/download.mustache index a01c14ab7..11280434a 100644 --- a/docs/templates/pages/download.mustache +++ b/docs/templates/pages/download.mustache @@ -199,11 +199,27 @@ + + + + + + + +

      {{_i}}Fluid grid system{{/i}}

      + + + + + + + +

      {{_i}}Typography{{/i}}

      -- cgit v1.2.3 From 71669dda63644a7b4162ca63f8b9c88b3586c7e4 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 24 Jun 2012 20:26:48 -0700 Subject: tons of docs cleanup in css, adding subnav to official components --- docs/templates/pages/base-css.mustache | 2 +- docs/templates/pages/components.mustache | 2 +- docs/templates/pages/download.mustache | 2 +- docs/templates/pages/index.mustache | 4 ++-- docs/templates/pages/javascript.mustache | 7 ++++--- docs/templates/pages/less.mustache | 2 +- docs/templates/pages/scaffolding.mustache | 6 +++--- 7 files changed, 13 insertions(+), 12 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/base-css.mustache b/docs/templates/pages/base-css.mustache index 9a122711a..40bbbfba5 100644 --- a/docs/templates/pages/base-css.mustache +++ b/docs/templates/pages/base-css.mustache @@ -4,7 +4,7 @@

      {{_i}}Base CSS{{/i}}

      {{_i}}On top of the scaffolding, basic HTML elements are styled and enhanced with extensible classes to provide a fresh, consistent look and feel.{{/i}}

      + +

      {{_i}}.table-hover{{/i}}

      +

      {{_i}}Enable a hover state on table rows within a <tbody>.{{/i}}

      +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      #{{_i}}First Name{{/i}}{{_i}}Last Name{{/i}}{{_i}}Username{{/i}}
      1MarkOtto@mdo
      2JacobThornton@fat
      3Larry the Bird@twitter
      +
      {{! /example }} +
      +<table class="table table-hover">
      +  …
      +</table>
       

      {{_i}}.table-condensed{{/i}}

      -- cgit v1.2.3 From a683497dbc0f9cc3f883f195206e87589d09caaf Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Wed, 27 Jun 2012 23:56:00 -0700 Subject: renamed less.html to extend.html, removing all the vars and mixins --- docs/templates/layout.mustache | 6 +- docs/templates/pages/extend.mustache | 90 ++++ docs/templates/pages/less.mustache | 937 ----------------------------------- 3 files changed, 93 insertions(+), 940 deletions(-) create mode 100644 docs/templates/pages/extend.mustache delete mode 100644 docs/templates/pages/less.mustache (limited to 'docs/templates') diff --git a/docs/templates/layout.mustache b/docs/templates/layout.mustache index eeda3c2c4..1cda87954 100644 --- a/docs/templates/layout.mustache +++ b/docs/templates/layout.mustache @@ -69,9 +69,6 @@
    • {{_i}}Javascript{{/i}}
    • -
    • - {{_i}}LESS{{/i}} -
    • {{_i}}Customize{{/i}} @@ -79,6 +76,9 @@
    • {{_i}}Examples{{/i}}
    • +
    • + {{_i}}Extend{{/i}} +
    diff --git a/docs/templates/pages/extend.mustache b/docs/templates/pages/extend.mustache new file mode 100644 index 000000000..aae99f765 --- /dev/null +++ b/docs/templates/pages/extend.mustache @@ -0,0 +1,90 @@ + +
    +

    {{_i}}Extending Bootstrap{{/i}}

    +

    {{_i}}Extend Bootstrap with LESS, a CSS preprocessor, to take advantage of the variables, mixins, and more used to build Bootstrap's CSS.{{/i}}

    + +
    + + + + +
    + + +

    {{_i}}Why LESS?{{/i}}

    +

    {{_i}}Bootstrap is made with LESS at its core, a dynamic stylesheet language created by our good friend, Alexis Sellier. It makes developing systems-based CSS faster, easier, and more fun.{{/i}}

    + +

    {{_i}}What's included?{{/i}}

    +

    {{_i}}As an extension of CSS, LESS includes variables, mixins for reusable snippets of code, operations for simple math, nesting, and even color functions.{{/i}}

    + +

    {{_i}}Learn more{{/i}}

    + LESS CSS +

    {{_i}}Visit the official website at http://lesscss.org to learn more.{{/i}}

    + +

    {{_i}}Variables{{/i}}

    +

    {{_i}}Managing colors and pixel values in CSS can be a bit of a pain, usually full of copy and paste. Not with LESS though—assign colors or pixel values as variables and change them once.{{/i}}

    + +

    {{_i}}Mixins{{/i}}

    +

    {{_i}}Those three border-radius declarations you need to make in regular ol' CSS? Now they're down to one line with the help of mixins, snippets of code you can reuse anywhere.{{/i}}

    + +

    {{_i}}Operations{{/i}}

    +

    {{_i}}Make your grid, leading, and more super flexible by doing the math on the fly with operations. Multiply, divide, add, and subtract your way to CSS sanity.{{/i}}

    +
    + + + + +
    + +
    + {{_i}}Note: If you're submitting a pull request to GitHub with modified CSS, you must recompile the CSS via any of these methods.{{/i}} +
    + +

    {{_i}}Tools for compiling{{/i}}

    + +

    {{_i}}Node with makefile{{/i}}

    +

    {{_i}}Install the LESS command line compiler, JSHint, Recess, and uglify-js globally with npm by running the following command:{{/i}}

    +
    $ npm install -g less jshint recess uglify-js
    +

    {{_i}}Once installed just run make from the root of your bootstrap directory and you're all set.{{/i}}

    +

    {{_i}}Additionally, if you have watchr installed, you may run make watch to have bootstrap automatically rebuilt every time you edit a file in the bootstrap lib (this isn't required, just a convenience method).{{/i}}

    + +

    {{_i}}Command line{{/i}}

    +

    {{_i}}Install the LESS command line tool via Node and run the following command:{{/i}}

    +
    $ lessc ./less/bootstrap.less > bootstrap.css
    +

    {{_i}}Be sure to include --compress in that command if you're trying to save some bytes!{{/i}}

    + +

    {{_i}}Javascript{{/i}}

    +

    {{_i}}Download the latest Less.js and include the path to it (and Bootstrap) in the <head>.{{/i}}

    +
    +<link rel="stylesheet/less" href="/path/to/bootstrap.less">
    +<script src="/path/to/less.js"></script>
    +
    +

    {{_i}}To recompile the .less files, just save them and reload your page. Less.js compiles them and stores them in local storage.{{/i}}

    + +

    {{_i}}Unofficial Mac app{{/i}}

    +

    {{_i}}The unofficial Mac app watches directories of .less files and compiles the code to local files after every save of a watched .less file.{{/i}}

    +

    {{_i}}If you like, you can toggle preferences in the app for automatic minifying and which directory the compiled files end up in.{{/i}}

    + +

    {{_i}}More Mac apps{{/i}}

    +

    Crunch

    +

    {{_i}}Crunch is a great looking LESS editor and compiler built on Adobe Air.{{/i}}

    +

    CodeKit

    +

    {{_i}}Created by the same guy as the unofficial Mac app, CodeKit is a Mac app that compiles LESS, SASS, Stylus, and CoffeeScript.{{/i}}

    +

    Simpless

    +

    {{_i}}Mac, Linux, and PC app for drag and drop compiling of LESS files. Plus, the source code is on GitHub.{{/i}}

    + +
    diff --git a/docs/templates/pages/less.mustache b/docs/templates/pages/less.mustache deleted file mode 100644 index b08efd86c..000000000 --- a/docs/templates/pages/less.mustache +++ /dev/null @@ -1,937 +0,0 @@ - -
    -

    {{_i}}Using LESS with Bootstrap{{/i}}

    -

    {{_i}}Customize and extend Bootstrap with LESS, a CSS preprocessor, to take advantage of the variables, mixins, and more used to build Bootstrap's CSS.{{/i}}

    - -
    - - - - -
    - - -

    {{_i}}Why LESS?{{/i}}

    -

    {{_i}}Bootstrap is made with LESS at its core, a dynamic stylesheet language created by our good friend, Alexis Sellier. It makes developing systems-based CSS faster, easier, and more fun.{{/i}}

    - -

    {{_i}}What's included?{{/i}}

    -

    {{_i}}As an extension of CSS, LESS includes variables, mixins for reusable snippets of code, operations for simple math, nesting, and even color functions.{{/i}}

    - -

    {{_i}}Learn more{{/i}}

    - LESS CSS -

    {{_i}}Visit the official website at http://lesscss.org to learn more.{{/i}}

    - -

    {{_i}}Variables{{/i}}

    -

    {{_i}}Managing colors and pixel values in CSS can be a bit of a pain, usually full of copy and paste. Not with LESS though—assign colors or pixel values as variables and change them once.{{/i}}

    - -

    {{_i}}Mixins{{/i}}

    -

    {{_i}}Those three border-radius declarations you need to make in regular ol' CSS? Now they're down to one line with the help of mixins, snippets of code you can reuse anywhere.{{/i}}

    - -

    {{_i}}Operations{{/i}}

    -

    {{_i}}Make your grid, leading, and more super flexible by doing the math on the fly with operations. Multiply, divide, add, and subtract your way to CSS sanity.{{/i}}

    -
    - - - - -
    - - -

    {{_i}}Scaffolding and links{{/i}}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    @bodyBackground@white{{_i}}Page background color{{/i}}
    @textColor@grayDark{{_i}}Default text color for entire body, headings, and more{{/i}}
    @linkColor#08c{{_i}}Default link text color{{/i}}
    @linkColorHoverdarken(@linkColor, 15%){{_i}}Default link text hover color{{/i}}
    -

    {{_i}}Grid system{{/i}}

    - - - - - - - - - - - - - - - - - - - - - - - -
    @gridColumns12
    @gridColumnWidth60px
    @gridGutterWidth20px
    @fluidGridColumnWidth6.382978723%
    @fluidGridGutterWidth2.127659574%
    -

    {{_i}}Typography{{/i}}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    @sansFontFamily"Helvetica Neue", Helvetica, Arial, sans-serif
    @serifFontFamilyGeorgia, "Times New Roman", Times, serif
    @monoFontFamilyMenlo, Monaco, "Courier New", monospace
    @baseFontSize13pxMust be pixels
    @baseFontFamily@sansFontFamily
    @baseLineHeight18pxMust be pixels
    @altFontFamily@serifFontFamily
    @headingsFontFamilyinherit
    @headingsFontWeightbold
    @headingsColorinherit
    -

    {{_i}}Tables{{/i}}

    - - - - - - - - - - - - - - - - - - - -
    @tableBackgroundtransparent
    @tableBackgroundAccent#f9f9f9
    @tableBackgroundHover#f5f5f5
    @tableBorder#ddd
    - -

    {{_i}}Grayscale colors{{/i}}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    @black#000
    @grayDarker#222
    @grayDark#333
    @gray#555
    @grayLight#999
    @grayLighter#eee
    @white#fff
    -

    {{_i}}Accent colors{{/i}}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    @blue#049cdb
    @green#46a546
    @red#9d261d
    @yellow#ffc40d
    @orange#f89406
    @pink#c3325f
    @purple#7a43b6
    - - -

    {{_i}}Components{{/i}}

    - -

    {{_i}}Buttons{{/i}}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    @btnBackground@white
    @btnBackgroundHighlightdarken(@white, 10%)
    @btnBorderdarken(@white, 20%)
    @btnPrimaryBackground@linkColor
    @btnPrimaryBackgroundHighlightspin(@btnPrimaryBackground, 15%)
    @btnInfoBackground#5bc0de
    @btnInfoBackgroundHighlight#2f96b4
    @btnSuccessBackground#62c462
    @btnSuccessBackgroundHighlight#51a351
    @btnWarningBackgroundlighten(@orange, 15%)
    @btnWarningBackgroundHighlight@orange
    @btnDangerBackground#ee5f5b
    @btnDangerBackgroundHighlight#bd362f
    @btnInverseBackground@gray
    @btnInverseBackgroundHighlight@grayDarker
    -

    {{_i}}Forms{{/i}}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    @placeholderText@grayLight
    @inputBackground@white
    @inputBorder#ccc
    @inputBorderRadius3px
    @inputDisabledBackground@grayLighter
    @formActionsBackground#f5f5f5
    -

    {{_i}}Form states and alerts{{/i}}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    @warningText#c09853
    @warningBackground#f3edd2
    @errorText#b94a48
    @errorBackground#f2dede
    @successText#468847
    @successBackground#dff0d8
    @infoText#3a87ad
    @infoBackground#d9edf7
    - -

    {{_i}}Navbar{{/i}}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    @navbarHeight40px
    @navbarBackground@grayDarker
    @navbarBackgroundHighlight@grayDark
    @navbarText@grayLight
    @navbarLinkColor@grayLight
    @navbarLinkColorHover@white
    @navbarLinkColorActive@navbarLinkColorHover
    @navbarLinkBackgroundHovertransparent
    @navbarLinkBackgroundActive@navbarBackground
    @navbarSearchBackgroundlighten(@navbarBackground, 25%)
    @navbarSearchBackgroundFocus@white
    @navbarSearchBorderdarken(@navbarSearchBackground, 30%)
    @navbarSearchPlaceholderColor#ccc
    @navbarBrandColor@navbarLinkColor
    -

    {{_i}}Dropdowns{{/i}}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    @dropdownBackground@white
    @dropdownBorderrgba(0,0,0,.2)
    @dropdownLinkColor@grayDark
    @dropdownLinkColorHover@white
    @dropdownLinkColorActive@linkColor
    @dropdownLinkBackgroundHover@grayLighter
    @dropdownLinkBackgroundActive@linkColor
    @dropdownDividerTop#e5e5e5
    @dropdownDividerBottom@white
    -

    {{_i}}Hero unit{{/i}}

    - - - - - - - - - - - - - - - - - - -
    @heroUnitBackground@grayLighter
    @heroUnitHeadingColorinherit
    @heroUnitLeadColorinherit
    - - -
    - - - - -
    - -

    {{_i}}About mixins{{/i}}

    -
    -
    -

    {{_i}}Basic mixins{{/i}}

    -

    {{_i}}A basic mixin is essentially an include or a partial for a snippet of CSS. They're written just like a CSS class and can be called anywhere.{{/i}}

    -
    -.element {
    -  .clearfix();
    -}
    -
    -
    -
    -

    {{_i}}Parametric mixins{{/i}}

    -

    {{_i}}A parametric mixin is just like a basic mixin, but it also accepts parameters (hence the name) with optional default values.{{/i}}

    -
    -.element {
    -  .border-radius(4px);
    -}
    -
    -
    -
    -

    {{_i}}Easily add your own{{/i}}

    -

    {{_i}}Nearly all of Bootstrap's mixins are stored in mixins.less, a wonderful utility .less file that enables you to use a mixin in any of the .less files in the toolkit.{{/i}}

    -

    {{_i}}So, go ahead and use the existing ones or feel free to add your own as you need.{{/i}}

    -
    -
    -

    {{_i}}Included mixins{{/i}}

    -

    {{_i}}Utilities{{/i}}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {{_i}}Mixin{{/i}}{{_i}}Parameters{{/i}}{{_i}}Usage{{/i}}
    .clearfix()none{{_i}}Add to any parent to clear floats within{{/i}}
    .tab-focus()none{{_i}}Apply the Webkit focus style and round Firefox outline{{/i}}
    .center-block()none{{_i}}Auto center a block-level element using margin: auto{{/i}}
    .ie7-inline-block()none{{_i}}Use in addition to regular display: inline-block to get IE7 support{{/i}}
    .size()@height @width{{_i}}Quickly set the height and width on one line{{/i}}
    .square()@size{{_i}}Builds on .size() to set the width and height as same value{{/i}}
    .opacity()@opacity{{_i}}Set, in whole numbers, the opacity percentage (e.g., "50" or "75"){{/i}}
    -

    Forms

    - - - - - - - - - - - - - - - -
    {{_i}}Mixin{{/i}}{{_i}}Parameters{{/i}}{{_i}}Usage{{/i}}
    .placeholder()@color: @placeholderText{{_i}}Set the placeholder text color for inputs{{/i}}
    -

    Typography

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {{_i}}Mixin{{/i}}{{_i}}Parameters{{/i}}{{_i}}Usage{{/i}}
    #font > #family > .serif()none{{_i}}Make an element use a serif font stack{{/i}}
    #font > #family > .sans-serif()none{{_i}}Make an element use a sans-serif font stack{{/i}}
    #font > #family > .monospace()none{{_i}}Make an element use a monospace font stack{{/i}}
    #font > .shorthand()@size: @baseFontSize, @weight: normal, @lineHeight: @baseLineHeight{{_i}}Easily set font size, weight, and leading{{/i}}
    #font > .serif()@size: @baseFontSize, @weight: normal, @lineHeight: @baseLineHeight{{_i}}Set font family to serif, and control size, weight, and leading{{/i}}
    #font > .sans-serif()@size: @baseFontSize, @weight: normal, @lineHeight: @baseLineHeight{{_i}}Set font family to sans-serif, and control size, weight, and leading{{/i}}
    #font > .monospace()@size: @baseFontSize, @weight: normal, @lineHeight: @baseLineHeight{{_i}}Set font family to monospace, and control size, weight, and leading{{/i}}
    -

    Grid system

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {{_i}}Mixin{{/i}}{{_i}}Parameters{{/i}}{{_i}}Usage{{/i}}
    .container-fixed()none{{_i}}Create a horizontally centered container for holding your content{{/i}}
    #grid > .core()@gridColumnWidth, @gridGutterWidth{{_i}}Generate a pixel grid system (container, row, and columns) with n columns and x pixel wide gutter{{/i}}
    #grid > .fluid()@fluidGridColumnWidth, @fluidGridGutterWidth{{_i}}Generate a percent grid system with n columns and x % wide gutter{{/i}}
    #grid > .input()@gridColumnWidth, @gridGutterWidth{{_i}}Generate the pixel grid system for input elements, accounting for padding and borders{{/i}}
    .makeColumn@columns: 1, @offset: 0{{_i}}Turn any div into a grid column without the .span* classes{{/i}}
    -

    {{_i}}CSS3 properties{{/i}}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {{_i}}Mixin{{/i}}{{_i}}Parameters{{/i}}{{_i}}Usage{{/i}}
    .border-radius()@radius{{_i}}Round the corners of an element. Can be a single value or four space-separated values{{/i}}
    .box-shadow()@shadow{{_i}}Add a drop shadow to an element{{/i}}
    .transition()@transition{{_i}}Add CSS3 transition effect (e.g., all .2s linear){{/i}}
    .rotate()@degrees{{_i}}Rotate an element n degrees{{/i}}
    .scale()@ratio{{_i}}Scale an element to n times its original size{{/i}}
    .translate()@x, @y{{_i}}Move an element on the x and y planes{{/i}}
    .background-clip()@clip{{_i}}Crop the background of an element (useful for border-radius){{/i}}
    .background-size()@size{{_i}}Control the size of background images via CSS3{{/i}}
    .box-sizing()@boxmodel{{_i}}Change the box model for an element (e.g., border-box for a full-width input){{/i}}
    .user-select()@select{{_i}}Control cursor selection of text on a page{{/i}}
    .backface-visibility()@visibility: visible{{_i}}Prevent flickering of content when using CSS 3D transforms{{/i}}
    .resizable()@direction: both{{_i}}Make any element resizable on the right and bottom{{/i}}
    .content-columns()@columnCount, @columnGap: @gridGutterWidth{{_i}}Make the content of any element use CSS3 columns{{/i}}
    .hyphens()@mode: auto{{_i}}CSS3 hyphenation when you want it (includes word-wrap: break-word){{/i}}
    -

    {{_i}}Backgrounds and gradients{{/i}}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {{_i}}Mixin{{/i}}{{_i}}Parameters{{/i}}{{_i}}Usage{{/i}}
    #translucent > .background()@color: @white, @alpha: 1{{_i}}Give an element a translucent background color{{/i}}
    #translucent > .border()@color: @white, @alpha: 1{{_i}}Give an element a translucent border color{{/i}}
    #gradient > .vertical()@startColor, @endColor{{_i}}Create a cross-browser vertical background gradient{{/i}}
    #gradient > .horizontal()@startColor, @endColor{{_i}}Create a cross-browser horizontal background gradient{{/i}}
    #gradient > .directional()@startColor, @endColor, @deg{{_i}}Create a cross-browser directional background gradient{{/i}}
    #gradient > .vertical-three-colors()@startColor, @midColor, @colorStop, @endColor{{_i}}Create a cross-browser three-color background gradient{{/i}}
    #gradient > .radial()@innerColor, @outerColor{{_i}}Create a cross-browser radial background gradient{{/i}}
    #gradient > .striped()@color, @angle{{_i}}Create a cross-browser striped background gradient{{/i}}
    .gradientBar()@primaryColor, @secondaryColor{{_i}}Used for buttons to assign a gradient and slightly darker border{{/i}}
    -
    - - - - -
    - -
    - {{_i}}Note: If you're submitting a pull request to GitHub with modified CSS, you must recompile the CSS via any of these methods.{{/i}} -
    - -

    {{_i}}Tools for compiling{{/i}}

    - -

    {{_i}}Node with makefile{{/i}}

    -

    {{_i}}Install the LESS command line compiler, JSHint, Recess, and uglify-js globally with npm by running the following command:{{/i}}

    -
    $ npm install -g less jshint recess uglify-js
    -

    {{_i}}Once installed just run make from the root of your bootstrap directory and you're all set.{{/i}}

    -

    {{_i}}Additionally, if you have watchr installed, you may run make watch to have bootstrap automatically rebuilt every time you edit a file in the bootstrap lib (this isn't required, just a convenience method).{{/i}}

    - -

    {{_i}}Command line{{/i}}

    -

    {{_i}}Install the LESS command line tool via Node and run the following command:{{/i}}

    -
    $ lessc ./less/bootstrap.less > bootstrap.css
    -

    {{_i}}Be sure to include --compress in that command if you're trying to save some bytes!{{/i}}

    - -

    {{_i}}Javascript{{/i}}

    -

    {{_i}}Download the latest Less.js and include the path to it (and Bootstrap) in the <head>.{{/i}}

    -
    -<link rel="stylesheet/less" href="/path/to/bootstrap.less">
    -<script src="/path/to/less.js"></script>
    -
    -

    {{_i}}To recompile the .less files, just save them and reload your page. Less.js compiles them and stores them in local storage.{{/i}}

    - -

    {{_i}}Unofficial Mac app{{/i}}

    -

    {{_i}}The unofficial Mac app watches directories of .less files and compiles the code to local files after every save of a watched .less file.{{/i}}

    -

    {{_i}}If you like, you can toggle preferences in the app for automatic minifying and which directory the compiled files end up in.{{/i}}

    - -

    {{_i}}More Mac apps{{/i}}

    -

    Crunch

    -

    {{_i}}Crunch is a great looking LESS editor and compiler built on Adobe Air.{{/i}}

    -

    CodeKit

    -

    {{_i}}Created by the same guy as the unofficial Mac app, CodeKit is a Mac app that compiles LESS, SASS, Stylus, and CoffeeScript.{{/i}}

    -

    Simpless

    -

    {{_i}}Mac, Linux, and PC app for drag and drop compiling of LESS files. Plus, the source code is on GitHub.{{/i}}

    - -
    -- cgit v1.2.3 From c09e8473e2be483d3f53186840c002167647c44b Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 28 Jun 2012 10:03:46 -0700 Subject: use variablef or wells background-color, update docs for glyphicons license mention, update popovers to remove that thick border and make them look mo betta --- docs/templates/pages/base-css.mustache | 3 +++ docs/templates/pages/javascript.mustache | 45 ++++++++++++++++++++++++++++++-- 2 files changed, 46 insertions(+), 2 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/base-css.mustache b/docs/templates/pages/base-css.mustache index 583d0709e..9b79c3d9c 100644 --- a/docs/templates/pages/base-css.mustache +++ b/docs/templates/pages/base-css.mustache @@ -1486,6 +1486,9 @@ +

    Glyphicons attribution

    +

    {{_i}}Glyphicons Halflings are normally not available for free, but an arrangement between Bootstrap and the Glyphicons creators have made this possible at not cost to you as developers. As a thank you, we ask you to include an optional link back to Glyphicons whenever practical.{{/i}}

    +
    diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache index cc1ecf1cb..a73917f5e 100644 --- a/docs/templates/pages/javascript.mustache +++ b/docs/templates/pages/javascript.mustache @@ -773,11 +773,52 @@ $('a[data-toggle="tab"]').on('shown', function (e) {

    {{_i}}Popovers{{/i}} bootstrap-popover.js

    -

    {{_i}}Example{{/i}}

    +

    {{_i}}Examples{{/i}}

    {{_i}}Add small overlays of content, like those on the iPad, to any element for housing secondary information. Hover over the button to trigger the popover.{{/i}}

    * {{_i}}Requires Tooltip to be included{{/i}}

    + +

    {{_i}}Static popover{{/i}}

    +

    {{_i}}Four options are available: top, right, bottom, and left aligned.{{/i}}

    +
    +
    +
    +

    Popover top

    +
    +

    Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

    +
    +
    + +
    +
    +

    Popover right

    +
    +

    Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

    +
    +
    + +
    +
    +

    Popover bottom

    +
    +

    Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

    +
    +
    + +
    +
    +

    Popover left

    +
    +

    Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

    +
    +
    + +
    +
    +

    {{_i}}No markup shown as popovers are generated from javascript and content within a data attribute.{{/i}}

    + +

    Live demo

    -- cgit v1.2.3 From 70e81e6f55ad77f3777e87c4edd646a2f5ac8bee Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 1 Jul 2012 08:42:09 -0700 Subject: new jumbotron --- docs/templates/pages/index.mustache | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/index.mustache b/docs/templates/pages/index.mustache index 9f5e40ace..e2a35003d 100644 --- a/docs/templates/pages/index.mustache +++ b/docs/templates/pages/index.mustache @@ -1,6 +1,19 @@ + + +
    +
    +

    Bootstrap

    +

    Sleek, intuitive, and powerful front-end framework for faster and easier web development.

    + {{_i}}Download Bootstrap (v2.1.0){{/i}} +
    +
    + +
    + + -
    +
    + + {{! /example }} + +

    {{_i}}Within tabs{{/i}}

    + {{! /example }} + + +
    + + +

    {{_i}}Usage{{/i}}

    + +

    {{_i}}Via data attributes{{/i}}

    +

    {{_i}}Add data-toggle="dropdown" to a link or button to toggle a dropdown.{{/i}}

     <div class="dropdown">
       <a class="dropdown-toggle" href="#">Dropdown trigger</a>
    @@ -411,7 +394,7 @@ $('#myModal').on('hidden', function () {
       </ul>
     </div>
     
    -

    {{_i}}To keep URLs intact, use the data-target attribute instead of href="#".{{/i}}

    +

    {{_i}}To keep URLs intact, use the data-target attribute instead of href="#".{{/i}}

     <div class="dropdown">
       <a class="dropdown-toggle" id="dLabel" role="button" data-toggle="dropdown" data-target="#" href="/page.html">
    @@ -424,179 +407,179 @@ $('#myModal').on('hidden', function () {
     </div>
     
    -

    {{_i}}Via javascript{{/i}}

    -

    {{_i}}Call the dropdowns via javascript:{{/i}}

    -
    $('.dropdown-toggle').dropdown()
    +

    {{_i}}Via javascript{{/i}}

    +

    {{_i}}Call the dropdowns via javascript:{{/i}}

    +
    $('.dropdown-toggle').dropdown()
    -

    {{_i}}Options{{/i}}

    -

    {{_i}}None{{/i}}

    +

    {{_i}}Options{{/i}}

    +

    {{_i}}None{{/i}}

    -

    {{_i}}Methods{{/i}}

    -

    $().dropdown()

    -

    {{_i}}A programatic api for activating menus for a given navbar or tabbed navigation.{{/i}}

    - +

    {{_i}}Methods{{/i}}

    +

    $().dropdown()

    +

    {{_i}}A programatic api for activating menus for a given navbar or tabbed navigation.{{/i}}

    + - -
    - + +
    + -

    {{_i}}Example in navbar{{/i}}

    -

    {{_i}}The ScrollSpy plugin is for automatically updating nav targets based on scroll position. Scroll the area below the navbar and watch the active class change. The dropdown sub items will be highlighted as well.{{/i}}

    -
    - -
    - -
    -

    @fat

    -

    Ad leggings keytar, brunch id art party dolor labore. Pitchfork yr enim lo-fi before they sold out qui. Tumblr farm-to-table bicycle rights whatever. Anim keffiyeh carles cardigan. Velit seitan mcsweeney's photo booth 3 wolf moon irure. Cosby sweater lomo jean shorts, williamsburg hoodie minim qui you probably haven't heard of them et cardigan trust fund culpa biodiesel wes anderson aesthetic. Nihil tattooed accusamus, cred irony biodiesel keffiyeh artisan ullamco consequat.

    -

    @mdo

    -

    Veniam marfa mustache skateboard, adipisicing fugiat velit pitchfork beard. Freegan beard aliqua cupidatat mcsweeney's vero. Cupidatat four loko nisi, ea helvetica nulla carles. Tattooed cosby sweater food truck, mcsweeney's quis non freegan vinyl. Lo-fi wes anderson +1 sartorial. Carles non aesthetic exercitation quis gentrify. Brooklyn adipisicing craft beer vice keytar deserunt.

    -

    one

    -

    Occaecat commodo aliqua delectus. Fap craft beer deserunt skateboard ea. Lomo bicycle rights adipisicing banh mi, velit ea sunt next level locavore single-origin coffee in magna veniam. High life id vinyl, echo park consequat quis aliquip banh mi pitchfork. Vero VHS est adipisicing. Consectetur nisi DIY minim messenger bag. Cred ex in, sustainable delectus consectetur fanny pack iphone.

    -

    two

    -

    In incididunt echo park, officia deserunt mcsweeney's proident master cleanse thundercats sapiente veniam. Excepteur VHS elit, proident shoreditch +1 biodiesel laborum craft beer. Single-origin coffee wayfarers irure four loko, cupidatat terry richardson master cleanse. Assumenda you probably haven't heard of them art party fanny pack, tattooed nulla cardigan tempor ad. Proident wolf nesciunt sartorial keffiyeh eu banh mi sustainable. Elit wolf voluptate, lo-fi ea portland before they sold out four loko. Locavore enim nostrud mlkshk brooklyn nesciunt.

    -

    three

    -

    Ad leggings keytar, brunch id art party dolor labore. Pitchfork yr enim lo-fi before they sold out qui. Tumblr farm-to-table bicycle rights whatever. Anim keffiyeh carles cardigan. Velit seitan mcsweeney's photo booth 3 wolf moon irure. Cosby sweater lomo jean shorts, williamsburg hoodie minim qui you probably haven't heard of them et cardigan trust fund culpa biodiesel wes anderson aesthetic. Nihil tattooed accusamus, cred irony biodiesel keffiyeh artisan ullamco consequat.

    -

    Keytar twee blog, culpa messenger bag marfa whatever delectus food truck. Sapiente synth id assumenda. Locavore sed helvetica cliche irony, thundercats you probably haven't heard of them consequat hoodie gluten-free lo-fi fap aliquip. Labore elit placeat before they sold out, terry richardson proident brunch nesciunt quis cosby sweater pariatur keffiyeh ut helvetica artisan. Cardigan craft beer seitan readymade velit. VHS chambray laboris tempor veniam. Anim mollit minim commodo ullamco thundercats. -

    -
    - {{! /example }} +
    +

    @fat

    +

    Ad leggings keytar, brunch id art party dolor labore. Pitchfork yr enim lo-fi before they sold out qui. Tumblr farm-to-table bicycle rights whatever. Anim keffiyeh carles cardigan. Velit seitan mcsweeney's photo booth 3 wolf moon irure. Cosby sweater lomo jean shorts, williamsburg hoodie minim qui you probably haven't heard of them et cardigan trust fund culpa biodiesel wes anderson aesthetic. Nihil tattooed accusamus, cred irony biodiesel keffiyeh artisan ullamco consequat.

    +

    @mdo

    +

    Veniam marfa mustache skateboard, adipisicing fugiat velit pitchfork beard. Freegan beard aliqua cupidatat mcsweeney's vero. Cupidatat four loko nisi, ea helvetica nulla carles. Tattooed cosby sweater food truck, mcsweeney's quis non freegan vinyl. Lo-fi wes anderson +1 sartorial. Carles non aesthetic exercitation quis gentrify. Brooklyn adipisicing craft beer vice keytar deserunt.

    +

    one

    +

    Occaecat commodo aliqua delectus. Fap craft beer deserunt skateboard ea. Lomo bicycle rights adipisicing banh mi, velit ea sunt next level locavore single-origin coffee in magna veniam. High life id vinyl, echo park consequat quis aliquip banh mi pitchfork. Vero VHS est adipisicing. Consectetur nisi DIY minim messenger bag. Cred ex in, sustainable delectus consectetur fanny pack iphone.

    +

    two

    +

    In incididunt echo park, officia deserunt mcsweeney's proident master cleanse thundercats sapiente veniam. Excepteur VHS elit, proident shoreditch +1 biodiesel laborum craft beer. Single-origin coffee wayfarers irure four loko, cupidatat terry richardson master cleanse. Assumenda you probably haven't heard of them art party fanny pack, tattooed nulla cardigan tempor ad. Proident wolf nesciunt sartorial keffiyeh eu banh mi sustainable. Elit wolf voluptate, lo-fi ea portland before they sold out four loko. Locavore enim nostrud mlkshk brooklyn nesciunt.

    +

    three

    +

    Ad leggings keytar, brunch id art party dolor labore. Pitchfork yr enim lo-fi before they sold out qui. Tumblr farm-to-table bicycle rights whatever. Anim keffiyeh carles cardigan. Velit seitan mcsweeney's photo booth 3 wolf moon irure. Cosby sweater lomo jean shorts, williamsburg hoodie minim qui you probably haven't heard of them et cardigan trust fund culpa biodiesel wes anderson aesthetic. Nihil tattooed accusamus, cred irony biodiesel keffiyeh artisan ullamco consequat.

    +

    Keytar twee blog, culpa messenger bag marfa whatever delectus food truck. Sapiente synth id assumenda. Locavore sed helvetica cliche irony, thundercats you probably haven't heard of them consequat hoodie gluten-free lo-fi fap aliquip. Labore elit placeat before they sold out, terry richardson proident brunch nesciunt quis cosby sweater pariatur keffiyeh ut helvetica artisan. Cardigan craft beer seitan readymade velit. VHS chambray laboris tempor veniam. Anim mollit minim commodo ullamco thundercats. +

    +
    + {{! /example }} -
    +
    -

    {{_i}}Usage{{/i}}

    +

    {{_i}}Usage{{/i}}

    -

    {{_i}}Via data attributes{{/i}}

    -

    {{_i}}To easily add scrollspy behavior to your topbar navigation, just add data-spy="scroll" to the element you want to spy on (most typically this would be the body) and data-target=".navbar" to select which nav to use.{{/i}}

    -
    <body data-spy="scroll" data-target=".navbar">...</body>
    +

    {{_i}}Via data attributes{{/i}}

    +

    {{_i}}To easily add scrollspy behavior to your topbar navigation, just add data-spy="scroll" to the element you want to spy on (most typically this would be the body) and data-target=".navbar" to select which nav to use.{{/i}}

    +
    <body data-spy="scroll" data-target=".navbar">...</body>
    -

    {{_i}}Via javascript{{/i}}

    -

    {{_i}}Call the scrollspy via javascript:{{/i}}

    -
    $('#navbar').scrollspy()
    +

    {{_i}}Via javascript{{/i}}

    +

    {{_i}}Call the scrollspy via javascript:{{/i}}

    +
    $('#navbar').scrollspy()
    -
    - {{_i}}Heads up!{{/i}} - {{_i}}Navbar links must have resolvable id targets. For example, a <a href="#home">home</a> must correspond to something in the dom like <div id="home"></div>.{{/i}} -
    +
    + {{_i}}Heads up!{{/i}} + {{_i}}Navbar links must have resolvable id targets. For example, a <a href="#home">home</a> must correspond to something in the dom like <div id="home"></div>.{{/i}} +
    -

    {{_i}}Methods{{/i}}

    -

    .scrollspy('refresh')

    -

    {{_i}}When using scrollspy in conjunction with adding or removing of elements from the DOM, you'll need to call the refresh method like so:{{/i}}

    +

    {{_i}}Methods{{/i}}

    +

    .scrollspy('refresh')

    +

    {{_i}}When using scrollspy in conjunction with adding or removing of elements from the DOM, you'll need to call the refresh method like so:{{/i}}

     $('[data-spy="scroll"]').each(function () {
       var $spy = $(this).scrollspy('refresh')
     });
     
    -

    {{_i}}Options{{/i}}

    -

    {{_i}}Options can be passed via data attributes or javascript. For data attributes, append the option name to data-, as in data-offset="".{{/i}}

    - - - - - - - - - - - - - - - - - -
    {{_i}}Name{{/i}}{{_i}}type{{/i}}{{_i}}default{{/i}}{{_i}}description{{/i}}
    {{_i}}offset{{/i}}{{_i}}number{{/i}}{{_i}}10{{/i}}{{_i}}Pixels to offset from top when calculating position of scroll.{{/i}}
    - -

    {{_i}}Events{{/i}}

    - - - - - - - - - - - - - -
    {{_i}}Event{{/i}}{{_i}}Description{{/i}}
    {{_i}}activate{{/i}}{{_i}}This event fires whenever a new item becomes activated by the scrollspy.{{/i}}
    -
    - - - - -
    - +

    {{_i}}Options{{/i}}

    +

    {{_i}}Options can be passed via data attributes or javascript. For data attributes, append the option name to data-, as in data-offset="".{{/i}}

    + + + + + + + + + + + + + + + + + +
    {{_i}}Name{{/i}}{{_i}}type{{/i}}{{_i}}default{{/i}}{{_i}}description{{/i}}
    {{_i}}offset{{/i}}{{_i}}number{{/i}}{{_i}}10{{/i}}{{_i}}Pixels to offset from top when calculating position of scroll.{{/i}}
    + +

    {{_i}}Events{{/i}}

    + + + + + + + + + + + + + +
    {{_i}}Event{{/i}}{{_i}}Description{{/i}}
    {{_i}}activate{{/i}}{{_i}}This event fires whenever a new item becomes activated by the scrollspy.{{/i}}
    +
    + + + + +
    + -

    {{_i}}Example tabs{{/i}}

    -

    {{_i}}Add quick, dynamic tab functionality to transiton through panes of local content, even via dropdown menus.{{/i}}

    -
    -
    {{! /example }} +
    +
    +

    Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui.

    +
    +
    +

    Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft beer twee. Qui photo booth letterpress, commodo enim craft beer mlkshk aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthetic magna delectus mollit. Keytar helvetica VHS salvia yr, vero magna velit sapiente labore stumptown. Vegan fanny pack odio cillum wes anderson 8-bit, sustainable jean shorts beard ut DIY ethical culpa terry richardson biodiesel. Art party scenester stumptown, tumblr butcher vero sint qui sapiente accusamus tattooed echo park.

    +
    + + +
    + {{! /example }} -
    +
    -

    {{_i}}Usage{{/i}}

    -

    {{_i}}Enable tabbable tabs via javascript (each tab needs to be activated individually):{{/i}}

    +

    {{_i}}Usage{{/i}}

    +

    {{_i}}Enable tabbable tabs via javascript (each tab needs to be activated individually):{{/i}}

     $('#myTab a').click(function (e) {
       e.preventDefault();
    @@ -610,8 +593,8 @@ $('#myTab a:last').tab('show'); // Select last tab
     $('#myTab li:eq(2) a').tab('show'); // Select third tab (0-indexed)
     
    -

    {{_i}}Markup{{/i}}

    -

    {{_i}}You can activate a tab or pill navigation without writing any javascript by simply specifying data-toggle="tab" or data-toggle="pill" on an element. Adding the nav and nav-tabs classes to the tab ul will apply the bootstrap tab styling.{{/i}}

    +

    {{_i}}Markup{{/i}}

    +

    {{_i}}You can activate a tab or pill navigation without writing any javascript by simply specifying data-toggle="tab" or data-toggle="pill" on an element. Adding the nav and nav-tabs classes to the tab ul will apply the bootstrap tab styling.{{/i}}

     <ul class="nav nav-tabs">
       <li><a href="#home" data-toggle="tab">{{_i}}Home{{/i}}</a></li>
    @@ -620,11 +603,11 @@ $('#myTab li:eq(2) a').tab('show'); // Select third tab (0-indexed)
       <li><a href="#settings" data-toggle="tab">{{_i}}Settings{{/i}}</a></li>
     </ul>
    -

    {{_i}}Methods{{/i}}

    -

    $().tab

    -

    - {{_i}}Activates a tab element and content container. Tab should have either a data-target or an href targeting a container node in the DOM.{{/i}} -

    +

    {{_i}}Methods{{/i}}

    +

    $().tab

    +

    + {{_i}}Activates a tab element and content container. Tab should have either a data-target or an href targeting a container node in the DOM.{{/i}} +

     <ul class="nav nav-tabs" id="myTab">
       <li class="active"><a href="#home">{{_i}}Home{{/i}}</a></li>
    @@ -646,427 +629,427 @@ $('#myTab li:eq(2) a').tab('show'); // Select third tab (0-indexed)
       })
     </script>
    -

    {{_i}}Events{{/i}}

    - - - - - - - - - - - - - - - - - -
    {{_i}}Event{{/i}}{{_i}}Description{{/i}}
    {{_i}}show{{/i}}{{_i}}This event fires on tab show, but before the new tab has been shown. Use event.target and event.relatedTarget to target the active tab and the previous active tab (if available) respectively.{{/i}}
    {{_i}}shown{{/i}}{{_i}}This event fires on tab show after a tab has been shown. Use event.target and event.relatedTarget to target the active tab and the previous active tab (if available) respectively.{{/i}}
    +

    {{_i}}Events{{/i}}

    + + + + + + + + + + + + + + + + + +
    {{_i}}Event{{/i}}{{_i}}Description{{/i}}
    {{_i}}show{{/i}}{{_i}}This event fires on tab show, but before the new tab has been shown. Use event.target and event.relatedTarget to target the active tab and the previous active tab (if available) respectively.{{/i}}
    {{_i}}shown{{/i}}{{_i}}This event fires on tab show after a tab has been shown. Use event.target and event.relatedTarget to target the active tab and the previous active tab (if available) respectively.{{/i}}
     $('a[data-toggle="tab"]').on('shown', function (e) {
       e.target // activated tab
       e.relatedTarget // previous tab
     })
    -
    +
    - -
    - + +
    + -

    {{_i}}Examples{{/i}}

    -

    {{_i}}Inspired by the excellent jQuery.tipsy plugin written by Jason Frame; Tooltips are an updated version, which don't rely on images, use CSS3 for animations, and data-attributes for local title storage.{{/i}}

    -

    {{_i}}Hover over the links below to see tooltips:{{/i}}

    -
    -

    {{_i}}Tight pants next level keffiyeh you probably haven't heard of them. Photo booth beard raw denim letterpress vegan messenger bag stumptown. Farm-to-table seitan, mcsweeney's fixie sustainable quinoa 8-bit american apparel have a terry richardson vinyl chambray. Beard stumptown, cardigans banh mi lomo thundercats. Tofu biodiesel williamsburg marfa, four loko mcsweeney's cleanse vegan chambray. A really ironic artisan whatever keytar, scenester farm-to-table banksy Austin twitter handle freegan cred raw denim single-origin coffee viral.{{/i}} -

    -
    {{! /example }} - -

    {{_i}}Four directions{{/i}}

    - {{! /example }} - - -
    - - -

    {{_i}}Usage{{/i}}

    -

    {{_i}}Trigger the tooltip via javascript:{{/i}}

    -
    $('#example').tooltip({{_i}}options{{/i}})
    - -

    {{_i}}Options{{/i}}

    -

    {{_i}}Options can be passed via data attributes or javascript. For data attributes, append the option name to data-, as in data-animation="".{{/i}}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {{_i}}Name{{/i}}{{_i}}type{{/i}}{{_i}}default{{/i}}{{_i}}description{{/i}}
    {{_i}}animation{{/i}}{{_i}}boolean{{/i}}true{{_i}}apply a css fade transition to the tooltip{{/i}}
    {{_i}}html{{/i}}{{_i}}boolean{{/i}}true{{_i}}Insert html into the tooltip. If false, jquery's text method will be used to insert content into the dom. Use text if you're worried about XSS attacks.{{/i}}
    {{_i}}placement{{/i}}{{_i}}string|function{{/i}}'top'{{_i}}how to position the tooltip{{/i}} - top | bottom | left | right
    {{_i}}selector{{/i}}{{_i}}string{{/i}}false{{_i}}If a selector is provided, tooltip objects will be delegated to the specified targets.{{/i}}
    {{_i}}title{{/i}}{{_i}}string | function{{/i}}''{{_i}}default title value if `title` tag isn't present{{/i}}
    {{_i}}trigger{{/i}}{{_i}}string{{/i}}'hover'{{_i}}how tooltip is triggered{{/i}} - hover | focus | manual
    {{_i}}delay{{/i}}{{_i}}number | object{{/i}}0 -

    {{_i}}delay showing and hiding the tooltip (ms) - does not apply to manual trigger type{{/i}}

    -

    {{_i}}If a number is supplied, delay is applied to both hide/show{{/i}}

    -

    {{_i}}Object structure is: delay: { show: 500, hide: 100 }{{/i}}

    -
    -
    - {{_i}}Heads up!{{/i}} - {{_i}}Options for individual tooltips can alternatively be specified through the use of data attributes.{{/i}} -
    +

    {{_i}}Examples{{/i}}

    +

    {{_i}}Inspired by the excellent jQuery.tipsy plugin written by Jason Frame; Tooltips are an updated version, which don't rely on images, use CSS3 for animations, and data-attributes for local title storage.{{/i}}

    +

    {{_i}}Hover over the links below to see tooltips:{{/i}}

    +
    +

    {{_i}}Tight pants next level keffiyeh you probably haven't heard of them. Photo booth beard raw denim letterpress vegan messenger bag stumptown. Farm-to-table seitan, mcsweeney's fixie sustainable quinoa 8-bit american apparel have a terry richardson vinyl chambray. Beard stumptown, cardigans banh mi lomo thundercats. Tofu biodiesel williamsburg marfa, four loko mcsweeney's cleanse vegan chambray. A really ironic artisan whatever keytar, scenester farm-to-table banksy Austin twitter handle freegan cred raw denim single-origin coffee viral.{{/i}} +

    +
    {{! /example }} + +

    {{_i}}Four directions{{/i}}

    + {{! /example }} + + +
    + + +

    {{_i}}Usage{{/i}}

    +

    {{_i}}Trigger the tooltip via javascript:{{/i}}

    +
    $('#example').tooltip({{_i}}options{{/i}})
    + +

    {{_i}}Options{{/i}}

    +

    {{_i}}Options can be passed via data attributes or javascript. For data attributes, append the option name to data-, as in data-animation="".{{/i}}

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    {{_i}}Name{{/i}}{{_i}}type{{/i}}{{_i}}default{{/i}}{{_i}}description{{/i}}
    {{_i}}animation{{/i}}{{_i}}boolean{{/i}}true{{_i}}apply a css fade transition to the tooltip{{/i}}
    {{_i}}html{{/i}}{{_i}}boolean{{/i}}true{{_i}}Insert html into the tooltip. If false, jquery's text method will be used to insert content into the dom. Use text if you're worried about XSS attacks.{{/i}}
    {{_i}}placement{{/i}}{{_i}}string|function{{/i}}'top'{{_i}}how to position the tooltip{{/i}} - top | bottom | left | right
    {{_i}}selector{{/i}}{{_i}}string{{/i}}false{{_i}}If a selector is provided, tooltip objects will be delegated to the specified targets.{{/i}}
    {{_i}}title{{/i}}{{_i}}string | function{{/i}}''{{_i}}default title value if `title` tag isn't present{{/i}}
    {{_i}}trigger{{/i}}{{_i}}string{{/i}}'hover'{{_i}}how tooltip is triggered{{/i}} - hover | focus | manual
    {{_i}}delay{{/i}}{{_i}}number | object{{/i}}0 +

    {{_i}}delay showing and hiding the tooltip (ms) - does not apply to manual trigger type{{/i}}

    +

    {{_i}}If a number is supplied, delay is applied to both hide/show{{/i}}

    +

    {{_i}}Object structure is: delay: { show: 500, hide: 100 }{{/i}}

    +
    +
    + {{_i}}Heads up!{{/i}} + {{_i}}Options for individual tooltips can alternatively be specified through the use of data attributes.{{/i}} +
    -

    {{_i}}Markup{{/i}}

    -

    {{_i}}For performance reasons, the Tooltip and Popover data-apis are opt in. If you would like to use them just specify a selector option.{{/i}}

    -
    -<a href="#" rel="tooltip" title="{{_i}}first tooltip{{/i}}">{{_i}}hover over me{{/i}}</a>
    -
    +

    {{_i}}Markup{{/i}}

    +

    {{_i}}For performance reasons, the Tooltip and Popover data-apis are opt in. If you would like to use them just specify a selector option.{{/i}}

    +
    +    <a href="#" rel="tooltip" title="{{_i}}first tooltip{{/i}}">{{_i}}hover over me{{/i}}</a>
    +    
    + +

    {{_i}}Methods{{/i}}

    +

    $().tooltip({{_i}}options{{/i}})

    +

    {{_i}}Attaches a tooltip handler to an element collection.{{/i}}

    +

    .tooltip('show')

    +

    {{_i}}Reveals an element's tooltip.{{/i}}

    +
    $('#element').tooltip('show')
    +

    .tooltip('hide')

    +

    {{_i}}Hides an element's tooltip.{{/i}}

    +
    $('#element').tooltip('hide')
    +

    .tooltip('toggle')

    +

    {{_i}}Toggles an element's tooltip.{{/i}}

    +
    $('#element').tooltip('toggle')
    +

    .tooltip('destroy')

    +

    {{_i}}Destroys an element's tooltip.{{/i}}

    +
    $('#element').tooltip('destroy')
    +
    + + + + +
    + -

    {{_i}}Methods{{/i}}

    -

    $().tooltip({{_i}}options{{/i}})

    -

    {{_i}}Attaches a tooltip handler to an element collection.{{/i}}

    -

    .tooltip('show')

    -

    {{_i}}Reveals an element's tooltip.{{/i}}

    -
    $('#element').tooltip('show')
    -

    .tooltip('hide')

    -

    {{_i}}Hides an element's tooltip.{{/i}}

    -
    $('#element').tooltip('hide')
    -

    .tooltip('toggle')

    -

    {{_i}}Toggles an element's tooltip.{{/i}}

    -
    $('#element').tooltip('toggle')
    -

    .tooltip('destroy')

    -

    {{_i}}Destroys an element's tooltip.{{/i}}

    -
    $('#element').tooltip('destroy')
    -
    - - - - -
    - +

    {{_i}}Examples{{/i}}

    +

    {{_i}}Add small overlays of content, like those on the iPad, to any element for housing secondary information. Hover over the button to trigger the popover. Requires Tooltip to be included.{{/i}}

    + +

    {{_i}}Static popover{{/i}}

    +

    {{_i}}Four options are available: top, right, bottom, and left aligned.{{/i}}

    +
    +
    +
    +

    Popover top

    +
    +

    Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

    +
    +
    -

    {{_i}}Examples{{/i}}

    -

    {{_i}}Add small overlays of content, like those on the iPad, to any element for housing secondary information. Hover over the button to trigger the popover. Requires Tooltip to be included.{{/i}}

    - -

    {{_i}}Static popover{{/i}}

    -

    {{_i}}Four options are available: top, right, bottom, and left aligned.{{/i}}

    -
    -
    -
    -

    Popover top

    -
    -

    Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

    -
    -
    +
    +
    +

    Popover right

    +
    +

    Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

    +
    +
    -
    -
    -

    Popover right

    -
    -

    Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

    -
    -
    +
    +
    +

    Popover bottom

    +
    +

    Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

    +
    +
    -
    -
    -

    Popover bottom

    -
    -

    Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

    -
    -
    +
    +
    +

    Popover left

    +
    +

    Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

    +
    +
    -
    -
    -

    Popover left

    -
    -

    Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

    +
    -
    - -
    -
    -

    {{_i}}No markup shown as popovers are generated from javascript and content within a data attribute.{{/i}}

    +

    {{_i}}No markup shown as popovers are generated from javascript and content within a data attribute.{{/i}}

    -

    Live demo

    - +

    Live demo

    + -
    - - -

    {{_i}}Usage{{/i}}

    -

    {{_i}}Enable popovers via javascript:{{/i}}

    -
    $('#example').popover({{_i}}options{{/i}})
    - -

    {{_i}}Options{{/i}}

    -

    {{_i}}Options can be passed via data attributes or javascript. For data attributes, append the option name to data-, as in data-animation="".{{/i}}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {{_i}}Name{{/i}}{{_i}}type{{/i}}{{_i}}default{{/i}}{{_i}}description{{/i}}
    {{_i}}animation{{/i}}{{_i}}boolean{{/i}}true{{_i}}apply a css fade transition to the tooltip{{/i}}
    {{_i}}html{{/i}}{{_i}}boolean{{/i}}true{{_i}}Insert html into the popover. If false, jquery's text method will be used to insert content into the dom. Use text if you're worried about XSS attacks.{{/i}}
    {{_i}}placement{{/i}}{{_i}}string|function{{/i}}'right'{{_i}}how to position the popover{{/i}} - top | bottom | left | right
    {{_i}}selector{{/i}}{{_i}}string{{/i}}false{{_i}}if a selector is provided, tooltip objects will be delegated to the specified targets{{/i}}
    {{_i}}trigger{{/i}}{{_i}}string{{/i}}'hover'{{_i}}how popover is triggered{{/i}} - hover | focus | manual
    {{_i}}title{{/i}}{{_i}}string | function{{/i}}''{{_i}}default title value if `title` attribute isn't present{{/i}}
    {{_i}}content{{/i}}{{_i}}string | function{{/i}}''{{_i}}default content value if `data-content` attribute isn't present{{/i}}
    {{_i}}delay{{/i}}{{_i}}number | object{{/i}}0 -

    {{_i}}delay showing and hiding the popover (ms) - does not apply to manual trigger type{{/i}}

    -

    {{_i}}If a number is supplied, delay is applied to both hide/show{{/i}}

    -

    {{_i}}Object structure is: delay: { show: 500, hide: 100 }{{/i}}

    -
    -
    - {{_i}}Heads up!{{/i}} - {{_i}}Options for individual popovers can alternatively be specified through the use of data attributes.{{/i}} -
    +
    + + +

    {{_i}}Usage{{/i}}

    +

    {{_i}}Enable popovers via javascript:{{/i}}

    +
    $('#example').popover({{_i}}options{{/i}})
    + +

    {{_i}}Options{{/i}}

    +

    {{_i}}Options can be passed via data attributes or javascript. For data attributes, append the option name to data-, as in data-animation="".{{/i}}

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    {{_i}}Name{{/i}}{{_i}}type{{/i}}{{_i}}default{{/i}}{{_i}}description{{/i}}
    {{_i}}animation{{/i}}{{_i}}boolean{{/i}}true{{_i}}apply a css fade transition to the tooltip{{/i}}
    {{_i}}html{{/i}}{{_i}}boolean{{/i}}true{{_i}}Insert html into the popover. If false, jquery's text method will be used to insert content into the dom. Use text if you're worried about XSS attacks.{{/i}}
    {{_i}}placement{{/i}}{{_i}}string|function{{/i}}'right'{{_i}}how to position the popover{{/i}} - top | bottom | left | right
    {{_i}}selector{{/i}}{{_i}}string{{/i}}false{{_i}}if a selector is provided, tooltip objects will be delegated to the specified targets{{/i}}
    {{_i}}trigger{{/i}}{{_i}}string{{/i}}'hover'{{_i}}how popover is triggered{{/i}} - hover | focus | manual
    {{_i}}title{{/i}}{{_i}}string | function{{/i}}''{{_i}}default title value if `title` attribute isn't present{{/i}}
    {{_i}}content{{/i}}{{_i}}string | function{{/i}}''{{_i}}default content value if `data-content` attribute isn't present{{/i}}
    {{_i}}delay{{/i}}{{_i}}number | object{{/i}}0 +

    {{_i}}delay showing and hiding the popover (ms) - does not apply to manual trigger type{{/i}}

    +

    {{_i}}If a number is supplied, delay is applied to both hide/show{{/i}}

    +

    {{_i}}Object structure is: delay: { show: 500, hide: 100 }{{/i}}

    +
    +
    + {{_i}}Heads up!{{/i}} + {{_i}}Options for individual popovers can alternatively be specified through the use of data attributes.{{/i}} +
    -

    {{_i}}Markup{{/i}}

    -

    {{_i}}For performance reasons, the Tooltip and Popover data-apis are opt in. If you would like to use them just specify a selector option.{{/i}}

    - -

    {{_i}}Methods{{/i}}

    -

    $().popover({{_i}}options{{/i}})

    -

    {{_i}}Initializes popovers for an element collection.{{/i}}

    -

    .popover('show')

    -

    {{_i}}Reveals an elements popover.{{/i}}

    -
    $('#element').popover('show')
    -

    .popover('hide')

    -

    {{_i}}Hides an elements popover.{{/i}}

    -
    $('#element').popover('hide')
    -

    .popover('toggle')

    -

    {{_i}}Toggles an elements popover.{{/i}}

    -
    $('#element').popover('toggle')
    -

    .popover('destroy')

    -

    {{_i}}Destroys an element's popover.{{/i}}

    -
    $('#element').popover('destroy')
    -
    - - - - -
    - +

    {{_i}}Markup{{/i}}

    +

    {{_i}}For performance reasons, the Tooltip and Popover data-apis are opt in. If you would like to use them just specify a selector option.{{/i}}

    + +

    {{_i}}Methods{{/i}}

    +

    $().popover({{_i}}options{{/i}})

    +

    {{_i}}Initializes popovers for an element collection.{{/i}}

    +

    .popover('show')

    +

    {{_i}}Reveals an elements popover.{{/i}}

    +
    $('#element').popover('show')
    +

    .popover('hide')

    +

    {{_i}}Hides an elements popover.{{/i}}

    +
    $('#element').popover('hide')
    +

    .popover('toggle')

    +

    {{_i}}Toggles an elements popover.{{/i}}

    +
    $('#element').popover('toggle')
    +

    .popover('destroy')

    +

    {{_i}}Destroys an element's popover.{{/i}}

    +
    $('#element').popover('destroy')
    +
    + + + + +
    + -

    {{_i}}Example alerts{{/i}}

    -

    {{_i}}Add dismiss functionality to all alerge messages with this plugin.{{/i}}

    -
    -
    - - {{_i}}Holy guacamole!{{/i}} {{_i}}Best check yo self, you're not looking too good.{{/i}} -
    -
    {{! /example }} - -
    -
    - -

    {{_i}}Oh snap! You got an error!{{/i}}

    -

    {{_i}}Change this and that and try again. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cras mattis consectetur purus sit amet fermentum.{{/i}}

    -

    - {{_i}}Take this action{{/i}} {{_i}}Or do this{{/i}} -

    -
    -
    {{! /example }} - - -
    - - -

    {{_i}}Usage{{/i}}

    -

    {{_i}}Enable dismissal of an alert via javascript:{{/i}}

    -
    $(".alert").alert()
    - -

    {{_i}}Markup{{/i}}

    -

    {{_i}}Just add data-dismiss="alert" to your close button to automatically give an alert close functionality.{{/i}}

    -
    <a class="close" data-dismiss="alert" href="#">&times;</a>
    - -

    {{_i}}Methods{{/i}}

    -

    $().alert()

    -

    {{_i}}Wraps all alerts with close functionality. To have your alerts animate out when closed, make sure they have the .fade and .in class already applied to them.{{/i}}

    -

    .alert('close')

    -

    {{_i}}Closes an alert.{{/i}}

    -
    $(".alert").alert('close')
    - - -

    {{_i}}Events{{/i}}

    -

    {{_i}}Bootstrap's alert class exposes a few events for hooking into alert functionality.{{/i}}

    - - - - - - - - - - - - - - - - - -
    {{_i}}Event{{/i}}{{_i}}Description{{/i}}
    {{_i}}close{{/i}}{{_i}}This event fires immediately when the close instance method is called.{{/i}}
    {{_i}}closed{{/i}}{{_i}}This event is fired when the alert has been closed (will wait for css transitions to complete).{{/i}}
    +

    {{_i}}Example alerts{{/i}}

    +

    {{_i}}Add dismiss functionality to all alerge messages with this plugin.{{/i}}

    +
    +
    + + {{_i}}Holy guacamole!{{/i}} {{_i}}Best check yo self, you're not looking too good.{{/i}} +
    +
    {{! /example }} + +
    +
    + +

    {{_i}}Oh snap! You got an error!{{/i}}

    +

    {{_i}}Change this and that and try again. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cras mattis consectetur purus sit amet fermentum.{{/i}}

    +

    + {{_i}}Take this action{{/i}} {{_i}}Or do this{{/i}} +

    +
    +
    {{! /example }} + + +
    + + +

    {{_i}}Usage{{/i}}

    +

    {{_i}}Enable dismissal of an alert via javascript:{{/i}}

    +
    $(".alert").alert()
    + +

    {{_i}}Markup{{/i}}

    +

    {{_i}}Just add data-dismiss="alert" to your close button to automatically give an alert close functionality.{{/i}}

    +
    <a class="close" data-dismiss="alert" href="#">&times;</a>
    + +

    {{_i}}Methods{{/i}}

    +

    $().alert()

    +

    {{_i}}Wraps all alerts with close functionality. To have your alerts animate out when closed, make sure they have the .fade and .in class already applied to them.{{/i}}

    +

    .alert('close')

    +

    {{_i}}Closes an alert.{{/i}}

    +
    $(".alert").alert('close')
    + + +

    {{_i}}Events{{/i}}

    +

    {{_i}}Bootstrap's alert class exposes a few events for hooking into alert functionality.{{/i}}

    + + + + + + + + + + + + + + + + + +
    {{_i}}Event{{/i}}{{_i}}Description{{/i}}
    {{_i}}close{{/i}}{{_i}}This event fires immediately when the close instance method is called.{{/i}}
    {{_i}}closed{{/i}}{{_i}}This event is fired when the alert has been closed (will wait for css transitions to complete).{{/i}}
     $('#my-alert').bind('closed', function () {
       // {{_i}}do something…{{/i}}
     })
    -
    +
    - -
    - + +
    + -

    {{_i}}Example uses{{/i}}

    -

    {{_i}}Do more with buttons. Control button states or create groups of buttons for more components like toolbars.{{/i}}

    +

    {{_i}}Example uses{{/i}}

    +

    {{_i}}Do more with buttons. Control button states or create groups of buttons for more components like toolbars.{{/i}}

    -

    {{_i}}Stateful{{/i}}

    -

    {{_i}}Add data-loading-text="Loading..." to use a loading state on a button.{{/i}}

    -
    - -
    {{! /example }} +

    {{_i}}Stateful{{/i}}

    +

    {{_i}}Add data-loading-text="Loading..." to use a loading state on a button.{{/i}}

    +
    + +
    {{! /example }}
     <button type="button" class="btn btn-primary" data-loading-text="Loading...">Loading state</button>
     
    -

    {{_i}}Single toggle{{/i}}

    -

    {{_i}}Add data-toggle="button" to activate toggling on a single button.{{/i}}

    -
    - -
    {{! /example }} +

    {{_i}}Single toggle{{/i}}

    +

    {{_i}}Add data-toggle="button" to activate toggling on a single button.{{/i}}

    +
    + +
    {{! /example }}
     <button type="button" class="btn" data-toggle="button">Single Toggle</button>
     
    -

    {{_i}}Checkbox{{/i}}

    -

    {{_i}}Add data-toggle="buttons-checkbox" for checkbox style toggling on btn-group.{{/i}}

    -
    -
    - - - -
    -
    {{! /example }} +

    {{_i}}Checkbox{{/i}}

    +

    {{_i}}Add data-toggle="buttons-checkbox" for checkbox style toggling on btn-group.{{/i}}

    +
    +
    + + + +
    +
    {{! /example }}
     <div class="btn-group" data-toggle="buttons-checkbox">
       <button type="button" class="btn">Left</button>
    @@ -1075,15 +1058,15 @@ $('#my-alert').bind('closed', function () {
     </div>
     
    -

    {{_i}}Radio{{/i}}

    -

    {{_i}}Add data-toggle="buttons-radio" for radio style toggling on btn-group.{{/i}}

    -
    -
    - - - -
    -
    {{! /example }} +

    {{_i}}Radio{{/i}}

    +

    {{_i}}Add data-toggle="buttons-radio" for radio style toggling on btn-group.{{/i}}

    +
    +
    + + + +
    +
    {{! /example }}
     <div class="btn-group" data-toggle="buttons-radio">
       <button type="button" class="btn">Left</button>
    @@ -1093,101 +1076,101 @@ $('#my-alert').bind('closed', function () {
     
    -
    +
    -

    {{_i}}Usage{{/i}}

    -

    {{_i}}Enable buttons via javascript:{{/i}}

    -
    $('.nav-tabs').button()
    +

    {{_i}}Usage{{/i}}

    +

    {{_i}}Enable buttons via javascript:{{/i}}

    +
    $('.nav-tabs').button()
    -

    {{_i}}Markup{{/i}}

    -

    {{_i}}Data attributes are integral to the button plugin. Check out the example code below for the various markup types.{{/i}}

    +

    {{_i}}Markup{{/i}}

    +

    {{_i}}Data attributes are integral to the button plugin. Check out the example code below for the various markup types.{{/i}}

    -

    {{_i}}Options{{/i}}

    -

    {{_i}}None{{/i}}

    +

    {{_i}}Options{{/i}}

    +

    {{_i}}None{{/i}}

    -

    {{_i}}Methods{{/i}}

    -

    $().button('toggle')

    -

    {{_i}}Toggles push state. Gives the button the appearance that it has been activated.{{/i}}

    -
    - {{_i}}Heads up!{{/i}} - {{_i}}You can enable auto toggling of a button by using the data-toggle attribute.{{/i}} -
    -
    <button type="button" class="btn" data-toggle="button" >…</button>
    -

    $().button('loading')

    -

    {{_i}}Sets button state to loading - disables button and swaps text to loading text. Loading text should be defined on the button element using the data attribute data-loading-text.{{/i}} -

    -
    <button type="button" class="btn" data-loading-text="loading stuff..." >...</button>
    -
    - {{_i}}Heads up!{{/i}} - {{_i}}Firefox persists the disabled state across page loads. A workaround for this is to use autocomplete="off".{{/i}} -
    -

    $().button('reset')

    -

    {{_i}}Resets button state - swaps text to original text.{{/i}}

    -

    $().button(string)

    -

    {{_i}}Resets button state - swaps text to any data defined text state.{{/i}}

    +

    {{_i}}Methods{{/i}}

    +

    $().button('toggle')

    +

    {{_i}}Toggles push state. Gives the button the appearance that it has been activated.{{/i}}

    +
    + {{_i}}Heads up!{{/i}} + {{_i}}You can enable auto toggling of a button by using the data-toggle attribute.{{/i}} +
    +
    <button type="button" class="btn" data-toggle="button" >…</button>
    +

    $().button('loading')

    +

    {{_i}}Sets button state to loading - disables button and swaps text to loading text. Loading text should be defined on the button element using the data attribute data-loading-text.{{/i}} +

    +
    <button type="button" class="btn" data-loading-text="loading stuff..." >...</button>
    +
    + {{_i}}Heads up!{{/i}} + {{_i}}Firefox persists the disabled state across page loads. A workaround for this is to use autocomplete="off".{{/i}} +
    +

    $().button('reset')

    +

    {{_i}}Resets button state - swaps text to original text.{{/i}}

    +

    $().button(string)

    +

    {{_i}}Resets button state - swaps text to any data defined text state.{{/i}}

    <button type="button" class="btn" data-complete-text="finished!" >...</button>
     <script>
       $('.btn').button('complete')
     </script>
    -
    +
    - -
    - - -

    {{_i}}About{{/i}}

    -

    {{_i}}Get base styles and flexible support for collapsible components like accordions and navigation.{{/i}}

    -

    * {{_i}}Requires the Transitions plugin to be included.{{/i}}

    - -

    {{_i}}Example accordion{{/i}}

    -

    {{_i}}Using the collapse plugin, we built a simple accordion style widget:{{/i}}

    + +
    + -
    -
    -
    - -
    -
    - Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS. +

    {{_i}}About{{/i}}

    +

    {{_i}}Get base styles and flexible support for collapsible components like accordions and navigation.{{/i}}

    +

    * {{_i}}Requires the Transitions plugin to be included.{{/i}}

    + +

    {{_i}}Example accordion{{/i}}

    +

    {{_i}}Using the collapse plugin, we built a simple accordion style widget:{{/i}}

    + +
    +
    +
    + +
    +
    + Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS. +
    +
    -
    -
    -
    - -
    -
    - Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS. +
    + +
    +
    + Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS. +
    +
    -
    -
    -
    - -
    -
    - Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS. +
    + +
    +
    + Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS. +
    +
    -
    -
    -
    {{! /example }} +
    {{! /example }}
     <button type="button" class="btn btn-danger" data-toggle="collapse" data-target="#demo">
       {{_i}}simple collapsible{{/i}}
    @@ -1197,137 +1180,137 @@ $('#my-alert').bind('closed', function () {
     
    -
    - - -

    {{_i}}Usage{{/i}}

    - -

    {{_i}}Via data attributes{{/i}}

    -

    {{_i}}Just add data-toggle="collapse" and a data-target to element to automatically assign control of a collapsible element. The data-target attribute accepts a css selector to apply the collapse to. Be sure to add the class collapse to the collapsible element. If you'd like it to default open, add the additional class in.{{/i}}

    -

    {{_i}}To add accordion-like group management to a collapsible control, add the data attribute data-parent="#selector". Refer to the demo to see this in action.{{/i}}

    - -

    {{_i}}Via javascript{{/i}}

    -

    {{_i}}Enable manually with:{{/i}}

    -
    $(".collapse").collapse()
    - -

    {{_i}}Options{{/i}}

    -

    {{_i}}Options can be passed via data attributes or javascript. For data attributes, append the option name to data-, as in data-parent="".{{/i}}

    - - - - - - - - - - - - - - - - - - - - - - - -
    {{_i}}Name{{/i}}{{_i}}type{{/i}}{{_i}}default{{/i}}{{_i}}description{{/i}}
    {{_i}}parent{{/i}}{{_i}}selector{{/i}}false{{_i}}If selector then all collapsible elements under the specified parent will be closed when this collapsible item is shown. (similar to traditional accordion behavior){{/i}}
    {{_i}}toggle{{/i}}{{_i}}boolean{{/i}}true{{_i}}Toggles the collapsible element on invocation{{/i}}
    - - -

    {{_i}}Methods{{/i}}

    -

    .collapse({{_i}}options{{/i}})

    -

    {{_i}}Activates your content as a collapsible element. Accepts an optional options object.{{/i}} +


    + + +

    {{_i}}Usage{{/i}}

    + +

    {{_i}}Via data attributes{{/i}}

    +

    {{_i}}Just add data-toggle="collapse" and a data-target to element to automatically assign control of a collapsible element. The data-target attribute accepts a css selector to apply the collapse to. Be sure to add the class collapse to the collapsible element. If you'd like it to default open, add the additional class in.{{/i}}

    +

    {{_i}}To add accordion-like group management to a collapsible control, add the data attribute data-parent="#selector". Refer to the demo to see this in action.{{/i}}

    + +

    {{_i}}Via javascript{{/i}}

    +

    {{_i}}Enable manually with:{{/i}}

    +
    $(".collapse").collapse()
    + +

    {{_i}}Options{{/i}}

    +

    {{_i}}Options can be passed via data attributes or javascript. For data attributes, append the option name to data-, as in data-parent="".{{/i}}

    + + + + + + + + + + + + + + + + + + + + + + + +
    {{_i}}Name{{/i}}{{_i}}type{{/i}}{{_i}}default{{/i}}{{_i}}description{{/i}}
    {{_i}}parent{{/i}}{{_i}}selector{{/i}}false{{_i}}If selector then all collapsible elements under the specified parent will be closed when this collapsible item is shown. (similar to traditional accordion behavior){{/i}}
    {{_i}}toggle{{/i}}{{_i}}boolean{{/i}}true{{_i}}Toggles the collapsible element on invocation{{/i}}
    + + +

    {{_i}}Methods{{/i}}

    +

    .collapse({{_i}}options{{/i}})

    +

    {{_i}}Activates your content as a collapsible element. Accepts an optional options object.{{/i}}

     $('#myCollapsible').collapse({
       toggle: false
     })
    -

    .collapse('toggle')

    -

    {{_i}}Toggles a collapsible element to shown or hidden.{{/i}}

    -

    .collapse('show')

    -

    {{_i}}Shows a collapsible element.{{/i}}

    -

    .collapse('hide')

    -

    {{_i}}Hides a collapsible element.{{/i}}

    - -

    {{_i}}Events{{/i}}

    -

    {{_i}}Bootstrap's collapse class exposes a few events for hooking into collapse functionality.{{/i}}

    - - - - - - - - - - - - - - - - - - - - - - - - - -
    {{_i}}Event{{/i}}{{_i}}Description{{/i}}
    {{_i}}show{{/i}}{{_i}}This event fires immediately when the show instance method is called.{{/i}}
    {{_i}}shown{{/i}}{{_i}}This event is fired when a collapse element has been made visible to the user (will wait for css transitions to complete).{{/i}}
    {{_i}}hide{{/i}} - {{_i}}This event is fired immediately when the hide method has been called.{{/i}} -
    {{_i}}hidden{{/i}}{{_i}}This event is fired when a collapse element has been hidden from the user (will wait for css transitions to complete).{{/i}}
    +

    .collapse('toggle')

    +

    {{_i}}Toggles a collapsible element to shown or hidden.{{/i}}

    +

    .collapse('show')

    +

    {{_i}}Shows a collapsible element.{{/i}}

    +

    .collapse('hide')

    +

    {{_i}}Hides a collapsible element.{{/i}}

    + +

    {{_i}}Events{{/i}}

    +

    {{_i}}Bootstrap's collapse class exposes a few events for hooking into collapse functionality.{{/i}}

    + + + + + + + + + + + + + + + + + + + + + + + + + +
    {{_i}}Event{{/i}}{{_i}}Description{{/i}}
    {{_i}}show{{/i}}{{_i}}This event fires immediately when the show instance method is called.{{/i}}
    {{_i}}shown{{/i}}{{_i}}This event is fired when a collapse element has been made visible to the user (will wait for css transitions to complete).{{/i}}
    {{_i}}hide{{/i}} + {{_i}}This event is fired immediately when the hide method has been called.{{/i}} +
    {{_i}}hidden{{/i}}{{_i}}This event is fired when a collapse element has been hidden from the user (will wait for css transitions to complete).{{/i}}
     $('#myCollapsible').on('hidden', function () {
       // {{_i}}do something…{{/i}}
     })
    -
    +
    - - + + - - \ No newline at end of file + {{! /span9 }} +{{! row}} -- cgit v1.2.3 From 3ea309568f77dbe72f35b682041537c8d467664f Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 9 Jul 2012 22:34:33 -0700 Subject: fix indenting and remove hidden subnav on Base CSS docs --- docs/templates/pages/base-css.mustache | 2251 ++++++++++++++++---------------- 1 file changed, 1122 insertions(+), 1129 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/base-css.mustache b/docs/templates/pages/base-css.mustache index a5d334fa3..cc09f8301 100644 --- a/docs/templates/pages/base-css.mustache +++ b/docs/templates/pages/base-css.mustache @@ -1,23 +1,14 @@ -

    {{_i}}Base CSS{{/i}}

    {{_i}}On top of the scaffolding, basic HTML elements are styled and enhanced with extensible classes to provide a fresh, consistent look and feel.{{/i}}

    -
    + +
     <ul>
       <li>...</li>
     </ul>
     
    -

    {{_i}}Ordered{{/i}}

    -

    {{_i}}A list of items in which the order does explicitly matter.{{/i}}

    -
    -
      -
    1. Lorem ipsum dolor sit amet
    2. -
    3. Consectetur adipiscing elit
    4. -
    5. Integer molestie lorem at massa
    6. -
    7. Facilisis in pretium nisl aliquet
    8. -
    9. Nulla volutpat aliquam velit
    10. -
    11. Faucibus porta lacus fringilla vel
    12. -
    13. Aenean sit amet erat nunc
    14. -
    15. Eget porttitor lorem
    16. -
    -
    +

    {{_i}}Ordered{{/i}}

    +

    {{_i}}A list of items in which the order does explicitly matter.{{/i}}

    +
    +
      +
    1. Lorem ipsum dolor sit amet
    2. +
    3. Consectetur adipiscing elit
    4. +
    5. Integer molestie lorem at massa
    6. +
    7. Facilisis in pretium nisl aliquet
    8. +
    9. Nulla volutpat aliquam velit
    10. +
    11. Faucibus porta lacus fringilla vel
    12. +
    13. Aenean sit amet erat nunc
    14. +
    15. Eget porttitor lorem
    16. +
    +
     <ol>
       <li>...</li>
     </ol>
     
    -

    {{_i}}Unstyled{{/i}}

    -

    {{_i}}A list of items with no list-style or additional left padding.{{/i}}

    -
    -
      -
    • Lorem ipsum dolor sit amet
    • -
    • Consectetur adipiscing elit
    • -
    • Integer molestie lorem at massa
    • -
    • Facilisis in pretium nisl aliquet
    • -
    • Nulla volutpat aliquam velit -
        -
      • Phasellus iaculis neque
      • -
      • Purus sodales ultricies
      • -
      • Vestibulum laoreet porttitor sem
      • -
      • Ac tristique libero volutpat at
      • -
      -
    • -
    • Faucibus porta lacus fringilla vel
    • -
    • Aenean sit amet erat nunc
    • -
    • Eget porttitor lorem
    • -
    -
    +

    {{_i}}Unstyled{{/i}}

    +

    {{_i}}A list of items with no list-style or additional left padding.{{/i}}

    +
    +
      +
    • Lorem ipsum dolor sit amet
    • +
    • Consectetur adipiscing elit
    • +
    • Integer molestie lorem at massa
    • +
    • Facilisis in pretium nisl aliquet
    • +
    • Nulla volutpat aliquam velit +
        +
      • Phasellus iaculis neque
      • +
      • Purus sodales ultricies
      • +
      • Vestibulum laoreet porttitor sem
      • +
      • Ac tristique libero volutpat at
      • +
      +
    • +
    • Faucibus porta lacus fringilla vel
    • +
    • Aenean sit amet erat nunc
    • +
    • Eget porttitor lorem
    • +
    +
     <ul class="unstyled">
       <li>...</li>
     </ul>
     
    -

    {{_i}}Description{{/i}}

    -

    {{_i}}A list of terms with their associated descriptions.{{/i}}

    -
    -
    -
    {{_i}}Description lists{{/i}}
    -
    {{_i}}A description list is perfect for defining terms.{{/i}}
    -
    Euismod
    -
    Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.
    -
    Donec id elit non mi porta gravida at eget metus.
    -
    Malesuada porta
    -
    Etiam porta sem malesuada magna mollis euismod.
    -
    -
    +

    {{_i}}Description{{/i}}

    +

    {{_i}}A list of terms with their associated descriptions.{{/i}}

    +
    +
    +
    {{_i}}Description lists{{/i}}
    +
    {{_i}}A description list is perfect for defining terms.{{/i}}
    +
    Euismod
    +
    Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.
    +
    Donec id elit non mi porta gravida at eget metus.
    +
    Malesuada porta
    +
    Etiam porta sem malesuada magna mollis euismod.
    +
    +
     <dl>
       <dt>...</dt>
    @@ -317,21 +308,21 @@
     </dl>
     
    -

    {{_i}}Horizontal description{{/i}}

    -

    {{_i}}Make terms and descriptions in <dl> line up side-by-side.{{/i}}

    -
    -
    -
    {{_i}}Description lists{{/i}}
    -
    {{_i}}A description list is perfect for defining terms.{{/i}}
    -
    Euismod
    -
    Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.
    -
    Donec id elit non mi porta gravida at eget metus.
    -
    Malesuada porta
    -
    Etiam porta sem malesuada magna mollis euismod.
    -
    Felis euismod semper eget lacinia
    -
    Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.
    -
    -
    +

    {{_i}}Horizontal description{{/i}}

    +

    {{_i}}Make terms and descriptions in <dl> line up side-by-side.{{/i}}

    +
    +
    +
    {{_i}}Description lists{{/i}}
    +
    {{_i}}A description list is perfect for defining terms.{{/i}}
    +
    Euismod
    +
    Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.
    +
    Donec id elit non mi porta gravida at eget metus.
    +
    Malesuada porta
    +
    Etiam porta sem malesuada magna mollis euismod.
    +
    Felis euismod semper eget lacinia
    +
    Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.
    +
    +
     <dl class="dl-horizontal">
       <dt>...</dt>
    @@ -339,28 +330,28 @@
     </dl>
     

    - {{_i}}Heads up!{{/i}} - {{_i}}Horizontal description lists will truncate terms that are too long to fit in the left column fix text-overflow. In narrower viewports, they will change to the default stacked layout.{{/i}} -

    - + {{_i}}Heads up!{{/i}} + {{_i}}Horizontal description lists will truncate terms that are too long to fit in the left column fix text-overflow. In narrower viewports, they will change to the default stacked layout.{{/i}} +

    + - -
    - + +
    + -

    Inline

    -

    Wrap inline snippets of code with <code>.

    +

    Inline

    +

    Wrap inline snippets of code with <code>.

     {{_i}}For example, <code>section</code> should be wrapped as inline.{{/i}}
     
    -

    Basic block

    -

    {{_i}}Use <pre> for multiple lines of code. Be sure to escape any angle brackets in the code for proper rendering.{{/i}}

    +

    Basic block

    +

    {{_i}}Use <pre> for multiple lines of code. Be sure to escape any angle brackets in the code for proper rendering.{{/i}}

     <p>{{_i}}Sample text here...{{/i}}</p>
     
    @@ -369,53 +360,53 @@ &lt;p&gt;{{_i}}Sample text here...{{/i}}&lt;/p&gt; </pre> -

    {{_i}}Note: Be sure to keep code within <pre> tags as close to the left as possible; it will render all tabs.{{/i}}

    -

    {{_i}}You may optionally add the .pre-scrollable class which will set a max-height of 350px and provide a y-axis scrollbar.{{/i}}

    -
    +

    {{_i}}Note: Be sure to keep code within <pre> tags as close to the left as possible; it will render all tabs.{{/i}}

    +

    {{_i}}You may optionally add the .pre-scrollable class which will set a max-height of 350px and provide a y-axis scrollbar.{{/i}}

    +
    - -
    - + +
    + -

    {{_i}}Default styles{{/i}}

    -

    {{_i}}For basic styling—light padding and only horizontal dividers—add the base class .table to any <table>.{{/i}}

    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    #{{_i}}First Name{{/i}}{{_i}}Last Name{{/i}}{{_i}}Username{{/i}}
    1MarkOtto@mdo
    2JacobThornton@fat
    3Larrythe Bird@twitter
    -
    {{! /example }} +

    {{_i}}Default styles{{/i}}

    +

    {{_i}}For basic styling—light padding and only horizontal dividers—add the base class .table to any <table>.{{/i}}

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    #{{_i}}First Name{{/i}}{{_i}}Last Name{{/i}}{{_i}}Username{{/i}}
    1MarkOtto@mdo
    2JacobThornton@fat
    3Larrythe Bird@twitter
    +
    {{! /example }}
     <table class="table">
       …
    @@ -423,168 +414,168 @@
     
    -
    - - -

    {{_i}}Optional classes{{/i}}

    -

    {{_i}}Add any of the follow classes to the .table base class.{{/i}}

    - -

    {{_i}}.table-striped{{/i}}

    -

    {{_i}}Adds zebra-striping to any table row within the <tbody> via the :nth-child CSS selector (not available in IE7-IE8).{{/i}}

    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    #{{_i}}First Name{{/i}}{{_i}}Last Name{{/i}}{{_i}}Username{{/i}}
    1MarkOtto@mdo
    2JacobThornton@fat
    3Larrythe Bird@twitter
    -
    {{! /example }} +
    + + +

    {{_i}}Optional classes{{/i}}

    +

    {{_i}}Add any of the follow classes to the .table base class.{{/i}}

    + +

    {{_i}}.table-striped{{/i}}

    +

    {{_i}}Adds zebra-striping to any table row within the <tbody> via the :nth-child CSS selector (not available in IE7-IE8).{{/i}}

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    #{{_i}}First Name{{/i}}{{_i}}Last Name{{/i}}{{_i}}Username{{/i}}
    1MarkOtto@mdo
    2JacobThornton@fat
    3Larrythe Bird@twitter
    +
    {{! /example }}
     <table class="table table-striped">
       …
     </table>
     
    -

    {{_i}}.table-bordered{{/i}}

    -

    {{_i}}Add borders and rounded corners to the table.{{/i}}

    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    #{{_i}}First Name{{/i}}{{_i}}Last Name{{/i}}{{_i}}Username{{/i}}
    1MarkOtto@mdo
    MarkOtto@TwBootstrap
    2JacobThornton@fat
    3Larry the Bird@twitter
    -
    {{! /example }} +

    {{_i}}.table-bordered{{/i}}

    +

    {{_i}}Add borders and rounded corners to the table.{{/i}}

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    #{{_i}}First Name{{/i}}{{_i}}Last Name{{/i}}{{_i}}Username{{/i}}
    1MarkOtto@mdo
    MarkOtto@TwBootstrap
    2JacobThornton@fat
    3Larry the Bird@twitter
    +
    {{! /example }}
     <table class="table table-bordered">
       …
     </table>
     
    -

    {{_i}}.table-hover{{/i}}

    -

    {{_i}}Enable a hover state on table rows within a <tbody>.{{/i}}

    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    #{{_i}}First Name{{/i}}{{_i}}Last Name{{/i}}{{_i}}Username{{/i}}
    1MarkOtto@mdo
    2JacobThornton@fat
    3Larry the Bird@twitter
    -
    {{! /example }} +

    {{_i}}.table-hover{{/i}}

    +

    {{_i}}Enable a hover state on table rows within a <tbody>.{{/i}}

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    #{{_i}}First Name{{/i}}{{_i}}Last Name{{/i}}{{_i}}Username{{/i}}
    1MarkOtto@mdo
    2JacobThornton@fat
    3Larry the Bird@twitter
    +
    {{! /example }}
     <table class="table table-hover">
       …
     </table>
     
    -

    {{_i}}.table-condensed{{/i}}

    -

    {{_i}}Makes tables more compact by cutting cell padding in half.{{/i}}

    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    #{{_i}}First Name{{/i}}{{_i}}Last Name{{/i}}{{_i}}Username{{/i}}
    1MarkOtto@mdo
    2JacobThornton@fat
    3Larry the Bird@twitter
    -
    {{! /example }} +

    {{_i}}.table-condensed{{/i}}

    +

    {{_i}}Makes tables more compact by cutting cell padding in half.{{/i}}

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    #{{_i}}First Name{{/i}}{{_i}}Last Name{{/i}}{{_i}}Username{{/i}}
    1MarkOtto@mdo
    2JacobThornton@fat
    3Larry the Bird@twitter
    +
    {{! /example }}
     <table class="table table-condensed">
       …
    @@ -592,82 +583,82 @@
     
    -
    - - -

    {{_i}}Supported table markup{{/i}}

    -

    {{_i}}List of supported table HTML elements and how they should be used.{{/i}}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {{_i}}Tag{{/i}}{{_i}}Description{{/i}}
    - <table> - - {{_i}}Wrapping element for displaying data in a tabular format{{/i}} -
    - <thead> - - {{_i}}Container element for table header rows (<tr>) to label table columns{{/i}} -
    - <tbody> - - {{_i}}Container element for table rows (<tr>) in the body of the table{{/i}} -
    - <tr> - - {{_i}}Container element for a set of table cells (<td> or <th>) that appears on a single row{{/i}} -
    - <td> - - {{_i}}Default table cell{{/i}} -
    - <th> - - {{_i}}Special table cell for column (or row, depending on scope and placement) labels{{/i}}
    - {{_i}}Must be used within a <thead>{{/i}} -
    - <caption> - - {{_i}}Description or summary of what the table holds, especially useful for screen readers{{/i}} -
    +
    + + +

    {{_i}}Supported table markup{{/i}}

    +

    {{_i}}List of supported table HTML elements and how they should be used.{{/i}}

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    {{_i}}Tag{{/i}}{{_i}}Description{{/i}}
    + <table> + + {{_i}}Wrapping element for displaying data in a tabular format{{/i}} +
    + <thead> + + {{_i}}Container element for table header rows (<tr>) to label table columns{{/i}} +
    + <tbody> + + {{_i}}Container element for table rows (<tr>) in the body of the table{{/i}} +
    + <tr> + + {{_i}}Container element for a set of table cells (<td> or <th>) that appears on a single row{{/i}} +
    + <td> + + {{_i}}Default table cell{{/i}} +
    + <th> + + {{_i}}Special table cell for column (or row, depending on scope and placement) labels{{/i}}
    + {{_i}}Must be used within a <thead>{{/i}} +
    + <caption> + + {{_i}}Description or summary of what the table holds, especially useful for screen readers{{/i}} +
     <table>
       <thead>
    @@ -685,28 +676,28 @@
     </table>
     
    -
    +
    - -
    - + +
    + -

    {{_i}}Default styles{{/i}}

    -

    {{_i}}Individual form controls receive styling, but without any required base class on the <form> or large changes in markup. Results in stacked, left-aligned labels on top of form controls.{{/i}}

    -
    - - -

    {{_i}}Example block-level help text here.{{/i}}

    - - -
    {{! /example }} +

    {{_i}}Default styles{{/i}}

    +

    {{_i}}Individual form controls receive styling, but without any required base class on the <form> or large changes in markup. Results in stacked, left-aligned labels on top of form controls.{{/i}}

    +
    + + +

    {{_i}}Example block-level help text here.{{/i}}

    + + +
    {{! /example }}
     <form class="well">
       <label>{{_i}}Label name{{/i}}</label>
    @@ -720,18 +711,18 @@
     
    -
    +
    -

    {{_i}}Optional layouts{{/i}}

    -

    {{_i}}Included with Bootstrap are three optional form layouts for common use cases.{{/i}}

    +

    {{_i}}Optional layouts{{/i}}

    +

    {{_i}}Included with Bootstrap are three optional form layouts for common use cases.{{/i}}

    -

    {{_i}}Search form{{/i}}

    -

    {{_i}}Add .form-search to the form and .search-query to the <input> for an extra-rounded text input.{{/i}}

    - {{! /example }} +

    {{_i}}Search form{{/i}}

    +

    {{_i}}Add .form-search to the form and .search-query to the <input> for an extra-rounded text input.{{/i}}

    + {{! /example }}
     <form class="form-search">
       <input type="text" class="input-medium search-query">
    @@ -739,16 +730,16 @@
     </form>
     
    -

    {{_i}}Inline form{{/i}}

    -

    {{_i}}Add .form-inline for left-aligned labels and inline-block controls for a compact layout.{{/i}}

    -
    - - - - -
    {{! /example }} +

    {{_i}}Inline form{{/i}}

    +

    {{_i}}Add .form-inline for left-aligned labels and inline-block controls for a compact layout.{{/i}}

    +
    + + + + +
    {{! /example }}
     <form class="form-inline">
       <input type="text" class="input-small" placeholder="{{_i}}Email{{/i}}">
    @@ -760,36 +751,36 @@
     </form>
     
    -

    {{_i}}Horizontal form{{/i}}

    -

    {{_i}}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:{{/i}}

    -
      -
    • {{_i}}Add .form-horizontal to the form{{/i}}
    • -
    • {{_i}}Wrap labels and controls in .control-group{{/i}}
    • -
    • {{_i}}Add .control-label to the label{{/i}}
    • -
    • {{_i}}Wrap any associated controls in .controls for proper alignment{{/i}}
    • -
    -
    -
    - -
    - -
    -
    -
    - -
    - -
    -
    -
    -
    - - -
    -
    -
    +

    {{_i}}Horizontal form{{/i}}

    +

    {{_i}}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:{{/i}}

    +
      +
    • {{_i}}Add .form-horizontal to the form{{/i}}
    • +
    • {{_i}}Wrap labels and controls in .control-group{{/i}}
    • +
    • {{_i}}Add .control-label to the label{{/i}}
    • +
    • {{_i}}Wrap any associated controls in .controls for proper alignment{{/i}}
    • +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    +
    + + +
    +
    +
     <form class="form-horizontal">
       <div class="control-group">
    @@ -816,49 +807,49 @@
     
    -
    +
    -

    {{_i}}Supported form controls{{/i}}

    -

    {{_i}}Examples of standard form controls supported in an example form layout.{{/i}}

    +

    {{_i}}Supported form controls{{/i}}

    +

    {{_i}}Examples of standard form controls supported in an example form layout.{{/i}}

    -

    {{_i}}Inputs{{/i}}

    -

    {{_i}}Most common form control, text-based input fields. Includes support for all HTML5 types: text, password, datetime, datetime-local, date, month, time, week, number, email, url, search, tel, and color.{{/i}}

    -

    {{_i}}Requires the use of a specified type at all times.{{/i}}

    -
    - -
    +

    {{_i}}Inputs{{/i}}

    +

    {{_i}}Most common form control, text-based input fields. Includes support for all HTML5 types: text, password, datetime, datetime-local, date, month, time, week, number, email, url, search, tel, and color.{{/i}}

    +

    {{_i}}Requires the use of a specified type at all times.{{/i}}

    +
    + +
     <input type="text" placeholder="Text input">
     
    -

    {{_i}}Textarea{{/i}}

    -

    {{_i}}Form control which supports multiple lines of text. Change row attribute as necessary.{{/i}}

    -
    - -
    +

    {{_i}}Textarea{{/i}}

    +

    {{_i}}Form control which supports multiple lines of text. Change row attribute as necessary.{{/i}}

    +
    + +
     <textarea id="textarea" rows="3"></textarea>
     
    -

    {{_i}}Checkboxes and radios{{/i}}

    -

    {{_i}}Checkboxes are for selecting one or several options in a list while radios are for selecting one option from many.{{/i}}

    -

    {{_i}}Default (stacked){{/i}}

    -
    - -
    - - -
    +

    {{_i}}Checkboxes and radios{{/i}}

    +

    {{_i}}Checkboxes are for selecting one or several options in a list while radios are for selecting one option from many.{{/i}}

    +

    {{_i}}Default (stacked){{/i}}

    +
    + +
    + + +
     <label class="checkbox">
       <input type="checkbox" value="">
    @@ -875,19 +866,19 @@
     </label>
     
    -

    {{_i}}Inline checkboxes{{/i}}

    -

    {{_i}}Add the .inline class to a series of checkboxes or radios for controls appear on the same line.{{/i}}

    -
    - - - -
    +

    {{_i}}Inline checkboxes{{/i}}

    +

    {{_i}}Add the .inline class to a series of checkboxes or radios for controls appear on the same line.{{/i}}

    +
    + + + +
     <label class="checkbox inline">
       <input type="checkbox" id="inlineCheckbox1" value="option1"> 1
    @@ -900,25 +891,25 @@
     </label>
     
    -

    {{_i}}Selects{{/i}}

    -

    {{_i}}Use the default option or specify a multiple="multiple" to show multiple options at once.{{/i}}

    -
    - -
    - -
    +

    {{_i}}Selects{{/i}}

    +

    {{_i}}Use the default option or specify a multiple="multiple" to show multiple options at once.{{/i}}

    +
    + +
    + +
     <select>
       <option>something</option>
    @@ -938,28 +929,28 @@
     
    -
    +
    -

    {{_i}}Extending form controls{{/i}}

    -

    {{_i}}Adding on top of existing browser controls, Bootstrap includes other useful form components.{{/i}}

    +

    {{_i}}Extending form controls{{/i}}

    +

    {{_i}}Adding on top of existing browser controls, Bootstrap includes other useful form components.{{/i}}

    -

    {{_i}}Prepended and appended inputs{{/i}}

    -

    {{_i}}Add text or buttons before or after any text-based input. Do note that select elements are not supported here.{{/i}}

    +

    {{_i}}Prepended and appended inputs{{/i}}

    +

    {{_i}}Add text or buttons before or after any text-based input. Do note that select elements are not supported here.{{/i}}

    -

    {{_i}}Default options{{/i}}

    -

    {{_i}}Wrap a .add-on and an input with one of two classes to prepend or append text to an input.{{/i}}

    -
    -
    - @ - -
    -
    -
    - - .00 -
    -
    +

    {{_i}}Default options{{/i}}

    +

    {{_i}}Wrap a .add-on and an input with one of two classes to prepend or append text to an input.{{/i}}

    +
    +
    + @ + +
    +
    +
    + + .00 +
    +
     <div class="input-prepend">
       <span class="add-on">@</span><input class="span2" id="prependedInput" size="16" type="text" placeholder="{{_i}}Username{{/i}}">
    @@ -969,35 +960,35 @@
     </div>
     
    -

    {{_i}}Combined{{/i}}

    -

    {{_i}}Use both classes and two instances of .add-on to prepend and append an input.{{/i}}

    -
    -
    - $ - - .00 -
    -
    +

    {{_i}}Combined{{/i}}

    +

    {{_i}}Use both classes and two instances of .add-on to prepend and append an input.{{/i}}

    +
    +
    + $ + + .00 +
    +
     <div class="input-prepend input-append">
       <span class="add-on">$</span><input class="span2" id="appendedPrependedInput" size="16" type="text"><span class="add-on">.00</span>
     </div>
     
    -

    {{_i}}Buttons instead of text{{/i}}

    -

    {{_i}}Instead of a <span> with text, use a .btn to attach a button (or two) to an input.{{/i}}

    -
    -
    - - -
    -
    -
    - - - -
    -
    +

    {{_i}}Buttons instead of text{{/i}}

    +

    {{_i}}Instead of a <span> with text, use a .btn to attach a button (or two) to an input.{{/i}}

    +
    +
    + + +
    +
    +
    + + + +
    +
     <div class="input-append">
       <input class="span2" id="appendedInputButton" size="16" type="text"><button class="btn" type="button">Go!</button>
    @@ -1008,20 +999,20 @@
     </div>
     
    -

    {{_i}}Control sizing{{/i}}

    -

    {{_i}}Use relative sizing classes like .input-large or match your inputs to the grid column sizes using .span* classes.{{/i}}

    - -

    {{_i}}Relative sizing{{/i}}

    -
    -
    - - - - - - -
    -
    +

    {{_i}}Control sizing{{/i}}

    +

    {{_i}}Use relative sizing classes like .input-large or match your inputs to the grid column sizes using .span* classes.{{/i}}

    + +

    {{_i}}Relative sizing{{/i}}

    +
    +
    + + + + + + +
    +
     <input class="input-mini" type="text">
     <input class="input-small" type="text">
    @@ -1030,68 +1021,68 @@
     <input class="input-xlarge" type="text">
     <input class="input-xxlarge" type="text">
     
    -

    - {{_i}}Heads up!{{/i}} In future versions, we'll be altering the use of these relative input classes to match our button sizes. For example, .input-large will increase the padding and font-size of an input. -

    - -

    {{_i}}Grid sizing{{/i}}

    -

    {{_i}}Use .span1 to .span12 for inputs that match the same sizes of the grid columns.{{/i}}

    -
    -
    - - - - - - -
    -
    +

    + {{_i}}Heads up!{{/i}} In future versions, we'll be altering the use of these relative input classes to match our button sizes. For example, .input-large will increase the padding and font-size of an input. +

    + +

    {{_i}}Grid sizing{{/i}}

    +

    {{_i}}Use .span1 to .span12 for inputs that match the same sizes of the grid columns.{{/i}}

    +
    +
    + + + + + + +
    +
     <input class="span1" type="text">
     <input class="span2" type="text">
     <input class="span3" type="text">
     
    -

    {{_i}}For multiple grid inputs per line, use the .controls-row modifier class for proper spacing. It floats the inputs to collapse white-space, sets the proper margins, and the clears the float.{{/i}}

    -
    -
    - -
    -
    - - -
    -
    - - -
    -
    - - -
    -
    - - -
    -
    +

    {{_i}}For multiple grid inputs per line, use the .controls-row modifier class for proper spacing. It floats the inputs to collapse white-space, sets the proper margins, and the clears the float.{{/i}}

    +
    +
    + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
     <div class="controls controls-row">
       <input class="span4" type="text" placeholder=".span4">
    @@ -1099,23 +1090,23 @@
     </div>
     
    -

    {{_i}}Uneditable inputs{{/i}}

    -

    {{_i}}Present data in a form that's not editable without using actual form markup.{{/i}}

    -
    - Some value here -
    +

    {{_i}}Uneditable inputs{{/i}}

    +

    {{_i}}Present data in a form that's not editable without using actual form markup.{{/i}}

    +
    + Some value here +
       <span class="input-xlarge uneditable-input">Some value here</span>
     
    -

    {{_i}}Form actions{{/i}}

    -

    {{_i}}End a form with a group of actions (buttons). When placed within a .form-horizontal, the buttons will automatically indent to line up with the form controls.{{/i}}

    -
    -
    - - -
    -
    +

    {{_i}}Form actions{{/i}}

    +

    {{_i}}End a form with a group of actions (buttons). When placed within a .form-horizontal, the buttons will automatically indent to line up with the form controls.{{/i}}

    +
    +
    + + +
    +
     <div class="form-actions">
       <button type="submit" class="btn btn-primary">{{_i}}Save changes{{/i}}</button>
    @@ -1123,76 +1114,76 @@
     </div>
     
    -

    {{_i}}Help text{{/i}}

    -

    {{_i}}Inline and block level support for help text that appears around form controls.{{/i}}

    -

    {{_i}}Inline help{{/i}}

    -
    - Inline help text -
    +

    {{_i}}Help text{{/i}}

    +

    {{_i}}Inline and block level support for help text that appears around form controls.{{/i}}

    +

    {{_i}}Inline help{{/i}}

    +
    + Inline help text +
     <span class="help-inline">Inline help text</span>
     
    -

    {{_i}}Block help{{/i}}

    -
    - - A longer block of help text that breaks onto a new line and may extend beyond one line. -
    +

    {{_i}}Block help{{/i}}

    +
    + + A longer block of help text that breaks onto a new line and may extend beyond one line. +
     <span class="help-block">A longer block of help text that breaks onto a new line and may extend beyond one line.</span>
     
    -
    +
    -

    {{_i}}Form control states{{/i}}

    -

    {{_i}}Provide feedback to users or visitors with basic feedback states on form controls and labels.{{/i}}

    +

    {{_i}}Form control states{{/i}}

    +

    {{_i}}Provide feedback to users or visitors with basic feedback states on form controls and labels.{{/i}}

    -

    {{_i}}Input focus{{/i}}

    -

    {{_i}}We remove the default outline styles on some form controls and apply a box-shadow in its place for :focus.{{/i}}

    -
    - -
    +

    {{_i}}Input focus{{/i}}

    +

    {{_i}}We remove the default outline styles on some form controls and apply a box-shadow in its place for :focus.{{/i}}

    +
    + +
     <input class="input-xlarge" id="focusedInput" type="text" value="{{_i}}This is focused...{{/i}}">
     
    -

    {{_i}}Disabled inputs{{/i}}

    -

    {{_i}}Add the disabled attribute on an input to prevent user input and trigger a slightly different look.{{/i}}

    -
    - -
    +

    {{_i}}Disabled inputs{{/i}}

    +

    {{_i}}Add the disabled attribute on an input to prevent user input and trigger a slightly different look.{{/i}}

    +
    + +
     <input class="input-xlarge" id="disabledInput" type="text" placeholder="{{_i}}Disabled input here...{{/i}}" disabled>
     
    -

    {{_i}}Validation states{{/i}}

    -

    {{_i}}Bootstrap includes validation styles for error, warning, and success messages. To use, add the appropriate class to the surrounding .control-group.{{/i}}

    +

    {{_i}}Validation states{{/i}}

    +

    {{_i}}Bootstrap includes validation styles for error, warning, and success messages. To use, add the appropriate class to the surrounding .control-group.{{/i}}

    -
    -
    - -
    - - {{_i}}Something may have gone wrong{{/i}} -
    -
    -
    - -
    - - {{_i}}Please correct the error{{/i}} -
    -
    -
    - -
    - - {{_i}}Woohoo!{{/i}} -
    -
    -
    +
    +
    + +
    + + {{_i}}Something may have gone wrong{{/i}} +
    +
    +
    + +
    + + {{_i}}Please correct the error{{/i}} +
    +
    +
    + +
    + + {{_i}}Woohoo!{{/i}} +
    +
    +
     <div class="control-group warning">
       <label class="control-label" for="inputWarning">{{_i}}Input with warning{{/i}}</label>
    @@ -1217,133 +1208,133 @@
     </div>
     
    -
    - - - - -
    - - -

    Default buttons

    -

    {{_i}}Button styles can be applied to anything with the .btn class applied. However, typically you'll want to apply these to only <a> and <button> elements for the best rendering.{{/i}}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {{_i}}Button{{/i}}{{_i}}class=""{{/i}}{{_i}}Description{{/i}}
    btn{{_i}}Standard gray button with gradient{{/i}}
    btn btn-primary{{_i}}Provides extra visual weight and identifies the primary action in a set of buttons{{/i}}
    btn btn-info{{_i}}Used as an alternative to the default styles{{/i}}
    btn btn-success{{_i}}Indicates a successful or positive action{{/i}}
    btn btn-warning{{_i}}Indicates caution should be taken with this action{{/i}}
    btn btn-danger{{_i}}Indicates a dangerous or potentially negative action{{/i}}
    btn btn-inverse{{_i}}Alternate dark gray button, not tied to a semantic action or use{{/i}}
    - -

    {{_i}}Cross browser compatibility{{/i}}

    -

    {{_i}}IE9 doesn't crop background gradients on rounded corners, so we remove it. Related, IE9 jankifies disabled button elements, rendering text gray with a nasty text-shadow that we cannot fix.{{/i}}

    - - -
    - - -

    {{_i}}Button sizes{{/i}}

    -

    {{_i}}Fancy larger or smaller buttons? Add .btn-large, .btn-small, or .btn-mini for two additional sizes.{{/i}}

    -

    - - -

    -

    - - -

    -

    - - -

    - +
    -
    -

    {{_i}}Disabled state{{/i}}

    -

    {{_i}}Make buttons look unclickable by fading them back 50%.{{/i}}

    + +
    + -

    Anchor element

    -

    {{_i}}Add the .disabled class to <a> buttons.{{/i}}

    -

    - {{_i}}Primary link{{/i}} - {{_i}}Link{{/i}} -

    +

    Default buttons

    +

    {{_i}}Button styles can be applied to anything with the .btn class applied. However, typically you'll want to apply these to only <a> and <button> elements for the best rendering.{{/i}}

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    {{_i}}Button{{/i}}{{_i}}class=""{{/i}}{{_i}}Description{{/i}}
    btn{{_i}}Standard gray button with gradient{{/i}}
    btn btn-primary{{_i}}Provides extra visual weight and identifies the primary action in a set of buttons{{/i}}
    btn btn-info{{_i}}Used as an alternative to the default styles{{/i}}
    btn btn-success{{_i}}Indicates a successful or positive action{{/i}}
    btn btn-warning{{_i}}Indicates caution should be taken with this action{{/i}}
    btn btn-danger{{_i}}Indicates a dangerous or potentially negative action{{/i}}
    btn btn-inverse{{_i}}Alternate dark gray button, not tied to a semantic action or use{{/i}}
    + +

    {{_i}}Cross browser compatibility{{/i}}

    +

    {{_i}}IE9 doesn't crop background gradients on rounded corners, so we remove it. Related, IE9 jankifies disabled button elements, rendering text gray with a nasty text-shadow that we cannot fix.{{/i}}

    + + +
    + + +

    {{_i}}Button sizes{{/i}}

    +

    {{_i}}Fancy larger or smaller buttons? Add .btn-large, .btn-small, or .btn-mini for two additional sizes.{{/i}}

    +

    + + +

    +

    + + +

    +

    + + +

    + + +
    + + +

    {{_i}}Disabled state{{/i}}

    +

    {{_i}}Make buttons look unclickable by fading them back 50%.{{/i}}

    + +

    Anchor element

    +

    {{_i}}Add the .disabled class to <a> buttons.{{/i}}

    +

    + {{_i}}Primary link{{/i}} + {{_i}}Link{{/i}} +

     <a href="#" class="btn btn-large btn-primary disabled">{{_i}}Primary link{{/i}}</a>
     <a href="#" class="btn btn-large disabled">{{_i}}Link{{/i}}</a>
     
    -

    - {{_i}}Heads up!{{/i}} - {{_i}}We use .disabled as a utility class here, similar to the common .active class, so no prefix is required.{{/i}} -

    - -

    Button element

    -

    {{_i}}Add the disabled attribute to <button> buttons.{{/i}}

    -

    - - -

    +

    + {{_i}}Heads up!{{/i}} + {{_i}}We use .disabled as a utility class here, similar to the common .active class, so no prefix is required.{{/i}} +

    + +

    Button element

    +

    {{_i}}Add the disabled attribute to <button> buttons.{{/i}}

    +

    + + +

     <button type="button" class="btn btn-large btn-primary disabled" disabled="disabled">{{_i}}Primary button{{/i}}</button>
     <button type="button" class="btn btn-large" disabled>{{_i}}Button{{/i}}</button>
     
    -
    +
    -

    {{_i}}One class, multiple tags{{/i}}

    -

    {{_i}}Use the .btn class on an <a>, <button>, or <input> element.{{/i}}

    -
    - {{_i}}Link{{/i}} - - - -
    +

    {{_i}}One class, multiple tags{{/i}}

    +

    {{_i}}Use the .btn class on an <a>, <button>, or <input> element.{{/i}}

    +
    + {{_i}}Link{{/i}} + + + +
     <a class="btn" href="">{{_i}}Link{{/i}}</a>
     <button class="btn" type="submit">
    @@ -1354,244 +1345,246 @@
     <input class="btn" type="submit"
              value="{{_i}}Submit{{/i}}">
     
    -

    {{_i}}As a best practice, try to match the element for you context to ensure matching cross-browser rendering. If you have an input, use an <input type="submit"> for your button.{{/i}}

    +

    {{_i}}As a best practice, try to match the element for you context to ensure matching cross-browser rendering. If you have an input, use an <input type="submit"> for your button.{{/i}}

    -
    +
    - -
    - + +
    + + +

    {{_i}}Icon glyphs{{/i}}

    +

    {{_i}}140 icons in sprite form, available in dark gray (default) and white, provided by Glyphicons.{{/i}}

    +
      +
    • icon-glass
    • +
    • icon-music
    • +
    • icon-search
    • +
    • icon-envelope
    • +
    • icon-heart
    • +
    • icon-star
    • +
    • icon-star-empty
    • +
    • icon-user
    • +
    • icon-film
    • +
    • icon-th-large
    • +
    • icon-th
    • +
    • icon-th-list
    • +
    • icon-ok
    • +
    • icon-remove
    • +
    • icon-zoom-in
    • +
    • icon-zoom-out
    • +
    • icon-off
    • +
    • icon-signal
    • +
    • icon-cog
    • +
    • icon-trash
    • +
    • icon-home
    • +
    • icon-file
    • +
    • icon-time
    • +
    • icon-road
    • +
    • icon-download-alt
    • +
    • icon-download
    • +
    • icon-upload
    • +
    • icon-inbox
    • + +
    • icon-play-circle
    • +
    • icon-repeat
    • +
    • icon-refresh
    • +
    • icon-list-alt
    • +
    • icon-lock
    • +
    • icon-flag
    • +
    • icon-headphones
    • +
    • icon-volume-off
    • +
    • icon-volume-down
    • +
    • icon-volume-up
    • +
    • icon-qrcode
    • +
    • icon-barcode
    • +
    • icon-tag
    • +
    • icon-tags
    • +
    • icon-book
    • +
    • icon-bookmark
    • +
    • icon-print
    • +
    • icon-camera
    • +
    • icon-font
    • +
    • icon-bold
    • +
    • icon-italic
    • +
    • icon-text-height
    • +
    • icon-text-width
    • +
    • icon-align-left
    • +
    • icon-align-center
    • +
    • icon-align-right
    • +
    • icon-align-justify
    • +
    • icon-list
    • + +
    • icon-indent-left
    • +
    • icon-indent-right
    • +
    • icon-facetime-video
    • +
    • icon-picture
    • +
    • icon-pencil
    • +
    • icon-map-marker
    • +
    • icon-adjust
    • +
    • icon-tint
    • +
    • icon-edit
    • +
    • icon-share
    • +
    • icon-check
    • +
    • icon-move
    • +
    • icon-step-backward
    • +
    • icon-fast-backward
    • +
    • icon-backward
    • +
    • icon-play
    • +
    • icon-pause
    • +
    • icon-stop
    • +
    • icon-forward
    • +
    • icon-fast-forward
    • +
    • icon-step-forward
    • +
    • icon-eject
    • +
    • icon-chevron-left
    • +
    • icon-chevron-right
    • +
    • icon-plus-sign
    • +
    • icon-minus-sign
    • +
    • icon-remove-sign
    • +
    • icon-ok-sign
    • + +
    • icon-question-sign
    • +
    • icon-info-sign
    • +
    • icon-screenshot
    • +
    • icon-remove-circle
    • +
    • icon-ok-circle
    • +
    • icon-ban-circle
    • +
    • icon-arrow-left
    • +
    • icon-arrow-right
    • +
    • icon-arrow-up
    • +
    • icon-arrow-down
    • +
    • icon-share-alt
    • +
    • icon-resize-full
    • +
    • icon-resize-small
    • +
    • icon-plus
    • +
    • icon-minus
    • +
    • icon-asterisk
    • +
    • icon-exclamation-sign
    • +
    • icon-gift
    • +
    • icon-leaf
    • +
    • icon-fire
    • +
    • icon-eye-open
    • +
    • icon-eye-close
    • +
    • icon-warning-sign
    • +
    • icon-plane
    • +
    • icon-calendar
    • +
    • icon-random
    • +
    • icon-comment
    • +
    • icon-magnet
    • + +
    • icon-chevron-up
    • +
    • icon-chevron-down
    • +
    • icon-retweet
    • +
    • icon-shopping-cart
    • +
    • icon-folder-close
    • +
    • icon-folder-open
    • +
    • icon-resize-vertical
    • +
    • icon-resize-horizontal
    • +
    • icon-hdd
    • +
    • icon-bullhorn
    • +
    • icon-bell
    • +
    • icon-certificate
    • +
    • icon-thumbs-up
    • +
    • icon-thumbs-down
    • +
    • icon-hand-right
    • +
    • icon-hand-left
    • +
    • icon-hand-up
    • +
    • icon-hand-down
    • +
    • icon-circle-arrow-right
    • +
    • icon-circle-arrow-left
    • +
    • icon-circle-arrow-up
    • +
    • icon-circle-arrow-down
    • +
    • icon-globe
    • +
    • icon-wrench
    • +
    • icon-tasks
    • +
    • icon-filter
    • +
    • icon-briefcase
    • +
    • icon-fullscreen
    • +
    -

    {{_i}}Icon glyphs{{/i}}

    -

    {{_i}}140 icons in sprite form, available in dark gray (default) and white, provided by Glyphicons.{{/i}}

    -
      -
    • icon-glass
    • -
    • icon-music
    • -
    • icon-search
    • -
    • icon-envelope
    • -
    • icon-heart
    • -
    • icon-star
    • -
    • icon-star-empty
    • -
    • icon-user
    • -
    • icon-film
    • -
    • icon-th-large
    • -
    • icon-th
    • -
    • icon-th-list
    • -
    • icon-ok
    • -
    • icon-remove
    • -
    • icon-zoom-in
    • -
    • icon-zoom-out
    • -
    • icon-off
    • -
    • icon-signal
    • -
    • icon-cog
    • -
    • icon-trash
    • -
    • icon-home
    • -
    • icon-file
    • -
    • icon-time
    • -
    • icon-road
    • -
    • icon-download-alt
    • -
    • icon-download
    • -
    • icon-upload
    • -
    • icon-inbox
    • - -
    • icon-play-circle
    • -
    • icon-repeat
    • -
    • icon-refresh
    • -
    • icon-list-alt
    • -
    • icon-lock
    • -
    • icon-flag
    • -
    • icon-headphones
    • -
    • icon-volume-off
    • -
    • icon-volume-down
    • -
    • icon-volume-up
    • -
    • icon-qrcode
    • -
    • icon-barcode
    • -
    • icon-tag
    • -
    • icon-tags
    • -
    • icon-book
    • -
    • icon-bookmark
    • -
    • icon-print
    • -
    • icon-camera
    • -
    • icon-font
    • -
    • icon-bold
    • -
    • icon-italic
    • -
    • icon-text-height
    • -
    • icon-text-width
    • -
    • icon-align-left
    • -
    • icon-align-center
    • -
    • icon-align-right
    • -
    • icon-align-justify
    • -
    • icon-list
    • - -
    • icon-indent-left
    • -
    • icon-indent-right
    • -
    • icon-facetime-video
    • -
    • icon-picture
    • -
    • icon-pencil
    • -
    • icon-map-marker
    • -
    • icon-adjust
    • -
    • icon-tint
    • -
    • icon-edit
    • -
    • icon-share
    • -
    • icon-check
    • -
    • icon-move
    • -
    • icon-step-backward
    • -
    • icon-fast-backward
    • -
    • icon-backward
    • -
    • icon-play
    • -
    • icon-pause
    • -
    • icon-stop
    • -
    • icon-forward
    • -
    • icon-fast-forward
    • -
    • icon-step-forward
    • -
    • icon-eject
    • -
    • icon-chevron-left
    • -
    • icon-chevron-right
    • -
    • icon-plus-sign
    • -
    • icon-minus-sign
    • -
    • icon-remove-sign
    • -
    • icon-ok-sign
    • - -
    • icon-question-sign
    • -
    • icon-info-sign
    • -
    • icon-screenshot
    • -
    • icon-remove-circle
    • -
    • icon-ok-circle
    • -
    • icon-ban-circle
    • -
    • icon-arrow-left
    • -
    • icon-arrow-right
    • -
    • icon-arrow-up
    • -
    • icon-arrow-down
    • -
    • icon-share-alt
    • -
    • icon-resize-full
    • -
    • icon-resize-small
    • -
    • icon-plus
    • -
    • icon-minus
    • -
    • icon-asterisk
    • -
    • icon-exclamation-sign
    • -
    • icon-gift
    • -
    • icon-leaf
    • -
    • icon-fire
    • -
    • icon-eye-open
    • -
    • icon-eye-close
    • -
    • icon-warning-sign
    • -
    • icon-plane
    • -
    • icon-calendar
    • -
    • icon-random
    • -
    • icon-comment
    • -
    • icon-magnet
    • - -
    • icon-chevron-up
    • -
    • icon-chevron-down
    • -
    • icon-retweet
    • -
    • icon-shopping-cart
    • -
    • icon-folder-close
    • -
    • icon-folder-open
    • -
    • icon-resize-vertical
    • -
    • icon-resize-horizontal
    • -
    • icon-hdd
    • -
    • icon-bullhorn
    • -
    • icon-bell
    • -
    • icon-certificate
    • -
    • icon-thumbs-up
    • -
    • icon-thumbs-down
    • -
    • icon-hand-right
    • -
    • icon-hand-left
    • -
    • icon-hand-up
    • -
    • icon-hand-down
    • -
    • icon-circle-arrow-right
    • -
    • icon-circle-arrow-left
    • -
    • icon-circle-arrow-up
    • -
    • icon-circle-arrow-down
    • -
    • icon-globe
    • -
    • icon-wrench
    • -
    • icon-tasks
    • -
    • icon-filter
    • -
    • icon-briefcase
    • -
    • icon-fullscreen
    • -
    - -

    Glyphicons attribution

    -

    {{_i}}Glyphicons Halflings are normally not available for free, but an arrangement between Bootstrap and the Glyphicons creators have made this possible at not cost to you as developers. As a thank you, we ask you to include an optional link back to Glyphicons whenever practical.{{/i}}

    - - -
    - - -

    {{_i}}How to use{{/i}}

    -

    {{_i}}All icons require an <i> tag with a unique class, prefixed with icon-. To use, place the following code just about anywhere:{{/i}}

    +

    Glyphicons attribution

    +

    {{_i}}Glyphicons Halflings are normally not available for free, but an arrangement between Bootstrap and the Glyphicons creators have made this possible at not cost to you as developers. As a thank you, we ask you to include an optional link back to Glyphicons whenever practical.{{/i}}

    + + +
    + + +

    {{_i}}How to use{{/i}}

    +

    {{_i}}All icons require an <i> tag with a unique class, prefixed with icon-. To use, place the following code just about anywhere:{{/i}}

     <i class="icon-search"></i>
     
    -

    {{_i}}There are also styles available for inverted (white) icons, made ready with one extra class:{{/i}}

    +

    {{_i}}There are also styles available for inverted (white) icons, made ready with one extra class:{{/i}}

     <i class="icon-search icon-white"></i>
     
    -

    - {{_i}}Heads up!{{/i}} - {{_i}}When using beside strings of text, as in buttons or nav links, be sure to leave a space after the <i> tag for proper spacing.{{/i}} -

    - - -
    - +

    + {{_i}}Heads up!{{/i}} + {{_i}}When using beside strings of text, as in buttons or nav links, be sure to leave a space after the <i> tag for proper spacing.{{/i}} +

    + + +
    + + +

    {{_i}}Icon examples{{/i}}

    +

    {{_i}}Use them in buttons, button groups for a toolbar, navigation, or prepended form inputs.{{/i}}

    + +

    {{_i}}Buttons{{/i}}

    + {{! /bs-docs-example }} + +

    {{_i}}Navigation{{/i}}

    + {{! /bs-docs-example }} + +

    {{_i}}Form fields{{/i}}

    +
    +
    + +
    +
    + +
    +
    +
    +
    -

    {{_i}}Icon examples{{/i}}

    -

    {{_i}}Use them in buttons, button groups for a toolbar, navigation, or prepended form inputs.{{/i}}

    +
    -

    {{_i}}Buttons{{/i}}

    - {{! /bs-docs-example }} - -

    {{_i}}Navigation{{/i}}

    - {{! /bs-docs-example }} - -

    {{_i}}Form fields{{/i}}

    -
    -
    - -
    -
    - -
    -
    -
    -
    -
    -
    - \ No newline at end of file + {{! /span9 }} +{{! row}} -- cgit v1.2.3 From 0ca210395c0e4c3337312a81c22b81bbd5d1a2be Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 9 Jul 2012 22:36:12 -0700 Subject: fix indenting and remove hidden subnav on Scaffolding --- docs/templates/pages/scaffolding.mustache | 771 +++++++++++++++--------------- 1 file changed, 382 insertions(+), 389 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/scaffolding.mustache b/docs/templates/pages/scaffolding.mustache index e05597405..02d8a9df1 100644 --- a/docs/templates/pages/scaffolding.mustache +++ b/docs/templates/pages/scaffolding.mustache @@ -1,23 +1,14 @@ -

    {{_i}}Scaffolding{{/i}}

    {{_i}}Bootstrap is built on a responsive 12-column grid. We've also included fixed- and fluid-width layouts based on that system.{{/i}}

    -
    + +
    -
    \ No newline at end of file + {{! Responsive utility classes }} +

    {{_i}}Responsive utility classes{{/i}}

    +

    {{_i}}For faster mobile-friendly development, use these utility classes for showing and hiding content by device. Below is a table of the available classes and their effect on a given media query layout (labeled by device). They can be found in responsive.less.{{/i}}

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    {{_i}}Class{{/i}}{{_i}}Phones 767px and below{{/i}}{{_i}}Tablets 979px to 768px{{/i}}{{_i}}Desktops Default{{/i}}
    .visible-phone{{_i}}Visible{{/i}}
    .visible-tablet{{_i}}Visible{{/i}}
    .visible-desktop{{_i}}Visible{{/i}}
    .hidden-phone{{_i}}Visible{{/i}}{{_i}}Visible{{/i}}
    .hidden-tablet{{_i}}Visible{{/i}}{{_i}}Visible{{/i}}
    .hidden-desktop{{_i}}Visible{{/i}}{{_i}}Visible{{/i}}
    + +

    {{_i}}When to use{{/i}}

    +

    {{_i}}Use on a limited basis and avoid creating entirely different versions of the same site. Instead, use them to complement each device's presentation.{{/i}}

    + +

    {{_i}}Responsive utilities test case{{/i}}

    +

    {{_i}}Resize your browser or load on different devices to test the above classes.{{/i}}

    +

    {{_i}}Visible on...{{/i}}

    +

    {{_i}}Green checkmarks indicate that class is visible in your current viewport.{{/i}}

    +
      +
    • {{_i}}Phone{{/i}}✔ {{_i}}Phone{{/i}}
    • +
    • {{_i}}Tablet{{/i}}✔ {{_i}}Tablet{{/i}}
    • +
    • {{_i}}Desktop{{/i}}✔ {{_i}}Desktop{{/i}}
    • +
    +

    {{_i}}Hidden on...{{/i}}

    +

    {{_i}}Here, green checkmarks indicate that class is hidden in your current viewport.{{/i}}

    +
      +
    • {{_i}}Phone{{/i}}✔ {{_i}}Phone{{/i}}
    • +
    • {{_i}}Tablet{{/i}}✔ {{_i}}Tablet{{/i}}
    • +
    • {{_i}}Desktop{{/i}}✔ {{_i}}Desktop{{/i}}
    • +
    + + + + + + {{! /span9 }} +{{! row}} -- cgit v1.2.3 From 75d952ffd80c3c3e18b2e47eac30a2b23d8ae7a7 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 9 Jul 2012 22:40:58 -0700 Subject: fix indenting and remove hidden subnav on Components --- docs/templates/pages/components.mustache | 2742 +++++++++++++++--------------- 1 file changed, 1359 insertions(+), 1383 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/components.mustache b/docs/templates/pages/components.mustache index d696e683c..c7727fd18 100644 --- a/docs/templates/pages/components.mustache +++ b/docs/templates/pages/components.mustache @@ -1,40 +1,14 @@ -

    {{_i}}Components{{/i}}

    {{_i}}Dozens of reusable components are built into Bootstrap to provide navigation, alerts, popovers, and much more.{{/i}}

    -
    + + +
     <ul class="nav nav-tabs">
       <li class="dropdown">
    @@ -702,23 +676,23 @@
     </ul>
     
    -

    {{_i}}Pills with dropdowns{{/i}}

    - {{! /example }} +
    {{! /example }}
     <ul class="nav nav-pills">
       <li class="dropdown">
    @@ -736,29 +710,29 @@
     
    -
    +
    -

    {{_i}}Nav lists{{/i}}

    -

    {{_i}}A simple and easy way to build groups of nav links with optional headers. They're best used in sidebars like the Finder in OS X.{{/i}}

    +

    {{_i}}Nav lists{{/i}}

    +

    {{_i}}A simple and easy way to build groups of nav links with optional headers. They're best used in sidebars like the Finder in OS X.{{/i}}

    -

    {{_i}}Example nav list{{/i}}

    -

    {{_i}}Take a list of links and add class="nav nav-list":{{/i}}

    -
    -
    - -
    -
    {{! /example }} +

    {{_i}}Example nav list{{/i}}

    +

    {{_i}}Take a list of links and add class="nav nav-list":{{/i}}

    +
    +
    + +
    +
    {{! /example }}
     <ul class="nav nav-list">
       <li class="nav-header">{{_i}}List header{{/i}}</li>
    @@ -767,50 +741,50 @@
       ...
     </ul>
     
    -

    - {{_i}}Note{{/i}} - {{_i}}For nesting within a nav list, include class="nav nav-list" on any nested <ul>.{{/i}} -

    +

    + {{_i}}Note{{/i}} + {{_i}}For nesting within a nav list, include class="nav nav-list" on any nested <ul>.{{/i}} +

    -

    {{_i}}Horizontal dividers{{/i}}

    -

    {{_i}}Add a horizontal divider by creating an empty list item with the class .divider, like so:{{/i}}

    +

    {{_i}}Horizontal dividers{{/i}}

    +

    {{_i}}Add a horizontal divider by creating an empty list item with the class .divider, like so:{{/i}}

     <ul class="nav nav-list">
       ...
       <li class="divider"></li>
       ...
     </ul>
    -
    + -
    +
    -

    {{_i}}Tabbable nav{{/i}}

    -

    {{_i}}Bring your tabs to life with a simple plugin to toggle between content via tabs. Bootstrap integrates tabbable tabs in four styles: top (default), right, bottom, and left.{{/i}}

    +

    {{_i}}Tabbable nav{{/i}}

    +

    {{_i}}Bring your tabs to life with a simple plugin to toggle between content via tabs. Bootstrap integrates tabbable tabs in four styles: top (default), right, bottom, and left.{{/i}}

    -

    {{_i}}Tabbable example{{/i}}

    -

    {{_i}}To make tabs tabbable, create a .tab-pane with unique ID for every tab and wrap them in .tab-content.{{/i}}

    -
    -
    - -
    -
    -

    {{_i}}I'm in Section 1.{{/i}}

    -
    -
    -

    {{_i}}Howdy, I'm in Section 2.{{/i}}

    -
    -
    -

    {{_i}}What up girl, this is Section 3.{{/i}}

    -
    -
    -
    -
    {{! /example }} +

    {{_i}}Tabbable example{{/i}}

    +

    {{_i}}To make tabs tabbable, create a .tab-pane with unique ID for every tab and wrap them in .tab-content.{{/i}}

    +
    +
    + +
    +
    +

    {{_i}}I'm in Section 1.{{/i}}

    +
    +
    +

    {{_i}}Howdy, I'm in Section 2.{{/i}}

    +
    +
    +

    {{_i}}What up girl, this is Section 3.{{/i}}

    +
    +
    +
    +
    {{! /example }}
     <div class="tabbable"> <!-- Only required for left/right tabs -->
       <ul class="nav nav-tabs">
    @@ -828,36 +802,36 @@
     </div>
     
    -

    {{_i}}Fade in tabs{{/i}}

    -

    {{_i}}To make tabs fade in, add .fade to each .tab-pane.{{/i}}

    - -

    {{_i}}Requires jQuery plugin{{/i}}

    -

    {{_i}}All tabbable tabs are powered by our lightweight jQuery plugin. Read more about how to bring tabbable tabs to life on the javascript docs page.{{/i}}

    - -

    {{_i}}Tabbable in any direction{{/i}}

    - -

    {{_i}}Tabs on the bottom{{/i}}

    -

    {{_i}}Flip the order of the HTML and add a class to put tabs on the bottom.{{/i}}

    -
    -
    -
    -
    -

    {{_i}}I'm in Section A.{{/i}}

    -
    -
    -

    {{_i}}Howdy, I'm in Section B.{{/i}}

    -
    -
    -

    {{_i}}What up girl, this is Section C.{{/i}}

    -
    -
    - -
    -
    {{! /example }} +

    {{_i}}Fade in tabs{{/i}}

    +

    {{_i}}To make tabs fade in, add .fade to each .tab-pane.{{/i}}

    + +

    {{_i}}Requires jQuery plugin{{/i}}

    +

    {{_i}}All tabbable tabs are powered by our lightweight jQuery plugin. Read more about how to bring tabbable tabs to life on the javascript docs page.{{/i}}

    + +

    {{_i}}Tabbable in any direction{{/i}}

    + +

    {{_i}}Tabs on the bottom{{/i}}

    +

    {{_i}}Flip the order of the HTML and add a class to put tabs on the bottom.{{/i}}

    +
    +
    +
    +
    +

    {{_i}}I'm in Section A.{{/i}}

    +
    +
    +

    {{_i}}Howdy, I'm in Section B.{{/i}}

    +
    +
    +

    {{_i}}What up girl, this is Section C.{{/i}}

    +
    +
    + +
    +
    {{! /example }}
     <div class="tabbable tabs-below">
       <div class="tab-content">
    @@ -869,28 +843,28 @@
     </div>
     
    -

    {{_i}}Tabs on the left{{/i}}

    -

    {{_i}}Swap the class to put tabs on the left.{{/i}}

    -
    -
    - -
    -
    -

    {{_i}}I'm in Section A.{{/i}}

    -
    -
    -

    {{_i}}Howdy, I'm in Section B.{{/i}}

    -
    -
    -

    {{_i}}What up girl, this is Section C.{{/i}}

    -
    -
    -
    -
    {{! /example }} +

    {{_i}}Tabs on the left{{/i}}

    +

    {{_i}}Swap the class to put tabs on the left.{{/i}}

    +
    +
    + +
    +
    +

    {{_i}}I'm in Section A.{{/i}}

    +
    +
    +

    {{_i}}Howdy, I'm in Section B.{{/i}}

    +
    +
    +

    {{_i}}What up girl, this is Section C.{{/i}}

    +
    +
    +
    +
    {{! /example }}
     <div class="tabbable tabs-left">
       <ul class="nav nav-tabs">
    @@ -902,28 +876,28 @@
     </div>
     
    -

    {{_i}}Tabs on the right{{/i}}

    -

    {{_i}}Swap the class to put tabs on the right.{{/i}}

    -
    -
    - -
    -
    -

    {{_i}}I'm in Section A.{{/i}}

    -
    -
    -

    {{_i}}Howdy, I'm in Section B.{{/i}}

    -
    -
    -

    {{_i}}What up girl, this is Section C.{{/i}}

    -
    -
    -
    -
    {{! /example }} +

    {{_i}}Tabs on the right{{/i}}

    +

    {{_i}}Swap the class to put tabs on the right.{{/i}}

    +
    +
    + +
    +
    +

    {{_i}}I'm in Section A.{{/i}}

    +
    +
    +

    {{_i}}Howdy, I'm in Section B.{{/i}}

    +
    +
    +

    {{_i}}What up girl, this is Section C.{{/i}}

    +
    +
    +
    +
    {{! /example }}
     <div class="tabbable tabs-right">
       <ul class="nav nav-tabs">
    @@ -935,32 +909,32 @@
     </div>
     
    - + - - - - - -
    - + +
    + -

    {{_i}}Standard pagination{{/i}}

    -

    {{_i}}Simple pagination inspired by Rdio, great for apps and search results. The large block is hard to miss, easily scalable, and provides large click areas.{{/i}}

    -
    - -
    +

    {{_i}}Standard pagination{{/i}}

    +

    {{_i}}Simple pagination inspired by Rdio, great for apps and search results. The large block is hard to miss, easily scalable, and provides large click areas.{{/i}}

    +
    + +
     <div class="pagination">
       <ul>
    @@ -1312,26 +1286,26 @@
     
    -
    +
    -

    {{_i}}Options{{/i}}

    +

    {{_i}}Options{{/i}}

    -

    {{_i}}Disabled and active states{{/i}}

    -

    {{_i}}Links are customizable for different circumstances. Use .disabled for unclickable links and .active to indicate the current page.{{/i}}

    -
    - -
    +

    {{_i}}Disabled and active states{{/i}}

    +

    {{_i}}Links are customizable for different circumstances. Use .disabled for unclickable links and .active to indicate the current page.{{/i}}

    +
    + +
     <div class="pagination ">
       <ul>
    @@ -1342,39 +1316,39 @@
     </div>
     
    -

    {{_i}}Alignment{{/i}}

    -

    {{_i}}Add one of two optional classes to change the alignment of pagination links: .pagination-centered and .pagination-right.{{/i}}

    -
    - -
    +

    {{_i}}Alignment{{/i}}

    +

    {{_i}}Add one of two optional classes to change the alignment of pagination links: .pagination-centered and .pagination-right.{{/i}}

    +
    + +
     <div class="pagination pagination-centered">
       ...
     </div>
     
    -
    - -
    +
    + +
     <div class="pagination pagination-right">
       ...
    @@ -1382,20 +1356,20 @@
     
    -
    +
    -

    {{_i}}Pager{{/i}}

    -

    {{_i}}Quick previous and next links for simple pagination implementations with light markup and styles. It's great for simple sites like blogs or magazines.{{/i}}

    +

    {{_i}}Pager{{/i}}

    +

    {{_i}}Quick previous and next links for simple pagination implementations with light markup and styles. It's great for simple sites like blogs or magazines.{{/i}}

    -

    {{_i}}Default example{{/i}}

    -

    {{_i}}By default, the pager centers links.{{/i}}

    - +

    {{_i}}Default example{{/i}}

    +

    {{_i}}By default, the pager centers links.{{/i}}

    +
     <ul class="pager">
       <li>
    @@ -1407,14 +1381,14 @@
     </ul>
     
    -

    {{_i}}Aligned links{{/i}}

    -

    {{_i}}Alternatively, you can align each link to the sides:{{/i}}

    - +

    {{_i}}Aligned links{{/i}}

    +

    {{_i}}Alternatively, you can align each link to the sides:{{/i}}

    +
     <ul class="pager">
       <li class="previous">
    @@ -1426,14 +1400,14 @@
     </ul>
     
    -

    {{_i}}Optional disabled state{{/i}}

    -

    {{_i}}Pager links also use the general .disabled utility class from the pagination.{{/i}}

    - +

    {{_i}}Optional disabled state{{/i}}

    +

    {{_i}}Pager links also use the general .disabled utility class from the pagination.{{/i}}

    +
     <ul class="pager">
       <li class="previous disabled">
    @@ -1443,187 +1417,187 @@
     </ul>
     
    -
    +
    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {{_i}}Labels{{/i}}{{_i}}Markup{{/i}}
    - {{_i}}Default{{/i}} - - <span class="label">{{_i}}Default{{/i}}</span> -
    - {{_i}}Success{{/i}} - - <span class="label label-success">{{_i}}Success{{/i}}</span> -
    - {{_i}}Warning{{/i}} - - <span class="label label-warning">{{_i}}Warning{{/i}}</span> -
    - {{_i}}Important{{/i}} - - <span class="label label-important">{{_i}}Important{{/i}}</span> -
    - {{_i}}Info{{/i}} - - <span class="label label-info">{{_i}}Info{{/i}}</span> -
    - {{_i}}Inverse{{/i}} - - <span class="label label-inverse">{{_i}}Inverse{{/i}}</span> -
    -
    - - - - -
    - + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    {{_i}}Labels{{/i}}{{_i}}Markup{{/i}}
    + {{_i}}Default{{/i}} + + <span class="label">{{_i}}Default{{/i}}</span> +
    + {{_i}}Success{{/i}} + + <span class="label label-success">{{_i}}Success{{/i}}</span> +
    + {{_i}}Warning{{/i}} + + <span class="label label-warning">{{_i}}Warning{{/i}}</span> +
    + {{_i}}Important{{/i}} + + <span class="label label-important">{{_i}}Important{{/i}}</span> +
    + {{_i}}Info{{/i}} + + <span class="label label-info">{{_i}}Info{{/i}}</span> +
    + {{_i}}Inverse{{/i}} + + <span class="label label-inverse">{{_i}}Inverse{{/i}}</span> +
    +
    + + + + +
    + -

    About

    -

    {{_i}}Badges are small, simple components for displaying an indicator or count of some sort. They're commonly found in email clients like Mail.app or on mobile apps for push notifications.{{/i}}

    - -

    Available classes

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {{_i}}Name{{/i}}{{_i}}Example{{/i}}{{_i}}Markup{{/i}}
    - {{_i}}Default{{/i}} - - 1 - - <span class="badge">1</span> -
    - {{_i}}Success{{/i}} - - 2 - - <span class="badge badge-success">2</span> -
    - {{_i}}Warning{{/i}} - - 4 - - <span class="badge badge-warning">4</span> -
    - {{_i}}Important{{/i}} - - 6 - - <span class="badge badge-important">6</span> -
    - {{_i}}Info{{/i}} - - 8 - - <span class="badge badge-info">8</span> -
    - {{_i}}Inverse{{/i}} - - 10 - - <span class="badge badge-inverse">10</span> -
    - -
    - - - - -
    - +

    About

    +

    {{_i}}Badges are small, simple components for displaying an indicator or count of some sort. They're commonly found in email clients like Mail.app or on mobile apps for push notifications.{{/i}}

    + +

    Available classes

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    {{_i}}Name{{/i}}{{_i}}Example{{/i}}{{_i}}Markup{{/i}}
    + {{_i}}Default{{/i}} + + 1 + + <span class="badge">1</span> +
    + {{_i}}Success{{/i}} + + 2 + + <span class="badge badge-success">2</span> +
    + {{_i}}Warning{{/i}} + + 4 + + <span class="badge badge-warning">4</span> +
    + {{_i}}Important{{/i}} + + 6 + + <span class="badge badge-important">6</span> +
    + {{_i}}Info{{/i}} + + 8 + + <span class="badge badge-info">8</span> +
    + {{_i}}Inverse{{/i}} + + 10 + + <span class="badge badge-inverse">10</span> +
    + +
    + + + + +
    + -

    {{_i}}Hero unit{{/i}}

    -

    {{_i}}A lightweight, flexible component called a hero unit to showcase content on your site. It works well on marketing and content-heavy sites.{{/i}}

    -
    -
    -

    {{_i}}Hello, world!{{/i}}

    -

    {{_i}}This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.{{/i}}

    -

    {{_i}}Learn more{{/i}}

    -
    -
    +

    {{_i}}Hero unit{{/i}}

    +

    {{_i}}A lightweight, flexible component called a hero unit to showcase content on your site. It works well on marketing and content-heavy sites.{{/i}}

    +
    +
    +

    {{_i}}Hello, world!{{/i}}

    +

    {{_i}}This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.{{/i}}

    +

    {{_i}}Learn more{{/i}}

    +
    +
     <div class="hero-unit">
       <h1>{{_i}}Heading{{/i}}</h1>
    @@ -1636,105 +1610,105 @@
     </div>
     
    -

    {{_i}}Page header{{/i}}

    -

    {{_i}}A simple shell for an h1 to appropriately space out and segment sections of content on a page. It can utilize the h1's default small, element as well most other components (with additional styles).{{/i}}

    -
    - -
    +

    {{_i}}Page header{{/i}}

    +

    {{_i}}A simple shell for an h1 to appropriately space out and segment sections of content on a page. It can utilize the h1's default small, element as well most other components (with additional styles).{{/i}}

    +
    + +
     <div class="page-header">
       <h1>{{_i}}Example page header{{/i}}</h1>
     </div>
     
    -
    +
    - -
    - + +
    + -

    {{_i}}Default thumbnails{{/i}}

    -

    {{_i}}By default, Bootstrap's thumbnails are designed to showcase linked images with minimal required markup.{{/i}}

    -
    - -
    +

    {{_i}}Default thumbnails{{/i}}

    +

    {{_i}}By default, Bootstrap's thumbnails are designed to showcase linked images with minimal required markup.{{/i}}

    +
    + +
    -

    {{_i}}Highly customizable{{/i}}

    -

    {{_i}}With a bit of extra markup, it's possible to add any kind of HTML content like headings, paragraphs, or buttons into thumbnails.{{/i}}

    -
    -
      -
    • -
      - -
      -

      {{_i}}Thumbnail label{{/i}}

      -

      Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.

      -

      {{_i}}Action{{/i}} {{_i}}Action{{/i}}

      -
      -
      -
    • -
    • -
      - -
      -

      {{_i}}Thumbnail label{{/i}}

      -

      Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.

      -

      {{_i}}Action{{/i}} {{_i}}Action{{/i}}

      -
      -
      -
    • -
    • -
      - -
      -

      {{_i}}Thumbnail label{{/i}}

      -

      Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.

      -

      {{_i}}Action{{/i}} {{_i}}Action{{/i}}

      -
      -
      -
    • -
    -
    +

    {{_i}}Highly customizable{{/i}}

    +

    {{_i}}With a bit of extra markup, it's possible to add any kind of HTML content like headings, paragraphs, or buttons into thumbnails.{{/i}}

    +
    +
      +
    • +
      + +
      +

      {{_i}}Thumbnail label{{/i}}

      +

      Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.

      +

      {{_i}}Action{{/i}} {{_i}}Action{{/i}}

      +
      +
      +
    • +
    • +
      + +
      +

      {{_i}}Thumbnail label{{/i}}

      +

      Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.

      +

      {{_i}}Action{{/i}} {{_i}}Action{{/i}}

      +
      +
      +
    • +
    • +
      + +
      +

      {{_i}}Thumbnail label{{/i}}

      +

      Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.

      +

      {{_i}}Action{{/i}} {{_i}}Action{{/i}}

      +
      +
      +
    • +
    +
    -

    {{_i}}Why use thumbnails{{/i}}

    -

    {{_i}}Thumbnails (previously .media-grid up until v1.4) are great for grids of photos or videos, image search results, retail products, portfolios, and much more. They can be links or static content.{{/i}}

    +

    {{_i}}Why use thumbnails{{/i}}

    +

    {{_i}}Thumbnails (previously .media-grid up until v1.4) are great for grids of photos or videos, image search results, retail products, portfolios, and much more. They can be links or static content.{{/i}}

    -

    {{_i}}Simple, flexible markup{{/i}}

    -

    {{_i}}Thumbnail markup is simple—a ul with any number of li elements is all that is required. It's also super flexible, allowing for any type of content with just a bit more markup to wrap your contents.{{/i}}

    +

    {{_i}}Simple, flexible markup{{/i}}

    +

    {{_i}}Thumbnail markup is simple—a ul with any number of li elements is all that is required. It's also super flexible, allowing for any type of content with just a bit more markup to wrap your contents.{{/i}}

    -

    {{_i}}Uses grid column sizes{{/i}}

    -

    {{_i}}Lastly, the thumbnails component uses existing grid system classes—like .span2 or .span3—for control of thumbnail dimensions.{{/i}}

    +

    {{_i}}Uses grid column sizes{{/i}}

    +

    {{_i}}Lastly, the thumbnails component uses existing grid system classes—like .span2 or .span3—for control of thumbnail dimensions.{{/i}}

    -

    {{_i}}The markup{{/i}}

    -

    {{_i}}As mentioned previously, the required markup for thumbnails is light and straightforward. Here's a look at the default setup for linked images:{{/i}}

    +

    {{_i}}The markup{{/i}}

    +

    {{_i}}As mentioned previously, the required markup for thumbnails is light and straightforward. Here's a look at the default setup for linked images:{{/i}}

     <ul class="thumbnails">
       <li class="span4">
    @@ -1745,7 +1719,7 @@
       ...
     </ul>
     
    -

    {{_i}}For custom HTML content in thumbnails, the markup changes slightly. To allow block level content anywhere, we swap the <a> for a <div> like so:{{/i}}

    +

    {{_i}}For custom HTML content in thumbnails, the markup changes slightly. To allow block level content anywhere, we swap the <a> for a <div> like so:{{/i}}

     <ul class="thumbnails">
       <li class="span4">
    @@ -1759,65 +1733,65 @@
     </ul>
     
    -

    {{_i}}More examples{{/i}}

    -

    {{_i}}Explore all your options with the various grid classes available to you. You can also mix and match different sizes.{{/i}}

    - - -
    - - - - -
    - +

    {{_i}}More examples{{/i}}

    +

    {{_i}}Explore all your options with the various grid classes available to you. You can also mix and match different sizes.{{/i}}

    + -

    {{_i}}Default alert{{/i}}

    -

    {{_i}}Wrap any text and an optional dismiss button in .alert for a basic warning alert message.{{/i}}

    -
    -
    - - {{_i}}Warning!{{/i}} {{_i}}Best check yo self, you're not looking too good.{{/i}} -
    -
    +
    + + + + +
    + + +

    {{_i}}Default alert{{/i}}

    +

    {{_i}}Wrap any text and an optional dismiss button in .alert for a basic warning alert message.{{/i}}

    +
    +
    + + {{_i}}Warning!{{/i}} {{_i}}Best check yo self, you're not looking too good.{{/i}} +
    +
     <div class="alert">
       <button type="button" class="close" data-dismiss="alert">×</button>
    @@ -1825,32 +1799,32 @@
     </div>
     
    -

    {{_i}}Dismiss buttons{{/i}}

    -

    {{_i}}Mobile Safari and Mobile Opera browsers, in addition to the data-dismiss="alert" attribute, require an href="#" for the dismissal of alerts when using an <a> tag.{{/i}}

    +

    {{_i}}Dismiss buttons{{/i}}

    +

    {{_i}}Mobile Safari and Mobile Opera browsers, in addition to the data-dismiss="alert" attribute, require an href="#" for the dismissal of alerts when using an <a> tag.{{/i}}

     <a href="#" class="close" data-dismiss="alert">×</button>
     
    -

    {{_i}}Alternatively, you may use a <button> element with the data attribute, which we have opted to do for our docs. When using <button>, you must include type="button" or your forms may not submit.{{/i}}

    +

    {{_i}}Alternatively, you may use a <button> element with the data attribute, which we have opted to do for our docs. When using <button>, you must include type="button" or your forms may not submit.{{/i}}

     <button type="button" class="close" data-dismiss="alert">×</button>
     
    -

    {{_i}}Dismiss alerts via javascript{{/i}}

    -

    {{_i}}Use the alerts jQuery plugin for quick and easy dismissal of alerts.{{/i}}

    +

    {{_i}}Dismiss alerts via javascript{{/i}}

    +

    {{_i}}Use the alerts jQuery plugin for quick and easy dismissal of alerts.{{/i}}

    -
    +
    -

    {{_i}}Options{{/i}}

    -

    {{_i}}For longer messages, increase the padding on the top and bottom of the alert wrapper by adding .alert-block.{{/i}}

    -
    -
    - -

    {{_i}}Warning!{{/i}}

    -

    {{_i}}Best check yo self, you're not looking too good.{{/i}} Nulla vitae elit libero, a pharetra augue. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

    -
    -
    +

    {{_i}}Options{{/i}}

    +

    {{_i}}For longer messages, increase the padding on the top and bottom of the alert wrapper by adding .alert-block.{{/i}}

    +
    +
    + +

    {{_i}}Warning!{{/i}}

    +

    {{_i}}Best check yo self, you're not looking too good.{{/i}} Nulla vitae elit libero, a pharetra augue. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

    +
    +
     <div class="alert alert-block">
       <a class="close" data-dismiss="alert" href="#">&times;</a>
    @@ -1860,97 +1834,97 @@
     
    -
    +
    -

    {{_i}}Contextual alternatives{{/i}}

    -

    {{_i}}Add optional classes to change an alert's connotation.{{/i}}

    +

    {{_i}}Contextual alternatives{{/i}}

    +

    {{_i}}Add optional classes to change an alert's connotation.{{/i}}

    -

    {{_i}}Error or danger{{/i}}

    -
    -
    - - {{_i}}Oh snap!{{/i}} {{_i}}Change a few things up and try submitting again.{{/i}} -
    -
    +

    {{_i}}Error or danger{{/i}}

    +
    +
    + + {{_i}}Oh snap!{{/i}} {{_i}}Change a few things up and try submitting again.{{/i}} +
    +
     <div class="alert alert-error">
       ...
     </div>
     
    -

    {{_i}}Success{{/i}}

    -
    -
    - - {{_i}}Well done!{{/i}} {{_i}}You successfully read this important alert message.{{/i}} -
    -
    +

    {{_i}}Success{{/i}}

    +
    +
    + + {{_i}}Well done!{{/i}} {{_i}}You successfully read this important alert message.{{/i}} +
    +
     <div class="alert alert-success">
       ...
     </div>
     
    -

    {{_i}}Information{{/i}}

    -
    -
    - - {{_i}}Heads up!{{/i}} {{_i}}This alert needs your attention, but it's not super important.{{/i}} -
    -
    +

    {{_i}}Information{{/i}}

    +
    +
    + + {{_i}}Heads up!{{/i}} {{_i}}This alert needs your attention, but it's not super important.{{/i}} +
    +
     <div class="alert alert-info">
       ...
     </div>
     
    -
    +
    - -
    - + +
    + -

    {{_i}}Examples and markup{{/i}}

    +

    {{_i}}Examples and markup{{/i}}

    -

    {{_i}}Basic{{/i}}

    -

    {{_i}}Default progress bar with a vertical gradient.{{/i}}

    -
    -
    -
    -
    -
    +

    {{_i}}Basic{{/i}}

    +

    {{_i}}Default progress bar with a vertical gradient.{{/i}}

    +
    +
    +
    +
    +
     <div class="progress">
       <div class="bar" style="width: 60%;"></div>
     </div>
     
    -

    {{_i}}Striped{{/i}}

    -

    {{_i}}Uses a gradient to create a striped effect. Not available in IE7-8.{{/i}}

    -
    -
    -
    -
    -
    +

    {{_i}}Striped{{/i}}

    +

    {{_i}}Uses a gradient to create a striped effect. Not available in IE7-8.{{/i}}

    +
    +
    +
    +
    +
     <div class="progress progress-striped">
       <div class="bar" style="width: 20%;"></div>
     </div>
     
    -

    {{_i}}Animated{{/i}}

    -

    {{_i}}Add .active to .progress-striped to animate the stripes right to left. Not available in all versions of IE.{{/i}}

    -
    -
    -
    -
    -
    +

    {{_i}}Animated{{/i}}

    +

    {{_i}}Add .active to .progress-striped to animate the stripes right to left. Not available in all versions of IE.{{/i}}

    +
    +
    +
    +
    +
     <div class="progress progress-striped active">
       <div class="bar" style="width: 40%;"></div>
    @@ -1958,27 +1932,27 @@
     
    -
    +
    -

    {{_i}}Options{{/i}}

    +

    {{_i}}Options{{/i}}

    -

    {{_i}}Additional colors{{/i}}

    -

    {{_i}}Progress bars use some of the same button and alert classes for consistent styles.{{/i}}

    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    +

    {{_i}}Additional colors{{/i}}

    +

    {{_i}}Progress bars use some of the same button and alert classes for consistent styles.{{/i}}

    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
     <div class="progress progress-info">
       <div class="bar" style="width: 20%"></div>
    @@ -1994,22 +1968,22 @@
     </div>
     
    -

    {{_i}}Striped bars{{/i}}

    -

    {{_i}}Similar to the solid colors, we have varied striped progress bars.{{/i}}

    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    +

    {{_i}}Striped bars{{/i}}

    +

    {{_i}}Similar to the solid colors, we have varied striped progress bars.{{/i}}

    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
     <div class="progress progress-info progress-striped">
       <div class="bar" style="width: 20%"></div>
    @@ -2026,74 +2000,74 @@
     
    -
    +
    -

    {{_i}}Browser support{{/i}}

    -

    {{_i}}Progress bars use CSS3 gradients, transitions, and animations to achieve all their effects. These features are not supported in IE7-9 or older versions of Firefox.{{/i}}

    -

    {{_i}}Opera and IE do not support animations at this time.{{/i}}

    +

    {{_i}}Browser support{{/i}}

    +

    {{_i}}Progress bars use CSS3 gradients, transitions, and animations to achieve all their effects. These features are not supported in IE7-9 or older versions of Firefox.{{/i}}

    +

    {{_i}}Opera and IE do not support animations at this time.{{/i}}

    -
    +
    - -
    - + +
    + -

    {{_i}}Wells{{/i}}

    -

    {{_i}}Use the well as a simple effect on an element to give it an inset effect.{{/i}}

    -
    -
    - {{_i}}Look, I'm in a well!{{/i}} -
    -
    +

    {{_i}}Wells{{/i}}

    +

    {{_i}}Use the well as a simple effect on an element to give it an inset effect.{{/i}}

    +
    +
    + {{_i}}Look, I'm in a well!{{/i}} +
    +
     <div class="well">
       ...
     </div>
     
    -

    {{_i}}Optional classes{{/i}}

    -

    {{_i}}Control padding and rounded corners with two optional modifier classes.{{/i}}

    -
    -
    - {{_i}}Look, I'm in a well!{{/i}} -
    -
    +

    {{_i}}Optional classes{{/i}}

    +

    {{_i}}Control padding and rounded corners with two optional modifier classes.{{/i}}

    +
    +
    + {{_i}}Look, I'm in a well!{{/i}} +
    +
     <div class="well well-large">
       ...
     </div>
     
    -
    -
    - {{_i}}Look, I'm in a well!{{/i}} -
    -
    +
    +
    + {{_i}}Look, I'm in a well!{{/i}} +
    +
     <div class="well well-small">
       ...
     </div>
     
    -

    {{_i}}Close icon{{/i}}

    -

    {{_i}}Use the generic close icon for dismissing content like modals and alerts.{{/i}}

    -
    -

    -
    +

    {{_i}}Close icon{{/i}}

    +

    {{_i}}Use the generic close icon for dismissing content like modals and alerts.{{/i}}

    +
    +

    +
    <button class="close">&times;</button>

    {{_i}}iOS devices require an href="#" for click events if you rather use an anchor.{{/i}}

    <a class="close" href="#">&times;</a>
    -

    {{_i}}Helper classes{{/i}}

    -

    {{_i}}Simple, focused classes for small display or behavior tweaks.{{/i}}

    +

    {{_i}}Helper classes{{/i}}

    +

    {{_i}}Simple, focused classes for small display or behavior tweaks.{{/i}}

    -

    {{_i}}.pull-left{{/i}}

    -

    {{_i}}Float an element left{{/i}}

    +

    {{_i}}.pull-left{{/i}}

    +

    {{_i}}Float an element left{{/i}}

     class="pull-left"
     
    @@ -2103,8 +2077,8 @@ class="pull-left" } -

    {{_i}}.pull-right{{/i}}

    -

    {{_i}}Float an element right{{/i}}

    +

    {{_i}}.pull-right{{/i}}

    +

    {{_i}}Float an element right{{/i}}

     class="pull-right"
     
    @@ -2114,8 +2088,8 @@ class="pull-right" } -

    {{_i}}.muted{{/i}}

    -

    {{_i}}Change an element's color to #999{{/i}}

    +

    {{_i}}.muted{{/i}}

    +

    {{_i}}Change an element's color to #999{{/i}}

     class="muted"
     
    @@ -2125,8 +2099,8 @@ class="muted" } -

    {{_i}}.clearfix{{/i}}

    -

    {{_i}}Clear the float on any element{{/i}}

    +

    {{_i}}.clearfix{{/i}}

    +

    {{_i}}Clear the float on any element{{/i}}

     class="clearfix"
     
    @@ -2144,7 +2118,9 @@ class="clearfix" } -
    +
    - - + + + {{! /span9 }} +{{! row}} -- cgit v1.2.3 From 5d8e78e0faedb4365216f1ebbc5d70dc560f3f6e Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 10 Jul 2012 00:32:04 -0700 Subject: fixes #3605: add support for input-prepend/-append to .form-search --- docs/templates/pages/base-css.mustache | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'docs/templates') diff --git a/docs/templates/pages/base-css.mustache b/docs/templates/pages/base-css.mustache index cc09f8301..21c24657a 100644 --- a/docs/templates/pages/base-css.mustache +++ b/docs/templates/pages/base-css.mustache @@ -690,6 +690,7 @@

    {{_i}}Default styles{{/i}}

    {{_i}}Individual form controls receive styling, but without any required base class on the <form> or large changes in markup. Results in stacked, left-aligned labels on top of form controls.{{/i}}

    + Legend

    {{_i}}Example block-level help text here.{{/i}}

    @@ -760,6 +761,7 @@
  • {{_i}}Wrap any associated controls in .controls for proper alignment{{/i}}
  • + Legend
    @@ -997,6 +999,24 @@ <div class="input-append"> <input class="span2" id="appendedInputButtons" size="16" type="text"><button class="btn" type="button">Search</button><button class="btn" type="button">Options</button> </div> + + +

    {{_i}}Search form{{/i}}

    + +
    + + +
    +
    + + +
    + {{! /example }} +
    +<form class="form-search">
    +  <input type="text" class="span2 search-query">
    +  <button type="submit" class="btn">{{_i}}Search{{/i}}</button>
    +</form>
     

    {{_i}}Control sizing{{/i}}

    -- cgit v1.2.3 From 5b5352c92d5edbcf02f0d210e04e7fe241f7e68b Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Wed, 11 Jul 2012 11:15:04 -0700 Subject: fix grid alignment on scaffolding --- docs/templates/pages/scaffolding.mustache | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/scaffolding.mustache b/docs/templates/pages/scaffolding.mustache index 02d8a9df1..6888747dd 100644 --- a/docs/templates/pages/scaffolding.mustache +++ b/docs/templates/pages/scaffolding.mustache @@ -78,23 +78,18 @@
    1
    1
    1
    -
    1
    2
    -
    4
    +
    3
    4
    4
    -
    6
    -
    -
    -
    5
    5
    -
    10
    +
    9
    @@ -113,20 +108,20 @@
    4
    -
    4 offset 2
    +
    3 offset 2
    -
    3 offset 2
    +
    3 offset 1
    3 offset 2
    -
    6 offset 4
    +
    6 offset 3
     <div class="row">
       <div class="span4">...</div>
    -  <div class="span4 offset4">...</div>
    +  <div class="span3 offset2">...</div>
     </div>
     
    @@ -135,13 +130,13 @@

    {{_i}}Example{{/i}}

    {{_i}}Here two nested .span4 columns are placed within a .span8.{{/i}}

    -
    +
    {{_i}}Level 1 of column{{/i}}
    {{_i}}Level 2{{/i}}
    -
    +
    {{_i}}Level 2{{/i}}
    -- cgit v1.2.3 From 338c7ef2b6aa62cc6b5f08f687f04eeb960719f0 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 12 Jul 2012 13:45:07 -0700 Subject: tweak code snippet on pager and clean up type and font-sizes on docs Home --- docs/templates/pages/components.mustache | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/components.mustache b/docs/templates/pages/components.mustache index c7727fd18..b89257b1d 100644 --- a/docs/templates/pages/components.mustache +++ b/docs/templates/pages/components.mustache @@ -1372,12 +1372,8 @@
     <ul class="pager">
    -  <li>
    -    <a href="#">{{_i}}Previous{{/i}}</a>
    -  </li>
    -  <li>
    -    <a href="#">{{_i}}Next{{/i}}</a>
    -  </li>
    +  <li><a href="#">{{_i}}Previous{{/i}}</a></li>
    +  <li><a href="#">{{_i}}Next{{/i}}</a></li>
     </ul>
     
    -- cgit v1.2.3 From c884d6eaa6bbcf4cb4d679c4d9be57d2f28ce93b Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 12 Jul 2012 13:50:27 -0700 Subject: clean up docs for subnav --- docs/templates/pages/components.mustache | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/components.mustache b/docs/templates/pages/components.mustache index b89257b1d..450433d3b 100644 --- a/docs/templates/pages/components.mustache +++ b/docs/templates/pages/components.mustache @@ -1158,19 +1158,19 @@
    -

    {{_i}}Responsive navbar{{/i}}

    -

    {{_i}}To implement a collapsing responsive navbar, wrap your navbar content in a containing div, .nav-collapse.collapse, and add the navbar toggle button, .btn-navbar.{{/i}}

    +

    {{_i}}Subnav variation{{/i}}

    +

    {{_i}}Modify the look of the navbar by adding .navbar-subnav. Perfect for a secondary nav, or just a replacement to the default dark navbar.{{/i}}

    {{! row}} +
    {{! /container }} diff --git a/docs/templates/pages/getting-started.mustache b/docs/templates/pages/getting-started.mustache index 5e1407436..c6a03ec0a 100644 --- a/docs/templates/pages/getting-started.mustache +++ b/docs/templates/pages/getting-started.mustache @@ -1,10 +1,14 @@ +
    +

    {{_i}}Getting started{{/i}}

    {{_i}}Overview of the project, it's contents, and how to get started with a simple template.{{/i}}

    +
    +
    -

    Bootstrap

    Sleek, intuitive, and powerful front-end framework for faster and easier web development.

    {{_i}}Download Bootstrap{{/i}}

    + +
    {{! /container }} diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache index 4c25bb08b..81ef75209 100644 --- a/docs/templates/pages/javascript.mustache +++ b/docs/templates/pages/javascript.mustache @@ -1,109 +1,112 @@
    -

    {{_i}}Javascript for Bootstrap{{/i}}

    -

    {{_i}}Bring Bootstrap's components to life—now with 12 custom jQuery plugins.{{/i}} +

    +

    {{_i}}Javascript for Bootstrap{{/i}}

    +

    {{_i}}Bring Bootstrap's components to life—now with 12 custom jQuery plugins.{{/i}} +

    - - - -
    - -
    +
    + + + +
    + +
    - -
    - + +
    + -

    {{_i}}Individual or compiled{{/i}}

    -

    {{_i}}If you have downloaded the latest version of Bootstrap, both bootstrap.js and bootstrap.min.js contain all of these plugins.{{/i}}

    +

    {{_i}}Individual or compiled{{/i}}

    +

    {{_i}}If you have downloaded the latest version of Bootstrap, both bootstrap.js and bootstrap.min.js contain all of these plugins.{{/i}}

    -

    {{_i}}Data attributes{{/i}}

    -

    {{_i}}...{{/i}}

    +

    {{_i}}Data attributes{{/i}}

    +

    {{_i}}...{{/i}}

    -

    {{_i}}Programmatic API{{/i}}

    -

    {{_i}}...{{/i}}

    +

    {{_i}}Programmatic API{{/i}}

    +

    {{_i}}...{{/i}}

    - {{! Thought: consider porting much of the JS readme here? }} + {{! Thought: consider porting much of the JS readme here? }} -
    +
    - -
    - -

    {{_i}}About transitions{{/i}}

    -

    {{_i}}For simple transition effects, include bootstrap-transition.js once alongside the other JS files. If you're using the compiled (or minified) bootstrap.js, there is no need to include this—it's already there.{{/i}}

    -

    {{_i}}Use cases{{/i}}

    -

    {{_i}}A few examples of the transition plugin:{{/i}}

    -
      -
    • {{_i}}Sliding or fading in modals{{/i}}
    • -
    • {{_i}}Fading out tabs{{/i}}
    • -
    • {{_i}}Fading out alerts{{/i}}
    • -
    • {{_i}}Sliding carousel panes{{/i}}
    • -
    + +
    + +

    {{_i}}About transitions{{/i}}

    +

    {{_i}}For simple transition effects, include bootstrap-transition.js once alongside the other JS files. If you're using the compiled (or minified) bootstrap.js, there is no need to include this—it's already there.{{/i}}

    +

    {{_i}}Use cases{{/i}}

    +

    {{_i}}A few examples of the transition plugin:{{/i}}

    +
      +
    • {{_i}}Sliding or fading in modals{{/i}}
    • +
    • {{_i}}Fading out tabs{{/i}}
    • +
    • {{_i}}Fading out alerts{{/i}}
    • +
    • {{_i}}Sliding carousel panes{{/i}}
    • +
    - {{! Ideas: include docs for .fade.in, .slide.in, etc }} -
    + {{! Ideas: include docs for .fade.in, .slide.in, etc }} +
    - -
    - + +
    + -

    {{_i}}Examples{{/i}}

    -

    {{_i}}Modals are streamlined, but flexible, dialog prompts with the minimum required functionality and smart defaults.{{/i}}

    +

    {{_i}}Examples{{/i}}

    +

    {{_i}}Modals are streamlined, but flexible, dialog prompts with the minimum required functionality and smart defaults.{{/i}}

    -

    {{_i}}Static example{{/i}}

    -

    {{_i}}A rendered modal with header, body, and set of actions in the footer.{{/i}}

    -
    - {{! /example }}
     <div class="modal hide fade">
       <div class="modal-header">
    @@ -120,43 +123,43 @@
     </div>
     
    -

    {{_i}}Live demo{{/i}}

    -

    {{_i}}Toggle a modal via javascript by clicking the button below. It will slide down and fade in from the top of the page.{{/i}}

    - -
    - - - - - + + + + +
    -
    -
    {{! /example }} - -

    {{_i}}Within tabs{{/i}}

    - {{! /example }} - - -
    - - -

    {{_i}}Usage{{/i}}

    - -

    {{_i}}Via data attributes{{/i}}

    -

    {{_i}}Add data-toggle="dropdown" to a link or button to toggle a dropdown.{{/i}}

    + + + +
    {{! /example }} + + +
    + + +

    {{_i}}Usage{{/i}}

    + +

    {{_i}}Via data attributes{{/i}}

    +

    {{_i}}Add data-toggle="dropdown" to a link or button to toggle a dropdown.{{/i}}

     <div class="dropdown">
       <a class="dropdown-toggle" href="#">Dropdown trigger</a>
    @@ -394,7 +398,7 @@ $('#myModal').on('hidden', function () {
       </ul>
     </div>
     
    -

    {{_i}}To keep URLs intact, use the data-target attribute instead of href="#".{{/i}}

    +

    {{_i}}To keep URLs intact, use the data-target attribute instead of href="#".{{/i}}

     <div class="dropdown">
       <a class="dropdown-toggle" id="dLabel" role="button" data-toggle="dropdown" data-target="#" href="/page.html">
    @@ -407,185 +411,185 @@ $('#myModal').on('hidden', function () {
     </div>
     
    -

    {{_i}}Via javascript{{/i}}

    -

    {{_i}}Call the dropdowns via javascript:{{/i}}

    -
    $('.dropdown-toggle').dropdown()
    - -

    {{_i}}Options{{/i}}

    -

    {{_i}}None{{/i}}

    - -

    {{_i}}Methods{{/i}}

    -

    $().dropdown()

    -

    {{_i}}A programatic api for activating menus for a given navbar or tabbed navigation.{{/i}}

    - - - - - -
    - - - -

    {{_i}}Example in navbar{{/i}}

    -

    {{_i}}The ScrollSpy plugin is for automatically updating nav targets based on scroll position. Scroll the area below the navbar and watch the active class change. The dropdown sub items will be highlighted as well.{{/i}}

    -
    -
    + + + + +
    + + + +

    {{_i}}Example in navbar{{/i}}

    +

    {{_i}}The ScrollSpy plugin is for automatically updating nav targets based on scroll position. Scroll the area below the navbar and watch the active class change. The dropdown sub items will be highlighted as well.{{/i}}

    + -
    -

    @fat

    -

    Ad leggings keytar, brunch id art party dolor labore. Pitchfork yr enim lo-fi before they sold out qui. Tumblr farm-to-table bicycle rights whatever. Anim keffiyeh carles cardigan. Velit seitan mcsweeney's photo booth 3 wolf moon irure. Cosby sweater lomo jean shorts, williamsburg hoodie minim qui you probably haven't heard of them et cardigan trust fund culpa biodiesel wes anderson aesthetic. Nihil tattooed accusamus, cred irony biodiesel keffiyeh artisan ullamco consequat.

    -

    @mdo

    -

    Veniam marfa mustache skateboard, adipisicing fugiat velit pitchfork beard. Freegan beard aliqua cupidatat mcsweeney's vero. Cupidatat four loko nisi, ea helvetica nulla carles. Tattooed cosby sweater food truck, mcsweeney's quis non freegan vinyl. Lo-fi wes anderson +1 sartorial. Carles non aesthetic exercitation quis gentrify. Brooklyn adipisicing craft beer vice keytar deserunt.

    -

    one

    -

    Occaecat commodo aliqua delectus. Fap craft beer deserunt skateboard ea. Lomo bicycle rights adipisicing banh mi, velit ea sunt next level locavore single-origin coffee in magna veniam. High life id vinyl, echo park consequat quis aliquip banh mi pitchfork. Vero VHS est adipisicing. Consectetur nisi DIY minim messenger bag. Cred ex in, sustainable delectus consectetur fanny pack iphone.

    -

    two

    -

    In incididunt echo park, officia deserunt mcsweeney's proident master cleanse thundercats sapiente veniam. Excepteur VHS elit, proident shoreditch +1 biodiesel laborum craft beer. Single-origin coffee wayfarers irure four loko, cupidatat terry richardson master cleanse. Assumenda you probably haven't heard of them art party fanny pack, tattooed nulla cardigan tempor ad. Proident wolf nesciunt sartorial keffiyeh eu banh mi sustainable. Elit wolf voluptate, lo-fi ea portland before they sold out four loko. Locavore enim nostrud mlkshk brooklyn nesciunt.

    -

    three

    -

    Ad leggings keytar, brunch id art party dolor labore. Pitchfork yr enim lo-fi before they sold out qui. Tumblr farm-to-table bicycle rights whatever. Anim keffiyeh carles cardigan. Velit seitan mcsweeney's photo booth 3 wolf moon irure. Cosby sweater lomo jean shorts, williamsburg hoodie minim qui you probably haven't heard of them et cardigan trust fund culpa biodiesel wes anderson aesthetic. Nihil tattooed accusamus, cred irony biodiesel keffiyeh artisan ullamco consequat.

    -

    Keytar twee blog, culpa messenger bag marfa whatever delectus food truck. Sapiente synth id assumenda. Locavore sed helvetica cliche irony, thundercats you probably haven't heard of them consequat hoodie gluten-free lo-fi fap aliquip. Labore elit placeat before they sold out, terry richardson proident brunch nesciunt quis cosby sweater pariatur keffiyeh ut helvetica artisan. Cardigan craft beer seitan readymade velit. VHS chambray laboris tempor veniam. Anim mollit minim commodo ullamco thundercats. -

    -
    -
    {{! /example }} +
    +

    @fat

    +

    Ad leggings keytar, brunch id art party dolor labore. Pitchfork yr enim lo-fi before they sold out qui. Tumblr farm-to-table bicycle rights whatever. Anim keffiyeh carles cardigan. Velit seitan mcsweeney's photo booth 3 wolf moon irure. Cosby sweater lomo jean shorts, williamsburg hoodie minim qui you probably haven't heard of them et cardigan trust fund culpa biodiesel wes anderson aesthetic. Nihil tattooed accusamus, cred irony biodiesel keffiyeh artisan ullamco consequat.

    +

    @mdo

    +

    Veniam marfa mustache skateboard, adipisicing fugiat velit pitchfork beard. Freegan beard aliqua cupidatat mcsweeney's vero. Cupidatat four loko nisi, ea helvetica nulla carles. Tattooed cosby sweater food truck, mcsweeney's quis non freegan vinyl. Lo-fi wes anderson +1 sartorial. Carles non aesthetic exercitation quis gentrify. Brooklyn adipisicing craft beer vice keytar deserunt.

    +

    one

    +

    Occaecat commodo aliqua delectus. Fap craft beer deserunt skateboard ea. Lomo bicycle rights adipisicing banh mi, velit ea sunt next level locavore single-origin coffee in magna veniam. High life id vinyl, echo park consequat quis aliquip banh mi pitchfork. Vero VHS est adipisicing. Consectetur nisi DIY minim messenger bag. Cred ex in, sustainable delectus consectetur fanny pack iphone.

    +

    two

    +

    In incididunt echo park, officia deserunt mcsweeney's proident master cleanse thundercats sapiente veniam. Excepteur VHS elit, proident shoreditch +1 biodiesel laborum craft beer. Single-origin coffee wayfarers irure four loko, cupidatat terry richardson master cleanse. Assumenda you probably haven't heard of them art party fanny pack, tattooed nulla cardigan tempor ad. Proident wolf nesciunt sartorial keffiyeh eu banh mi sustainable. Elit wolf voluptate, lo-fi ea portland before they sold out four loko. Locavore enim nostrud mlkshk brooklyn nesciunt.

    +

    three

    +

    Ad leggings keytar, brunch id art party dolor labore. Pitchfork yr enim lo-fi before they sold out qui. Tumblr farm-to-table bicycle rights whatever. Anim keffiyeh carles cardigan. Velit seitan mcsweeney's photo booth 3 wolf moon irure. Cosby sweater lomo jean shorts, williamsburg hoodie minim qui you probably haven't heard of them et cardigan trust fund culpa biodiesel wes anderson aesthetic. Nihil tattooed accusamus, cred irony biodiesel keffiyeh artisan ullamco consequat.

    +

    Keytar twee blog, culpa messenger bag marfa whatever delectus food truck. Sapiente synth id assumenda. Locavore sed helvetica cliche irony, thundercats you probably haven't heard of them consequat hoodie gluten-free lo-fi fap aliquip. Labore elit placeat before they sold out, terry richardson proident brunch nesciunt quis cosby sweater pariatur keffiyeh ut helvetica artisan. Cardigan craft beer seitan readymade velit. VHS chambray laboris tempor veniam. Anim mollit minim commodo ullamco thundercats. +

    +
    +
    {{! /example }} -
    +
    -

    {{_i}}Usage{{/i}}

    +

    {{_i}}Usage{{/i}}

    -

    {{_i}}Via data attributes{{/i}}

    -

    {{_i}}To easily add scrollspy behavior to your topbar navigation, just add data-spy="scroll" to the element you want to spy on (most typically this would be the body) and data-target=".navbar" to select which nav to use.{{/i}}

    -
    <body data-spy="scroll" data-target=".navbar">...</body>
    +

    {{_i}}Via data attributes{{/i}}

    +

    {{_i}}To easily add scrollspy behavior to your topbar navigation, just add data-spy="scroll" to the element you want to spy on (most typically this would be the body) and data-target=".navbar" to select which nav to use.{{/i}}

    +
    <body data-spy="scroll" data-target=".navbar">...</body>
    -

    {{_i}}Via javascript{{/i}}

    -

    {{_i}}Call the scrollspy via javascript:{{/i}}

    -
    $('#navbar').scrollspy()
    +

    {{_i}}Via javascript{{/i}}

    +

    {{_i}}Call the scrollspy via javascript:{{/i}}

    +
    $('#navbar').scrollspy()
    -
    - {{_i}}Heads up!{{/i}} - {{_i}}Navbar links must have resolvable id targets. For example, a <a href="#home">home</a> must correspond to something in the dom like <div id="home"></div>.{{/i}} -
    +
    + {{_i}}Heads up!{{/i}} + {{_i}}Navbar links must have resolvable id targets. For example, a <a href="#home">home</a> must correspond to something in the dom like <div id="home"></div>.{{/i}} +
    -

    {{_i}}Methods{{/i}}

    -

    .scrollspy('refresh')

    -

    {{_i}}When using scrollspy in conjunction with adding or removing of elements from the DOM, you'll need to call the refresh method like so:{{/i}}

    +

    {{_i}}Methods{{/i}}

    +

    .scrollspy('refresh')

    +

    {{_i}}When using scrollspy in conjunction with adding or removing of elements from the DOM, you'll need to call the refresh method like so:{{/i}}

     $('[data-spy="scroll"]').each(function () {
       var $spy = $(this).scrollspy('refresh')
     });
     
    -

    {{_i}}Options{{/i}}

    -

    {{_i}}Options can be passed via data attributes or javascript. For data attributes, append the option name to data-, as in data-offset="".{{/i}}

    - - - - - - - - - - - - - - - - - -
    {{_i}}Name{{/i}}{{_i}}type{{/i}}{{_i}}default{{/i}}{{_i}}description{{/i}}
    {{_i}}offset{{/i}}{{_i}}number{{/i}}{{_i}}10{{/i}}{{_i}}Pixels to offset from top when calculating position of scroll.{{/i}}
    - -

    {{_i}}Events{{/i}}

    - - - - - - - - - - - - - -
    {{_i}}Event{{/i}}{{_i}}Description{{/i}}
    {{_i}}activate{{/i}}{{_i}}This event fires whenever a new item becomes activated by the scrollspy.{{/i}}
    - - - - - -
    - - - -

    {{_i}}Example tabs{{/i}}

    -

    {{_i}}Add quick, dynamic tab functionality to transiton through panes of local content, even via dropdown menus.{{/i}}

    -
    - -
    -
    -

    Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui.

    -
    -
    -

    Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft beer twee. Qui photo booth letterpress, commodo enim craft beer mlkshk aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthetic magna delectus mollit. Keytar helvetica VHS salvia yr, vero magna velit sapiente labore stumptown. Vegan fanny pack odio cillum wes anderson 8-bit, sustainable jean shorts beard ut DIY ethical culpa terry richardson biodiesel. Art party scenester stumptown, tumblr butcher vero sint qui sapiente accusamus tattooed echo park.

    -
    - - +

    {{_i}}Options{{/i}}

    +

    {{_i}}Options can be passed via data attributes or javascript. For data attributes, append the option name to data-, as in data-offset="".{{/i}}

    + + + + + + + + + + + + + + + + + +
    {{_i}}Name{{/i}}{{_i}}type{{/i}}{{_i}}default{{/i}}{{_i}}description{{/i}}
    {{_i}}offset{{/i}}{{_i}}number{{/i}}{{_i}}10{{/i}}{{_i}}Pixels to offset from top when calculating position of scroll.{{/i}}
    + +

    {{_i}}Events{{/i}}

    + + + + + + + + + + + + + +
    {{_i}}Event{{/i}}{{_i}}Description{{/i}}
    {{_i}}activate{{/i}}{{_i}}This event fires whenever a new item becomes activated by the scrollspy.{{/i}}
    +
    + + + + +
    + -
    {{! /example }} -
    +

    {{_i}}Example tabs{{/i}}

    +

    {{_i}}Add quick, dynamic tab functionality to transiton through panes of local content, even via dropdown menus.{{/i}}

    +
    + +
    +
    +

    Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui.

    +
    +
    +

    Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft beer twee. Qui photo booth letterpress, commodo enim craft beer mlkshk aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthetic magna delectus mollit. Keytar helvetica VHS salvia yr, vero magna velit sapiente labore stumptown. Vegan fanny pack odio cillum wes anderson 8-bit, sustainable jean shorts beard ut DIY ethical culpa terry richardson biodiesel. Art party scenester stumptown, tumblr butcher vero sint qui sapiente accusamus tattooed echo park.

    +
    + + +
    +
    {{! /example }} + + +
    -

    {{_i}}Usage{{/i}}

    -

    {{_i}}Enable tabbable tabs via javascript (each tab needs to be activated individually):{{/i}}

    +

    {{_i}}Usage{{/i}}

    +

    {{_i}}Enable tabbable tabs via javascript (each tab needs to be activated individually):{{/i}}

     $('#myTab a').click(function (e) {
       e.preventDefault();
       $(this).tab('show');
     })
    -

    {{_i}}You can activate individual tabs in several ways:{{/i}}

    +

    {{_i}}You can activate individual tabs in several ways:{{/i}}

     $('#myTab a[href="#profile"]').tab('show'); // Select tab by name
     $('#myTab a:first').tab('show'); // Select first tab
    @@ -593,8 +597,8 @@ $('#myTab a:last').tab('show'); // Select last tab
     $('#myTab li:eq(2) a').tab('show'); // Select third tab (0-indexed)
     
    -

    {{_i}}Markup{{/i}}

    -

    {{_i}}You can activate a tab or pill navigation without writing any javascript by simply specifying data-toggle="tab" or data-toggle="pill" on an element. Adding the nav and nav-tabs classes to the tab ul will apply the bootstrap tab styling.{{/i}}

    +

    {{_i}}Markup{{/i}}

    +

    {{_i}}You can activate a tab or pill navigation without writing any javascript by simply specifying data-toggle="tab" or data-toggle="pill" on an element. Adding the nav and nav-tabs classes to the tab ul will apply the bootstrap tab styling.{{/i}}

     <ul class="nav nav-tabs">
       <li><a href="#home" data-toggle="tab">{{_i}}Home{{/i}}</a></li>
    @@ -603,11 +607,11 @@ $('#myTab li:eq(2) a').tab('show'); // Select third tab (0-indexed)
       <li><a href="#settings" data-toggle="tab">{{_i}}Settings{{/i}}</a></li>
     </ul>
    -

    {{_i}}Methods{{/i}}

    -

    $().tab

    -

    - {{_i}}Activates a tab element and content container. Tab should have either a data-target or an href targeting a container node in the DOM.{{/i}} -

    +

    {{_i}}Methods{{/i}}

    +

    $().tab

    +

    + {{_i}}Activates a tab element and content container. Tab should have either a data-target or an href targeting a container node in the DOM.{{/i}} +

     <ul class="nav nav-tabs" id="myTab">
       <li class="active"><a href="#home">{{_i}}Home{{/i}}</a></li>
    @@ -627,429 +631,432 @@ $('#myTab li:eq(2) a').tab('show'); // Select third tab (0-indexed)
       $(function () {
         $('#myTab a:last').tab('show');
       })
    -</script>
    +</script> + -

    {{_i}}Events{{/i}}

    - - - - - - - - - - - - - - - - - -
    {{_i}}Event{{/i}}{{_i}}Description{{/i}}
    {{_i}}show{{/i}}{{_i}}This event fires on tab show, but before the new tab has been shown. Use event.target and event.relatedTarget to target the active tab and the previous active tab (if available) respectively.{{/i}}
    {{_i}}shown{{/i}}{{_i}}This event fires on tab show after a tab has been shown. Use event.target and event.relatedTarget to target the active tab and the previous active tab (if available) respectively.{{/i}}
    +

    {{_i}}Events{{/i}}

    + + + + + + + + + + + + + + + + + +
    {{_i}}Event{{/i}}{{_i}}Description{{/i}}
    {{_i}}show{{/i}}{{_i}}This event fires on tab show, but before the new tab has been shown. Use event.target and event.relatedTarget to target the active tab and the previous active tab (if available) respectively.{{/i}}
    {{_i}}shown{{/i}}{{_i}}This event fires on tab show after a tab has been shown. Use event.target and event.relatedTarget to target the active tab and the previous active tab (if available) respectively.{{/i}}
     $('a[data-toggle="tab"]').on('shown', function (e) {
       e.target // activated tab
       e.relatedTarget // previous tab
    -})
    - +}) + + - -
    - + +
    + -

    {{_i}}Examples{{/i}}

    -

    {{_i}}Inspired by the excellent jQuery.tipsy plugin written by Jason Frame; Tooltips are an updated version, which don't rely on images, use CSS3 for animations, and data-attributes for local title storage.{{/i}}

    -

    {{_i}}Hover over the links below to see tooltips:{{/i}}

    -
    -

    {{_i}}Tight pants next level keffiyeh you probably haven't heard of them. Photo booth beard raw denim letterpress vegan messenger bag stumptown. Farm-to-table seitan, mcsweeney's fixie sustainable quinoa 8-bit american apparel have a terry richardson vinyl chambray. Beard stumptown, cardigans banh mi lomo thundercats. Tofu biodiesel williamsburg marfa, four loko mcsweeney's cleanse vegan chambray. A really ironic artisan whatever keytar, scenester farm-to-table banksy Austin twitter handle freegan cred raw denim single-origin coffee viral.{{/i}} -

    -
    {{! /example }} - -

    {{_i}}Four directions{{/i}}

    - {{! /example }} - - -
    - - -

    {{_i}}Usage{{/i}}

    -

    {{_i}}Trigger the tooltip via javascript:{{/i}}

    -
    $('#example').tooltip({{_i}}options{{/i}})
    - -

    {{_i}}Options{{/i}}

    -

    {{_i}}Options can be passed via data attributes or javascript. For data attributes, append the option name to data-, as in data-animation="".{{/i}}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {{_i}}Name{{/i}}{{_i}}type{{/i}}{{_i}}default{{/i}}{{_i}}description{{/i}}
    {{_i}}animation{{/i}}{{_i}}boolean{{/i}}true{{_i}}apply a css fade transition to the tooltip{{/i}}
    {{_i}}html{{/i}}{{_i}}boolean{{/i}}true{{_i}}Insert html into the tooltip. If false, jquery's text method will be used to insert content into the dom. Use text if you're worried about XSS attacks.{{/i}}
    {{_i}}placement{{/i}}{{_i}}string|function{{/i}}'top'{{_i}}how to position the tooltip{{/i}} - top | bottom | left | right
    {{_i}}selector{{/i}}{{_i}}string{{/i}}false{{_i}}If a selector is provided, tooltip objects will be delegated to the specified targets.{{/i}}
    {{_i}}title{{/i}}{{_i}}string | function{{/i}}''{{_i}}default title value if `title` tag isn't present{{/i}}
    {{_i}}trigger{{/i}}{{_i}}string{{/i}}'hover'{{_i}}how tooltip is triggered{{/i}} - hover | focus | manual
    {{_i}}delay{{/i}}{{_i}}number | object{{/i}}0 -

    {{_i}}delay showing and hiding the tooltip (ms) - does not apply to manual trigger type{{/i}}

    -

    {{_i}}If a number is supplied, delay is applied to both hide/show{{/i}}

    -

    {{_i}}Object structure is: delay: { show: 500, hide: 100 }{{/i}}

    -
    -
    - {{_i}}Heads up!{{/i}} - {{_i}}Options for individual tooltips can alternatively be specified through the use of data attributes.{{/i}} -
    - -

    {{_i}}Markup{{/i}}

    -

    {{_i}}For performance reasons, the Tooltip and Popover data-apis are opt in. If you would like to use them just specify a selector option.{{/i}}

    -
    -    <a href="#" rel="tooltip" title="{{_i}}first tooltip{{/i}}">{{_i}}hover over me{{/i}}</a>
    -    
    - -

    {{_i}}Methods{{/i}}

    -

    $().tooltip({{_i}}options{{/i}})

    -

    {{_i}}Attaches a tooltip handler to an element collection.{{/i}}

    -

    .tooltip('show')

    -

    {{_i}}Reveals an element's tooltip.{{/i}}

    -
    $('#element').tooltip('show')
    -

    .tooltip('hide')

    -

    {{_i}}Hides an element's tooltip.{{/i}}

    -
    $('#element').tooltip('hide')
    -

    .tooltip('toggle')

    -

    {{_i}}Toggles an element's tooltip.{{/i}}

    -
    $('#element').tooltip('toggle')
    -

    .tooltip('destroy')

    -

    {{_i}}Destroys an element's tooltip.{{/i}}

    -
    $('#element').tooltip('destroy')
    -
    - - - - -
    - - -

    {{_i}}Examples{{/i}}

    -

    {{_i}}Add small overlays of content, like those on the iPad, to any element for housing secondary information. Hover over the button to trigger the popover. Requires Tooltip to be included.{{/i}}

    - -

    {{_i}}Static popover{{/i}}

    -

    {{_i}}Four options are available: top, right, bottom, and left aligned.{{/i}}

    -
    -
    -
    -

    Popover top

    -
    -

    Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

    -
    +

    {{_i}}Examples{{/i}}

    +

    {{_i}}Inspired by the excellent jQuery.tipsy plugin written by Jason Frame; Tooltips are an updated version, which don't rely on images, use CSS3 for animations, and data-attributes for local title storage.{{/i}}

    +

    {{_i}}Hover over the links below to see tooltips:{{/i}}

    +
    +

    {{_i}}Tight pants next level keffiyeh you probably haven't heard of them. Photo booth beard raw denim letterpress vegan messenger bag stumptown. Farm-to-table seitan, mcsweeney's fixie sustainable quinoa 8-bit american apparel have a terry richardson vinyl chambray. Beard stumptown, cardigans banh mi lomo thundercats. Tofu biodiesel williamsburg marfa, four loko mcsweeney's cleanse vegan chambray. A really ironic artisan whatever keytar, scenester farm-to-table banksy Austin twitter handle freegan cred raw denim single-origin coffee viral.{{/i}} +

    +
    {{! /example }} + +

    {{_i}}Four directions{{/i}}

    + {{! /example }} + + +
    + + +

    {{_i}}Usage{{/i}}

    +

    {{_i}}Trigger the tooltip via javascript:{{/i}}

    +
    $('#example').tooltip({{_i}}options{{/i}})
    + +

    {{_i}}Options{{/i}}

    +

    {{_i}}Options can be passed via data attributes or javascript. For data attributes, append the option name to data-, as in data-animation="".{{/i}}

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    {{_i}}Name{{/i}}{{_i}}type{{/i}}{{_i}}default{{/i}}{{_i}}description{{/i}}
    {{_i}}animation{{/i}}{{_i}}boolean{{/i}}true{{_i}}apply a css fade transition to the tooltip{{/i}}
    {{_i}}html{{/i}}{{_i}}boolean{{/i}}true{{_i}}Insert html into the tooltip. If false, jquery's text method will be used to insert content into the dom. Use text if you're worried about XSS attacks.{{/i}}
    {{_i}}placement{{/i}}{{_i}}string|function{{/i}}'top'{{_i}}how to position the tooltip{{/i}} - top | bottom | left | right
    {{_i}}selector{{/i}}{{_i}}string{{/i}}false{{_i}}If a selector is provided, tooltip objects will be delegated to the specified targets.{{/i}}
    {{_i}}title{{/i}}{{_i}}string | function{{/i}}''{{_i}}default title value if `title` tag isn't present{{/i}}
    {{_i}}trigger{{/i}}{{_i}}string{{/i}}'hover'{{_i}}how tooltip is triggered{{/i}} - hover | focus | manual
    {{_i}}delay{{/i}}{{_i}}number | object{{/i}}0 +

    {{_i}}delay showing and hiding the tooltip (ms) - does not apply to manual trigger type{{/i}}

    +

    {{_i}}If a number is supplied, delay is applied to both hide/show{{/i}}

    +

    {{_i}}Object structure is: delay: { show: 500, hide: 100 }{{/i}}

    +
    +
    + {{_i}}Heads up!{{/i}} + {{_i}}Options for individual tooltips can alternatively be specified through the use of data attributes.{{/i}}
    -
    -
    -

    Popover right

    -
    -

    Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

    -
    +

    {{_i}}Markup{{/i}}

    +

    {{_i}}For performance reasons, the Tooltip and Popover data-apis are opt in. If you would like to use them just specify a selector option.{{/i}}

    +
    +<a href="#" rel="tooltip" title="{{_i}}first tooltip{{/i}}">{{_i}}hover over me{{/i}}</a>
    +
    + +

    {{_i}}Methods{{/i}}

    +

    $().tooltip({{_i}}options{{/i}})

    +

    {{_i}}Attaches a tooltip handler to an element collection.{{/i}}

    +

    .tooltip('show')

    +

    {{_i}}Reveals an element's tooltip.{{/i}}

    +
    $('#element').tooltip('show')
    +

    .tooltip('hide')

    +

    {{_i}}Hides an element's tooltip.{{/i}}

    +
    $('#element').tooltip('hide')
    +

    .tooltip('toggle')

    +

    {{_i}}Toggles an element's tooltip.{{/i}}

    +
    $('#element').tooltip('toggle')
    +

    .tooltip('destroy')

    +

    {{_i}}Destroys an element's tooltip.{{/i}}

    +
    $('#element').tooltip('destroy')
    +
    + + + + +
    + -
    -
    -

    Popover bottom

    -
    -

    Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

    +

    {{_i}}Examples{{/i}}

    +

    {{_i}}Add small overlays of content, like those on the iPad, to any element for housing secondary information. Hover over the button to trigger the popover. Requires Tooltip to be included.{{/i}}

    + +

    {{_i}}Static popover{{/i}}

    +

    {{_i}}Four options are available: top, right, bottom, and left aligned.{{/i}}

    +
    +
    +
    +

    Popover top

    +
    +

    Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

    +
    +
    + +
    +
    +

    Popover right

    +
    +

    Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

    +
    -
    -
    -
    -

    Popover left

    -
    -

    Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

    +
    +
    +

    Popover bottom

    +
    +

    Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

    +
    + +
    +
    +

    Popover left

    +
    +

    Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

    +
    +
    + +
    +

    {{_i}}No markup shown as popovers are generated from javascript and content within a data attribute.{{/i}}

    -
    -
    -

    {{_i}}No markup shown as popovers are generated from javascript and content within a data attribute.{{/i}}

    - -

    Live demo

    - - - -
    - - -

    {{_i}}Usage{{/i}}

    -

    {{_i}}Enable popovers via javascript:{{/i}}

    -
    $('#example').popover({{_i}}options{{/i}})
    - -

    {{_i}}Options{{/i}}

    -

    {{_i}}Options can be passed via data attributes or javascript. For data attributes, append the option name to data-, as in data-animation="".{{/i}}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {{_i}}Name{{/i}}{{_i}}type{{/i}}{{_i}}default{{/i}}{{_i}}description{{/i}}
    {{_i}}animation{{/i}}{{_i}}boolean{{/i}}true{{_i}}apply a css fade transition to the tooltip{{/i}}
    {{_i}}html{{/i}}{{_i}}boolean{{/i}}true{{_i}}Insert html into the popover. If false, jquery's text method will be used to insert content into the dom. Use text if you're worried about XSS attacks.{{/i}}
    {{_i}}placement{{/i}}{{_i}}string|function{{/i}}'right'{{_i}}how to position the popover{{/i}} - top | bottom | left | right
    {{_i}}selector{{/i}}{{_i}}string{{/i}}false{{_i}}if a selector is provided, tooltip objects will be delegated to the specified targets{{/i}}
    {{_i}}trigger{{/i}}{{_i}}string{{/i}}'hover'{{_i}}how popover is triggered{{/i}} - hover | focus | manual
    {{_i}}title{{/i}}{{_i}}string | function{{/i}}''{{_i}}default title value if `title` attribute isn't present{{/i}}
    {{_i}}content{{/i}}{{_i}}string | function{{/i}}''{{_i}}default content value if `data-content` attribute isn't present{{/i}}
    {{_i}}delay{{/i}}{{_i}}number | object{{/i}}0 -

    {{_i}}delay showing and hiding the popover (ms) - does not apply to manual trigger type{{/i}}

    -

    {{_i}}If a number is supplied, delay is applied to both hide/show{{/i}}

    -

    {{_i}}Object structure is: delay: { show: 500, hide: 100 }{{/i}}

    -
    -
    - {{_i}}Heads up!{{/i}} - {{_i}}Options for individual popovers can alternatively be specified through the use of data attributes.{{/i}} -
    - -

    {{_i}}Markup{{/i}}

    -

    {{_i}}For performance reasons, the Tooltip and Popover data-apis are opt in. If you would like to use them just specify a selector option.{{/i}}

    - -

    {{_i}}Methods{{/i}}

    -

    $().popover({{_i}}options{{/i}})

    -

    {{_i}}Initializes popovers for an element collection.{{/i}}

    -

    .popover('show')

    -

    {{_i}}Reveals an elements popover.{{/i}}

    -
    $('#element').popover('show')
    -

    .popover('hide')

    -

    {{_i}}Hides an elements popover.{{/i}}

    -
    $('#element').popover('hide')
    -

    .popover('toggle')

    -

    {{_i}}Toggles an elements popover.{{/i}}

    -
    $('#element').popover('toggle')
    -

    .popover('destroy')

    -

    {{_i}}Destroys an element's popover.{{/i}}

    -
    $('#element').popover('destroy')
    -
    - - - - -
    - - - -

    {{_i}}Example alerts{{/i}}

    -

    {{_i}}Add dismiss functionality to all alerge messages with this plugin.{{/i}}

    -
    -
    - - {{_i}}Holy guacamole!{{/i}} {{_i}}Best check yo self, you're not looking too good.{{/i}} +

    Live demo

    + -
    {{! /example }} - -
    -
    - -

    {{_i}}Oh snap! You got an error!{{/i}}

    -

    {{_i}}Change this and that and try again. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cras mattis consectetur purus sit amet fermentum.{{/i}}

    -

    - {{_i}}Take this action{{/i}} {{_i}}Or do this{{/i}} -

    + + +
    + + +

    {{_i}}Usage{{/i}}

    +

    {{_i}}Enable popovers via javascript:{{/i}}

    +
    $('#example').popover({{_i}}options{{/i}})
    + +

    {{_i}}Options{{/i}}

    +

    {{_i}}Options can be passed via data attributes or javascript. For data attributes, append the option name to data-, as in data-animation="".{{/i}}

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    {{_i}}Name{{/i}}{{_i}}type{{/i}}{{_i}}default{{/i}}{{_i}}description{{/i}}
    {{_i}}animation{{/i}}{{_i}}boolean{{/i}}true{{_i}}apply a css fade transition to the tooltip{{/i}}
    {{_i}}html{{/i}}{{_i}}boolean{{/i}}true{{_i}}Insert html into the popover. If false, jquery's text method will be used to insert content into the dom. Use text if you're worried about XSS attacks.{{/i}}
    {{_i}}placement{{/i}}{{_i}}string|function{{/i}}'right'{{_i}}how to position the popover{{/i}} - top | bottom | left | right
    {{_i}}selector{{/i}}{{_i}}string{{/i}}false{{_i}}if a selector is provided, tooltip objects will be delegated to the specified targets{{/i}}
    {{_i}}trigger{{/i}}{{_i}}string{{/i}}'hover'{{_i}}how popover is triggered{{/i}} - hover | focus | manual
    {{_i}}title{{/i}}{{_i}}string | function{{/i}}''{{_i}}default title value if `title` attribute isn't present{{/i}}
    {{_i}}content{{/i}}{{_i}}string | function{{/i}}''{{_i}}default content value if `data-content` attribute isn't present{{/i}}
    {{_i}}delay{{/i}}{{_i}}number | object{{/i}}0 +

    {{_i}}delay showing and hiding the popover (ms) - does not apply to manual trigger type{{/i}}

    +

    {{_i}}If a number is supplied, delay is applied to both hide/show{{/i}}

    +

    {{_i}}Object structure is: delay: { show: 500, hide: 100 }{{/i}}

    +
    +
    + {{_i}}Heads up!{{/i}} + {{_i}}Options for individual popovers can alternatively be specified through the use of data attributes.{{/i}}
    -
    {{! /example }} - - -
    - - -

    {{_i}}Usage{{/i}}

    -

    {{_i}}Enable dismissal of an alert via javascript:{{/i}}

    -
    $(".alert").alert()
    - -

    {{_i}}Markup{{/i}}

    -

    {{_i}}Just add data-dismiss="alert" to your close button to automatically give an alert close functionality.{{/i}}

    -
    <a class="close" data-dismiss="alert" href="#">&times;</a>
    - -

    {{_i}}Methods{{/i}}

    -

    $().alert()

    -

    {{_i}}Wraps all alerts with close functionality. To have your alerts animate out when closed, make sure they have the .fade and .in class already applied to them.{{/i}}

    -

    .alert('close')

    -

    {{_i}}Closes an alert.{{/i}}

    -
    $(".alert").alert('close')
    - - -

    {{_i}}Events{{/i}}

    -

    {{_i}}Bootstrap's alert class exposes a few events for hooking into alert functionality.{{/i}}

    - - - - - - - - - - - - - - - - - -
    {{_i}}Event{{/i}}{{_i}}Description{{/i}}
    {{_i}}close{{/i}}{{_i}}This event fires immediately when the close instance method is called.{{/i}}
    {{_i}}closed{{/i}}{{_i}}This event is fired when the alert has been closed (will wait for css transitions to complete).{{/i}}
    + +

    {{_i}}Markup{{/i}}

    +

    {{_i}}For performance reasons, the Tooltip and Popover data-apis are opt in. If you would like to use them just specify a selector option.{{/i}}

    + +

    {{_i}}Methods{{/i}}

    +

    $().popover({{_i}}options{{/i}})

    +

    {{_i}}Initializes popovers for an element collection.{{/i}}

    +

    .popover('show')

    +

    {{_i}}Reveals an elements popover.{{/i}}

    +
    $('#element').popover('show')
    +

    .popover('hide')

    +

    {{_i}}Hides an elements popover.{{/i}}

    +
    $('#element').popover('hide')
    +

    .popover('toggle')

    +

    {{_i}}Toggles an elements popover.{{/i}}

    +
    $('#element').popover('toggle')
    +

    .popover('destroy')

    +

    {{_i}}Destroys an element's popover.{{/i}}

    +
    $('#element').popover('destroy')
    +
    + + + + +
    + + + +

    {{_i}}Example alerts{{/i}}

    +

    {{_i}}Add dismiss functionality to all alerge messages with this plugin.{{/i}}

    +
    +
    + + {{_i}}Holy guacamole!{{/i}} {{_i}}Best check yo self, you're not looking too good.{{/i}} +
    +
    {{! /example }} + +
    +
    + +

    {{_i}}Oh snap! You got an error!{{/i}}

    +

    {{_i}}Change this and that and try again. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cras mattis consectetur purus sit amet fermentum.{{/i}}

    +

    + {{_i}}Take this action{{/i}} {{_i}}Or do this{{/i}} +

    +
    +
    {{! /example }} + + +
    + + +

    {{_i}}Usage{{/i}}

    +

    {{_i}}Enable dismissal of an alert via javascript:{{/i}}

    +
    $(".alert").alert()
    + +

    {{_i}}Markup{{/i}}

    +

    {{_i}}Just add data-dismiss="alert" to your close button to automatically give an alert close functionality.{{/i}}

    +
    <a class="close" data-dismiss="alert" href="#">&times;</a>
    + +

    {{_i}}Methods{{/i}}

    +

    $().alert()

    +

    {{_i}}Wraps all alerts with close functionality. To have your alerts animate out when closed, make sure they have the .fade and .in class already applied to them.{{/i}}

    +

    .alert('close')

    +

    {{_i}}Closes an alert.{{/i}}

    +
    $(".alert").alert('close')
    + + +

    {{_i}}Events{{/i}}

    +

    {{_i}}Bootstrap's alert class exposes a few events for hooking into alert functionality.{{/i}}

    + + + + + + + + + + + + + + + + + +
    {{_i}}Event{{/i}}{{_i}}Description{{/i}}
    {{_i}}close{{/i}}{{_i}}This event fires immediately when the close instance method is called.{{/i}}
    {{_i}}closed{{/i}}{{_i}}This event is fired when the alert has been closed (will wait for css transitions to complete).{{/i}}
     $('#my-alert').bind('closed', function () {
       // {{_i}}do something…{{/i}}
    -})
    -
    +}) + +
    - -
    - + +
    + -

    {{_i}}Example uses{{/i}}

    -

    {{_i}}Do more with buttons. Control button states or create groups of buttons for more components like toolbars.{{/i}}

    +

    {{_i}}Example uses{{/i}}

    +

    {{_i}}Do more with buttons. Control button states or create groups of buttons for more components like toolbars.{{/i}}

    -

    {{_i}}Stateful{{/i}}

    -

    {{_i}}Add data-loading-text="Loading..." to use a loading state on a button.{{/i}}

    -
    - -
    {{! /example }} +

    {{_i}}Stateful{{/i}}

    +

    {{_i}}Add data-loading-text="Loading..." to use a loading state on a button.{{/i}}

    +
    + +
    {{! /example }}
     <button type="button" class="btn btn-primary" data-loading-text="Loading...">Loading state</button>
     
    -

    {{_i}}Single toggle{{/i}}

    -

    {{_i}}Add data-toggle="button" to activate toggling on a single button.{{/i}}

    -
    - -
    {{! /example }} +

    {{_i}}Single toggle{{/i}}

    +

    {{_i}}Add data-toggle="button" to activate toggling on a single button.{{/i}}

    +
    + +
    {{! /example }}
     <button type="button" class="btn" data-toggle="button">Single Toggle</button>
     
    -

    {{_i}}Checkbox{{/i}}

    -

    {{_i}}Add data-toggle="buttons-checkbox" for checkbox style toggling on btn-group.{{/i}}

    -
    -
    - - - -
    -
    {{! /example }} +

    {{_i}}Checkbox{{/i}}

    +

    {{_i}}Add data-toggle="buttons-checkbox" for checkbox style toggling on btn-group.{{/i}}

    +
    +
    + + + +
    +
    {{! /example }}
     <div class="btn-group" data-toggle="buttons-checkbox">
       <button type="button" class="btn">Left</button>
    @@ -1058,15 +1065,15 @@ $('#my-alert').bind('closed', function () {
     </div>
     
    -

    {{_i}}Radio{{/i}}

    -

    {{_i}}Add data-toggle="buttons-radio" for radio style toggling on btn-group.{{/i}}

    -
    -
    - - - -
    -
    {{! /example }} +

    {{_i}}Radio{{/i}}

    +

    {{_i}}Add data-toggle="buttons-radio" for radio style toggling on btn-group.{{/i}}

    +
    +
    + + + +
    +
    {{! /example }}
     <div class="btn-group" data-toggle="buttons-radio">
       <button type="button" class="btn">Left</button>
    @@ -1076,101 +1083,101 @@ $('#my-alert').bind('closed', function () {
     
    -
    - - -

    {{_i}}Usage{{/i}}

    -

    {{_i}}Enable buttons via javascript:{{/i}}

    -
    $('.nav-tabs').button()
    - -

    {{_i}}Markup{{/i}}

    -

    {{_i}}Data attributes are integral to the button plugin. Check out the example code below for the various markup types.{{/i}}

    - -

    {{_i}}Options{{/i}}

    -

    {{_i}}None{{/i}}

    - -

    {{_i}}Methods{{/i}}

    -

    $().button('toggle')

    -

    {{_i}}Toggles push state. Gives the button the appearance that it has been activated.{{/i}}

    -
    - {{_i}}Heads up!{{/i}} - {{_i}}You can enable auto toggling of a button by using the data-toggle attribute.{{/i}} -
    -
    <button type="button" class="btn" data-toggle="button" >…</button>
    -

    $().button('loading')

    -

    {{_i}}Sets button state to loading - disables button and swaps text to loading text. Loading text should be defined on the button element using the data attribute data-loading-text.{{/i}} -

    -
    <button type="button" class="btn" data-loading-text="loading stuff..." >...</button>
    -
    - {{_i}}Heads up!{{/i}} - {{_i}}Firefox persists the disabled state across page loads. A workaround for this is to use autocomplete="off".{{/i}} -
    -

    $().button('reset')

    -

    {{_i}}Resets button state - swaps text to original text.{{/i}}

    -

    $().button(string)

    -

    {{_i}}Resets button state - swaps text to any data defined text state.{{/i}}

    +
    + + +

    {{_i}}Usage{{/i}}

    +

    {{_i}}Enable buttons via javascript:{{/i}}

    +
    $('.nav-tabs').button()
    + +

    {{_i}}Markup{{/i}}

    +

    {{_i}}Data attributes are integral to the button plugin. Check out the example code below for the various markup types.{{/i}}

    + +

    {{_i}}Options{{/i}}

    +

    {{_i}}None{{/i}}

    + +

    {{_i}}Methods{{/i}}

    +

    $().button('toggle')

    +

    {{_i}}Toggles push state. Gives the button the appearance that it has been activated.{{/i}}

    +
    + {{_i}}Heads up!{{/i}} + {{_i}}You can enable auto toggling of a button by using the data-toggle attribute.{{/i}} +
    +
    <button type="button" class="btn" data-toggle="button" >…</button>
    +

    $().button('loading')

    +

    {{_i}}Sets button state to loading - disables button and swaps text to loading text. Loading text should be defined on the button element using the data attribute data-loading-text.{{/i}} +

    +
    <button type="button" class="btn" data-loading-text="loading stuff..." >...</button>
    +
    + {{_i}}Heads up!{{/i}} + {{_i}}Firefox persists the disabled state across page loads. A workaround for this is to use autocomplete="off".{{/i}} +
    +

    $().button('reset')

    +

    {{_i}}Resets button state - swaps text to original text.{{/i}}

    +

    $().button(string)

    +

    {{_i}}Resets button state - swaps text to any data defined text state.{{/i}}

    <button type="button" class="btn" data-complete-text="finished!" >...</button>
     <script>
       $('.btn').button('complete')
     </script>
    -
    +
    - -
    - + +
    + -

    {{_i}}About{{/i}}

    -

    {{_i}}Get base styles and flexible support for collapsible components like accordions and navigation.{{/i}}

    -

    * {{_i}}Requires the Transitions plugin to be included.{{/i}}

    +

    {{_i}}About{{/i}}

    +

    {{_i}}Get base styles and flexible support for collapsible components like accordions and navigation.{{/i}}

    +

    * {{_i}}Requires the Transitions plugin to be included.{{/i}}

    -

    {{_i}}Example accordion{{/i}}

    -

    {{_i}}Using the collapse plugin, we built a simple accordion style widget:{{/i}}

    +

    {{_i}}Example accordion{{/i}}

    +

    {{_i}}Using the collapse plugin, we built a simple accordion style widget:{{/i}}

    -
    -
    -
    - -
    -
    - Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS. +
    + -
    - -
    -
    - Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS. +
    +
    + Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS. +
    -
    -
    -
    - - {{_i}}Collapsible Group Item #3{{/i}} - +
    + +
    +
    + Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS. +
    +
    -
    -
    - Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS. +
    + +
    +
    + Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS. +
    -
    -
    {{! /example }} +
    {{! /example }}
     <button type="button" class="btn btn-danger" data-toggle="collapse" data-target="#demo">
       {{_i}}simple collapsible{{/i}}
    @@ -1180,137 +1187,137 @@ $('#my-alert').bind('closed', function () {
     
    -
    - - -

    {{_i}}Usage{{/i}}

    - -

    {{_i}}Via data attributes{{/i}}

    -

    {{_i}}Just add data-toggle="collapse" and a data-target to element to automatically assign control of a collapsible element. The data-target attribute accepts a css selector to apply the collapse to. Be sure to add the class collapse to the collapsible element. If you'd like it to default open, add the additional class in.{{/i}}

    -

    {{_i}}To add accordion-like group management to a collapsible control, add the data attribute data-parent="#selector". Refer to the demo to see this in action.{{/i}}

    - -

    {{_i}}Via javascript{{/i}}

    -

    {{_i}}Enable manually with:{{/i}}

    -
    $(".collapse").collapse()
    - -

    {{_i}}Options{{/i}}

    -

    {{_i}}Options can be passed via data attributes or javascript. For data attributes, append the option name to data-, as in data-parent="".{{/i}}

    - - - - - - - - - - - - - - - - - - - - - - - -
    {{_i}}Name{{/i}}{{_i}}type{{/i}}{{_i}}default{{/i}}{{_i}}description{{/i}}
    {{_i}}parent{{/i}}{{_i}}selector{{/i}}false{{_i}}If selector then all collapsible elements under the specified parent will be closed when this collapsible item is shown. (similar to traditional accordion behavior){{/i}}
    {{_i}}toggle{{/i}}{{_i}}boolean{{/i}}true{{_i}}Toggles the collapsible element on invocation{{/i}}
    - - -

    {{_i}}Methods{{/i}}

    -

    .collapse({{_i}}options{{/i}})

    -

    {{_i}}Activates your content as a collapsible element. Accepts an optional options object.{{/i}} +


    + + +

    {{_i}}Usage{{/i}}

    + +

    {{_i}}Via data attributes{{/i}}

    +

    {{_i}}Just add data-toggle="collapse" and a data-target to element to automatically assign control of a collapsible element. The data-target attribute accepts a css selector to apply the collapse to. Be sure to add the class collapse to the collapsible element. If you'd like it to default open, add the additional class in.{{/i}}

    +

    {{_i}}To add accordion-like group management to a collapsible control, add the data attribute data-parent="#selector". Refer to the demo to see this in action.{{/i}}

    + +

    {{_i}}Via javascript{{/i}}

    +

    {{_i}}Enable manually with:{{/i}}

    +
    $(".collapse").collapse()
    + +

    {{_i}}Options{{/i}}

    +

    {{_i}}Options can be passed via data attributes or javascript. For data attributes, append the option name to data-, as in data-parent="".{{/i}}

    + + + + + + + + + + + + + + + + + + + + + + + +
    {{_i}}Name{{/i}}{{_i}}type{{/i}}{{_i}}default{{/i}}{{_i}}description{{/i}}
    {{_i}}parent{{/i}}{{_i}}selector{{/i}}false{{_i}}If selector then all collapsible elements under the specified parent will be closed when this collapsible item is shown. (similar to traditional accordion behavior){{/i}}
    {{_i}}toggle{{/i}}{{_i}}boolean{{/i}}true{{_i}}Toggles the collapsible element on invocation{{/i}}
    + + +

    {{_i}}Methods{{/i}}

    +

    .collapse({{_i}}options{{/i}})

    +

    {{_i}}Activates your content as a collapsible element. Accepts an optional options object.{{/i}}

     $('#myCollapsible').collapse({
       toggle: false
     })
    -

    .collapse('toggle')

    -

    {{_i}}Toggles a collapsible element to shown or hidden.{{/i}}

    -

    .collapse('show')

    -

    {{_i}}Shows a collapsible element.{{/i}}

    -

    .collapse('hide')

    -

    {{_i}}Hides a collapsible element.{{/i}}

    - -

    {{_i}}Events{{/i}}

    -

    {{_i}}Bootstrap's collapse class exposes a few events for hooking into collapse functionality.{{/i}}

    - - - - - - - - - - - - - - - - - - - - - - - - - -
    {{_i}}Event{{/i}}{{_i}}Description{{/i}}
    {{_i}}show{{/i}}{{_i}}This event fires immediately when the show instance method is called.{{/i}}
    {{_i}}shown{{/i}}{{_i}}This event is fired when a collapse element has been made visible to the user (will wait for css transitions to complete).{{/i}}
    {{_i}}hide{{/i}} - {{_i}}This event is fired immediately when the hide method has been called.{{/i}} -
    {{_i}}hidden{{/i}}{{_i}}This event is fired when a collapse element has been hidden from the user (will wait for css transitions to complete).{{/i}}
    +

    .collapse('toggle')

    +

    {{_i}}Toggles a collapsible element to shown or hidden.{{/i}}

    +

    .collapse('show')

    +

    {{_i}}Shows a collapsible element.{{/i}}

    +

    .collapse('hide')

    +

    {{_i}}Hides a collapsible element.{{/i}}

    + +

    {{_i}}Events{{/i}}

    +

    {{_i}}Bootstrap's collapse class exposes a few events for hooking into collapse functionality.{{/i}}

    + + + + + + + + + + + + + + + + + + + + + + + + + +
    {{_i}}Event{{/i}}{{_i}}Description{{/i}}
    {{_i}}show{{/i}}{{_i}}This event fires immediately when the show instance method is called.{{/i}}
    {{_i}}shown{{/i}}{{_i}}This event is fired when a collapse element has been made visible to the user (will wait for css transitions to complete).{{/i}}
    {{_i}}hide{{/i}} + {{_i}}This event is fired immediately when the hide method has been called.{{/i}} +
    {{_i}}hidden{{/i}}{{_i}}This event is fired when a collapse element has been hidden from the user (will wait for css transitions to complete).{{/i}}
     $('#myCollapsible').on('hidden', function () {
       // {{_i}}do something…{{/i}}
     })
    -
    - - - - - + + + + + - - - - -
    - - - -

    {{_i}}Example{{/i}}

    -

    {{_i}}A basic, easily extended plugin for quickly creating elegant typeaheads with any form text input.{{/i}}

    -
    - -
    {{! /example }} +

    .carousel('cycle')

    +

    {{_i}}Cycles through the carousel items from left to right.{{/i}}

    +

    .carousel('pause')

    +

    {{_i}}Stops the carousel from cycling through items.{{/i}}

    +

    .carousel(number)

    +

    {{_i}}Cycles the carousel to a particular frame (0 based, similar to an array).{{/i}}

    +

    .carousel('prev')

    +

    {{_i}}Cycles to the previous item.{{/i}}

    +

    .carousel('next')

    +

    {{_i}}Cycles to the next item.{{/i}}

    + +

    {{_i}}Events{{/i}}

    +

    {{_i}}Bootstrap's carousel class exposes two events for hooking into carousel functionality.{{/i}}

    + + + + + + + + + + + + + + + + + +
    {{_i}}Event{{/i}}{{_i}}Description{{/i}}
    {{_i}}slide{{/i}}{{_i}}This event fires immediately when the slide instance method is invoked.{{/i}}
    {{_i}}slid{{/i}}{{_i}}This event is fired when the carousel has completed its slide transition.{{/i}}
    +
    + + + + +
    + + + +

    {{_i}}Example{{/i}}

    +

    {{_i}}A basic, easily extended plugin for quickly creating elegant typeaheads with any form text input.{{/i}}

    +
    + +
    {{! /example }}
     <input type="text" data-provide="typeahead">
     
    -
    - - -

    {{_i}}Usage{{/i}}

    - -

    {{_i}}Via data attributes{{/i}}

    -

    {{_i}}Add data attributes to register an element with typeahead functionality as shown in the example above.{{/i}}

    +
    + + +

    {{_i}}Usage{{/i}}

    + +

    {{_i}}Via data attributes{{/i}}

    +

    {{_i}}Add data attributes to register an element with typeahead functionality as shown in the example above.{{/i}}

    + +

    {{_i}}Via javascript{{/i}}

    +

    {{_i}}Call the typeahead manually with:{{/i}}

    +
    $('.typeahead').typeahead()
    + +

    {{_i}}Options{{/i}}

    +

    {{_i}}Options can be passed via data attributes or javascript. For data attributes, append the option name to data-, as in data-source="".{{/i}}

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    {{_i}}Name{{/i}}{{_i}}type{{/i}}{{_i}}default{{/i}}{{_i}}description{{/i}}
    {{_i}}source{{/i}}{{_i}}array, function{{/i}}[ ]{{_i}}The data source to query against. May be an array of strings or a function. The function is passed two arguments, the query value in the input field and the process callback. The function may be used synchronously by returning the data source directly or asynchronously via the process callback's single argument.{{/i}}
    {{_i}}items{{/i}}{{_i}}number{{/i}}8{{_i}}The max number of items to display in the dropdown.{{/i}}
    {{_i}}matcher{{/i}}{{_i}}function{{/i}}{{_i}}case insensitive{{/i}}{{_i}}The method used to determine if a query matches an item. Accepts a single argument, the item against which to test the query. Access the current query with this.query. Return a boolean true if query is a match.{{/i}}
    {{_i}}sorter{{/i}}{{_i}}function{{/i}}{{_i}}exact match,
    case sensitive,
    case insensitive{{/i}}
    {{_i}}Method used to sort autocomplete results. Accepts a single argument items and has the scope of the typeahead instance. Reference the current query with this.query.{{/i}}
    {{_i}}highlighter{{/i}}{{_i}}function{{/i}}{{_i}}highlights all default matches{{/i}}{{_i}}Method used to highlight autocomplete results. Accepts a single argument item and has the scope of the typeahead instance. Should return html.{{/i}}
    + +

    {{_i}}Methods{{/i}}

    +

    .typeahead({{_i}}options{{/i}})

    +

    {{_i}}Initializes an input with a typeahead.{{/i}}

    +
    + + + + +
    + -

    {{_i}}Via javascript{{/i}}

    -

    {{_i}}Call the typeahead manually with:{{/i}}

    -
    $('.typeahead').typeahead()
    +

    {{_i}}...{{/i}}

    +

    {{_i}}...{{/i}}

    +
    -

    {{_i}}Options{{/i}}

    -

    {{_i}}Options can be passed via data attributes or javascript. For data attributes, append the option name to data-, as in data-source="".{{/i}}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {{_i}}Name{{/i}}{{_i}}type{{/i}}{{_i}}default{{/i}}{{_i}}description{{/i}}
    {{_i}}source{{/i}}{{_i}}array, function{{/i}}[ ]{{_i}}The data source to query against. May be an array of strings or a function. The function is passed two arguments, the query value in the input field and the process callback. The function may be used synchronously by returning the data source directly or asynchronously via the process callback's single argument.{{/i}}
    {{_i}}items{{/i}}{{_i}}number{{/i}}8{{_i}}The max number of items to display in the dropdown.{{/i}}
    {{_i}}matcher{{/i}}{{_i}}function{{/i}}{{_i}}case insensitive{{/i}}{{_i}}The method used to determine if a query matches an item. Accepts a single argument, the item against which to test the query. Access the current query with this.query. Return a boolean true if query is a match.{{/i}}
    {{_i}}sorter{{/i}}{{_i}}function{{/i}}{{_i}}exact match,
    case sensitive,
    case insensitive{{/i}}
    {{_i}}Method used to sort autocomplete results. Accepts a single argument items and has the scope of the typeahead instance. Reference the current query with this.query.{{/i}}
    {{_i}}highlighter{{/i}}{{_i}}function{{/i}}{{_i}}highlights all default matches{{/i}}{{_i}}Method used to highlight autocomplete results. Accepts a single argument item and has the scope of the typeahead instance. Should return html.{{/i}}
    - -

    {{_i}}Methods{{/i}}

    -

    .typeahead({{_i}}options{{/i}})

    -

    {{_i}}Initializes an input with a typeahead.{{/i}}

    -
    - - - - -
    - - -

    {{_i}}...{{/i}}

    -

    {{_i}}...{{/i}}

    -
    - -
    +
     ...
     
    - + + + {{! /span9 }} + {{! row}} - {{! /span9 }} -{{! row}} +{{! /container }} diff --git a/docs/templates/pages/scaffolding.mustache b/docs/templates/pages/scaffolding.mustache index 05e1c4e2a..86806bb56 100644 --- a/docs/templates/pages/scaffolding.mustache +++ b/docs/templates/pages/scaffolding.mustache @@ -1,38 +1,41 @@
    -

    {{_i}}Scaffolding{{/i}}

    -

    {{_i}}Bootstrap is built on a responsive 12-column grid. We've also included fixed- and fluid-width layouts based on that system.{{/i}}

    +
    +

    {{_i}}Scaffolding{{/i}}

    +

    {{_i}}Bootstrap is built on a responsive 12-column grid and includes fixed- and fluid-width layouts.{{/i}}

    +
    +
    - -
    - -
    + +
    + +
    - -
    - -

    {{_i}}Requires HTML5 doctype{{/i}}

    -

    {{_i}}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.{{/i}}

    + +
    + + +

    {{_i}}Requires HTML5 doctype{{/i}}

    +

    {{_i}}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.{{/i}}

     <!DOCTYPE html>
     <html lang="en">
    @@ -40,84 +43,84 @@
     </html>
     
    -

    {{_i}}Typography and links{{/i}}

    -

    {{_i}}Bootstrap sets basic global display, typography, and link styles. Specifically, we:{{/i}}

    -
      -
    • {{_i}}Remove margin on the body{{/i}}
    • -
    • {{_i}}Set background-color: white; on the body{{/i}}
    • -
    • {{_i}}Use the @baseFontFamily, @baseFontSize, and @baseLineHeight attributes as our typographyic base{{/i}}
    • -
    • {{_i}}Set the global link color via @linkColor and apply link underlines only on :hover{{/i}}
    • -
    -

    {{_i}}These styles can be found within scaffolding.less.{{/i}}

    - -

    {{_i}}Reset via Normalize{{/i}}

    -

    {{_i}}With Bootstrap 2, the old reset block has been dropped in favor of Normalize.css, a project by Nicolas Gallagher that also powers the HTML5 Boilerplate. While we use much of Normalize within our reset.less, we have removed some elements specifically for Bootstrap.{{/i}}

    +

    {{_i}}Typography and links{{/i}}

    +

    {{_i}}Bootstrap sets basic global display, typography, and link styles. Specifically, we:{{/i}}

    +
      +
    • {{_i}}Remove margin on the body{{/i}}
    • +
    • {{_i}}Set background-color: white; on the body{{/i}}
    • +
    • {{_i}}Use the @baseFontFamily, @baseFontSize, and @baseLineHeight attributes as our typographyic base{{/i}}
    • +
    • {{_i}}Set the global link color via @linkColor and apply link underlines only on :hover{{/i}}
    • +
    +

    {{_i}}These styles can be found within scaffolding.less.{{/i}}

    -
    +

    {{_i}}Reset via Normalize{{/i}}

    +

    {{_i}}With Bootstrap 2, the old reset block has been dropped in favor of Normalize.css, a project by Nicolas Gallagher that also powers the HTML5 Boilerplate. While we use much of Normalize within our reset.less, we have removed some elements specifically for Bootstrap.{{/i}}

    +
    - -
    - -

    {{_i}}Live grid example{{/i}}

    -

    {{_i}}The default Bootstrap grid system utilizes 12 columns, making for a 940px wide container without responsive features enabled. With the responsive CSS file added, the grid adapts to be 724px and 1170px wide depending on your viewport. Below 767px viewports, the columns become fluid and stack vertically.{{/i}}

    -
    -
    -
    1
    -
    1
    -
    1
    -
    1
    -
    1
    -
    1
    -
    1
    -
    1
    -
    1
    -
    -
    -
    2
    -
    3
    -
    4
    + +
    + -
    -
    4
    -
    5
    -
    -
    -
    9
    + +

    {{_i}}Live grid example{{/i}}

    +

    {{_i}}The default Bootstrap grid system utilizes 12 columns, making for a 940px wide container without responsive features enabled. With the responsive CSS file added, the grid adapts to be 724px and 1170px wide depending on your viewport. Below 767px viewports, the columns become fluid and stack vertically.{{/i}}

    +
    +
    +
    1
    +
    1
    +
    1
    +
    1
    +
    1
    +
    1
    +
    1
    +
    1
    +
    1
    +
    +
    +
    2
    +
    3
    +
    4
    +
    +
    +
    4
    +
    5
    +
    +
    +
    9
    +
    -
    -

    {{_i}}Basic grid HTML{{/i}}

    -

    {{_i}}For a simple two column layout, create a .row and add the appropriate number of .span* columns. As this is a 12-column grid, each .span* spans a number of those 12 columns, and should always add up to 12 for each row.{{/i}}

    +

    {{_i}}Basic grid HTML{{/i}}

    +

    {{_i}}For a simple two column layout, create a .row and add the appropriate number of .span* columns. As this is a 12-column grid, each .span* spans a number of those 12 columns, and should always add up to 12 for each row.{{/i}}

     <div class="row">
       <div class="span4">...</div>
       <div class="span8">...</div>
     </div>
     
    -

    {{_i}}Given this example, we have .span4 and .span8, making for 12 total columns and a complete row.{{/i}}

    - -

    {{_i}}Offsetting columns{{/i}}

    -

    {{_i}}Move columns to the left using .offset* classes. Each class increases the left margin of a column by a whole column. For example, .offset4 moves .span4 over four columns.{{/i}}

    -
    -
    -
    4
    -
    3 offset 2
    -
    -
    -
    3 offset 1
    -
    3 offset 2
    -
    -
    -
    6 offset 3
    -
    -
    +

    {{_i}}Given this example, we have .span4 and .span8, making for 12 total columns and a complete row.{{/i}}

    + +

    {{_i}}Offsetting columns{{/i}}

    +

    {{_i}}Move columns to the left using .offset* classes. Each class increases the left margin of a column by a whole column. For example, .offset4 moves .span4 over four columns.{{/i}}

    +
    +
    +
    4
    +
    3 offset 2
    +
    +
    +
    3 offset 1
    +
    3 offset 2
    +
    +
    +
    6 offset 3
    +
    +
     <div class="row">
       <div class="span4">...</div>
    @@ -125,23 +128,23 @@
     </div>
     
    -

    {{_i}}Nesting columns{{/i}}

    -

    {{_i}}To nest your content with the default grid, add a new .row and set of .span* columns within an existing .span* column. Nested rows should include a set of columns that add up to the number of columns of its parent.{{/i}}

    -

    {{_i}}Example{{/i}}

    -

    {{_i}}Here two nested .span4 columns are placed within a .span8.{{/i}}

    -
    -
    - {{_i}}Level 1 of column{{/i}} -
    -
    - {{_i}}Level 2{{/i}} -
    -
    - {{_i}}Level 2{{/i}} +

    {{_i}}Nesting columns{{/i}}

    +

    {{_i}}To nest your content with the default grid, add a new .row and set of .span* columns within an existing .span* column. Nested rows should include a set of columns that add up to the number of columns of its parent.{{/i}}

    +

    {{_i}}Example{{/i}}

    +

    {{_i}}Here two nested .span4 columns are placed within a .span8.{{/i}}

    +
    +
    + {{_i}}Level 1 of column{{/i}} +
    +
    + {{_i}}Level 2{{/i}} +
    +
    + {{_i}}Level 2{{/i}} +
    -
     <div class="row">
       <div class="span10">
    @@ -153,54 +156,54 @@
       </div>
     </div>
     
    -
    - +
    - -
    - -

    {{_i}}Live fluid grid example{{/i}}

    -

    {{_i}}The fluid grid system uses percents instead of pixels for column widths. It has the same responsive capabilities as our fixed grid system, ensuring proper proportions for key screen resolutions and devices.{{/i}}

    -
    -
    -
    1
    -
    1
    -
    1
    -
    1
    -
    1
    -
    1
    -
    1
    -
    1
    -
    1
    -
    1
    -
    1
    -
    1
    -
    -
    -
    4
    -
    4
    -
    4
    -
    -
    -
    4
    -
    8
    -
    -
    -
    6
    -
    6
    + +
    + -
    -
    12
    + +

    {{_i}}Live fluid grid example{{/i}}

    +

    {{_i}}The fluid grid system uses percents instead of pixels for column widths. It has the same responsive capabilities as our fixed grid system, ensuring proper proportions for key screen resolutions and devices.{{/i}}

    +
    +
    +
    1
    +
    1
    +
    1
    +
    1
    +
    1
    +
    1
    +
    1
    +
    1
    +
    1
    +
    1
    +
    1
    +
    1
    +
    +
    +
    4
    +
    4
    +
    4
    +
    +
    +
    4
    +
    8
    +
    +
    +
    6
    +
    6
    +
    +
    +
    12
    +
    -
    -

    {{_i}}Basic fluid grid HTML{{/i}}

    -

    {{_i}}Make any row "fluid" by changing .row to .row-fluid. The column classes stay the exact same, making it easy to flip between fixed and fluid grids.{{/i}}

    +

    {{_i}}Basic fluid grid HTML{{/i}}

    +

    {{_i}}Make any row "fluid" by changing .row to .row-fluid. The column classes stay the exact same, making it easy to flip between fixed and fluid grids.{{/i}}

     <div class="row-fluid">
       <div class="span4">...</div>
    @@ -208,21 +211,21 @@
     </div>
     
    -

    {{_i}}Fluid offsetting{{/i}}

    -

    {{_i}}Operates the same way as the fixed grid system offsetting: add .offset* to any column to offset by that many columns.{{/i}}

    -
    -
    -
    4
    -
    4 offset 4
    -
    -
    -
    3 offset 3
    -
    3 offset 3
    -
    -
    -
    6 offset 6
    -
    -
    +

    {{_i}}Fluid offsetting{{/i}}

    +

    {{_i}}Operates the same way as the fixed grid system offsetting: add .offset* to any column to offset by that many columns.{{/i}}

    +
    +
    +
    4
    +
    4 offset 4
    +
    +
    +
    3 offset 3
    +
    3 offset 3
    +
    +
    +
    6 offset 6
    +
    +
     <div class="row-fluid">
       <div class="span4">...</div>
    @@ -230,21 +233,21 @@
     </div>
     
    -

    {{_i}}Fluid nesting{{/i}}

    -

    {{_i}}Nesting with fluid grids is a bit different: the number of nested columns should not match the parent's number of columns. Instead, each level of nested columns are reset because each row takes up 100% of the parent column.{{/i}}

    -
    -
    - {{_i}}Fluid 12{{/i}} -
    -
    - {{_i}}Fluid 6{{/i}} -
    -
    - {{_i}}Fluid 6{{/i}} +

    {{_i}}Fluid nesting{{/i}}

    +

    {{_i}}Nesting with fluid grids is a bit different: the number of nested columns should not match the parent's number of columns. Instead, each level of nested columns are reset because each row takes up 100% of the parent column.{{/i}}

    +
    +
    + {{_i}}Fluid 12{{/i}} +
    +
    + {{_i}}Fluid 6{{/i}} +
    +
    + {{_i}}Fluid 6{{/i}} +
    -
     <div class="row-fluid">
       <div class="span12">
    @@ -257,78 +260,23 @@
     </div>
     
    -
    - - - - -
    - - -

    {{_i}}Variables in LESS{{/i}}

    -

    {{_i}}The default grid is built on a few variables for easy customization via LESS. All variables can be found in variables.less.{{/i}}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {{_i}}Variable{{/i}}{{_i}}Default value{{/i}}{{_i}}Description{{/i}}
    @gridColumns12{{_i}}Number of columns{{/i}}
    @gridColumnWidth60px{{_i}}Width of each column{{/i}}
    @gridGutterWidth20px{{_i}}Negative space between columns{{/i}}
    @fluidGridColumnWidth6.382978723%{{_i}}Width of each fluid column{{/i}}
    @fluidGridGutterWidth2.127659574%{{_i}}Negative space between fluid columns{{/i}}
    - -

    {{_i}}How to customize{{/i}}

    -

    {{_i}}Modifying the grid means changing the three @grid* variables and recompiling Bootstrap. Change the grid variables in variables.less and use one of the four ways documented to recompile. If you're adding more columns, be sure to add the CSS for those in grid.less.{{/i}}

    - -

    {{_i}}Staying responsive{{/i}}

    -

    {{_i}}Customization of the grid only works at the default level, the 940px grid. To maintain the responsive aspects of Bootstrap, you'll also have to manually customize the grids in responsive.less until a future update improves this.{{/i}}

    - -
    - - - - -
    - - -

    {{_i}}Fixed layout{{/i}}

    -

    {{_i}}Provides a common fixed-width (and optionally responsive) layout with only <div class="container"> required.{{/i}}

    -
    -
    -
    +
    + + + + + +
    + + +

    {{_i}}Fixed layout{{/i}}

    +

    {{_i}}Provides a common fixed-width (and optionally responsive) layout with only <div class="container"> required.{{/i}}

    +
    +
    +
     <body>
       <div class="container">
    @@ -337,12 +285,12 @@
     </body>
     
    -

    {{_i}}Fluid layout{{/i}}

    -

    {{_i}}Create a fluid, two-column page with <div class="container-fluid">—great for applications and docs.{{/i}}

    -
    -
    -
    -
    +

    {{_i}}Fluid layout{{/i}}

    +

    {{_i}}Create a fluid, two-column page with <div class="container-fluid">—great for applications and docs.{{/i}}

    +
    +
    +
    +
     <div class="container-fluid">
       <div class="row-fluid">
    @@ -355,81 +303,81 @@
       </div>
     </div>
     
    -
    +
    - -
    - + +
    + - {{! Enabling }} -

    {{_i}}Enabling responsive features{{/i}}

    -

    {{_i}}Turn on responsive CSS in your project by including the proper meta tag and additional stylesheet within the <head> of your document. If you've compiled Bootstrap from the Customize page, you need only include the meta tag.{{/i}}

    + {{! Enabling }} +

    {{_i}}Enabling responsive features{{/i}}

    +

    {{_i}}Turn on responsive CSS in your project by including the proper meta tag and additional stylesheet within the <head> of your document. If you've compiled Bootstrap from the Customize page, you need only include the meta tag.{{/i}}

     <meta name="viewport" content="width=device-width, initial-scale=1.0">
     <link href="assets/css/bootstrap-responsive.css" rel="stylesheet">
     
    -

    {{_i}}Heads up!{{/i}} {{_i}} Bootstrap doesn't include responsive features by default at this time as not everything needs to be responsive. Instead of encouraging developers to remove this feature, we figure it best to enable it as needed.{{/i}}

    - - {{! About }} -

    {{_i}}About responsive Bootstrap{{/i}}

    - Responsive devices -

    {{_i}}Media queries allow for custom CSS based on a number of conditions—ratios, widths, display type, etc—but usually focuses around min-width and max-width.{{/i}}

    -
      -
    • {{_i}}Modify the width of column in our grid{{/i}}
    • -
    • {{_i}}Stack elements instead of float wherever necessary{{/i}}
    • -
    • {{_i}}Resize headings and text to be more appropriate for devices{{/i}}
    • -
    -

    {{_i}}Use media queries responsibly and only as a start to your mobile audiences. For larger projects, do consider dedicated code bases and not layers of media queries.{{/i}}

    - - {{! Supported }} -

    {{_i}}Supported devices{{/i}}

    -

    {{_i}}Bootstrap supports a handful of media queries in a single file to help make your projects more appropriate on different devices and screen resolutions. Here's what's included:{{/i}}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {{_i}}Label{{/i}}{{_i}}Layout width{{/i}}{{_i}}Column width{{/i}}{{_i}}Gutter width{{/i}}
    {{_i}}Phones{{/i}}480px and below{{_i}}Fluid columns, no fixed widths{{/i}}
    {{_i}}Phones to tablets{{/i}}767px and below{{_i}}Fluid columns, no fixed widths{{/i}}
    {{_i}}Portrait tablets{{/i}}768px and above42px20px
    {{_i}}Default{{/i}}980px and up60px20px
    {{_i}}Large display{{/i}}1200px and up70px30px
    +

    {{_i}}Heads up!{{/i}} {{_i}} Bootstrap doesn't include responsive features by default at this time as not everything needs to be responsive. Instead of encouraging developers to remove this feature, we figure it best to enable it as needed.{{/i}}

    + + {{! About }} +

    {{_i}}About responsive Bootstrap{{/i}}

    + Responsive devices +

    {{_i}}Media queries allow for custom CSS based on a number of conditions—ratios, widths, display type, etc—but usually focuses around min-width and max-width.{{/i}}

    +
      +
    • {{_i}}Modify the width of column in our grid{{/i}}
    • +
    • {{_i}}Stack elements instead of float wherever necessary{{/i}}
    • +
    • {{_i}}Resize headings and text to be more appropriate for devices{{/i}}
    • +
    +

    {{_i}}Use media queries responsibly and only as a start to your mobile audiences. For larger projects, do consider dedicated code bases and not layers of media queries.{{/i}}

    + + {{! Supported }} +

    {{_i}}Supported devices{{/i}}

    +

    {{_i}}Bootstrap supports a handful of media queries in a single file to help make your projects more appropriate on different devices and screen resolutions. Here's what's included:{{/i}}

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    {{_i}}Label{{/i}}{{_i}}Layout width{{/i}}{{_i}}Column width{{/i}}{{_i}}Gutter width{{/i}}
    {{_i}}Phones{{/i}}480px and below{{_i}}Fluid columns, no fixed widths{{/i}}
    {{_i}}Phones to tablets{{/i}}767px and below{{_i}}Fluid columns, no fixed widths{{/i}}
    {{_i}}Portrait tablets{{/i}}768px and above42px20px
    {{_i}}Default{{/i}}980px and up60px20px
    {{_i}}Large display{{/i}}1200px and up70px30px
     /* {{_i}}Landscape phones and down{{/i}} */
     @media (max-width: 480px) { ... }
    @@ -445,81 +393,83 @@
     
    - {{! Responsive utility classes }} -

    {{_i}}Responsive utility classes{{/i}}

    -

    {{_i}}For faster mobile-friendly development, use these utility classes for showing and hiding content by device. Below is a table of the available classes and their effect on a given media query layout (labeled by device). They can be found in responsive.less.{{/i}}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {{_i}}Class{{/i}}{{_i}}Phones 767px and below{{/i}}{{_i}}Tablets 979px to 768px{{/i}}{{_i}}Desktops Default{{/i}}
    .visible-phone{{_i}}Visible{{/i}}
    .visible-tablet{{_i}}Visible{{/i}}
    .visible-desktop{{_i}}Visible{{/i}}
    .hidden-phone{{_i}}Visible{{/i}}{{_i}}Visible{{/i}}
    .hidden-tablet{{_i}}Visible{{/i}}{{_i}}Visible{{/i}}
    .hidden-desktop{{_i}}Visible{{/i}}{{_i}}Visible{{/i}}
    - -

    {{_i}}When to use{{/i}}

    -

    {{_i}}Use on a limited basis and avoid creating entirely different versions of the same site. Instead, use them to complement each device's presentation.{{/i}}

    - -

    {{_i}}Responsive utilities test case{{/i}}

    -

    {{_i}}Resize your browser or load on different devices to test the above classes.{{/i}}

    -

    {{_i}}Visible on...{{/i}}

    -

    {{_i}}Green checkmarks indicate that class is visible in your current viewport.{{/i}}

    -
      -
    • {{_i}}Phone{{/i}}✔ {{_i}}Phone{{/i}}
    • -
    • {{_i}}Tablet{{/i}}✔ {{_i}}Tablet{{/i}}
    • -
    • {{_i}}Desktop{{/i}}✔ {{_i}}Desktop{{/i}}
    • -
    -

    {{_i}}Hidden on...{{/i}}

    -

    {{_i}}Here, green checkmarks indicate that class is hidden in your current viewport.{{/i}}

    -
      -
    • {{_i}}Phone{{/i}}✔ {{_i}}Phone{{/i}}
    • -
    • {{_i}}Tablet{{/i}}✔ {{_i}}Tablet{{/i}}
    • -
    • {{_i}}Desktop{{/i}}✔ {{_i}}Desktop{{/i}}
    • -
    - -
    - - - -
    {{! /span9 }} -
    {{! row}} + {{! Responsive utility classes }} +

    {{_i}}Responsive utility classes{{/i}}

    +

    {{_i}}For faster mobile-friendly development, use these utility classes for showing and hiding content by device. Below is a table of the available classes and their effect on a given media query layout (labeled by device). They can be found in responsive.less.{{/i}}

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    {{_i}}Class{{/i}}{{_i}}Phones 767px and below{{/i}}{{_i}}Tablets 979px to 768px{{/i}}{{_i}}Desktops Default{{/i}}
    .visible-phone{{_i}}Visible{{/i}}
    .visible-tablet{{_i}}Visible{{/i}}
    .visible-desktop{{_i}}Visible{{/i}}
    .hidden-phone{{_i}}Visible{{/i}}{{_i}}Visible{{/i}}
    .hidden-tablet{{_i}}Visible{{/i}}{{_i}}Visible{{/i}}
    .hidden-desktop{{_i}}Visible{{/i}}{{_i}}Visible{{/i}}
    + +

    {{_i}}When to use{{/i}}

    +

    {{_i}}Use on a limited basis and avoid creating entirely different versions of the same site. Instead, use them to complement each device's presentation.{{/i}}

    + +

    {{_i}}Responsive utilities test case{{/i}}

    +

    {{_i}}Resize your browser or load on different devices to test the above classes.{{/i}}

    +

    {{_i}}Visible on...{{/i}}

    +

    {{_i}}Green checkmarks indicate that class is visible in your current viewport.{{/i}}

    +
      +
    • {{_i}}Phone{{/i}}✔ {{_i}}Phone{{/i}}
    • +
    • {{_i}}Tablet{{/i}}✔ {{_i}}Tablet{{/i}}
    • +
    • {{_i}}Desktop{{/i}}✔ {{_i}}Desktop{{/i}}
    • +
    +

    {{_i}}Hidden on...{{/i}}

    +

    {{_i}}Here, green checkmarks indicate that class is hidden in your current viewport.{{/i}}

    +
      +
    • {{_i}}Phone{{/i}}✔ {{_i}}Phone{{/i}}
    • +
    • {{_i}}Tablet{{/i}}✔ {{_i}}Tablet{{/i}}
    • +
    • {{_i}}Desktop{{/i}}✔ {{_i}}Desktop{{/i}}
    • +
    + + + + + +
    {{! /span9 }} +
    {{! row}} + +
    {{! /container }} -- cgit v1.2.3 From 9343e1e933c1a38ec4cc58024b01edda631863b0 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 12 Jul 2012 21:38:18 -0700 Subject: remove getting started link from home, add to navbar, overhaul getting started docs --- docs/templates/layout.mustache | 3 + docs/templates/pages/getting-started.mustache | 291 ++++++++++++++------------ docs/templates/pages/index.mustache | 1 - 3 files changed, 160 insertions(+), 135 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/layout.mustache b/docs/templates/layout.mustache index cbfae7f26..6ba72e841 100644 --- a/docs/templates/layout.mustache +++ b/docs/templates/layout.mustache @@ -57,6 +57,9 @@
  • {{_i}}Home{{/i}}
  • +
  • + {{_i}}Get started{{/i}} +
  • {{_i}}Scaffolding{{/i}}
  • diff --git a/docs/templates/pages/getting-started.mustache b/docs/templates/pages/getting-started.mustache index c6a03ec0a..46dccbd58 100644 --- a/docs/templates/pages/getting-started.mustache +++ b/docs/templates/pages/getting-started.mustache @@ -1,147 +1,170 @@ - -
    -

    {{_i}}Getting started{{/i}}

    -

    {{_i}}Overview of the project, it's contents, and how to get started with a simple template.{{/i}}

    -
    +

    {{_i}}Getting started{{/i}}

    +

    {{_i}}Overview of the project, it's contents, and how to get started with a simple template.{{/i}}

    +
    -
    - -
    - - -
    - -

    {{_i}}Before getting started, you need the following:{{/i}}

    -
      -
    • {{_i}}An unzipped copy of the latest version of Bootstrap (which includes all CSS, JavaScript, and images).{{/i}}
    • -
    • {{_i}}An editor of your choice for writing code (I recommend Sublime Text 2).{{/i}}
    • -
    • {{_i}}Some working knowledge of HTML and CSS.{{/i}}
    • -
    -

    {{_i}}When ready, proceed to the next section, File structure.{{/i}}

    -
    - - - -
    - -

    {{_i}}Once unzipped, the structure of Bootstrap’s files looks like this:{{/i}}

    -
      -
    • bootstrap/ -
        -
      • css/ -
          -
        • bootstrap.css
        • -
        • bootstrap.min.css
        • -
        -
      • -
      • js/ -
          -
        • bootstrap.js
        • -
        • bootstrap.min.js
        • -
        -
      • -
      • img/ -
          -
        • glyphicons-halflings.png
        • -
        • glyphicons-halflings-white.png
        • -
        -
      • -
      • README.md
      • -
      -
    • + + +
      +
      + -

      {{_i}}This is the most basic form of Bootstrap: compiled files for quick drop-in usage in nearly any web project. We provide compiled CSS and JS (bootstrap.*), as well as compiled and minified CSS and JS (bootstrap.min.*). The image files are compressed using ImageOptim, a Mac app for compressing PNGs.{{/i}}

      -
    +
    +
    -
    - -

    {{_i}}Bootstrap comes equipped with CSS for all sorts of things, but they can be summarized with a handful of categories visible at the top of the Bootstrap documentation:{{/i}}

    -
      -
    • Scaffolding: Global styles for the body to reset type and background, link styles, grid system, and two simple layouts.
    • -
    • Base CSS: Styles for common HTML elements like typography, code, tables, forms, and buttons. Also includes Glyphicons, a great little icon set.
    • -
    • Components: Basic styles for common interface components like tabs and pills, navbar, page headers, and more.
    • -
    • Javascript plugins: Similar to the Components section, these Javascript plugins are interactive components for things like tooltips, popovers, modals, and more.
    • -
    -

    Together, the Components and Javascript plugins sections provide the following interface elements:

    -
      -
    • Button groups
    • -
    • Button dropdowns
    • -
    • Navigational tabs, pills, and lists
    • -
    • Navbar
    • -
    • Labels
    • -
    • Badges
    • -
    • Page headers and hero unit
    • -
    • Thumbnails
    • -
    • Alerts
    • -
    • Progress bars
    • -
    • Modals
    • -
    • Dropdowns
    • -
    • Tooltips
    • -
    • Popovers
    • -
    • Accordion
    • -
    • Carousel
    • -
    • Typeahead
    • -
    -

    {{_i}}In future guides, we may walk through these components individually in more detail. Until then, look for each of these in the documentation for information on how to utilize and customize them.{{/i}}

    -
    - - - -
    - -

    {{_i}}Now that we’ve got the basic information on Bootstrap out of the way, we can focus on getting started. To do that, we’ll utilize a basic HTML template that includes everything we’ve mentioned in the File structure.{{/i}}

    -

    {{_i}}As previously mentioned, we won’t cover the basics of writing HTML and CSS here. Instead, we’ll leapfrog through various points in web development complexity to give you the broadest and most complete overview.{{/i}}

    -

    {{_i}}Now, here’s a look at a typical HTML file:{{/i}}

    -
    -  <html>
    -    <head>
    -      <title>Bootstrap 101 Template</title>
    -    </head>
    -    <body>
    -      <h1>Hello, world!</h1>
    -    </body>
    -  </html>
    -  
    -

    {{_i}}To make this a Bootstrapped template, just include the appropriate CSS and JS files:{{/i}}

    -
    -  <html>
    -    <head>
    -      <title>Bootstrap 101 Template</title>
    -      <!-- Bootstrap -->
    -      <link href="css/bootstrap.min.css" rel="stylesheet">
    -      <script src="js/bootstrap.min.js"></script>
    -    </head>
    -    <body>
    -      <h1>Hello, world!</h1>
    -    </body>
    -  </html>
    -  
    -

    {{_i}}And you’re set. With those two files added, you can begin to write Bootstrap-friendly HTML, CSS, and JS to build any site or application you like. Head to the Bootstrap docs for information, examples, and even code snippets for the Bootstrap grid system, base HTML styles, components, and even responsive features.{{/i}}

    -
    + +
    + +

    {{_i}}Before downloading, be sure to have a code editor (we recommend Sublime Text 2) and some working knowledge of HTML and CSS. We won't walk through the source files here, but they are available for download. We'll focus on getting started with our the compiled Bootstrap files.{{/i}}

    +
    +
    +

    Download compiled

    +

    Fastest way to get started: get the compiled and minified versions of our CSS, JS, and images. No docs or original source files.

    + Download Bootstrap +
    +
    +

    Download source

    +

    Get the original files for all CSS and Javasript, along with a local copy of the docs by downloading the latest version directly from GitHub.

    + Download Bootstrap source +
    +
    +
    -
    -
    \ No newline at end of file + + +
    + +

    {{_i}}Once downloaded, unzip the compressed folder to see the structure of (the compiled) Bootstrap. You'll see something like this:{{/i}}

    +
    +  bootstrap/
    +  ├── css/
    +  │   ├── bootstrap.css
    +  │   ├── bootstrap.min.css
    +  ├── js/
    +  │   ├── bootstrap.js
    +  │   ├── bootstrap.min.js
    +  ├── img/
    +  │   ├── glyphicons-halflings.png
    +  │   ├── glyphicons-halflings-white.png
    +  └── README.md
    +
    +

    {{_i}}This is the most basic form of Bootstrap: compiled files for quick drop-in usage in nearly any web project. We provide compiled CSS and JS (bootstrap.*), as well as compiled and minified CSS and JS (bootstrap.min.*). The image files are compressed using ImageOptim, a Mac app for compressing PNGs.{{/i}}

    +
    + + + + +
    + +

    {{_i}}Bootstrap comes equipped with HTML, CSS, and JS for all sorts of things, but they can be summarized with a handful of categories visible at the top of the Bootstrap documentation.{{/i}}

    + +

    Scaffolding

    +

    Global styles for the body to reset type and background, link styles, grid system, and two simple layouts.

    + +

    Base CSS

    +

    Styles for common HTML elements like typography, code, tables, forms, and buttons. Also includes Glyphicons, a great little icon set.

    + +

    Components

    +

    Basic styles for common interface components like tabs and pills, navbar, alerts, page headers, and more.

    + +

    Javascript plugins

    +

    Similar to Components, these Javascript plugins are interactive components for things like tooltips, popovers, modals, and more.

    + +
    + +

    List of components

    +

    Together, the Components and Javascript plugins sections provide the following interface elements:

    +
      +
    • Button groups
    • +
    • Button dropdowns
    • +
    • Navigational tabs, pills, and lists
    • +
    • Navbar
    • +
    • Labels
    • +
    • Badges
    • +
    • Page headers and hero unit
    • +
    • Thumbnails
    • +
    • Alerts
    • +
    • Progress bars
    • +
    • Modals
    • +
    • Dropdowns
    • +
    • Tooltips
    • +
    • Popovers
    • +
    • Accordion
    • +
    • Carousel
    • +
    • Typeahead
    • +
    +

    {{_i}}In future guides, we may walk through these components individually in more detail. Until then, look for each of these in the documentation for information on how to utilize and customize them.{{/i}}

    +
    + + + + +
    + +

    {{_i}}With a brief intro into the contents out of the way, we can focus putting Bootstrap to use. To do that, we'll utilize a basic HTML template that includes everything we mentioned in the File structure.{{/i}}

    +

    {{_i}}Now, here's a look at a typical HTML file:{{/i}}

    +
    +    <html>
    +      <head>
    +        <title>Bootstrap 101 Template</title>
    +      </head>
    +      <body>
    +        <h1>Hello, world!</h1>
    +      </body>
    +    </html>
    +    
    +

    {{_i}}To make this a Bootstrapped template, just include the appropriate CSS and JS files:{{/i}}

    +
    +    <html>
    +      <head>
    +        <title>Bootstrap 101 Template</title>
    +        <!-- Bootstrap -->
    +        <link href="css/bootstrap.min.css" rel="stylesheet">
    +        <script src="js/bootstrap.min.js"></script>
    +      </head>
    +      <body>
    +        <h1>Hello, world!</h1>
    +      </body>
    +    </html>
    +    
    +

    {{_i}}And you're set! With those two files added, you can begin to develop any site or application with Bootstrap.{{/i}}

    + +
    + +

    What next?

    +

    Head to the docs for information, examples, and code snippets, or take the next leap and customize Bootstrap for any upcoming project.

    + Visit the Bootstrap docs + Customize Bootstrap +
    + + + +
    {{! /span9 }} + {{! row}} + +{{! /container }} diff --git a/docs/templates/pages/index.mustache b/docs/templates/pages/index.mustache index 024307959..6919f8e21 100644 --- a/docs/templates/pages/index.mustache +++ b/docs/templates/pages/index.mustache @@ -4,7 +4,6 @@

    Sleek, intuitive, and powerful front-end framework for faster and easier web development.

    {{_i}}Download Bootstrap{{/i}}

    -- cgit v1.2.3 From e20d2dfe9d1f43e164d8fdbef64f4041df70b762 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 15 Jul 2012 16:13:25 -0700 Subject: docs cleanup and blockquote cleanup for .pull-right option --- docs/templates/pages/base-css.mustache | 5 ++--- docs/templates/pages/scaffolding.mustache | 12 ++++++------ 2 files changed, 8 insertions(+), 9 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/base-css.mustache b/docs/templates/pages/base-css.mustache index 7e7106fb6..a630acfed 100644 --- a/docs/templates/pages/base-css.mustache +++ b/docs/templates/pages/base-css.mustache @@ -190,7 +190,7 @@

    {{_i}}Alternate displays{{/i}}

    -

    {{_i}}Use .pull-left and .pull-right classes for floated, right-aligned blockquote content.{{/i}}

    +

    {{_i}}Use .pull-right for a floated, right-aligned blockquote.{{/i}}

    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

    @@ -199,8 +199,7 @@
     <blockquote class="pull-right">
    -  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
    -  <small>{{_i}}Someone famous <cite title="Source Title">Source Title</cite>{{/i}}</small>
    +  ...
     </blockquote>
     
    diff --git a/docs/templates/pages/scaffolding.mustache b/docs/templates/pages/scaffolding.mustache index 86806bb56..4b9d4c5b2 100644 --- a/docs/templates/pages/scaffolding.mustache +++ b/docs/templates/pages/scaffolding.mustache @@ -97,7 +97,7 @@

    {{_i}}Basic grid HTML{{/i}}

    -

    {{_i}}For a simple two column layout, create a .row and add the appropriate number of .span* columns. As this is a 12-column grid, each .span* spans a number of those 12 columns, and should always add up to 12 for each row.{{/i}}

    +

    {{_i}}For a simple two column layout, create a .row and add the appropriate number of .span* columns. As this is a 12-column grid, each .span* 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).{{/i}}

     <div class="row">
       <div class="span4">...</div>
    @@ -136,10 +136,10 @@
                 
    {{_i}}Level 1 of column{{/i}}
    -
    +
    {{_i}}Level 2{{/i}}
    -
    +
    {{_i}}Level 2{{/i}}
    @@ -147,11 +147,11 @@
     <div class="row">
    -  <div class="span10">
    +  <div class="span9">
         {{_i}}Level 1 column{{/i}}
         <div class="row">
    -      <div class="span5">{{_i}}Level 2{{/i}}</div>
    -      <div class="span5">{{_i}}Level 2{{/i}}</div>
    +      <div class="span6">{{_i}}Level 2{{/i}}</div>
    +      <div class="span3">{{_i}}Level 2{{/i}}</div>
         </div>
       </div>
     </div>
    -- 
    cgit v1.2.3
    
    
    From 9581cbfe3240583d898b788452788e40878b912e Mon Sep 17 00:00:00 2001
    From: Ben Oakes 
    Date: Mon, 16 Jul 2012 09:29:49 -0400
    Subject: Two of the three apps are for Linux/Windows; adjust accordingly
    
    ---
     docs/templates/pages/extend.mustache | 4 ++--
     1 file changed, 2 insertions(+), 2 deletions(-)
    
    (limited to 'docs/templates')
    
    diff --git a/docs/templates/pages/extend.mustache b/docs/templates/pages/extend.mustache
    index aae99f765..bbebe8e75 100644
    --- a/docs/templates/pages/extend.mustache
    +++ b/docs/templates/pages/extend.mustache
    @@ -79,12 +79,12 @@
       

    {{_i}}The unofficial Mac app watches directories of .less files and compiles the code to local files after every save of a watched .less file.{{/i}}

    {{_i}}If you like, you can toggle preferences in the app for automatic minifying and which directory the compiled files end up in.{{/i}}

    -

    {{_i}}More Mac apps{{/i}}

    +

    {{_i}}More apps{{/i}}

    Crunch

    {{_i}}Crunch is a great looking LESS editor and compiler built on Adobe Air.{{/i}}

    CodeKit

    {{_i}}Created by the same guy as the unofficial Mac app, CodeKit is a Mac app that compiles LESS, SASS, Stylus, and CoffeeScript.{{/i}}

    Simpless

    -

    {{_i}}Mac, Linux, and PC app for drag and drop compiling of LESS files. Plus, the source code is on GitHub.{{/i}}

    +

    {{_i}}Mac, Linux, and Windows app for drag and drop compiling of LESS files. Plus, the source code is on GitHub.{{/i}}

    -- cgit v1.2.3 From 2ee9b2717bfd532e93eb6d4037ae7ca7a5436957 Mon Sep 17 00:00:00 2001 From: Jon Stevens Date: Mon, 16 Jul 2012 16:01:11 -0700 Subject: namespace the events for popover/tooltip so that they can be cleanly removed. issue #3880 --- docs/templates/pages/javascript.mustache | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'docs/templates') diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache index 81ef75209..49d065c32 100644 --- a/docs/templates/pages/javascript.mustache +++ b/docs/templates/pages/javascript.mustache @@ -754,6 +754,12 @@ $('a[data-toggle="tab"]').on('shown', function (e) {

    {{_i}}Object structure is: delay: { show: 500, hide: 100 }{{/i}}

    + + {{_i}}ns{{/i}} + {{_i}}string{{/i}} + '.tooltip' + {{_i}}jQuery event namespace{{/i}} +
    @@ -912,6 +918,12 @@ $('a[data-toggle="tab"]').on('shown', function (e) {

    {{_i}}Object structure is: delay: { show: 500, hide: 100 }{{/i}}

    + + {{_i}}ns{{/i}} + {{_i}}string{{/i}} + '.popover' + {{_i}}jQuery event namespace{{/i}} +
    -- cgit v1.2.3 From 6a663081a78b2810e7b3904949cfc5a91df81eff Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 17 Jul 2012 21:45:57 -0700 Subject: remove separate examples page, add to getting started page --- docs/templates/pages/examples.mustache | 31 ----------------- docs/templates/pages/getting-started.mustache | 50 +++++++++++++++++++++++++-- 2 files changed, 47 insertions(+), 34 deletions(-) delete mode 100644 docs/templates/pages/examples.mustache (limited to 'docs/templates') diff --git a/docs/templates/pages/examples.mustache b/docs/templates/pages/examples.mustache deleted file mode 100644 index e5c9143ef..000000000 --- a/docs/templates/pages/examples.mustache +++ /dev/null @@ -1,31 +0,0 @@ - -
    -

    {{_i}}Bootstrap examples{{/i}}

    -

    {{_i}}We've included a few basic examples as starting points for your work with Bootstrap. We encourage folks to iterate on these examples and not simply use them as an end result.{{/i}}

    -
    - - -
      -
    • - - - -

      {{_i}}Basic marketing site{{/i}}

      -

      {{_i}}Featuring a hero unit for a primary message and three supporting elements.{{/i}}

      -
    • -
    • - - - -

      {{_i}}Fluid layout{{/i}}

      -

      {{_i}}Uses our new responsive, fluid grid system to create a seamless liquid layout.{{/i}}

      -
    • -
    • - - - -

      {{_i}}Starter template{{/i}}

      -

      {{_i}}A barebones HTML document with all the Bootstrap CSS and javascript included.{{/i}}

      -
    • -
    diff --git a/docs/templates/pages/getting-started.mustache b/docs/templates/pages/getting-started.mustache index 486a0b79a..8a694d55e 100644 --- a/docs/templates/pages/getting-started.mustache +++ b/docs/templates/pages/getting-started.mustache @@ -17,6 +17,8 @@
  • {{_i}}File structure{{/i}}
  • {{_i}}What's included{{/i}}
  • {{_i}}HTML template{{/i}}
  • +
  • {{_i}}Examples{{/i}}
  • +
  • {{_i}}What next?{{/i}}
  • @@ -153,17 +155,59 @@ </html>

    {{_i}}And you're set! With those two files added, you can begin to develop any site or application with Bootstrap.{{/i}}

    + + + + + +
    + +

    {{_i}}Moving beyond the base template with a few basic examples as starting points for working with Bootstrap. We encourage folks to iterate on these examples and not simply use them as an end result.{{/i}}

    +
      +
    • + + + +

      {{_i}}Basic marketing site{{/i}}

      +

      {{_i}}Featuring a hero unit for a primary message and three supporting elements.{{/i}}

      +
    • +
    • + + + +

      {{_i}}Fluid layout{{/i}}

      +

      {{_i}}Uses our new responsive, fluid grid system to create a seamless liquid layout.{{/i}}

      +
    • +
    • + + + +

      {{_i}}Starter template{{/i}}

      +

      {{_i}}A barebones HTML document with all the Bootstrap CSS and javascript included.{{/i}}

      +
    • +
    +
    + + -
    -

    What next?

    + +
    +

    Head to the docs for information, examples, and code snippets, or take the next leap and customize Bootstrap for any upcoming project.

    - Visit the Bootstrap docs + Visit the Bootstrap docs Customize Bootstrap
    +
    {{! /span9 }}
    {{! row}} -- cgit v1.2.3 From 51c9fa1697d5df631fe37f1147d9265e89e5f4f6 Mon Sep 17 00:00:00 2001 From: Purwandi Date: Wed, 18 Jul 2012 12:19:02 +0700 Subject: Moved JS to bottom on extends page --- docs/templates/pages/extend.mustache | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/extend.mustache b/docs/templates/pages/extend.mustache index 508bd7e15..e32833b0e 100644 --- a/docs/templates/pages/extend.mustache +++ b/docs/templates/pages/extend.mustache @@ -132,10 +132,11 @@ <title>Bootstrap 101 Template</title> <!-- Bootstrap --> <link href="public/css/bootstrap.min.css" rel="stylesheet"> - <script src="public/js/bootstrap.min.js"></script> </head> <body> <h1>Hello, world!</h1> + <!-- Bootstrap --> + <script src="public/js/bootstrap.min.js"></script> </body> </html>
    @@ -148,13 +149,15 @@ <title>Bootstrap 101 Template</title> <!-- Bootstrap --> <link href="public/css/bootstrap.min.css" rel="stylesheet"> - <script src="public/js/bootstrap.min.js"></script> <!-- Project --> <link href="public/css/application.css" rel="stylesheet"> - <script src="public/js/application.js"></script> </head> <body> <h1>Hello, world!</h1> + <!-- Bootstrap --> + <script src="public/js/bootstrap.min.js"></script> + <!-- Project --> + <script src="public/js/application.js"></script> </body> </html> -- cgit v1.2.3 From aac3736eeaa1ff1eaf3a6a04502efd6d5b9e7e49 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 17 Jul 2012 23:32:52 -0700 Subject: fixes #3845: add .btn-link for transparent buttons styled as links --- docs/templates/pages/base-css.mustache | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'docs/templates') diff --git a/docs/templates/pages/base-css.mustache b/docs/templates/pages/base-css.mustache index c150521cc..481974591 100644 --- a/docs/templates/pages/base-css.mustache +++ b/docs/templates/pages/base-css.mustache @@ -1362,6 +1362,11 @@ btn btn-inverse {{_i}}Alternate dark gray button, not tied to a semantic action or use{{/i}} + + + btn btn-link + {{_i}}Deemphasize a button by making it look like a link while maintaining button behavior{{/i}} + -- cgit v1.2.3 From c8fa2600f23ce9cfcbf7d98582198824d7c000a5 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 17 Jul 2012 23:38:29 -0700 Subject: copy change --- docs/templates/pages/getting-started.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/getting-started.mustache b/docs/templates/pages/getting-started.mustache index 8a694d55e..e3f2c7ae7 100644 --- a/docs/templates/pages/getting-started.mustache +++ b/docs/templates/pages/getting-started.mustache @@ -165,7 +165,7 @@ -

    {{_i}}Moving beyond the base template with a few basic examples as starting points for working with Bootstrap. We encourage folks to iterate on these examples and not simply use them as an end result.{{/i}}

    +

    {{_i}}Move beyond the base template with a few example layouts. We encourage folks to iterate on these examples and not simply use them as an end result.{{/i}}

    diff --git a/docs/templates/pages/components.mustache b/docs/templates/pages/components.mustache index c21969d65..9b1e60521 100644 --- a/docs/templates/pages/components.mustache +++ b/docs/templates/pages/components.mustache @@ -42,7 +42,7 @@

    {{_i}}Example{{/i}}

    -

    {{_i}}An isolated (without dropdown toggle) dropdown menu example, designed to be used with the dropdown javascript plugin.{{/i}}

    +

    {{_i}}Toggleable, contextual menu for displaying lists of links. Made interactive with the dropdown javascript plugin.{{/i}}

    -
    - - -
    - -
    - - - - -
    - -

    {{_i}}Before downloading, be sure to have a code editor (we recommend Sublime Text 2) and some working knowledge of HTML and CSS. We won't walk through the source files here, but they are available for download. We'll focus on getting started with our the compiled Bootstrap files.{{/i}}

    - -
    -
    -

    Download compiled

    -

    Fastest way to get started: get the compiled and minified versions of our CSS, JS, and images. No docs or original source files.

    -

    Download Bootstrap

    +
    + +
    + + +
    + +
    + + + + +
    + -
    -

    Download source

    -

    Get the original files for all CSS and Javasript, along with a local copy of the docs by downloading the latest version directly from GitHub.

    -

    Download Bootstrap source

    +

    {{_i}}Before downloading, be sure to have a code editor (we recommend Sublime Text 2) and some working knowledge of HTML and CSS. We won't walk through the source files here, but they are available for download. We'll focus on getting started with our the compiled Bootstrap files.{{/i}}

    + +
    +
    +

    Download compiled

    +

    Fastest way to get started: get the compiled and minified versions of our CSS, JS, and images. No docs or original source files.

    +

    Download Bootstrap

    +
    +
    +

    Download source

    +

    Get the original files for all CSS and Javasript, along with a local copy of the docs by downloading the latest version directly from GitHub.

    +

    Download Bootstrap source

    +
    -
    -
    +
    - -
    - -

    {{_i}}Once downloaded, unzip the compressed folder to see the structure of (the compiled) Bootstrap. You'll see something like this:{{/i}}

    + +
    + +

    {{_i}}Once downloaded, unzip the compressed folder to see the structure of (the compiled) Bootstrap. You'll see something like this:{{/i}}

       bootstrap/
       ├── css/
    @@ -69,67 +72,67 @@
       │   ├── glyphicons-halflings-white.png
       └── README.md
     
    -

    {{_i}}This is the most basic form of Bootstrap: compiled files for quick drop-in usage in nearly any web project. We provide compiled CSS and JS (bootstrap.*), as well as compiled and minified CSS and JS (bootstrap.min.*). The image files are compressed using ImageOptim, a Mac app for compressing PNGs.{{/i}}

    -
    - - - - -
    - -

    {{_i}}Bootstrap comes equipped with HTML, CSS, and JS for all sorts of things, but they can be summarized with a handful of categories visible at the top of the Bootstrap documentation.{{/i}}

    - -

    Scaffolding

    -

    Global styles for the body to reset type and background, link styles, grid system, and two simple layouts.

    - -

    Base CSS

    -

    Styles for common HTML elements like typography, code, tables, forms, and buttons. Also includes Glyphicons, a great little icon set.

    - -

    Components

    -

    Basic styles for common interface components like tabs and pills, navbar, alerts, page headers, and more.

    - -

    Javascript plugins

    -

    Similar to Components, these Javascript plugins are interactive components for things like tooltips, popovers, modals, and more.

    - -
    - -

    List of components

    -

    Together, the Components and Javascript plugins sections provide the following interface elements:

    -
      -
    • Button groups
    • -
    • Button dropdowns
    • -
    • Navigational tabs, pills, and lists
    • -
    • Navbar
    • -
    • Labels
    • -
    • Badges
    • -
    • Page headers and hero unit
    • -
    • Thumbnails
    • -
    • Alerts
    • -
    • Progress bars
    • -
    • Modals
    • -
    • Dropdowns
    • -
    • Tooltips
    • -
    • Popovers
    • -
    • Accordion
    • -
    • Carousel
    • -
    • Typeahead
    • -
    -

    {{_i}}In future guides, we may walk through these components individually in more detail. Until then, look for each of these in the documentation for information on how to utilize and customize them.{{/i}}

    -
    +

    {{_i}}This is the most basic form of Bootstrap: compiled files for quick drop-in usage in nearly any web project. We provide compiled CSS and JS (bootstrap.*), as well as compiled and minified CSS and JS (bootstrap.min.*). The image files are compressed using ImageOptim, a Mac app for compressing PNGs.{{/i}}

    +
    - -
    - -

    {{_i}}With a brief intro into the contents out of the way, we can focus putting Bootstrap to use. To do that, we'll utilize a basic HTML template that includes everything we mentioned in the File structure.{{/i}}

    -

    {{_i}}Now, here's a look at a typical HTML file:{{/i}}

    + +
    + +

    {{_i}}Bootstrap comes equipped with HTML, CSS, and JS for all sorts of things, but they can be summarized with a handful of categories visible at the top of the Bootstrap documentation.{{/i}}

    + +

    Scaffolding

    +

    Global styles for the body to reset type and background, link styles, grid system, and two simple layouts.

    + +

    Base CSS

    +

    Styles for common HTML elements like typography, code, tables, forms, and buttons. Also includes Glyphicons, a great little icon set.

    + +

    Components

    +

    Basic styles for common interface components like tabs and pills, navbar, alerts, page headers, and more.

    + +

    Javascript plugins

    +

    Similar to Components, these Javascript plugins are interactive components for things like tooltips, popovers, modals, and more.

    + +
    + +

    List of components

    +

    Together, the Components and Javascript plugins sections provide the following interface elements:

    +
      +
    • Button groups
    • +
    • Button dropdowns
    • +
    • Navigational tabs, pills, and lists
    • +
    • Navbar
    • +
    • Labels
    • +
    • Badges
    • +
    • Page headers and hero unit
    • +
    • Thumbnails
    • +
    • Alerts
    • +
    • Progress bars
    • +
    • Modals
    • +
    • Dropdowns
    • +
    • Tooltips
    • +
    • Popovers
    • +
    • Accordion
    • +
    • Carousel
    • +
    • Typeahead
    • +
    +

    {{_i}}In future guides, we may walk through these components individually in more detail. Until then, look for each of these in the documentation for information on how to utilize and customize them.{{/i}}

    +
    + + + + +
    + +

    {{_i}}With a brief intro into the contents out of the way, we can focus putting Bootstrap to use. To do that, we'll utilize a basic HTML template that includes everything we mentioned in the File structure.{{/i}}

    +

    {{_i}}Now, here's a look at a typical HTML file:{{/i}}

     <html>
       <head>
    @@ -140,7 +143,7 @@
       </body>
     </html>
     
    -

    {{_i}}To make this a Bootstrapped template, just include the appropriate CSS and JS files:{{/i}}

    +

    {{_i}}To make this a Bootstrapped template, just include the appropriate CSS and JS files:{{/i}}

     <html>
       <head>
    @@ -154,61 +157,63 @@
       </body>
     </html>
     
    -

    {{_i}}And you're set! With those two files added, you can begin to develop any site or application with Bootstrap.{{/i}}

    -
    - - - - -
    - -

    {{_i}}Move beyond the base template with a few example layouts. We encourage folks to iterate on these examples and not simply use them as an end result.{{/i}}

    -
      -
    • - - - -

      {{_i}}Basic marketing site{{/i}}

      -

      {{_i}}Featuring a hero unit for a primary message and three supporting elements.{{/i}}

      -
    • -
    • - - - -

      {{_i}}Fluid layout{{/i}}

      -

      {{_i}}Uses our new responsive, fluid grid system to create a seamless liquid layout.{{/i}}

      -
    • -
    • - - - -

      {{_i}}Starter template{{/i}}

      -

      {{_i}}A barebones HTML document with all the Bootstrap CSS and javascript included.{{/i}}

      -
    • -
    -
    +

    {{_i}}And you're set! With those two files added, you can begin to develop any site or application with Bootstrap.{{/i}}

    +
    + +
    + +

    {{_i}}Move beyond the base template with a few example layouts. We encourage folks to iterate on these examples and not simply use them as an end result.{{/i}}

    +
      +
    • + + + +

      {{_i}}Basic marketing site{{/i}}

      +

      {{_i}}Featuring a hero unit for a primary message and three supporting elements.{{/i}}

      +
    • +
    • + + + +

      {{_i}}Fluid layout{{/i}}

      +

      {{_i}}Uses our new responsive, fluid grid system to create a seamless liquid layout.{{/i}}

      +
    • +
    • + + + +

      {{_i}}Starter template{{/i}}

      +

      {{_i}}A barebones HTML document with all the Bootstrap CSS and javascript included.{{/i}}

      +
    • +
    +
    + + + + + +
    + +

    Head to the docs for information, examples, and code snippets, or take the next leap and customize Bootstrap for any upcoming project.

    + Visit the Bootstrap docs + Customize Bootstrap +
    - -
    - -

    Head to the docs for information, examples, and code snippets, or take the next leap and customize Bootstrap for any upcoming project.

    - Visit the Bootstrap docs - Customize Bootstrap -
    +
    {{! /span9 }} +
    {{! row}} -
    {{! /span9 }} -
    {{! row}} + {{! /.container }} -{{! /container }} +{{! /.bs-docs-canvas }} diff --git a/docs/templates/pages/index.mustache b/docs/templates/pages/index.mustache index a943b09bf..acb3f4c6f 100644 --- a/docs/templates/pages/index.mustache +++ b/docs/templates/pages/index.mustache @@ -11,79 +11,83 @@ -
    -
    - +
    + +
    +
    + +
    -
    -
    +
    -
    +
    -

    {{_i}}Introducing Bootstrap.{{/i}}

    - +

    {{_i}}Introducing Bootstrap.{{/i}}

    + -
    -
    - -

    {{_i}}By nerds, for nerds.{{/i}}

    -

    {{_i}}Built at Twitter by @mdo and @fat, Bootstrap utilizes LESS CSS, is compiled via Node, and is managed through GitHub to help nerds do awesome stuff on the web.{{/i}}

    -
    -
    - -

    {{_i}}Made for everyone.{{/i}}

    -

    {{_i}}Bootstrap was made to not only look and behave great in the latest desktop browsers (as well as IE7!), but in tablet and smartphone browsers via responsive CSS as well.{{/i}}

    -
    -
    - -

    {{_i}}Packed with features.{{/i}}

    -

    {{_i}}A 12-column responsive grid, dozens of components, javascript plugins, typography, form controls, and even a web-based Customizer to make Bootstrap your own.{{/i}}

    +
    +
    + +

    {{_i}}By nerds, for nerds.{{/i}}

    +

    {{_i}}Built at Twitter by @mdo and @fat, Bootstrap utilizes LESS CSS, is compiled via Node, and is managed through GitHub to help nerds do awesome stuff on the web.{{/i}}

    +
    +
    + +

    {{_i}}Made for everyone.{{/i}}

    +

    {{_i}}Bootstrap was made to not only look and behave great in the latest desktop browsers (as well as IE7!), but in tablet and smartphone browsers via responsive CSS as well.{{/i}}

    +
    +
    + +

    {{_i}}Packed with features.{{/i}}

    +

    {{_i}}A 12-column responsive grid, dozens of components, javascript plugins, typography, form controls, and even a web-based Customizer to make Bootstrap your own.{{/i}}

    +
    -
    -
    +
    -

    {{_i}}Built with Bootstrap.{{/i}}

    - -
    - -
    +

    {{_i}}Built with Bootstrap.{{/i}}

    + +
    + +
    + +
    {{! /.marketing }} -
    +
    {{! /.container }} -
    {{! /container }} +
    {{! /.bs-docs-canvas }} diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache index 81ef75209..78c138a44 100644 --- a/docs/templates/pages/javascript.mustache +++ b/docs/templates/pages/javascript.mustache @@ -7,106 +7,107 @@
    -
    - - - -
    - -
    - - - - -
    - - -

    {{_i}}Individual or compiled{{/i}}

    -

    {{_i}}If you have downloaded the latest version of Bootstrap, both bootstrap.js and bootstrap.min.js contain all of these plugins.{{/i}}

    - -

    {{_i}}Data attributes{{/i}}

    -

    {{_i}}...{{/i}}

    - -

    {{_i}}Programmatic API{{/i}}

    -

    {{_i}}...{{/i}}

    - - - {{! Thought: consider porting much of the JS readme here? }} - -
    - - - - -
    - -

    {{_i}}About transitions{{/i}}

    -

    {{_i}}For simple transition effects, include bootstrap-transition.js once alongside the other JS files. If you're using the compiled (or minified) bootstrap.js, there is no need to include this—it's already there.{{/i}}

    -

    {{_i}}Use cases{{/i}}

    -

    {{_i}}A few examples of the transition plugin:{{/i}}

    -
    + +
    + - -
    - +

    {{_i}}Individual or compiled{{/i}}

    +

    {{_i}}If you have downloaded the latest version of Bootstrap, both bootstrap.js and bootstrap.min.js contain all of these plugins.{{/i}}

    +

    {{_i}}Data attributes{{/i}}

    +

    {{_i}}...{{/i}}

    -

    {{_i}}Examples{{/i}}

    -

    {{_i}}Modals are streamlined, but flexible, dialog prompts with the minimum required functionality and smart defaults.{{/i}}

    +

    {{_i}}Programmatic API{{/i}}

    +

    {{_i}}...{{/i}}

    -

    {{_i}}Static example{{/i}}

    -

    {{_i}}A rendered modal with header, body, and set of actions in the footer.{{/i}}

    -
    -
    + + + + +
    + -
    {{! /example }} +

    {{_i}}About transitions{{/i}}

    +

    {{_i}}For simple transition effects, include bootstrap-transition.js once alongside the other JS files. If you're using the compiled (or minified) bootstrap.js, there is no need to include this—it's already there.{{/i}}

    +

    {{_i}}Use cases{{/i}}

    +

    {{_i}}A few examples of the transition plugin:{{/i}}

    +
      +
    • {{_i}}Sliding or fading in modals{{/i}}
    • +
    • {{_i}}Fading out tabs{{/i}}
    • +
    • {{_i}}Fading out alerts{{/i}}
    • +
    • {{_i}}Sliding carousel panes{{/i}}
    • +
    + + {{! Ideas: include docs for .fade.in, .slide.in, etc }} + + + + + +
    + + + +

    {{_i}}Examples{{/i}}

    +

    {{_i}}Modals are streamlined, but flexible, dialog prompts with the minimum required functionality and smart defaults.{{/i}}

    + +

    {{_i}}Static example{{/i}}

    +

    {{_i}}A rendered modal with header, body, and set of actions in the footer.{{/i}}

    +
    + +
    {{! /example }}
     <div class="modal hide fade">
       <div class="modal-header">
    @@ -123,43 +124,43 @@
     </div>
     
    -

    {{_i}}Live demo{{/i}}

    -

    {{_i}}Toggle a modal via javascript by clicking the button below. It will slide down and fade in from the top of the page.{{/i}}

    - -
    - - - - - + + + + +
    -
    -
    {{! /example }} - -

    {{_i}}Within tabs{{/i}}

    - {{! /example }} - - -
    - - -

    {{_i}}Usage{{/i}}

    - -

    {{_i}}Via data attributes{{/i}}

    -

    {{_i}}Add data-toggle="dropdown" to a link or button to toggle a dropdown.{{/i}}

    + + + + {{! /example }} + + +
    + + +

    {{_i}}Usage{{/i}}

    + +

    {{_i}}Via data attributes{{/i}}

    +

    {{_i}}Add data-toggle="dropdown" to a link or button to toggle a dropdown.{{/i}}

     <div class="dropdown">
       <a class="dropdown-toggle" href="#">Dropdown trigger</a>
    @@ -398,7 +398,7 @@ $('#myModal').on('hidden', function () {
       </ul>
     </div>
     
    -

    {{_i}}To keep URLs intact, use the data-target attribute instead of href="#".{{/i}}

    +

    {{_i}}To keep URLs intact, use the data-target attribute instead of href="#".{{/i}}

     <div class="dropdown">
       <a class="dropdown-toggle" id="dLabel" role="button" data-toggle="dropdown" data-target="#" href="/page.html">
    @@ -411,185 +411,185 @@ $('#myModal').on('hidden', function () {
     </div>
     
    -

    {{_i}}Via javascript{{/i}}

    -

    {{_i}}Call the dropdowns via javascript:{{/i}}

    -
    $('.dropdown-toggle').dropdown()
    - -

    {{_i}}Options{{/i}}

    -

    {{_i}}None{{/i}}

    - -

    {{_i}}Methods{{/i}}

    -

    $().dropdown()

    -

    {{_i}}A programatic api for activating menus for a given navbar or tabbed navigation.{{/i}}

    - - - - - -
    - - - -

    {{_i}}Example in navbar{{/i}}

    -

    {{_i}}The ScrollSpy plugin is for automatically updating nav targets based on scroll position. Scroll the area below the navbar and watch the active class change. The dropdown sub items will be highlighted as well.{{/i}}

    -
    -
    + + + + +
    + + + +

    {{_i}}Example in navbar{{/i}}

    +

    {{_i}}The ScrollSpy plugin is for automatically updating nav targets based on scroll position. Scroll the area below the navbar and watch the active class change. The dropdown sub items will be highlighted as well.{{/i}}

    + -
    -

    @fat

    -

    Ad leggings keytar, brunch id art party dolor labore. Pitchfork yr enim lo-fi before they sold out qui. Tumblr farm-to-table bicycle rights whatever. Anim keffiyeh carles cardigan. Velit seitan mcsweeney's photo booth 3 wolf moon irure. Cosby sweater lomo jean shorts, williamsburg hoodie minim qui you probably haven't heard of them et cardigan trust fund culpa biodiesel wes anderson aesthetic. Nihil tattooed accusamus, cred irony biodiesel keffiyeh artisan ullamco consequat.

    -

    @mdo

    -

    Veniam marfa mustache skateboard, adipisicing fugiat velit pitchfork beard. Freegan beard aliqua cupidatat mcsweeney's vero. Cupidatat four loko nisi, ea helvetica nulla carles. Tattooed cosby sweater food truck, mcsweeney's quis non freegan vinyl. Lo-fi wes anderson +1 sartorial. Carles non aesthetic exercitation quis gentrify. Brooklyn adipisicing craft beer vice keytar deserunt.

    -

    one

    -

    Occaecat commodo aliqua delectus. Fap craft beer deserunt skateboard ea. Lomo bicycle rights adipisicing banh mi, velit ea sunt next level locavore single-origin coffee in magna veniam. High life id vinyl, echo park consequat quis aliquip banh mi pitchfork. Vero VHS est adipisicing. Consectetur nisi DIY minim messenger bag. Cred ex in, sustainable delectus consectetur fanny pack iphone.

    -

    two

    -

    In incididunt echo park, officia deserunt mcsweeney's proident master cleanse thundercats sapiente veniam. Excepteur VHS elit, proident shoreditch +1 biodiesel laborum craft beer. Single-origin coffee wayfarers irure four loko, cupidatat terry richardson master cleanse. Assumenda you probably haven't heard of them art party fanny pack, tattooed nulla cardigan tempor ad. Proident wolf nesciunt sartorial keffiyeh eu banh mi sustainable. Elit wolf voluptate, lo-fi ea portland before they sold out four loko. Locavore enim nostrud mlkshk brooklyn nesciunt.

    -

    three

    -

    Ad leggings keytar, brunch id art party dolor labore. Pitchfork yr enim lo-fi before they sold out qui. Tumblr farm-to-table bicycle rights whatever. Anim keffiyeh carles cardigan. Velit seitan mcsweeney's photo booth 3 wolf moon irure. Cosby sweater lomo jean shorts, williamsburg hoodie minim qui you probably haven't heard of them et cardigan trust fund culpa biodiesel wes anderson aesthetic. Nihil tattooed accusamus, cred irony biodiesel keffiyeh artisan ullamco consequat.

    -

    Keytar twee blog, culpa messenger bag marfa whatever delectus food truck. Sapiente synth id assumenda. Locavore sed helvetica cliche irony, thundercats you probably haven't heard of them consequat hoodie gluten-free lo-fi fap aliquip. Labore elit placeat before they sold out, terry richardson proident brunch nesciunt quis cosby sweater pariatur keffiyeh ut helvetica artisan. Cardigan craft beer seitan readymade velit. VHS chambray laboris tempor veniam. Anim mollit minim commodo ullamco thundercats. -

    -
    - {{! /example }} +
    +

    @fat

    +

    Ad leggings keytar, brunch id art party dolor labore. Pitchfork yr enim lo-fi before they sold out qui. Tumblr farm-to-table bicycle rights whatever. Anim keffiyeh carles cardigan. Velit seitan mcsweeney's photo booth 3 wolf moon irure. Cosby sweater lomo jean shorts, williamsburg hoodie minim qui you probably haven't heard of them et cardigan trust fund culpa biodiesel wes anderson aesthetic. Nihil tattooed accusamus, cred irony biodiesel keffiyeh artisan ullamco consequat.

    +

    @mdo

    +

    Veniam marfa mustache skateboard, adipisicing fugiat velit pitchfork beard. Freegan beard aliqua cupidatat mcsweeney's vero. Cupidatat four loko nisi, ea helvetica nulla carles. Tattooed cosby sweater food truck, mcsweeney's quis non freegan vinyl. Lo-fi wes anderson +1 sartorial. Carles non aesthetic exercitation quis gentrify. Brooklyn adipisicing craft beer vice keytar deserunt.

    +

    one

    +

    Occaecat commodo aliqua delectus. Fap craft beer deserunt skateboard ea. Lomo bicycle rights adipisicing banh mi, velit ea sunt next level locavore single-origin coffee in magna veniam. High life id vinyl, echo park consequat quis aliquip banh mi pitchfork. Vero VHS est adipisicing. Consectetur nisi DIY minim messenger bag. Cred ex in, sustainable delectus consectetur fanny pack iphone.

    +

    two

    +

    In incididunt echo park, officia deserunt mcsweeney's proident master cleanse thundercats sapiente veniam. Excepteur VHS elit, proident shoreditch +1 biodiesel laborum craft beer. Single-origin coffee wayfarers irure four loko, cupidatat terry richardson master cleanse. Assumenda you probably haven't heard of them art party fanny pack, tattooed nulla cardigan tempor ad. Proident wolf nesciunt sartorial keffiyeh eu banh mi sustainable. Elit wolf voluptate, lo-fi ea portland before they sold out four loko. Locavore enim nostrud mlkshk brooklyn nesciunt.

    +

    three

    +

    Ad leggings keytar, brunch id art party dolor labore. Pitchfork yr enim lo-fi before they sold out qui. Tumblr farm-to-table bicycle rights whatever. Anim keffiyeh carles cardigan. Velit seitan mcsweeney's photo booth 3 wolf moon irure. Cosby sweater lomo jean shorts, williamsburg hoodie minim qui you probably haven't heard of them et cardigan trust fund culpa biodiesel wes anderson aesthetic. Nihil tattooed accusamus, cred irony biodiesel keffiyeh artisan ullamco consequat.

    +

    Keytar twee blog, culpa messenger bag marfa whatever delectus food truck. Sapiente synth id assumenda. Locavore sed helvetica cliche irony, thundercats you probably haven't heard of them consequat hoodie gluten-free lo-fi fap aliquip. Labore elit placeat before they sold out, terry richardson proident brunch nesciunt quis cosby sweater pariatur keffiyeh ut helvetica artisan. Cardigan craft beer seitan readymade velit. VHS chambray laboris tempor veniam. Anim mollit minim commodo ullamco thundercats. +

    +
    + {{! /example }} -
    +
    -

    {{_i}}Usage{{/i}}

    +

    {{_i}}Usage{{/i}}

    -

    {{_i}}Via data attributes{{/i}}

    -

    {{_i}}To easily add scrollspy behavior to your topbar navigation, just add data-spy="scroll" to the element you want to spy on (most typically this would be the body) and data-target=".navbar" to select which nav to use.{{/i}}

    -
    <body data-spy="scroll" data-target=".navbar">...</body>
    +

    {{_i}}Via data attributes{{/i}}

    +

    {{_i}}To easily add scrollspy behavior to your topbar navigation, just add data-spy="scroll" to the element you want to spy on (most typically this would be the body) and data-target=".navbar" to select which nav to use.{{/i}}

    +
    <body data-spy="scroll" data-target=".navbar">...</body>
    -

    {{_i}}Via javascript{{/i}}

    -

    {{_i}}Call the scrollspy via javascript:{{/i}}

    -
    $('#navbar').scrollspy()
    +

    {{_i}}Via javascript{{/i}}

    +

    {{_i}}Call the scrollspy via javascript:{{/i}}

    +
    $('#navbar').scrollspy()
    -
    - {{_i}}Heads up!{{/i}} - {{_i}}Navbar links must have resolvable id targets. For example, a <a href="#home">home</a> must correspond to something in the dom like <div id="home"></div>.{{/i}} -
    +
    + {{_i}}Heads up!{{/i}} + {{_i}}Navbar links must have resolvable id targets. For example, a <a href="#home">home</a> must correspond to something in the dom like <div id="home"></div>.{{/i}} +
    -

    {{_i}}Methods{{/i}}

    -

    .scrollspy('refresh')

    -

    {{_i}}When using scrollspy in conjunction with adding or removing of elements from the DOM, you'll need to call the refresh method like so:{{/i}}

    +

    {{_i}}Methods{{/i}}

    +

    .scrollspy('refresh')

    +

    {{_i}}When using scrollspy in conjunction with adding or removing of elements from the DOM, you'll need to call the refresh method like so:{{/i}}

     $('[data-spy="scroll"]').each(function () {
       var $spy = $(this).scrollspy('refresh')
     });
     
    -

    {{_i}}Options{{/i}}

    -

    {{_i}}Options can be passed via data attributes or javascript. For data attributes, append the option name to data-, as in data-offset="".{{/i}}

    - - - - - - - - - - - - - - - - - -
    {{_i}}Name{{/i}}{{_i}}type{{/i}}{{_i}}default{{/i}}{{_i}}description{{/i}}
    {{_i}}offset{{/i}}{{_i}}number{{/i}}{{_i}}10{{/i}}{{_i}}Pixels to offset from top when calculating position of scroll.{{/i}}
    - -

    {{_i}}Events{{/i}}

    - - - - - - - - - - - - - -
    {{_i}}Event{{/i}}{{_i}}Description{{/i}}
    {{_i}}activate{{/i}}{{_i}}This event fires whenever a new item becomes activated by the scrollspy.{{/i}}
    -
    - - - - -
    - - - -

    {{_i}}Example tabs{{/i}}

    -

    {{_i}}Add quick, dynamic tab functionality to transiton through panes of local content, even via dropdown menus.{{/i}}

    -
    - -
    -
    -

    Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui.

    -
    -
    -

    Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft beer twee. Qui photo booth letterpress, commodo enim craft beer mlkshk aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthetic magna delectus mollit. Keytar helvetica VHS salvia yr, vero magna velit sapiente labore stumptown. Vegan fanny pack odio cillum wes anderson 8-bit, sustainable jean shorts beard ut DIY ethical culpa terry richardson biodiesel. Art party scenester stumptown, tumblr butcher vero sint qui sapiente accusamus tattooed echo park.

    -
    - - +

    {{_i}}Options{{/i}}

    +

    {{_i}}Options can be passed via data attributes or javascript. For data attributes, append the option name to data-, as in data-offset="".{{/i}}

    + + + + + + + + + + + + + + + + + +
    {{_i}}Name{{/i}}{{_i}}type{{/i}}{{_i}}default{{/i}}{{_i}}description{{/i}}
    {{_i}}offset{{/i}}{{_i}}number{{/i}}{{_i}}10{{/i}}{{_i}}Pixels to offset from top when calculating position of scroll.{{/i}}
    + +

    {{_i}}Events{{/i}}

    + + + + + + + + + + + + + +
    {{_i}}Event{{/i}}{{_i}}Description{{/i}}
    {{_i}}activate{{/i}}{{_i}}This event fires whenever a new item becomes activated by the scrollspy.{{/i}}
    +
    + + + + +
    + - {{! /example }} -
    +

    {{_i}}Example tabs{{/i}}

    +

    {{_i}}Add quick, dynamic tab functionality to transiton through panes of local content, even via dropdown menus.{{/i}}

    +
    + +
    +
    +

    Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui.

    +
    +
    +

    Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft beer twee. Qui photo booth letterpress, commodo enim craft beer mlkshk aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthetic magna delectus mollit. Keytar helvetica VHS salvia yr, vero magna velit sapiente labore stumptown. Vegan fanny pack odio cillum wes anderson 8-bit, sustainable jean shorts beard ut DIY ethical culpa terry richardson biodiesel. Art party scenester stumptown, tumblr butcher vero sint qui sapiente accusamus tattooed echo park.

    +
    + + +
    +
    {{! /example }} + + +
    -

    {{_i}}Usage{{/i}}

    -

    {{_i}}Enable tabbable tabs via javascript (each tab needs to be activated individually):{{/i}}

    +

    {{_i}}Usage{{/i}}

    +

    {{_i}}Enable tabbable tabs via javascript (each tab needs to be activated individually):{{/i}}

     $('#myTab a').click(function (e) {
       e.preventDefault();
       $(this).tab('show');
     })
    -

    {{_i}}You can activate individual tabs in several ways:{{/i}}

    +

    {{_i}}You can activate individual tabs in several ways:{{/i}}

     $('#myTab a[href="#profile"]').tab('show'); // Select tab by name
     $('#myTab a:first').tab('show'); // Select first tab
    @@ -597,8 +597,8 @@ $('#myTab a:last').tab('show'); // Select last tab
     $('#myTab li:eq(2) a').tab('show'); // Select third tab (0-indexed)
     
    -

    {{_i}}Markup{{/i}}

    -

    {{_i}}You can activate a tab or pill navigation without writing any javascript by simply specifying data-toggle="tab" or data-toggle="pill" on an element. Adding the nav and nav-tabs classes to the tab ul will apply the bootstrap tab styling.{{/i}}

    +

    {{_i}}Markup{{/i}}

    +

    {{_i}}You can activate a tab or pill navigation without writing any javascript by simply specifying data-toggle="tab" or data-toggle="pill" on an element. Adding the nav and nav-tabs classes to the tab ul will apply the bootstrap tab styling.{{/i}}

     <ul class="nav nav-tabs">
       <li><a href="#home" data-toggle="tab">{{_i}}Home{{/i}}</a></li>
    @@ -607,11 +607,11 @@ $('#myTab li:eq(2) a').tab('show'); // Select third tab (0-indexed)
       <li><a href="#settings" data-toggle="tab">{{_i}}Settings{{/i}}</a></li>
     </ul>
    -

    {{_i}}Methods{{/i}}

    -

    $().tab

    -

    - {{_i}}Activates a tab element and content container. Tab should have either a data-target or an href targeting a container node in the DOM.{{/i}} -

    +

    {{_i}}Methods{{/i}}

    +

    $().tab

    +

    + {{_i}}Activates a tab element and content container. Tab should have either a data-target or an href targeting a container node in the DOM.{{/i}} +

     <ul class="nav nav-tabs" id="myTab">
       <li class="active"><a href="#home">{{_i}}Home{{/i}}</a></li>
    @@ -634,429 +634,425 @@ $('#myTab li:eq(2) a').tab('show'); // Select third tab (0-indexed)
     </script>
     
    -

    {{_i}}Events{{/i}}

    - - - - - - - - - - - - - - - - - -
    {{_i}}Event{{/i}}{{_i}}Description{{/i}}
    {{_i}}show{{/i}}{{_i}}This event fires on tab show, but before the new tab has been shown. Use event.target and event.relatedTarget to target the active tab and the previous active tab (if available) respectively.{{/i}}
    {{_i}}shown{{/i}}{{_i}}This event fires on tab show after a tab has been shown. Use event.target and event.relatedTarget to target the active tab and the previous active tab (if available) respectively.{{/i}}
    +

    {{_i}}Events{{/i}}

    + + + + + + + + + + + + + + + + + +
    {{_i}}Event{{/i}}{{_i}}Description{{/i}}
    {{_i}}show{{/i}}{{_i}}This event fires on tab show, but before the new tab has been shown. Use event.target and event.relatedTarget to target the active tab and the previous active tab (if available) respectively.{{/i}}
    {{_i}}shown{{/i}}{{_i}}This event fires on tab show after a tab has been shown. Use event.target and event.relatedTarget to target the active tab and the previous active tab (if available) respectively.{{/i}}
     $('a[data-toggle="tab"]').on('shown', function (e) {
       e.target // activated tab
       e.relatedTarget // previous tab
     })
     
    -
    + - -
    - + +
    + -

    {{_i}}Examples{{/i}}

    -

    {{_i}}Inspired by the excellent jQuery.tipsy plugin written by Jason Frame; Tooltips are an updated version, which don't rely on images, use CSS3 for animations, and data-attributes for local title storage.{{/i}}

    -

    {{_i}}Hover over the links below to see tooltips:{{/i}}

    -
    -

    {{_i}}Tight pants next level keffiyeh you probably haven't heard of them. Photo booth beard raw denim letterpress vegan messenger bag stumptown. Farm-to-table seitan, mcsweeney's fixie sustainable quinoa 8-bit american apparel have a terry richardson vinyl chambray. Beard stumptown, cardigans banh mi lomo thundercats. Tofu biodiesel williamsburg marfa, four loko mcsweeney's cleanse vegan chambray. A really ironic artisan whatever keytar, scenester farm-to-table banksy Austin twitter handle freegan cred raw denim single-origin coffee viral.{{/i}} -

    -
    {{! /example }} - -

    {{_i}}Four directions{{/i}}

    - {{! /example }} - - -
    - - -

    {{_i}}Usage{{/i}}

    -

    {{_i}}Trigger the tooltip via javascript:{{/i}}

    -
    $('#example').tooltip({{_i}}options{{/i}})
    - -

    {{_i}}Options{{/i}}

    -

    {{_i}}Options can be passed via data attributes or javascript. For data attributes, append the option name to data-, as in data-animation="".{{/i}}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {{_i}}Name{{/i}}{{_i}}type{{/i}}{{_i}}default{{/i}}{{_i}}description{{/i}}
    {{_i}}animation{{/i}}{{_i}}boolean{{/i}}true{{_i}}apply a css fade transition to the tooltip{{/i}}
    {{_i}}html{{/i}}{{_i}}boolean{{/i}}true{{_i}}Insert html into the tooltip. If false, jquery's text method will be used to insert content into the dom. Use text if you're worried about XSS attacks.{{/i}}
    {{_i}}placement{{/i}}{{_i}}string|function{{/i}}'top'{{_i}}how to position the tooltip{{/i}} - top | bottom | left | right
    {{_i}}selector{{/i}}{{_i}}string{{/i}}false{{_i}}If a selector is provided, tooltip objects will be delegated to the specified targets.{{/i}}
    {{_i}}title{{/i}}{{_i}}string | function{{/i}}''{{_i}}default title value if `title` tag isn't present{{/i}}
    {{_i}}trigger{{/i}}{{_i}}string{{/i}}'hover'{{_i}}how tooltip is triggered{{/i}} - hover | focus | manual
    {{_i}}delay{{/i}}{{_i}}number | object{{/i}}0 -

    {{_i}}delay showing and hiding the tooltip (ms) - does not apply to manual trigger type{{/i}}

    -

    {{_i}}If a number is supplied, delay is applied to both hide/show{{/i}}

    -

    {{_i}}Object structure is: delay: { show: 500, hide: 100 }{{/i}}

    -
    -
    - {{_i}}Heads up!{{/i}} - {{_i}}Options for individual tooltips can alternatively be specified through the use of data attributes.{{/i}} -
    - -

    {{_i}}Markup{{/i}}

    -

    {{_i}}For performance reasons, the Tooltip and Popover data-apis are opt in. If you would like to use them just specify a selector option.{{/i}}

    +

    {{_i}}Examples{{/i}}

    +

    {{_i}}Inspired by the excellent jQuery.tipsy plugin written by Jason Frame; Tooltips are an updated version, which don't rely on images, use CSS3 for animations, and data-attributes for local title storage.{{/i}}

    +

    {{_i}}Hover over the links below to see tooltips:{{/i}}

    +
    +

    {{_i}}Tight pants next level keffiyeh you probably haven't heard of them. Photo booth beard raw denim letterpress vegan messenger bag stumptown. Farm-to-table seitan, mcsweeney's fixie sustainable quinoa 8-bit american apparel have a terry richardson vinyl chambray. Beard stumptown, cardigans banh mi lomo thundercats. Tofu biodiesel williamsburg marfa, four loko mcsweeney's cleanse vegan chambray. A really ironic artisan whatever keytar, scenester farm-to-table banksy Austin twitter handle freegan cred raw denim single-origin coffee viral.{{/i}} +

    +
    {{! /example }} + +

    {{_i}}Four directions{{/i}}

    + {{! /example }} + + +
    + + +

    {{_i}}Usage{{/i}}

    +

    {{_i}}Trigger the tooltip via javascript:{{/i}}

    +
    $('#example').tooltip({{_i}}options{{/i}})
    + +

    {{_i}}Options{{/i}}

    +

    {{_i}}Options can be passed via data attributes or javascript. For data attributes, append the option name to data-, as in data-animation="".{{/i}}

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    {{_i}}Name{{/i}}{{_i}}type{{/i}}{{_i}}default{{/i}}{{_i}}description{{/i}}
    {{_i}}animation{{/i}}{{_i}}boolean{{/i}}true{{_i}}apply a css fade transition to the tooltip{{/i}}
    {{_i}}html{{/i}}{{_i}}boolean{{/i}}true{{_i}}Insert html into the tooltip. If false, jquery's text method will be used to insert content into the dom. Use text if you're worried about XSS attacks.{{/i}}
    {{_i}}placement{{/i}}{{_i}}string|function{{/i}}'top'{{_i}}how to position the tooltip{{/i}} - top | bottom | left | right
    {{_i}}selector{{/i}}{{_i}}string{{/i}}false{{_i}}If a selector is provided, tooltip objects will be delegated to the specified targets.{{/i}}
    {{_i}}title{{/i}}{{_i}}string | function{{/i}}''{{_i}}default title value if `title` tag isn't present{{/i}}
    {{_i}}trigger{{/i}}{{_i}}string{{/i}}'hover'{{_i}}how tooltip is triggered{{/i}} - hover | focus | manual
    {{_i}}delay{{/i}}{{_i}}number | object{{/i}}0 +

    {{_i}}delay showing and hiding the tooltip (ms) - does not apply to manual trigger type{{/i}}

    +

    {{_i}}If a number is supplied, delay is applied to both hide/show{{/i}}

    +

    {{_i}}Object structure is: delay: { show: 500, hide: 100 }{{/i}}

    +
    +
    + {{_i}}Heads up!{{/i}} + {{_i}}Options for individual tooltips can alternatively be specified through the use of data attributes.{{/i}} +
    + +

    {{_i}}Markup{{/i}}

    +

    {{_i}}For performance reasons, the Tooltip and Popover data-apis are opt in. If you would like to use them just specify a selector option.{{/i}}

     <a href="#" rel="tooltip" title="{{_i}}first tooltip{{/i}}">{{_i}}hover over me{{/i}}</a>
     
    -

    {{_i}}Methods{{/i}}

    -

    $().tooltip({{_i}}options{{/i}})

    -

    {{_i}}Attaches a tooltip handler to an element collection.{{/i}}

    -

    .tooltip('show')

    -

    {{_i}}Reveals an element's tooltip.{{/i}}

    -
    $('#element').tooltip('show')
    -

    .tooltip('hide')

    -

    {{_i}}Hides an element's tooltip.{{/i}}

    -
    $('#element').tooltip('hide')
    -

    .tooltip('toggle')

    -

    {{_i}}Toggles an element's tooltip.{{/i}}

    -
    $('#element').tooltip('toggle')
    -

    .tooltip('destroy')

    -

    {{_i}}Destroys an element's tooltip.{{/i}}

    -
    $('#element').tooltip('destroy')
    -
    - - - - -
    - - -

    {{_i}}Examples{{/i}}

    -

    {{_i}}Add small overlays of content, like those on the iPad, to any element for housing secondary information. Hover over the button to trigger the popover. Requires Tooltip to be included.{{/i}}

    - -

    {{_i}}Static popover{{/i}}

    -

    {{_i}}Four options are available: top, right, bottom, and left aligned.{{/i}}

    -
    -
    -
    -

    Popover top

    -
    -

    Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

    -
    +

    {{_i}}Methods{{/i}}

    +

    $().tooltip({{_i}}options{{/i}})

    +

    {{_i}}Attaches a tooltip handler to an element collection.{{/i}}

    +

    .tooltip('show')

    +

    {{_i}}Reveals an element's tooltip.{{/i}}

    +
    $('#element').tooltip('show')
    +

    .tooltip('hide')

    +

    {{_i}}Hides an element's tooltip.{{/i}}

    +
    $('#element').tooltip('hide')
    +

    .tooltip('toggle')

    +

    {{_i}}Toggles an element's tooltip.{{/i}}

    +
    $('#element').tooltip('toggle')
    +

    .tooltip('destroy')

    +

    {{_i}}Destroys an element's tooltip.{{/i}}

    +
    $('#element').tooltip('destroy')
    +
    + + + + +
    + -
    -
    -

    Popover right

    -
    -

    Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

    +

    {{_i}}Examples{{/i}}

    +

    {{_i}}Add small overlays of content, like those on the iPad, to any element for housing secondary information. Hover over the button to trigger the popover. Requires Tooltip to be included.{{/i}}

    + +

    {{_i}}Static popover{{/i}}

    +

    {{_i}}Four options are available: top, right, bottom, and left aligned.{{/i}}

    +
    +
    +
    +

    Popover top

    +
    +

    Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

    +
    -
    -
    -
    -

    Popover bottom

    -
    -

    Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

    +
    +
    +

    Popover right

    +
    +

    Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

    +
    -
    -
    -
    -

    Popover left

    -
    -

    Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

    +
    +
    +

    Popover bottom

    +
    +

    Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

    +
    -
    -
    -
    -

    {{_i}}No markup shown as popovers are generated from javascript and content within a data attribute.{{/i}}

    - -

    Live demo

    - - - -
    - - -

    {{_i}}Usage{{/i}}

    -

    {{_i}}Enable popovers via javascript:{{/i}}

    -
    $('#example').popover({{_i}}options{{/i}})
    - -

    {{_i}}Options{{/i}}

    -

    {{_i}}Options can be passed via data attributes or javascript. For data attributes, append the option name to data-, as in data-animation="".{{/i}}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {{_i}}Name{{/i}}{{_i}}type{{/i}}{{_i}}default{{/i}}{{_i}}description{{/i}}
    {{_i}}animation{{/i}}{{_i}}boolean{{/i}}true{{_i}}apply a css fade transition to the tooltip{{/i}}
    {{_i}}html{{/i}}{{_i}}boolean{{/i}}true{{_i}}Insert html into the popover. If false, jquery's text method will be used to insert content into the dom. Use text if you're worried about XSS attacks.{{/i}}
    {{_i}}placement{{/i}}{{_i}}string|function{{/i}}'right'{{_i}}how to position the popover{{/i}} - top | bottom | left | right
    {{_i}}selector{{/i}}{{_i}}string{{/i}}false{{_i}}if a selector is provided, tooltip objects will be delegated to the specified targets{{/i}}
    {{_i}}trigger{{/i}}{{_i}}string{{/i}}'hover'{{_i}}how popover is triggered{{/i}} - hover | focus | manual
    {{_i}}title{{/i}}{{_i}}string | function{{/i}}''{{_i}}default title value if `title` attribute isn't present{{/i}}
    {{_i}}content{{/i}}{{_i}}string | function{{/i}}''{{_i}}default content value if `data-content` attribute isn't present{{/i}}
    {{_i}}delay{{/i}}{{_i}}number | object{{/i}}0 -

    {{_i}}delay showing and hiding the popover (ms) - does not apply to manual trigger type{{/i}}

    -

    {{_i}}If a number is supplied, delay is applied to both hide/show{{/i}}

    -

    {{_i}}Object structure is: delay: { show: 500, hide: 100 }{{/i}}

    -
    -
    - {{_i}}Heads up!{{/i}} - {{_i}}Options for individual popovers can alternatively be specified through the use of data attributes.{{/i}} -
    - -

    {{_i}}Markup{{/i}}

    -

    {{_i}}For performance reasons, the Tooltip and Popover data-apis are opt in. If you would like to use them just specify a selector option.{{/i}}

    - -

    {{_i}}Methods{{/i}}

    -

    $().popover({{_i}}options{{/i}})

    -

    {{_i}}Initializes popovers for an element collection.{{/i}}

    -

    .popover('show')

    -

    {{_i}}Reveals an elements popover.{{/i}}

    -
    $('#element').popover('show')
    -

    .popover('hide')

    -

    {{_i}}Hides an elements popover.{{/i}}

    -
    $('#element').popover('hide')
    -

    .popover('toggle')

    -

    {{_i}}Toggles an elements popover.{{/i}}

    -
    $('#element').popover('toggle')
    -

    .popover('destroy')

    -

    {{_i}}Destroys an element's popover.{{/i}}

    -
    $('#element').popover('destroy')
    -
    - - - - -
    - - - -

    {{_i}}Example alerts{{/i}}

    -

    {{_i}}Add dismiss functionality to all alerge messages with this plugin.{{/i}}

    -
    -
    - - {{_i}}Holy guacamole!{{/i}} {{_i}}Best check yo self, you're not looking too good.{{/i}} +
    +
    +

    Popover left

    +
    +

    Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

    +
    +
    + +
    -
    {{! /example }} - -
    -
    - -

    {{_i}}Oh snap! You got an error!{{/i}}

    -

    {{_i}}Change this and that and try again. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cras mattis consectetur purus sit amet fermentum.{{/i}}

    -

    - {{_i}}Take this action{{/i}} {{_i}}Or do this{{/i}} -

    +

    {{_i}}No markup shown as popovers are generated from javascript and content within a data attribute.{{/i}}

    + +

    Live demo

    + -
    {{! /example }} - - -
    - - -

    {{_i}}Usage{{/i}}

    -

    {{_i}}Enable dismissal of an alert via javascript:{{/i}}

    -
    $(".alert").alert()
    - -

    {{_i}}Markup{{/i}}

    -

    {{_i}}Just add data-dismiss="alert" to your close button to automatically give an alert close functionality.{{/i}}

    -
    <a class="close" data-dismiss="alert" href="#">&times;</a>
    - -

    {{_i}}Methods{{/i}}

    -

    $().alert()

    -

    {{_i}}Wraps all alerts with close functionality. To have your alerts animate out when closed, make sure they have the .fade and .in class already applied to them.{{/i}}

    -

    .alert('close')

    -

    {{_i}}Closes an alert.{{/i}}

    -
    $(".alert").alert('close')
    - - -

    {{_i}}Events{{/i}}

    -

    {{_i}}Bootstrap's alert class exposes a few events for hooking into alert functionality.{{/i}}

    - - - - - - - - - - - - - - - - - -
    {{_i}}Event{{/i}}{{_i}}Description{{/i}}
    {{_i}}close{{/i}}{{_i}}This event fires immediately when the close instance method is called.{{/i}}
    {{_i}}closed{{/i}}{{_i}}This event is fired when the alert has been closed (will wait for css transitions to complete).{{/i}}
    -
    -$('#my-alert').bind('closed', function () {
    -  // {{_i}}do something…{{/i}}
    -})
    -
    -
    +
    + + +

    {{_i}}Usage{{/i}}

    +

    {{_i}}Enable popovers via javascript:{{/i}}

    +
    $('#example').popover({{_i}}options{{/i}})
    + +

    {{_i}}Options{{/i}}

    +

    {{_i}}Options can be passed via data attributes or javascript. For data attributes, append the option name to data-, as in data-animation="".{{/i}}

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    {{_i}}Name{{/i}}{{_i}}type{{/i}}{{_i}}default{{/i}}{{_i}}description{{/i}}
    {{_i}}animation{{/i}}{{_i}}boolean{{/i}}true{{_i}}apply a css fade transition to the tooltip{{/i}}
    {{_i}}html{{/i}}{{_i}}boolean{{/i}}true{{_i}}Insert html into the popover. If false, jquery's text method will be used to insert content into the dom. Use text if you're worried about XSS attacks.{{/i}}
    {{_i}}placement{{/i}}{{_i}}string|function{{/i}}'right'{{_i}}how to position the popover{{/i}} - top | bottom | left | right
    {{_i}}selector{{/i}}{{_i}}string{{/i}}false{{_i}}if a selector is provided, tooltip objects will be delegated to the specified targets{{/i}}
    {{_i}}trigger{{/i}}{{_i}}string{{/i}}'hover'{{_i}}how popover is triggered{{/i}} - hover | focus | manual
    {{_i}}title{{/i}}{{_i}}string | function{{/i}}''{{_i}}default title value if `title` attribute isn't present{{/i}}
    {{_i}}content{{/i}}{{_i}}string | function{{/i}}''{{_i}}default content value if `data-content` attribute isn't present{{/i}}
    {{_i}}delay{{/i}}{{_i}}number | object{{/i}}0 +

    {{_i}}delay showing and hiding the popover (ms) - does not apply to manual trigger type{{/i}}

    +

    {{_i}}If a number is supplied, delay is applied to both hide/show{{/i}}

    +

    {{_i}}Object structure is: delay: { show: 500, hide: 100 }{{/i}}

    +
    +
    + {{_i}}Heads up!{{/i}} + {{_i}}Options for individual popovers can alternatively be specified through the use of data attributes.{{/i}} +
    - -
    - +

    {{_i}}Markup{{/i}}

    +

    {{_i}}For performance reasons, the Tooltip and Popover data-apis are opt in. If you would like to use them just specify a selector option.{{/i}}

    + +

    {{_i}}Methods{{/i}}

    +

    $().popover({{_i}}options{{/i}})

    +

    {{_i}}Initializes popovers for an element collection.{{/i}}

    +

    .popover('show')

    +

    {{_i}}Reveals an elements popover.{{/i}}

    +
    $('#element').popover('show')
    +

    .popover('hide')

    +

    {{_i}}Hides an elements popover.{{/i}}

    +
    $('#element').popover('hide')
    +

    .popover('toggle')

    +

    {{_i}}Toggles an elements popover.{{/i}}

    +
    $('#element').popover('toggle')
    +

    .popover('destroy')

    +

    {{_i}}Destroys an element's popover.{{/i}}

    +
    $('#element').popover('destroy')
    +
    + + + + +
    + -

    {{_i}}Example uses{{/i}}

    -

    {{_i}}Do more with buttons. Control button states or create groups of buttons for more components like toolbars.{{/i}}

    -

    {{_i}}Stateful{{/i}}

    -

    {{_i}}Add data-loading-text="Loading..." to use a loading state on a button.{{/i}}

    -
    - -
    {{! /example }} +

    {{_i}}Example alerts{{/i}}

    +

    {{_i}}Add dismiss functionality to all alerge messages with this plugin.{{/i}}

    +
    +
    + + {{_i}}Holy guacamole!{{/i}} {{_i}}Best check yo self, you're not looking too good.{{/i}} +
    +
    {{! /example }} + +
    +
    + +

    {{_i}}Oh snap! You got an error!{{/i}}

    +

    {{_i}}Change this and that and try again. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cras mattis consectetur purus sit amet fermentum.{{/i}}

    +

    + {{_i}}Take this action{{/i}} {{_i}}Or do this{{/i}} +

    +
    +
    {{! /example }} + + +
    + + +

    {{_i}}Usage{{/i}}

    +

    {{_i}}Enable dismissal of an alert via javascript:{{/i}}

    +
    $(".alert").alert()
    + +

    {{_i}}Markup{{/i}}

    +

    {{_i}}Just add data-dismiss="alert" to your close button to automatically give an alert close functionality.{{/i}}

    +
    <a class="close" data-dismiss="alert" href="#">&times;</a>
    + +

    {{_i}}Methods{{/i}}

    +

    $().alert()

    +

    {{_i}}Wraps all alerts with close functionality. To have your alerts animate out when closed, make sure they have the .fade and .in class already applied to them.{{/i}}

    +

    .alert('close')

    +

    {{_i}}Closes an alert.{{/i}}

    +
    $(".alert").alert('close')
    + + +

    {{_i}}Events{{/i}}

    +

    {{_i}}Bootstrap's alert class exposes a few events for hooking into alert functionality.{{/i}}

    + + + + + + + + + + + + + + + + + +
    {{_i}}Event{{/i}}{{_i}}Description{{/i}}
    {{_i}}close{{/i}}{{_i}}This event fires immediately when the close instance method is called.{{/i}}
    {{_i}}closed{{/i}}{{_i}}This event is fired when the alert has been closed (will wait for css transitions to complete).{{/i}}
    -<button type="button" class="btn btn-primary" data-loading-text="Loading...">Loading state</button>
    +$('#my-alert').bind('closed', function () {
    +  // {{_i}}do something…{{/i}}
    +})
     
    +
    -

    {{_i}}Single toggle{{/i}}

    -

    {{_i}}Add data-toggle="button" to activate toggling on a single button.{{/i}}

    -
    - -
    {{! /example }} -
    -<button type="button" class="btn" data-toggle="button">Single Toggle</button>
    -
    -

    {{_i}}Checkbox{{/i}}

    -

    {{_i}}Add data-toggle="buttons-checkbox" for checkbox style toggling on btn-group.{{/i}}

    -
    -
    - - - + + +
    + -
    {{! /example }} + +

    {{_i}}Example uses{{/i}}

    +

    {{_i}}Do more with buttons. Control button states or create groups of buttons for more components like toolbars.{{/i}}

    + +

    {{_i}}Stateful{{/i}}

    +

    {{_i}}Add data-loading-text="Loading..." to use a loading state on a button.{{/i}}

    +
    + +
    {{! /example }} +
    <button type="button" class="btn btn-primary" data-loading-text="Loading...">Loading state</button>
    + +

    {{_i}}Single toggle{{/i}}

    +

    {{_i}}Add data-toggle="button" to activate toggling on a single button.{{/i}}

    +
    + +
    {{! /example }} +
    <button type="button" class="btn" data-toggle="button">Single Toggle</button>
    + +

    {{_i}}Checkbox{{/i}}

    +

    {{_i}}Add data-toggle="buttons-checkbox" for checkbox style toggling on btn-group.{{/i}}

    +
    +
    + + + +
    +
    {{! /example }}
     <div class="btn-group" data-toggle="buttons-checkbox">
       <button type="button" class="btn">Left</button>
    @@ -1065,15 +1061,15 @@ $('#my-alert').bind('closed', function () {
     </div>
     
    -

    {{_i}}Radio{{/i}}

    -

    {{_i}}Add data-toggle="buttons-radio" for radio style toggling on btn-group.{{/i}}

    -
    -
    - - - -
    -
    {{! /example }} +

    {{_i}}Radio{{/i}}

    +

    {{_i}}Add data-toggle="buttons-radio" for radio style toggling on btn-group.{{/i}}

    +
    +
    + + + +
    +
    {{! /example }}
     <div class="btn-group" data-toggle="buttons-radio">
       <button type="button" class="btn">Left</button>
    @@ -1083,101 +1079,102 @@ $('#my-alert').bind('closed', function () {
     
    -
    - - -

    {{_i}}Usage{{/i}}

    -

    {{_i}}Enable buttons via javascript:{{/i}}

    -
    $('.nav-tabs').button()
    - -

    {{_i}}Markup{{/i}}

    -

    {{_i}}Data attributes are integral to the button plugin. Check out the example code below for the various markup types.{{/i}}

    - -

    {{_i}}Options{{/i}}

    -

    {{_i}}None{{/i}}

    - -

    {{_i}}Methods{{/i}}

    -

    $().button('toggle')

    -

    {{_i}}Toggles push state. Gives the button the appearance that it has been activated.{{/i}}

    -
    - {{_i}}Heads up!{{/i}} - {{_i}}You can enable auto toggling of a button by using the data-toggle attribute.{{/i}} -
    -
    <button type="button" class="btn" data-toggle="button" >…</button>
    -

    $().button('loading')

    -

    {{_i}}Sets button state to loading - disables button and swaps text to loading text. Loading text should be defined on the button element using the data attribute data-loading-text.{{/i}} -

    -
    <button type="button" class="btn" data-loading-text="loading stuff..." >...</button>
    -
    - {{_i}}Heads up!{{/i}} - {{_i}}Firefox persists the disabled state across page loads. A workaround for this is to use autocomplete="off".{{/i}} -
    -

    $().button('reset')

    -

    {{_i}}Resets button state - swaps text to original text.{{/i}}

    -

    $().button(string)

    -

    {{_i}}Resets button state - swaps text to any data defined text state.{{/i}}

    +
    + + +

    {{_i}}Usage{{/i}}

    +

    {{_i}}Enable buttons via javascript:{{/i}}

    +
    $('.nav-tabs').button()
    + +

    {{_i}}Markup{{/i}}

    +

    {{_i}}Data attributes are integral to the button plugin. Check out the example code below for the various markup types.{{/i}}

    + +

    {{_i}}Options{{/i}}

    +

    {{_i}}None{{/i}}

    + +

    {{_i}}Methods{{/i}}

    +

    $().button('toggle')

    +

    {{_i}}Toggles push state. Gives the button the appearance that it has been activated.{{/i}}

    +
    + {{_i}}Heads up!{{/i}} + {{_i}}You can enable auto toggling of a button by using the data-toggle attribute.{{/i}} +
    +
    <button type="button" class="btn" data-toggle="button" >…</button>
    +

    $().button('loading')

    +

    {{_i}}Sets button state to loading - disables button and swaps text to loading text. Loading text should be defined on the button element using the data attribute data-loading-text.{{/i}} +

    +
    <button type="button" class="btn" data-loading-text="loading stuff..." >...</button>
    +
    + {{_i}}Heads up!{{/i}} + {{_i}}Firefox persists the disabled state across page loads. A workaround for this is to use autocomplete="off".{{/i}} +
    +

    $().button('reset')

    +

    {{_i}}Resets button state - swaps text to original text.{{/i}}

    +

    $().button(string)

    +

    {{_i}}Resets button state - swaps text to any data defined text state.{{/i}}

    <button type="button" class="btn" data-complete-text="finished!" >...</button>
     <script>
       $('.btn').button('complete')
    -</script>
    -
    +</script> + + - -
    - + +
    + -

    {{_i}}About{{/i}}

    -

    {{_i}}Get base styles and flexible support for collapsible components like accordions and navigation.{{/i}}

    -

    * {{_i}}Requires the Transitions plugin to be included.{{/i}}

    +

    {{_i}}About{{/i}}

    +

    {{_i}}Get base styles and flexible support for collapsible components like accordions and navigation.{{/i}}

    +

    * {{_i}}Requires the Transitions plugin to be included.{{/i}}

    -

    {{_i}}Example accordion{{/i}}

    -

    {{_i}}Using the collapse plugin, we built a simple accordion style widget:{{/i}}

    +

    {{_i}}Example accordion{{/i}}

    +

    {{_i}}Using the collapse plugin, we built a simple accordion style widget:{{/i}}

    -
    -
    -
    - -
    -
    - Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS. +
    + -
    - -
    -
    - Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS. +
    +
    + Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS. +
    -
    -
    -
    - - {{_i}}Collapsible Group Item #3{{/i}} - +
    + +
    +
    + Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS. +
    +
    -
    -
    - Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS. +
    + +
    +
    + Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS. +
    -
    -
    {{! /example }} +
    {{! /example }}
     <button type="button" class="btn btn-danger" data-toggle="collapse" data-target="#demo">
       {{_i}}simple collapsible{{/i}}
    @@ -1187,137 +1184,138 @@ $('#my-alert').bind('closed', function () {
     
    -
    - - -

    {{_i}}Usage{{/i}}

    - -

    {{_i}}Via data attributes{{/i}}

    -

    {{_i}}Just add data-toggle="collapse" and a data-target to element to automatically assign control of a collapsible element. The data-target attribute accepts a css selector to apply the collapse to. Be sure to add the class collapse to the collapsible element. If you'd like it to default open, add the additional class in.{{/i}}

    -

    {{_i}}To add accordion-like group management to a collapsible control, add the data attribute data-parent="#selector". Refer to the demo to see this in action.{{/i}}

    - -

    {{_i}}Via javascript{{/i}}

    -

    {{_i}}Enable manually with:{{/i}}

    -
    $(".collapse").collapse()
    - -

    {{_i}}Options{{/i}}

    -

    {{_i}}Options can be passed via data attributes or javascript. For data attributes, append the option name to data-, as in data-parent="".{{/i}}

    - - - - - - - - - - - - - - - - - - - - - - - -
    {{_i}}Name{{/i}}{{_i}}type{{/i}}{{_i}}default{{/i}}{{_i}}description{{/i}}
    {{_i}}parent{{/i}}{{_i}}selector{{/i}}false{{_i}}If selector then all collapsible elements under the specified parent will be closed when this collapsible item is shown. (similar to traditional accordion behavior){{/i}}
    {{_i}}toggle{{/i}}{{_i}}boolean{{/i}}true{{_i}}Toggles the collapsible element on invocation{{/i}}
    - - -

    {{_i}}Methods{{/i}}

    -

    .collapse({{_i}}options{{/i}})

    -

    {{_i}}Activates your content as a collapsible element. Accepts an optional options object.{{/i}} +


    + + +

    {{_i}}Usage{{/i}}

    + +

    {{_i}}Via data attributes{{/i}}

    +

    {{_i}}Just add data-toggle="collapse" and a data-target to element to automatically assign control of a collapsible element. The data-target attribute accepts a css selector to apply the collapse to. Be sure to add the class collapse to the collapsible element. If you'd like it to default open, add the additional class in.{{/i}}

    +

    {{_i}}To add accordion-like group management to a collapsible control, add the data attribute data-parent="#selector". Refer to the demo to see this in action.{{/i}}

    + +

    {{_i}}Via javascript{{/i}}

    +

    {{_i}}Enable manually with:{{/i}}

    +
    $(".collapse").collapse()
    + +

    {{_i}}Options{{/i}}

    +

    {{_i}}Options can be passed via data attributes or javascript. For data attributes, append the option name to data-, as in data-parent="".{{/i}}

    + + + + + + + + + + + + + + + + + + + + + + + +
    {{_i}}Name{{/i}}{{_i}}type{{/i}}{{_i}}default{{/i}}{{_i}}description{{/i}}
    {{_i}}parent{{/i}}{{_i}}selector{{/i}}false{{_i}}If selector then all collapsible elements under the specified parent will be closed when this collapsible item is shown. (similar to traditional accordion behavior){{/i}}
    {{_i}}toggle{{/i}}{{_i}}boolean{{/i}}true{{_i}}Toggles the collapsible element on invocation{{/i}}
    + + +

    {{_i}}Methods{{/i}}

    +

    .collapse({{_i}}options{{/i}})

    +

    {{_i}}Activates your content as a collapsible element. Accepts an optional options object.{{/i}}

     $('#myCollapsible').collapse({
       toggle: false
    -})
    -

    .collapse('toggle')

    -

    {{_i}}Toggles a collapsible element to shown or hidden.{{/i}}

    -

    .collapse('show')

    -

    {{_i}}Shows a collapsible element.{{/i}}

    -

    .collapse('hide')

    -

    {{_i}}Hides a collapsible element.{{/i}}

    - -

    {{_i}}Events{{/i}}

    -

    {{_i}}Bootstrap's collapse class exposes a few events for hooking into collapse functionality.{{/i}}

    - - - - - - - - - - - - - - - - - - - - - - - - - -
    {{_i}}Event{{/i}}{{_i}}Description{{/i}}
    {{_i}}show{{/i}}{{_i}}This event fires immediately when the show instance method is called.{{/i}}
    {{_i}}shown{{/i}}{{_i}}This event is fired when a collapse element has been made visible to the user (will wait for css transitions to complete).{{/i}}
    {{_i}}hide{{/i}} - {{_i}}This event is fired immediately when the hide method has been called.{{/i}} -
    {{_i}}hidden{{/i}}{{_i}}This event is fired when a collapse element has been hidden from the user (will wait for css transitions to complete).{{/i}}
    +}) + +

    .collapse('toggle')

    +

    {{_i}}Toggles a collapsible element to shown or hidden.{{/i}}

    +

    .collapse('show')

    +

    {{_i}}Shows a collapsible element.{{/i}}

    +

    .collapse('hide')

    +

    {{_i}}Hides a collapsible element.{{/i}}

    + +

    {{_i}}Events{{/i}}

    +

    {{_i}}Bootstrap's collapse class exposes a few events for hooking into collapse functionality.{{/i}}

    + + + + + + + + + + + + + + + + + + + + + + + + + +
    {{_i}}Event{{/i}}{{_i}}Description{{/i}}
    {{_i}}show{{/i}}{{_i}}This event fires immediately when the show instance method is called.{{/i}}
    {{_i}}shown{{/i}}{{_i}}This event is fired when a collapse element has been made visible to the user (will wait for css transitions to complete).{{/i}}
    {{_i}}hide{{/i}} + {{_i}}This event is fired immediately when the hide method has been called.{{/i}} +
    {{_i}}hidden{{/i}}{{_i}}This event is fired when a collapse element has been hidden from the user (will wait for css transitions to complete).{{/i}}
     $('#myCollapsible').on('hidden', function () {
       // {{_i}}do something…{{/i}}
     })
    -
    - - - - - + + + + + - - - - -
    - - - -

    {{_i}}Example{{/i}}

    -

    {{_i}}A basic, easily extended plugin for quickly creating elegant typeaheads with any form text input.{{/i}}

    -
    - -
    {{! /example }} -
    -<input type="text" data-provide="typeahead">
    -
    - - -
    +

    .carousel('cycle')

    +

    {{_i}}Cycles through the carousel items from left to right.{{/i}}

    +

    .carousel('pause')

    +

    {{_i}}Stops the carousel from cycling through items.{{/i}}

    +

    .carousel(number)

    +

    {{_i}}Cycles the carousel to a particular frame (0 based, similar to an array).{{/i}}

    +

    .carousel('prev')

    +

    {{_i}}Cycles to the previous item.{{/i}}

    +

    .carousel('next')

    +

    {{_i}}Cycles to the next item.{{/i}}

    + +

    {{_i}}Events{{/i}}

    +

    {{_i}}Bootstrap's carousel class exposes two events for hooking into carousel functionality.{{/i}}

    + + + + + + + + + + + + + + + + + +
    {{_i}}Event{{/i}}{{_i}}Description{{/i}}
    {{_i}}slide{{/i}}{{_i}}This event fires immediately when the slide instance method is invoked.{{/i}}
    {{_i}}slid{{/i}}{{_i}}This event is fired when the carousel has completed its slide transition.{{/i}}
    +
    + + + + +
    + -

    {{_i}}Usage{{/i}}

    +

    {{_i}}Example{{/i}}

    +

    {{_i}}A basic, easily extended plugin for quickly creating elegant typeaheads with any form text input.{{/i}}

    +
    + +
    {{! /example }} +
    <input type="text" data-provide="typeahead">
    + + +
    + + +

    {{_i}}Usage{{/i}}

    + +

    {{_i}}Via data attributes{{/i}}

    +

    {{_i}}Add data attributes to register an element with typeahead functionality as shown in the example above.{{/i}}

    + +

    {{_i}}Via javascript{{/i}}

    +

    {{_i}}Call the typeahead manually with:{{/i}}

    +
    $('.typeahead').typeahead()
    + +

    {{_i}}Options{{/i}}

    +

    {{_i}}Options can be passed via data attributes or javascript. For data attributes, append the option name to data-, as in data-source="".{{/i}}

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    {{_i}}Name{{/i}}{{_i}}type{{/i}}{{_i}}default{{/i}}{{_i}}description{{/i}}
    {{_i}}source{{/i}}{{_i}}array, function{{/i}}[ ]{{_i}}The data source to query against. May be an array of strings or a function. The function is passed two arguments, the query value in the input field and the process callback. The function may be used synchronously by returning the data source directly or asynchronously via the process callback's single argument.{{/i}}
    {{_i}}items{{/i}}{{_i}}number{{/i}}8{{_i}}The max number of items to display in the dropdown.{{/i}}
    {{_i}}matcher{{/i}}{{_i}}function{{/i}}{{_i}}case insensitive{{/i}}{{_i}}The method used to determine if a query matches an item. Accepts a single argument, the item against which to test the query. Access the current query with this.query. Return a boolean true if query is a match.{{/i}}
    {{_i}}sorter{{/i}}{{_i}}function{{/i}}{{_i}}exact match,
    case sensitive,
    case insensitive{{/i}}
    {{_i}}Method used to sort autocomplete results. Accepts a single argument items and has the scope of the typeahead instance. Reference the current query with this.query.{{/i}}
    {{_i}}highlighter{{/i}}{{_i}}function{{/i}}{{_i}}highlights all default matches{{/i}}{{_i}}Method used to highlight autocomplete results. Accepts a single argument item and has the scope of the typeahead instance. Should return html.{{/i}}
    + +

    {{_i}}Methods{{/i}}

    +

    .typeahead({{_i}}options{{/i}})

    +

    {{_i}}Initializes an input with a typeahead.{{/i}}

    +
    + + + + +
    + -

    {{_i}}Via data attributes{{/i}}

    -

    {{_i}}Add data attributes to register an element with typeahead functionality as shown in the example above.{{/i}}

    +

    {{_i}}...{{/i}}

    +

    {{_i}}...{{/i}}

    +
    -

    {{_i}}Via javascript{{/i}}

    -

    {{_i}}Call the typeahead manually with:{{/i}}

    -
    $('.typeahead').typeahead()
    +
    +
    ...
    +
    -

    {{_i}}Options{{/i}}

    -

    {{_i}}Options can be passed via data attributes or javascript. For data attributes, append the option name to data-, as in data-source="".{{/i}}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {{_i}}Name{{/i}}{{_i}}type{{/i}}{{_i}}default{{/i}}{{_i}}description{{/i}}
    {{_i}}source{{/i}}{{_i}}array, function{{/i}}[ ]{{_i}}The data source to query against. May be an array of strings or a function. The function is passed two arguments, the query value in the input field and the process callback. The function may be used synchronously by returning the data source directly or asynchronously via the process callback's single argument.{{/i}}
    {{_i}}items{{/i}}{{_i}}number{{/i}}8{{_i}}The max number of items to display in the dropdown.{{/i}}
    {{_i}}matcher{{/i}}{{_i}}function{{/i}}{{_i}}case insensitive{{/i}}{{_i}}The method used to determine if a query matches an item. Accepts a single argument, the item against which to test the query. Access the current query with this.query. Return a boolean true if query is a match.{{/i}}
    {{_i}}sorter{{/i}}{{_i}}function{{/i}}{{_i}}exact match,
    case sensitive,
    case insensitive{{/i}}
    {{_i}}Method used to sort autocomplete results. Accepts a single argument items and has the scope of the typeahead instance. Reference the current query with this.query.{{/i}}
    {{_i}}highlighter{{/i}}{{_i}}function{{/i}}{{_i}}highlights all default matches{{/i}}{{_i}}Method used to highlight autocomplete results. Accepts a single argument item and has the scope of the typeahead instance. Should return html.{{/i}}
    - -

    {{_i}}Methods{{/i}}

    -

    .typeahead({{_i}}options{{/i}})

    -

    {{_i}}Initializes an input with a typeahead.{{/i}}

    -
    - - - - -
    - - -

    {{_i}}...{{/i}}

    -

    {{_i}}...{{/i}}

    -
    - -
    -
    -...
    -
    -
    + {{! /span9 }} + {{! row}} - {{! /span9 }} - {{! row}} + {{! /.container }} -{{! /container }} +{{! /.bs-docs-canvas }} diff --git a/docs/templates/pages/scaffolding.mustache b/docs/templates/pages/scaffolding.mustache index 4b9d4c5b2..5a613a45f 100644 --- a/docs/templates/pages/scaffolding.mustache +++ b/docs/templates/pages/scaffolding.mustache @@ -7,35 +7,35 @@ +
    -
    - +
    - -
    - -
    + +
    + +
    - -
    - + +
    + -

    {{_i}}Requires HTML5 doctype{{/i}}

    -

    {{_i}}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.{{/i}}

    +

    {{_i}}Requires HTML5 doctype{{/i}}

    +

    {{_i}}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.{{/i}}

     <!DOCTYPE html>
     <html lang="en">
    @@ -43,84 +43,84 @@
     </html>
     
    -

    {{_i}}Typography and links{{/i}}

    -

    {{_i}}Bootstrap sets basic global display, typography, and link styles. Specifically, we:{{/i}}

    -
      -
    • {{_i}}Remove margin on the body{{/i}}
    • -
    • {{_i}}Set background-color: white; on the body{{/i}}
    • -
    • {{_i}}Use the @baseFontFamily, @baseFontSize, and @baseLineHeight attributes as our typographyic base{{/i}}
    • -
    • {{_i}}Set the global link color via @linkColor and apply link underlines only on :hover{{/i}}
    • -
    -

    {{_i}}These styles can be found within scaffolding.less.{{/i}}

    +

    {{_i}}Typography and links{{/i}}

    +

    {{_i}}Bootstrap sets basic global display, typography, and link styles. Specifically, we:{{/i}}

    +
      +
    • {{_i}}Remove margin on the body{{/i}}
    • +
    • {{_i}}Set background-color: white; on the body{{/i}}
    • +
    • {{_i}}Use the @baseFontFamily, @baseFontSize, and @baseLineHeight attributes as our typographyic base{{/i}}
    • +
    • {{_i}}Set the global link color via @linkColor and apply link underlines only on :hover{{/i}}
    • +
    +

    {{_i}}These styles can be found within scaffolding.less.{{/i}}

    -

    {{_i}}Reset via Normalize{{/i}}

    -

    {{_i}}With Bootstrap 2, the old reset block has been dropped in favor of Normalize.css, a project by Nicolas Gallagher that also powers the HTML5 Boilerplate. While we use much of Normalize within our reset.less, we have removed some elements specifically for Bootstrap.{{/i}}

    +

    {{_i}}Reset via Normalize{{/i}}

    +

    {{_i}}With Bootstrap 2, the old reset block has been dropped in favor of Normalize.css, a project by Nicolas Gallagher that also powers the HTML5 Boilerplate. While we use much of Normalize within our reset.less, we have removed some elements specifically for Bootstrap.{{/i}}

    -
    +
    - -
    - - -

    {{_i}}Live grid example{{/i}}

    -

    {{_i}}The default Bootstrap grid system utilizes 12 columns, making for a 940px wide container without responsive features enabled. With the responsive CSS file added, the grid adapts to be 724px and 1170px wide depending on your viewport. Below 767px viewports, the columns become fluid and stack vertically.{{/i}}

    -
    -
    -
    1
    -
    1
    -
    1
    -
    1
    -
    1
    -
    1
    -
    1
    -
    1
    -
    1
    -
    -
    -
    2
    -
    3
    -
    4
    + +
    + -
    -
    4
    -
    5
    -
    -
    -
    9
    + +

    {{_i}}Live grid example{{/i}}

    +

    {{_i}}The default Bootstrap grid system utilizes 12 columns, making for a 940px wide container without responsive features enabled. With the responsive CSS file added, the grid adapts to be 724px and 1170px wide depending on your viewport. Below 767px viewports, the columns become fluid and stack vertically.{{/i}}

    +
    +
    +
    1
    +
    1
    +
    1
    +
    1
    +
    1
    +
    1
    +
    1
    +
    1
    +
    1
    +
    +
    +
    2
    +
    3
    +
    4
    +
    +
    +
    4
    +
    5
    +
    +
    +
    9
    +
    -
    -

    {{_i}}Basic grid HTML{{/i}}

    -

    {{_i}}For a simple two column layout, create a .row and add the appropriate number of .span* columns. As this is a 12-column grid, each .span* 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).{{/i}}

    +

    {{_i}}Basic grid HTML{{/i}}

    +

    {{_i}}For a simple two column layout, create a .row and add the appropriate number of .span* columns. As this is a 12-column grid, each .span* 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).{{/i}}

     <div class="row">
       <div class="span4">...</div>
       <div class="span8">...</div>
     </div>
     
    -

    {{_i}}Given this example, we have .span4 and .span8, making for 12 total columns and a complete row.{{/i}}

    - -

    {{_i}}Offsetting columns{{/i}}

    -

    {{_i}}Move columns to the left using .offset* classes. Each class increases the left margin of a column by a whole column. For example, .offset4 moves .span4 over four columns.{{/i}}

    -
    -
    -
    4
    -
    3 offset 2
    -
    -
    -
    3 offset 1
    -
    3 offset 2
    -
    -
    -
    6 offset 3
    -
    -
    +

    {{_i}}Given this example, we have .span4 and .span8, making for 12 total columns and a complete row.{{/i}}

    + +

    {{_i}}Offsetting columns{{/i}}

    +

    {{_i}}Move columns to the left using .offset* classes. Each class increases the left margin of a column by a whole column. For example, .offset4 moves .span4 over four columns.{{/i}}

    +
    +
    +
    4
    +
    3 offset 2
    +
    +
    +
    3 offset 1
    +
    3 offset 2
    +
    +
    +
    6 offset 3
    +
    +
     <div class="row">
       <div class="span4">...</div>
    @@ -128,7 +128,7 @@
     </div>
     
    -

    {{_i}}Nesting columns{{/i}}

    +

    {{_i}}Nesting columns{{/i}}

    {{_i}}To nest your content with the default grid, add a new .row and set of .span* columns within an existing .span* column. Nested rows should include a set of columns that add up to the number of columns of its parent.{{/i}}

    {{_i}}Example{{/i}}

    {{_i}}Here two nested .span4 columns are placed within a .span8.{{/i}}

    @@ -156,54 +156,54 @@ </div> </div> -
    +
    - -
    - - -

    {{_i}}Live fluid grid example{{/i}}

    -

    {{_i}}The fluid grid system uses percents instead of pixels for column widths. It has the same responsive capabilities as our fixed grid system, ensuring proper proportions for key screen resolutions and devices.{{/i}}

    -
    -
    -
    1
    -
    1
    -
    1
    -
    1
    -
    1
    -
    1
    -
    1
    -
    1
    -
    1
    -
    1
    -
    1
    -
    1
    -
    -
    -
    4
    -
    4
    -
    4
    + +
    + -
    -
    4
    -
    8
    -
    -
    -
    6
    -
    6
    -
    -
    -
    12
    + +

    {{_i}}Live fluid grid example{{/i}}

    +

    {{_i}}The fluid grid system uses percents instead of pixels for column widths. It has the same responsive capabilities as our fixed grid system, ensuring proper proportions for key screen resolutions and devices.{{/i}}

    +
    +
    +
    1
    +
    1
    +
    1
    +
    1
    +
    1
    +
    1
    +
    1
    +
    1
    +
    1
    +
    1
    +
    1
    +
    1
    +
    +
    +
    4
    +
    4
    +
    4
    +
    +
    +
    4
    +
    8
    +
    +
    +
    6
    +
    6
    +
    +
    +
    12
    +
    -
    -

    {{_i}}Basic fluid grid HTML{{/i}}

    -

    {{_i}}Make any row "fluid" by changing .row to .row-fluid. The column classes stay the exact same, making it easy to flip between fixed and fluid grids.{{/i}}

    +

    {{_i}}Basic fluid grid HTML{{/i}}

    +

    {{_i}}Make any row "fluid" by changing .row to .row-fluid. The column classes stay the exact same, making it easy to flip between fixed and fluid grids.{{/i}}

     <div class="row-fluid">
       <div class="span4">...</div>
    @@ -211,21 +211,21 @@
     </div>
     
    -

    {{_i}}Fluid offsetting{{/i}}

    -

    {{_i}}Operates the same way as the fixed grid system offsetting: add .offset* to any column to offset by that many columns.{{/i}}

    -
    -
    -
    4
    -
    4 offset 4
    -
    -
    -
    3 offset 3
    -
    3 offset 3
    -
    -
    -
    6 offset 6
    -
    -
    +

    {{_i}}Fluid offsetting{{/i}}

    +

    {{_i}}Operates the same way as the fixed grid system offsetting: add .offset* to any column to offset by that many columns.{{/i}}

    +
    +
    +
    4
    +
    4 offset 4
    +
    +
    +
    3 offset 3
    +
    3 offset 3
    +
    +
    +
    6 offset 6
    +
    +
     <div class="row-fluid">
       <div class="span4">...</div>
    @@ -233,21 +233,21 @@
     </div>
     
    -

    {{_i}}Fluid nesting{{/i}}

    -

    {{_i}}Nesting with fluid grids is a bit different: the number of nested columns should not match the parent's number of columns. Instead, each level of nested columns are reset because each row takes up 100% of the parent column.{{/i}}

    -
    -
    - {{_i}}Fluid 12{{/i}} -
    -
    - {{_i}}Fluid 6{{/i}} -
    -
    - {{_i}}Fluid 6{{/i}} +

    {{_i}}Fluid nesting{{/i}}

    +

    {{_i}}Nesting with fluid grids is a bit different: the number of nested columns should not match the parent's number of columns. Instead, each level of nested columns are reset because each row takes up 100% of the parent column.{{/i}}

    +
    +
    + {{_i}}Fluid 12{{/i}} +
    +
    + {{_i}}Fluid 6{{/i}} +
    +
    + {{_i}}Fluid 6{{/i}} +
    -
     <div class="row-fluid">
       <div class="span12">
    @@ -260,23 +260,23 @@
     </div>
     
    -
    +
    - -
    - + +
    + -

    {{_i}}Fixed layout{{/i}}

    -

    {{_i}}Provides a common fixed-width (and optionally responsive) layout with only <div class="container"> required.{{/i}}

    -
    -
    -
    +

    {{_i}}Fixed layout{{/i}}

    +

    {{_i}}Provides a common fixed-width (and optionally responsive) layout with only <div class="container"> required.{{/i}}

    +
    +
    +
     <body>
       <div class="container">
    @@ -285,12 +285,12 @@
     </body>
     
    -

    {{_i}}Fluid layout{{/i}}

    -

    {{_i}}Create a fluid, two-column page with <div class="container-fluid">—great for applications and docs.{{/i}}

    -
    -
    -
    -
    +

    {{_i}}Fluid layout{{/i}}

    +

    {{_i}}Create a fluid, two-column page with <div class="container-fluid">—great for applications and docs.{{/i}}

    +
    +
    +
    +
     <div class="container-fluid">
       <div class="row-fluid">
    @@ -303,81 +303,81 @@
       </div>
     </div>
     
    -
    +
    - -
    - + +
    + - {{! Enabling }} -

    {{_i}}Enabling responsive features{{/i}}

    -

    {{_i}}Turn on responsive CSS in your project by including the proper meta tag and additional stylesheet within the <head> of your document. If you've compiled Bootstrap from the Customize page, you need only include the meta tag.{{/i}}

    + {{! Enabling }} +

    {{_i}}Enabling responsive features{{/i}}

    +

    {{_i}}Turn on responsive CSS in your project by including the proper meta tag and additional stylesheet within the <head> of your document. If you've compiled Bootstrap from the Customize page, you need only include the meta tag.{{/i}}

     <meta name="viewport" content="width=device-width, initial-scale=1.0">
     <link href="assets/css/bootstrap-responsive.css" rel="stylesheet">
     
    -

    {{_i}}Heads up!{{/i}} {{_i}} Bootstrap doesn't include responsive features by default at this time as not everything needs to be responsive. Instead of encouraging developers to remove this feature, we figure it best to enable it as needed.{{/i}}

    - - {{! About }} -

    {{_i}}About responsive Bootstrap{{/i}}

    - Responsive devices -

    {{_i}}Media queries allow for custom CSS based on a number of conditions—ratios, widths, display type, etc—but usually focuses around min-width and max-width.{{/i}}

    -
      -
    • {{_i}}Modify the width of column in our grid{{/i}}
    • -
    • {{_i}}Stack elements instead of float wherever necessary{{/i}}
    • -
    • {{_i}}Resize headings and text to be more appropriate for devices{{/i}}
    • -
    -

    {{_i}}Use media queries responsibly and only as a start to your mobile audiences. For larger projects, do consider dedicated code bases and not layers of media queries.{{/i}}

    - - {{! Supported }} -

    {{_i}}Supported devices{{/i}}

    -

    {{_i}}Bootstrap supports a handful of media queries in a single file to help make your projects more appropriate on different devices and screen resolutions. Here's what's included:{{/i}}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {{_i}}Label{{/i}}{{_i}}Layout width{{/i}}{{_i}}Column width{{/i}}{{_i}}Gutter width{{/i}}
    {{_i}}Phones{{/i}}480px and below{{_i}}Fluid columns, no fixed widths{{/i}}
    {{_i}}Phones to tablets{{/i}}767px and below{{_i}}Fluid columns, no fixed widths{{/i}}
    {{_i}}Portrait tablets{{/i}}768px and above42px20px
    {{_i}}Default{{/i}}980px and up60px20px
    {{_i}}Large display{{/i}}1200px and up70px30px
    +

    {{_i}}Heads up!{{/i}} {{_i}} Bootstrap doesn't include responsive features by default at this time as not everything needs to be responsive. Instead of encouraging developers to remove this feature, we figure it best to enable it as needed.{{/i}}

    + + {{! About }} +

    {{_i}}About responsive Bootstrap{{/i}}

    + Responsive devices +

    {{_i}}Media queries allow for custom CSS based on a number of conditions—ratios, widths, display type, etc—but usually focuses around min-width and max-width.{{/i}}

    +
      +
    • {{_i}}Modify the width of column in our grid{{/i}}
    • +
    • {{_i}}Stack elements instead of float wherever necessary{{/i}}
    • +
    • {{_i}}Resize headings and text to be more appropriate for devices{{/i}}
    • +
    +

    {{_i}}Use media queries responsibly and only as a start to your mobile audiences. For larger projects, do consider dedicated code bases and not layers of media queries.{{/i}}

    + + {{! Supported }} +

    {{_i}}Supported devices{{/i}}

    +

    {{_i}}Bootstrap supports a handful of media queries in a single file to help make your projects more appropriate on different devices and screen resolutions. Here's what's included:{{/i}}

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    {{_i}}Label{{/i}}{{_i}}Layout width{{/i}}{{_i}}Column width{{/i}}{{_i}}Gutter width{{/i}}
    {{_i}}Phones{{/i}}480px and below{{_i}}Fluid columns, no fixed widths{{/i}}
    {{_i}}Phones to tablets{{/i}}767px and below{{_i}}Fluid columns, no fixed widths{{/i}}
    {{_i}}Portrait tablets{{/i}}768px and above42px20px
    {{_i}}Default{{/i}}980px and up60px20px
    {{_i}}Large display{{/i}}1200px and up70px30px
     /* {{_i}}Landscape phones and down{{/i}} */
     @media (max-width: 480px) { ... }
    @@ -393,83 +393,85 @@
     
    - {{! Responsive utility classes }} -

    {{_i}}Responsive utility classes{{/i}}

    -

    {{_i}}For faster mobile-friendly development, use these utility classes for showing and hiding content by device. Below is a table of the available classes and their effect on a given media query layout (labeled by device). They can be found in responsive.less.{{/i}}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {{_i}}Class{{/i}}{{_i}}Phones 767px and below{{/i}}{{_i}}Tablets 979px to 768px{{/i}}{{_i}}Desktops Default{{/i}}
    .visible-phone{{_i}}Visible{{/i}}
    .visible-tablet{{_i}}Visible{{/i}}
    .visible-desktop{{_i}}Visible{{/i}}
    .hidden-phone{{_i}}Visible{{/i}}{{_i}}Visible{{/i}}
    .hidden-tablet{{_i}}Visible{{/i}}{{_i}}Visible{{/i}}
    .hidden-desktop{{_i}}Visible{{/i}}{{_i}}Visible{{/i}}
    - -

    {{_i}}When to use{{/i}}

    -

    {{_i}}Use on a limited basis and avoid creating entirely different versions of the same site. Instead, use them to complement each device's presentation.{{/i}}

    - -

    {{_i}}Responsive utilities test case{{/i}}

    -

    {{_i}}Resize your browser or load on different devices to test the above classes.{{/i}}

    -

    {{_i}}Visible on...{{/i}}

    -

    {{_i}}Green checkmarks indicate that class is visible in your current viewport.{{/i}}

    -
      -
    • {{_i}}Phone{{/i}}✔ {{_i}}Phone{{/i}}
    • -
    • {{_i}}Tablet{{/i}}✔ {{_i}}Tablet{{/i}}
    • -
    • {{_i}}Desktop{{/i}}✔ {{_i}}Desktop{{/i}}
    • -
    -

    {{_i}}Hidden on...{{/i}}

    -

    {{_i}}Here, green checkmarks indicate that class is hidden in your current viewport.{{/i}}

    -
      -
    • {{_i}}Phone{{/i}}✔ {{_i}}Phone{{/i}}
    • -
    • {{_i}}Tablet{{/i}}✔ {{_i}}Tablet{{/i}}
    • -
    • {{_i}}Desktop{{/i}}✔ {{_i}}Desktop{{/i}}
    • -
    - -
    - - - -
    {{! /span9 }} -
    {{! row}} - -
    {{! /container }} + {{! Responsive utility classes }} +

    {{_i}}Responsive utility classes{{/i}}

    +

    {{_i}}For faster mobile-friendly development, use these utility classes for showing and hiding content by device. Below is a table of the available classes and their effect on a given media query layout (labeled by device). They can be found in responsive.less.{{/i}}

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    {{_i}}Class{{/i}}{{_i}}Phones 767px and below{{/i}}{{_i}}Tablets 979px to 768px{{/i}}{{_i}}Desktops Default{{/i}}
    .visible-phone{{_i}}Visible{{/i}}
    .visible-tablet{{_i}}Visible{{/i}}
    .visible-desktop{{_i}}Visible{{/i}}
    .hidden-phone{{_i}}Visible{{/i}}{{_i}}Visible{{/i}}
    .hidden-tablet{{_i}}Visible{{/i}}{{_i}}Visible{{/i}}
    .hidden-desktop{{_i}}Visible{{/i}}{{_i}}Visible{{/i}}
    + +

    {{_i}}When to use{{/i}}

    +

    {{_i}}Use on a limited basis and avoid creating entirely different versions of the same site. Instead, use them to complement each device's presentation.{{/i}}

    + +

    {{_i}}Responsive utilities test case{{/i}}

    +

    {{_i}}Resize your browser or load on different devices to test the above classes.{{/i}}

    +

    {{_i}}Visible on...{{/i}}

    +

    {{_i}}Green checkmarks indicate that class is visible in your current viewport.{{/i}}

    +
      +
    • {{_i}}Phone{{/i}}✔ {{_i}}Phone{{/i}}
    • +
    • {{_i}}Tablet{{/i}}✔ {{_i}}Tablet{{/i}}
    • +
    • {{_i}}Desktop{{/i}}✔ {{_i}}Desktop{{/i}}
    • +
    +

    {{_i}}Hidden on...{{/i}}

    +

    {{_i}}Here, green checkmarks indicate that class is hidden in your current viewport.{{/i}}

    +
      +
    • {{_i}}Phone{{/i}}✔ {{_i}}Phone{{/i}}
    • +
    • {{_i}}Tablet{{/i}}✔ {{_i}}Tablet{{/i}}
    • +
    • {{_i}}Desktop{{/i}}✔ {{_i}}Desktop{{/i}}
    • +
    + + + + + +
    {{! /span9 }} +
    {{! row}} + +
    {{! /.container }} + +
    {{! /.bs-docs-canvas }} -- cgit v1.2.3 From 4ea7c472358e2d77f76193ed3c1bafd641dd74ae Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Tue, 24 Jul 2012 00:21:40 -0700 Subject: slightly fix side bar --- docs/templates/pages/javascript.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache index c5afdfb06..906fbc4c6 100644 --- a/docs/templates/pages/javascript.mustache +++ b/docs/templates/pages/javascript.mustache @@ -14,7 +14,7 @@ ================================================== -->
    -
    {{! /.bs-docs-canvas }} +{{! /.bs-docs-canvas closes in footer }} -- cgit v1.2.3 From f75277e62d3025fbeb3588a6790caa2ce92122f0 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 26 Jul 2012 21:45:19 -0700 Subject: indenting and such --- docs/templates/pages/getting-started.mustache | 66 +-- docs/templates/pages/javascript.mustache | 812 +++++++++++++------------- 2 files changed, 437 insertions(+), 441 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/getting-started.mustache b/docs/templates/pages/getting-started.mustache index d177bca5f..852c3add5 100644 --- a/docs/templates/pages/getting-started.mustache +++ b/docs/templates/pages/getting-started.mustache @@ -38,12 +38,12 @@
    -

    Download compiled

    +

    Download compiled

    Fastest way to get started: get the compiled and minified versions of our CSS, JS, and images. No docs or original source files.

    Download Bootstrap

    -

    Download source

    +

    Download source

    Get the original files for all CSS and Javasript, along with a local copy of the docs by downloading the latest version directly from GitHub.

    Download Bootstrap source

    @@ -85,40 +85,36 @@

    {{_i}}Bootstrap comes equipped with HTML, CSS, and JS for all sorts of things, but they can be summarized with a handful of categories visible at the top of the Bootstrap documentation.{{/i}}

    -

    Scaffolding

    -

    Global styles for the body to reset type and background, link styles, grid system, and two simple layouts.

    - -

    Base CSS

    -

    Styles for common HTML elements like typography, code, tables, forms, and buttons. Also includes Glyphicons, a great little icon set.

    - -

    Components

    -

    Basic styles for common interface components like tabs and pills, navbar, alerts, page headers, and more.

    - -

    Javascript plugins

    -

    Similar to Components, these Javascript plugins are interactive components for things like tooltips, popovers, modals, and more.

    - -
    - -

    List of components

    -

    Together, the Components and Javascript plugins sections provide the following interface elements:

    +

    {{_i}}Docs sections{{/i}}

    +

    {{_i}}Scaffolding{{/i}}

    +

    {{_i}}Global styles for the body to reset type and background, link styles, grid system, and two simple layouts.{{/i}}

    +

    {{_i}}Base CSS{{/i}}

    +

    {{_i}}Styles for common HTML elements like typography, code, tables, forms, and buttons. Also includes Glyphicons, a great little icon set.{{/i}}

    +

    {{_i}}Components{{/i}}

    +

    {{_i}}Basic styles for common interface components like tabs and pills, navbar, alerts, page headers, and more.{{/i}}

    +

    {{_i}}Javascript plugins{{/i}}

    +

    {{_i}}Similar to Components, these Javascript plugins are interactive components for things like tooltips, popovers, modals, and more.{{/i}}

    + +

    {{_i}}List of components{{/i}}

    +

    {{_i}}Together, the Components and Javascript plugins sections provide the following interface elements:{{/i}}

      -
    • Button groups
    • -
    • Button dropdowns
    • -
    • Navigational tabs, pills, and lists
    • -
    • Navbar
    • -
    • Labels
    • -
    • Badges
    • -
    • Page headers and hero unit
    • -
    • Thumbnails
    • -
    • Alerts
    • -
    • Progress bars
    • -
    • Modals
    • -
    • Dropdowns
    • -
    • Tooltips
    • -
    • Popovers
    • -
    • Accordion
    • -
    • Carousel
    • -
    • Typeahead
    • +
    • {{_i}}Button groups{{/i}}
    • +
    • {{_i}}Button dropdowns{{/i}}
    • +
    • {{_i}}Navigational tabs, pills, and lists{{/i}}
    • +
    • {{_i}}Navbar{{/i}}
    • +
    • {{_i}}Labels{{/i}}
    • +
    • {{_i}}Badges{{/i}}
    • +
    • {{_i}}Page headers and hero unit{{/i}}
    • +
    • {{_i}}Thumbnails{{/i}}
    • +
    • {{_i}}Alerts{{/i}}
    • +
    • {{_i}}Progress bars{{/i}}
    • +
    • {{_i}}Modals{{/i}}
    • +
    • {{_i}}Dropdowns{{/i}}
    • +
    • {{_i}}Tooltips{{/i}}
    • +
    • {{_i}}Popovers{{/i}}
    • +
    • {{_i}}Accordion{{/i}}
    • +
    • {{_i}}Carousel{{/i}}
    • +
    • {{_i}}Typeahead{{/i}}

    {{_i}}In future guides, we may walk through these components individually in more detail. Until then, look for each of these in the documentation for information on how to utilize and customize them.{{/i}}

    diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache index e072f05b9..9f93620c3 100644 --- a/docs/templates/pages/javascript.mustache +++ b/docs/templates/pages/javascript.mustache @@ -99,34 +99,34 @@ $('#myModal').on('show', function (e) { - -
    - + +
    + -

    {{_i}}Examples{{/i}}

    -

    {{_i}}Modals are streamlined, but flexible, dialog prompts with the minimum required functionality and smart defaults.{{/i}}

    +

    {{_i}}Examples{{/i}}

    +

    {{_i}}Modals are streamlined, but flexible, dialog prompts with the minimum required functionality and smart defaults.{{/i}}

    -

    {{_i}}Static example{{/i}}

    -

    {{_i}}A rendered modal with header, body, and set of actions in the footer.{{/i}}

    -
    - {{! /example }}
     <div class="modal hide fade">
       <div class="modal-header">
    @@ -143,43 +143,43 @@ $('#myModal').on('show', function (e) {
     </div>
     
    -

    {{_i}}Live demo{{/i}}

    -

    {{_i}}Toggle a modal via javascript by clicking the button below. It will slide down and fade in from the top of the page.{{/i}}

    - -
    - +
    - - - -
    - + +
    + -

    {{_i}}Example in navbar{{/i}}

    -

    {{_i}}The ScrollSpy plugin is for automatically updating nav targets based on scroll position. Scroll the area below the navbar and watch the active class change. The dropdown sub items will be highlighted as well.{{/i}}

    -
    -
    +

    {{_i}}Events{{/i}}

    + + + + + + + + + + + + + +
    {{_i}}Event{{/i}}{{_i}}Description{{/i}}
    {{_i}}activate{{/i}}{{_i}}This event fires whenever a new item becomes activated by the scrollspy.{{/i}}
    +
    - -
    - + +
    + -

    {{_i}}Example tabs{{/i}}

    -

    {{_i}}Add quick, dynamic tab functionality to transiton through panes of local content, even via dropdown menus.{{/i}}

    -
    - -
    -
    -

    Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui.

    -
    -
    -

    Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft beer twee. Qui photo booth letterpress, commodo enim craft beer mlkshk aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthetic magna delectus mollit. Keytar helvetica VHS salvia yr, vero magna velit sapiente labore stumptown. Vegan fanny pack odio cillum wes anderson 8-bit, sustainable jean shorts beard ut DIY ethical culpa terry richardson biodiesel. Art party scenester stumptown, tumblr butcher vero sint qui sapiente accusamus tattooed echo park.

    -
    - - +

    {{_i}}Example tabs{{/i}}

    +

    {{_i}}Add quick, dynamic tab functionality to transiton through panes of local content, even via dropdown menus.{{/i}}

    +
    + +
    +
    +

    Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui.

    -
    {{! /example }} +
    +

    Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft beer twee. Qui photo booth letterpress, commodo enim craft beer mlkshk aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthetic magna delectus mollit. Keytar helvetica VHS salvia yr, vero magna velit sapiente labore stumptown. Vegan fanny pack odio cillum wes anderson 8-bit, sustainable jean shorts beard ut DIY ethical culpa terry richardson biodiesel. Art party scenester stumptown, tumblr butcher vero sint qui sapiente accusamus tattooed echo park.

    +
    + + +
    +
    {{! /example }} -
    +
    -

    {{_i}}Usage{{/i}}

    -

    {{_i}}Enable tabbable tabs via javascript (each tab needs to be activated individually):{{/i}}

    +

    {{_i}}Usage{{/i}}

    +

    {{_i}}Enable tabbable tabs via javascript (each tab needs to be activated individually):{{/i}}

     $('#myTab a').click(function (e) {
       e.preventDefault();
       $(this).tab('show');
     })
    -

    {{_i}}You can activate individual tabs in several ways:{{/i}}

    +

    {{_i}}You can activate individual tabs in several ways:{{/i}}

     $('#myTab a[href="#profile"]').tab('show'); // Select tab by name
     $('#myTab a:first').tab('show'); // Select first tab
    @@ -616,8 +616,8 @@ $('#myTab a:last').tab('show'); // Select last tab
     $('#myTab li:eq(2) a').tab('show'); // Select third tab (0-indexed)
     
    -

    {{_i}}Markup{{/i}}

    -

    {{_i}}You can activate a tab or pill navigation without writing any javascript by simply specifying data-toggle="tab" or data-toggle="pill" on an element. Adding the nav and nav-tabs classes to the tab ul will apply the bootstrap tab styling.{{/i}}

    +

    {{_i}}Markup{{/i}}

    +

    {{_i}}You can activate a tab or pill navigation without writing any javascript by simply specifying data-toggle="tab" or data-toggle="pill" on an element. Adding the nav and nav-tabs classes to the tab ul will apply the Bootstrap tab styling.{{/i}}

     <ul class="nav nav-tabs">
       <li><a href="#home" data-toggle="tab">{{_i}}Home{{/i}}</a></li>
    @@ -626,11 +626,11 @@ $('#myTab li:eq(2) a').tab('show'); // Select third tab (0-indexed)
       <li><a href="#settings" data-toggle="tab">{{_i}}Settings{{/i}}</a></li>
     </ul>
    -

    {{_i}}Methods{{/i}}

    -

    $().tab

    -

    - {{_i}}Activates a tab element and content container. Tab should have either a data-target or an href targeting a container node in the DOM.{{/i}} -

    +

    {{_i}}Methods{{/i}}

    +

    $().tab

    +

    + {{_i}}Activates a tab element and content container. Tab should have either a data-target or an href targeting a container node in the DOM.{{/i}} +

     <ul class="nav nav-tabs" id="myTab">
       <li class="active"><a href="#home">{{_i}}Home{{/i}}</a></li>
    @@ -653,25 +653,25 @@ $('#myTab li:eq(2) a').tab('show'); // Select third tab (0-indexed)
     </script>
     
    -

    {{_i}}Events{{/i}}

    - - - - - - - - - - - - - - - - - -
    {{_i}}Event{{/i}}{{_i}}Description{{/i}}
    {{_i}}show{{/i}}{{_i}}This event fires on tab show, but before the new tab has been shown. Use event.target and event.relatedTarget to target the active tab and the previous active tab (if available) respectively.{{/i}}
    {{_i}}shown{{/i}}{{_i}}This event fires on tab show after a tab has been shown. Use event.target and event.relatedTarget to target the active tab and the previous active tab (if available) respectively.{{/i}}
    +

    {{_i}}Events{{/i}}

    + + + + + + + + + + + + + + + + + +
    {{_i}}Event{{/i}}{{_i}}Description{{/i}}
    {{_i}}show{{/i}}{{_i}}This event fires on tab show, but before the new tab has been shown. Use event.target and event.relatedTarget to target the active tab and the previous active tab (if available) respectively.{{/i}}
    {{_i}}shown{{/i}}{{_i}}This event fires on tab show after a tab has been shown. Use event.target and event.relatedTarget to target the active tab and the previous active tab (if available) respectively.{{/i}}
     $('a[data-toggle="tab"]').on('shown', function (e) {
       e.target // activated tab
    -- 
    cgit v1.2.3
    
    
    From 79067721b110a60e24637cf3996cb0ffe9350475 Mon Sep 17 00:00:00 2001
    From: Mark Otto 
    Date: Thu, 26 Jul 2012 23:21:06 -0700
    Subject: fix js docs formatting
    
    ---
     docs/templates/pages/javascript.mustache | 515 ++++++++++++-------------------
     1 file changed, 189 insertions(+), 326 deletions(-)
    
    (limited to 'docs/templates')
    
    diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache
    index 9f93620c3..f4c6e8b68 100644
    --- a/docs/templates/pages/javascript.mustache
    +++ b/docs/templates/pages/javascript.mustache
    @@ -824,351 +824,214 @@ $('a[data-toggle="tab"]').on('shown', function (e) {
                 
    -

    {{_i}}Examples{{/i}}

    -

    {{_i}}Add small overlays of content, like those on the iPad, to any element for housing secondary information. Hover over the button to trigger the popover. Requires Tooltip to be included.{{/i}}

    - -

    {{_i}}Static popover{{/i}}

    -

    {{_i}}Four options are available: top, right, bottom, and left aligned.{{/i}}

    -
    -
    -
    -

    Popover top

    -
    -

    Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

    -
    -
    - -
    -
    -

    Popover right

    -
    -

    Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

    -
    -
    - -
    -
    -

    Popover bottom

    -
    -

    Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

    -
    +
    +
    +

    Popover right

    +
    +

    Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

    +
    -
    -
    -

    Popover left

    -
    -

    Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

    -
    +
    +
    +

    Popover bottom

    +
    +

    Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

    - -
    -

    {{_i}}No markup shown as popovers are generated from javascript and content within a data attribute.{{/i}}

    -

    Live demo

    -
    - {{_i}}Hover for popover{{/i}} +
    +
    +

    Popover left

    +
    +

    Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

    +
    +
    +
    +

    {{_i}}No markup shown as popovers are generated from javascript and content within a data attribute.{{/i}}

    -
    - - -

    {{_i}}Usage{{/i}}

    -

    {{_i}}Enable popovers via javascript:{{/i}}

    -
    $('#example').popover({{_i}}options{{/i}})
    - -

    {{_i}}Options{{/i}}

    -

    {{_i}}Options can be passed via data attributes or javascript. For data attributes, append the option name to data-, as in data-animation="".{{/i}}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {{_i}}Name{{/i}}{{_i}}type{{/i}}{{_i}}default{{/i}}{{_i}}description{{/i}}
    {{_i}}animation{{/i}}{{_i}}boolean{{/i}}true{{_i}}apply a css fade transition to the tooltip{{/i}}
    {{_i}}html{{/i}}{{_i}}boolean{{/i}}true{{_i}}Insert html into the popover. If false, jquery's text method will be used to insert content into the dom. Use text if you're worried about XSS attacks.{{/i}}
    {{_i}}placement{{/i}}{{_i}}string|function{{/i}}'right'{{_i}}how to position the popover{{/i}} - top | bottom | left | right
    {{_i}}selector{{/i}}{{_i}}string{{/i}}false{{_i}}if a selector is provided, tooltip objects will be delegated to the specified targets{{/i}}
    {{_i}}trigger{{/i}}{{_i}}string{{/i}}'hover'{{_i}}how popover is triggered{{/i}} - hover | focus | manual
    {{_i}}title{{/i}}{{_i}}string | function{{/i}}''{{_i}}default title value if `title` attribute isn't present{{/i}}
    {{_i}}content{{/i}}{{_i}}string | function{{/i}}''{{_i}}default content value if `data-content` attribute isn't present{{/i}}
    {{_i}}delay{{/i}}{{_i}}number | object{{/i}}0 -

    {{_i}}delay showing and hiding the popover (ms) - does not apply to manual trigger type{{/i}}

    -

    {{_i}}If a number is supplied, delay is applied to both hide/show{{/i}}

    -

    {{_i}}Object structure is: delay: { show: 500, hide: 100 }{{/i}}

    -
    -
    - {{_i}}Heads up!{{/i}} - {{_i}}Options for individual popovers can alternatively be specified through the use of data attributes.{{/i}} -
    +

    Live demo

    + -

    {{_i}}Markup{{/i}}

    -

    {{_i}}For performance reasons, the Tooltip and Popover data-apis are opt in. If you would like to use them just specify a selector option.{{/i}}

    -

    {{_i}}Methods{{/i}}

    -

    $().popover({{_i}}options{{/i}})

    -

    {{_i}}Initializes popovers for an element collection.{{/i}}

    -

    .popover('show')

    -

    {{_i}}Reveals an elements popover.{{/i}}

    -
    $('#element').popover('show')
    -

    .popover('hide')

    -

    {{_i}}Hides an elements popover.{{/i}}

    -
    $('#element').popover('hide')
    -

    .popover('toggle')

    -

    {{_i}}Toggles an elements popover.{{/i}}

    -
    $('#element').popover('toggle')
    -

    .popover('destroy')

    -

    {{_i}}Hides and destroys an element's popover.{{/i}}

    -
    $('#element').popover('destroy')
    - +
    + + +

    {{_i}}Usage{{/i}}

    +

    {{_i}}Enable popovers via javascript:{{/i}}

    +
    $('#example').popover({{_i}}options{{/i}})
    + +

    {{_i}}Options{{/i}}

    +

    {{_i}}Options can be passed via data attributes or javascript. For data attributes, append the option name to data-, as in data-animation="".{{/i}}

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    {{_i}}Name{{/i}}{{_i}}type{{/i}}{{_i}}default{{/i}}{{_i}}description{{/i}}
    {{_i}}animation{{/i}}{{_i}}boolean{{/i}}true{{_i}}apply a css fade transition to the tooltip{{/i}}
    {{_i}}html{{/i}}{{_i}}boolean{{/i}}true{{_i}}Insert html into the popover. If false, jquery's text method will be used to insert content into the dom. Use text if you're worried about XSS attacks.{{/i}}
    {{_i}}placement{{/i}}{{_i}}string|function{{/i}}'right'{{_i}}how to position the popover{{/i}} - top | bottom | left | right
    {{_i}}selector{{/i}}{{_i}}string{{/i}}false{{_i}}if a selector is provided, tooltip objects will be delegated to the specified targets{{/i}}
    {{_i}}trigger{{/i}}{{_i}}string{{/i}}'hover'{{_i}}how popover is triggered{{/i}} - hover | focus | manual
    {{_i}}title{{/i}}{{_i}}string | function{{/i}}''{{_i}}default title value if `title` attribute isn't present{{/i}}
    {{_i}}content{{/i}}{{_i}}string | function{{/i}}''{{_i}}default content value if `data-content` attribute isn't present{{/i}}
    {{_i}}delay{{/i}}{{_i}}number | object{{/i}}0 +

    {{_i}}delay showing and hiding the popover (ms) - does not apply to manual trigger type{{/i}}

    +

    {{_i}}If a number is supplied, delay is applied to both hide/show{{/i}}

    +

    {{_i}}Object structure is: delay: { show: 500, hide: 100 }{{/i}}

    +
    +
    + {{_i}}Heads up!{{/i}} + {{_i}}Options for individual popovers can alternatively be specified through the use of data attributes.{{/i}} +
    +

    {{_i}}Markup{{/i}}

    +

    {{_i}}For performance reasons, the Tooltip and Popover data-apis are opt in. If you would like to use them just specify a selector option.{{/i}}

    + +

    {{_i}}Methods{{/i}}

    +

    $().popover({{_i}}options{{/i}})

    +

    {{_i}}Initializes popovers for an element collection.{{/i}}

    +

    .popover('show')

    +

    {{_i}}Reveals an elements popover.{{/i}}

    +
    $('#element').popover('show')
    +

    .popover('hide')

    +

    {{_i}}Hides an elements popover.{{/i}}

    +
    $('#element').popover('hide')
    +

    .popover('toggle')

    +

    {{_i}}Toggles an elements popover.{{/i}}

    +
    $('#element').popover('toggle')
    +

    .popover('destroy')

    +

    {{_i}}Hides and destroys an element's popover.{{/i}}

    +
    $('#element').popover('destroy')
    + + + + + +
    + - -
    -
    - - - - -
    - - - -

    {{_i}}Example alerts{{/i}}

    -

    {{_i}}Add dismiss functionality to all alerge messages with this plugin.{{/i}}

    -
    -
    - - {{_i}}Holy guacamole!{{/i}} {{_i}}Best check yo self, you're not looking too good.{{/i}} -
    -
    {{! /example }} - -
    -
    - -

    {{_i}}Oh snap! You got an error!{{/i}}

    -

    {{_i}}Change this and that and try again. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cras mattis consectetur purus sit amet fermentum.{{/i}}

    -

    - {{_i}}Take this action{{/i}} {{_i}}Or do this{{/i}} -

    -
    -
    {{! /example }} - - -
    - - -

    {{_i}}Usage{{/i}}

    -

    {{_i}}Enable dismissal of an alert via javascript:{{/i}}

    -
    $(".alert").alert()
    - -

    {{_i}}Markup{{/i}}

    -

    {{_i}}Just add data-dismiss="alert" to your close button to automatically give an alert close functionality.{{/i}}

    -
    <a class="close" data-dismiss="alert" href="#">&times;</a>
    - -

    {{_i}}Methods{{/i}}

    -

    $().alert()

    -

    {{_i}}Wraps all alerts with close functionality. To have your alerts animate out when closed, make sure they have the .fade and .in class already applied to them.{{/i}}

    -

    .alert('close')

    -

    {{_i}}Closes an alert.{{/i}}

    -
    $(".alert").alert('close')
    - - -

    {{_i}}Events{{/i}}

    -

    {{_i}}Bootstrap's alert class exposes a few events for hooking into alert functionality.{{/i}}

    - - - - - - - - - - - - - - - - - -
    {{_i}}Event{{/i}}{{_i}}Description{{/i}}
    {{_i}}close{{/i}}{{_i}}This event fires immediately when the close instance method is called.{{/i}}
    {{_i}}closed{{/i}}{{_i}}This event is fired when the alert has been closed (will wait for css transitions to complete).{{/i}}
    +
    {{! /example }} + +
    +
    + +

    {{_i}}Oh snap! You got an error!{{/i}}

    +

    {{_i}}Change this and that and try again. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cras mattis consectetur purus sit amet fermentum.{{/i}}

    +

    + {{_i}}Take this action{{/i}} {{_i}}Or do this{{/i}} +

    +
    +
    {{! /example }} + + +
    + + +

    {{_i}}Usage{{/i}}

    +

    {{_i}}Enable dismissal of an alert via javascript:{{/i}}

    +
    $(".alert").alert()
    + +

    {{_i}}Markup{{/i}}

    +

    {{_i}}Just add data-dismiss="alert" to your close button to automatically give an alert close functionality.{{/i}}

    +
    <a class="close" data-dismiss="alert" href="#">&times;</a>
    + +

    {{_i}}Methods{{/i}}

    +

    $().alert()

    +

    {{_i}}Wraps all alerts with close functionality. To have your alerts animate out when closed, make sure they have the .fade and .in class already applied to them.{{/i}}

    +

    .alert('close')

    +

    {{_i}}Closes an alert.{{/i}}

    +
    $(".alert").alert('close')
    + + +

    {{_i}}Events{{/i}}

    +

    {{_i}}Bootstrap's alert class exposes a few events for hooking into alert functionality.{{/i}}

    + + + + + + + + + + + + + + + + + +
    {{_i}}Event{{/i}}{{_i}}Description{{/i}}
    {{_i}}close{{/i}}{{_i}}This event fires immediately when the close instance method is called.{{/i}}
    {{_i}}closed{{/i}}{{_i}}This event is fired when the alert has been closed (will wait for css transitions to complete).{{/i}}
     $('#my-alert').bind('closed', function () {
       // {{_i}}do something…{{/i}}
     })
     
    - + -- cgit v1.2.3 From 1e9b4506196bd448c4038151964733ca524c10bb Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Fri, 27 Jul 2012 00:06:43 -0700 Subject: add image styles, for now to scaffolding (soon to own file) --- docs/templates/pages/base-css.mustache | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'docs/templates') diff --git a/docs/templates/pages/base-css.mustache b/docs/templates/pages/base-css.mustache index fa8578672..a2685aab3 100644 --- a/docs/templates/pages/base-css.mustache +++ b/docs/templates/pages/base-css.mustache @@ -21,6 +21,7 @@
  • {{_i}}Tables{{/i}}
  • {{_i}}Forms{{/i}}
  • {{_i}}Buttons{{/i}}
  • +
  • {{_i}}Images{{/i}}
  • {{_i}}Icons by Glyphicons{{/i}}
  • @@ -1454,6 +1455,30 @@ + +
    + + +

    Simple classes to easily style images in any project.

    +
    + + + +
    +
    +  <img src="..." class="img-rounded">
    +  <img src="..." class="img-circle">
    +  <img src="..." class="img-polaroid">
    +
    + + +
    + + +
    -- cgit v1.2.3 From 9d5c4312232ebb53b2499ed495851c0d61eb648c Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Fri, 27 Jul 2012 10:06:54 -0700 Subject: add basic support for sub menus in dropdown menus --- docs/templates/pages/components.mustache | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/components.mustache b/docs/templates/pages/components.mustache index 52d5137c0..e9022ee12 100644 --- a/docs/templates/pages/components.mustache +++ b/docs/templates/pages/components.mustache @@ -51,7 +51,16 @@
  • {{_i}}Another action{{/i}}
  • {{_i}}Something else here{{/i}}
  • -
  • {{_i}}Separated link{{/i}}
  • +
    {{! /example }} @@ -65,10 +74,6 @@ </ul> - -
    - -

    {{_i}}Markup{{/i}}

    {{_i}}Looking at just the dropdown menu, here's the required HTML. You need to wrap the dropdown's trigger and the dropdown menu within .dropdown, or another element that declares position: relative;. Then just create the menu.{{/i}}

    @@ -85,10 +90,6 @@ </div> - -
    - -

    {{_i}}Options{{/i}}

    {{_i}}...{{/i}}

    -- cgit v1.2.3 From 16b4ac0d8fd5fd2aa588a8b486b71b449e3821ca Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Fri, 27 Jul 2012 10:35:15 -0700 Subject: add docs for sub menu support on dropdowns, add caret via :after to submenu toggles --- docs/templates/pages/components.mustache | 55 +++++++++++++++++++++++++------- 1 file changed, 43 insertions(+), 12 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/components.mustache b/docs/templates/pages/components.mustache index e9022ee12..7ac31e219 100644 --- a/docs/templates/pages/components.mustache +++ b/docs/templates/pages/components.mustache @@ -51,16 +51,7 @@
  • {{_i}}Another action{{/i}}
  • {{_i}}Something else here{{/i}}
  • - +
  • {{_i}}Separated link{{/i}}
  • {{! /example }} @@ -91,10 +82,50 @@

    {{_i}}Options{{/i}}

    -

    {{_i}}...{{/i}}

    +

    {{_i}}Align menus to the right and add include additional levels of dropdowns.{{/i}}

    {{_i}}Aligning the menus{{/i}}

    -

    {{_i}}...{{/i}}

    +

    {{_i}}Add .pull-right to a .dropdown-menu to right align the dropdown menu.{{/i}}

    +
    +<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="dLabel">
    +  ...
    +</ul>
    +
    + +

    {{_i}}Sub menus on dropdowns{{/i}}

    +

    {{_i}}Add an extra level of dropdown menus, appearing on hover like those of OS X, with some simple markup additions. Add .dropdown-submenu to any li in an existing dropdown menu for automatic styling.{{/i}}

    + {{! /example }} +
    +<ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
    +  ...
    +  <li class="dropdown-submenu">
    +    <a tabindex="-1" href="#">{{_i}}More options{{/i}}</a>
    +    <ul class="dropdown-menu">
    +      ...
    +    </ul>
    +  </li>
    +</ul>
    +
    + -- cgit v1.2.3 From fe6a4b0b5497a78a085e85125f4397a27b7737dc Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Fri, 27 Jul 2012 15:42:58 -0700 Subject: add .btn-block for a full-width button option --- docs/templates/pages/base-css.mustache | 47 +++++++++++++++++++--------------- 1 file changed, 26 insertions(+), 21 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/base-css.mustache b/docs/templates/pages/base-css.mustache index a2685aab3..248ffa042 100644 --- a/docs/templates/pages/base-css.mustache +++ b/docs/templates/pages/base-css.mustache @@ -1376,26 +1376,34 @@

    {{_i}}IE9 doesn't crop background gradients on rounded corners, so we remove it. Related, IE9 jankifies disabled button elements, rendering text gray with a nasty text-shadow that we cannot fix.{{/i}}

    -
    - -

    {{_i}}Button sizes{{/i}}

    {{_i}}Fancy larger or smaller buttons? Add .btn-large, .btn-small, or .btn-mini for two additional sizes.{{/i}}

    -

    - - -

    -

    - - -

    -

    - - -

    - - -
    +
    +

    + + +

    +

    + + +

    +

    + + +

    +
    +
    +<button class="btn btn-large" type="button">{{_i}}Large button{{/i}}</button>
    +<button class="btn btn-small" type="button">{{_i}}Small button{{/i}}</button>
    +<button class="btn btn-mini" type="button">{{_i}}Mini button{{/i}}</button>
    +
    +

    {{_i}}Create block level buttons—those that span the full width of a parent— by adding .btn-block.{{/i}}

    +
    +
    + +
    +
    +
    <button class="btn btn-large btn-block" type="button">{{_i}}Block level button{{/i}}</button>

    {{_i}}Disabled state{{/i}}

    @@ -1428,9 +1436,6 @@ -
    - -

    {{_i}}One class, multiple tags{{/i}}

    {{_i}}Use the .btn class on an <a>, <button>, or <input> element.{{/i}}

    -- cgit v1.2.3 From a30045daef809edf5ed592ad842c04377898e444 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 29 Jul 2012 00:30:15 -0700 Subject: reverse navbar styles to save code --- docs/templates/layout.mustache | 2 +- docs/templates/pages/base-css.mustache | 3 ++- docs/templates/pages/components.mustache | 7 ++++--- 3 files changed, 7 insertions(+), 5 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/layout.mustache b/docs/templates/layout.mustache index 4c69e9fc5..6266446e1 100644 --- a/docs/templates/layout.mustache +++ b/docs/templates/layout.mustache @@ -43,7 +43,7 @@ -