diff --git a/docs/docs.html b/docs/docs.html index 1c3b2d434..7f0106c93 100644 --- a/docs/docs.html +++ b/docs/docs.html @@ -238,41 +238,41 @@ title: Bootstrap Documentation
For improved cross-browser rendering, we use Normalize, a project by Nicolas Gallagher and Jonathan Neal.
- -Bootstrap includes a responsive, percent-based grid system that appropriately scales up to 12 columns as the device or viewport size increases—in other words, it's mobile first. It includes predefined classes for this, as well as powerful mixins for generating semantic layouts.
+ +Bootstrap includes a responsive, percent-based grid system that appropriately scales up to 12 columns as the device or viewport size increases—in other words, it's mobile first. It includes predefined classes for this, as well as powerful mixins for generating semantic layouts.
-On mobile devices, the grid starts out stacked. Above 768px, it becomes horizontal as media queries kick in to apply floats and widths. To create a basic grid layout, wrap a series of .col-span-* elements within a .row. 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), even at mobile resolutions.
On mobile devices, the grid starts out stacked. Above 768px, it becomes horizontal as media queries kick in to apply floats and widths. To create a basic grid layout, wrap a series of .col-span-* elements within a .row. 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), even at mobile resolutions.
Move columns to the right using .col-offset-* classes. Each class increases the left margin of a column by a whole column. For example, .col-offset-4 moves .col-span-4 over four columns.
Move columns to the right using .col-offset-* classes. Each class increases the left margin of a column by a whole column. For example, .col-offset-4 moves .col-span-4 over four columns.
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 12.
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 12.
Easily change the order of our built-in grid columns with .push* and .pull* modifier classes.
Easily change the order of our built-in grid columns with .push* and .pull* modifier classes.
In addition to prebuilt grid classes for fast layouts, Bootstrap includes LESS variables and mixins for quickly generating your own simple, semantic layouts.
+In addition to prebuilt grid classes for fast layouts, Bootstrap includes LESS variables and mixins for quickly generating your own simple, semantic layouts.
-Variables determine the number of columns, the gutter width, and the media query point at which to begin floating columns. We use these to generate the predefined grid classes documented above, as well as for the custom mixins listed below.
+Variables determine the number of columns, the gutter width, and the media query point at which to begin floating columns. We use these to generate the predefined grid classes documented above, as well as for the custom mixins listed below.
{% highlight css linenos %} @grid-columns: 12; @grid-gutter-width: 30px; @grid-float-breakpoint: 768px; {% endhighlight %} -Mixins are used in conjunction with the grid variables to generate semantic CSS for individual grid columns.
+Mixins are used in conjunction with the grid variables to generate semantic CSS for individual grid columns.
{% highlight css linenos %} // Creates a wrapper for a series of columns .make-row() { @@ -412,8 +412,8 @@ title: Bootstrap Documentation } {% endhighlight %} -You can modify the variables to your own custom values, or just use the mixins with their default values. Here's an example of using the default settings to create a two-column layout with a gap between.
+You can modify the variables to your own custom values, or just use the mixins with their default values. Here's an example of using the default settings to create a two-column layout with a gap between.
{% highlight css linenos %} .wrapper { .make-row(); @@ -433,54 +433,52 @@ title: Bootstrap DocumentationAll HTML headings, <h1> through <h6> are available.
All HTML headings, <h1> through <h6> are available.
Bootstrap heading |
- Semibold 38px | -
|---|---|
Bootstrap heading |
- Semibold 32px | -
Bootstrap heading |
- Semibold 24px | -
Bootstrap heading |
- Semibold 18px | -
Bootstrap heading |
- Semibold 16px | -
Bootstrap heading |
- Semibold 12px | -
Bootstrap heading |
+ Semibold 38px | +
|---|---|
Bootstrap heading |
+ Semibold 32px | +
Bootstrap heading |
+ Semibold 24px | +
Bootstrap heading |
+ Semibold 18px | +
Bootstrap heading |
+ Semibold 16px | +
Bootstrap heading |
+ Semibold 12px | +
Bootstrap's global default font-size is 14px, with a line-height of 20px. This is applied to the <body> and all paragraphs. In addition, <p> (paragraphs) receive a bottom margin of half their line-height (10px by default).
Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam id dolor id nibh ultricies vehicula.
-Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec ullamcorper nulla non metus auctor fringilla. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Donec ullamcorper nulla non metus auctor fringilla.
-Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.
-Bootstrap's global default font-size is 14px, with a line-height of 20px. This is applied to the <body> and all paragraphs. In addition, <p> (paragraphs) receive a bottom margin of half their line-height (10px by default).
Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam id dolor id nibh ultricies vehicula.
+Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec ullamcorper nulla non metus auctor fringilla. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Donec ullamcorper nulla non metus auctor fringilla.
+Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.
+...
{% endhighlight %} - -Make a paragraph stand out by adding .lead.
Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus.
-Make a paragraph stand out by adding .lead.
Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus.
+...
{% endhighlight %} - -The typographic scale is based on two LESS variables in variables.less: @font-size-base and @line-height-base. 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.
The typographic scale is based on two LESS variables in variables.less: @font-size-base and @line-height-base. 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.
Make use of HTML's default emphasis tags with lightweight styles.
+ +Make use of HTML's default emphasis tags with lightweight styles.
-For de-emphasizing inline or blocks of text, use the small tag to set text at 85% the size of the parent. Heading elements receive their own font-size for nested <small< elements.
This line of text is meant to be treated as fine print.
-For de-emphasizing inline or blocks of text, use the small tag to set text at 85% the size of the parent. Heading elements receive their own font-size for nested <small< elements.
This line of text is meant to be treated as fine print.
+For emphasizing a snippet of text with a heavier font-weight.
-The following snippet of text is rendered as bold text.
-For emphasizing a snippet of text with a heavier font-weight.
+The following snippet of text is rendered as bold text.
+For emphasizing a snippet of text with italics.
-The following snippet of text is rendered as italicized text.
-For emphasizing a snippet of text with italics.
+The following snippet of text is rendered as italicized text.
+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.
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.
Easily realign text to components with text alignment classes.
-Left aligned text.
-Center aligned text.
-Right aligned text.
-Easily realign text to components with text alignment classes.
+Left aligned text.
+Center aligned text.
+Right aligned text.
+Left aligned text.
Center aligned text.
Right aligned text.
{% endhighlight %} -Convey meaning through color with a handful of emphasis utility classes.
-Fusce dapibus, tellus ac cursus commodo, tortor mauris nibh.
-Etiam porta sem malesuada magna mollis euismod.
-Donec ullamcorper nulla non metus auctor fringilla.
-Duis mollis, est non commodo luctus, nisi erat porttitor ligula.
-Convey meaning through color with a handful of emphasis utility classes.
+Fusce dapibus, tellus ac cursus commodo, tortor mauris nibh.
+Etiam porta sem malesuada magna mollis euismod.
+Donec ullamcorper nulla non metus auctor fringilla.
+Duis mollis, est non commodo luctus, nisi erat porttitor ligula.
+...
...
@@ -580,44 +578,44 @@ title: Bootstrap Documentation {% endhighlight %} - -Stylized implementation 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.
Stylized implementation 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.
For expanded text on long hover of an abbreviation, include the title attribute with the <abbr> element.
An abbreviation of the word attribute is attr.
-For expanded text on long hover of an abbreviation, include the title attribute with the <abbr> element.
An abbreviation of the word attribute is attr.
+Add .initialism to an abbreviation for a slightly smaller font-size.
HTML is the best thing since sliced bread.
-Add .initialism to an abbreviation for a slightly smaller font-size.
HTML is the best thing since sliced bread.
+Present contact information for the nearest ancestor or the entire body of work. Preserve formatting by ending all lines with <br>.
Present contact information for the nearest ancestor or the entire body of work. Preserve formatting by ending all lines with <br>.
For quoting blocks of content from another source within your document.
+ +For quoting blocks of content from another source within your document.
-Wrap <blockquote> around any HTML as the quote. For straight quotes we recommend a <p>.
--Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
-
Wrap <blockquote> around any HTML as the quote. For straight quotes we recommend a <p>.
++Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
+
{% endhighlight %} -Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
Style and content changes for simple variations on a standard blockquote.
+Style and content changes for simple variations on a standard blockquote.
-Add <small> tag for identifying the source. Wrap the name of the source work in <cite>.
--Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
- Someone famous in Source Title -
Add <small> tag for identifying the source. Wrap the name of the source work in <cite>.
++Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
+ Someone famous in Source Title +
{% endhighlight %} -Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
@@ -668,14 +666,14 @@ title: Bootstrap Documentation
Use .pull-right for a floated, right-aligned blockquote.
Use .pull-right for a floated, right-aligned blockquote.
... @@ -683,111 +681,111 @@ title: Bootstrap Documentation {% endhighlight %} - -Lists
+ +Lists
-Unordered
-A list of items in which the order does not explicitly matter.
--+-
-- 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
-Unordered
+A list of items in which the order does not explicitly matter.
++{% highlight html linenos %}+
+- 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
+{% endhighlight %} -
- ...
Ordered
-A list of items in which the order does explicitly matter.
--+-
-- Lorem ipsum dolor sit amet
-- Consectetur adipiscing elit
-- Integer molestie lorem at massa
-- Facilisis in pretium nisl aliquet
-- Nulla volutpat aliquam velit
-- Faucibus porta lacus fringilla vel
-- Aenean sit amet erat nunc
-- Eget porttitor lorem
-Ordered
+A list of items in which the order does explicitly matter.
++{% highlight html linenos %}+
+- Lorem ipsum dolor sit amet
+- Consectetur adipiscing elit
+- Integer molestie lorem at massa
+- Facilisis in pretium nisl aliquet
+- Nulla volutpat aliquam velit
+- Faucibus porta lacus fringilla vel
+- Aenean sit amet erat nunc
+- Eget porttitor lorem
+{% endhighlight %} -
- ...
Unstyled
-Remove the default
-list-styleand left margin on list items (immediate children only). This only applies to immediate children list items, meaning you will need to add the class for any nested lists as well.-{% highlight html linenos %}-
+- 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
+Unstyled
+Remove the default
+list-styleand left margin on list items (immediate children only). This only applies to immediate children list items, meaning you will need to add the class for any nested lists as well.++ ++
- 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
+{% endhighlight %} -
- ...
Inline
-Place all list items on a single line with
-inline-blockand some light padding.-+-
-- Lorem ipsum
-- Phasellus iaculis
-- Nulla volutpat
-Inline
+Place all list items on a single line with
+inline-blockand some light padding.+{% highlight html linenos %}+
+- Lorem ipsum
+- Phasellus iaculis
+- Nulla volutpat
+{% endhighlight %} -
- ...
Description
-A list of terms with their associated descriptions.
--+-
-- Description lists
-- A description list is perfect for defining terms.
-- 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.
-Description
+A list of terms with their associated descriptions.
++{% highlight html linenos %}+
+- Description lists
+- A description list is perfect for defining terms.
+- 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.
+{% endhighlight %} -
- ...
@@ -795,21 +793,21 @@ title: Bootstrap DocumentationHorizontal description
-Make terms and descriptions in
-<dl>line up side-by-side.-+-
-- Description lists
-- A description list is perfect for defining terms.
-- 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.
-Horizontal description
+Make terms and descriptions in
+<dl>line up side-by-side.+{% highlight html linenos %}+
+- Description lists
+- A description list is perfect for defining terms.
+- 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.
+{% endhighlight %} -
- ...
@@ -817,25 +815,22 @@ title: Bootstrap DocumentationAuto-truncating
-- 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. -
+ 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.
+
Wrap inline snippets of code with <code>.
Wrap inline snippets of code with <code>.
<section> should be wrapped as inline.
<section> should be wrapped as inline.
{% endhighlight %}
- Use <pre> for multiple lines of code. Be sure to escape any angle brackets in the code for proper rendering.
Use <pre> for multiple lines of code. Be sure to escape any angle brackets in the code for proper rendering.
<p>Sample text here...</p>
<section> should be wrapped as inline.
<p>Sample text here...</p>{% endhighlight %} -
You may optionally add the .pre-scrollable class which will set a max-height of 350px and provide a y-axis scrollbar.
You may optionally add the .pre-scrollable class which will set a max-height of 350px and provide a y-axis scrollbar.
For basic styling—light padding and only horizontal dividers—add the base class .table to any <table>. It may seem super redundant, but given the widespread use of tables for other plugins like calendars and date pickers, we've opted to isolate our custom table styles.
| # | -First Name | -Last Name | -Username | -
|---|---|---|---|
| 1 | -Mark | -Otto | -@mdo | -
| 2 | -Jacob | -Thornton | -@fat | -
| 3 | -Larry | -the Bird | -
For basic styling—light padding and only horizontal dividers—add the base class .table to any <table>. It may seem super redundant, but given the widespread use of tables for other plugins like calendars and date pickers, we've opted to isolate our custom table styles.
| # | +First Name | +Last Name | +Username | +
|---|---|---|---|
| 1 | +Mark | +Otto | +@mdo | +
| 2 | +Jacob | +Thornton | +@fat | +
| 3 | +Larry | +the Bird | +
| # | -First Name | -Last Name | -Username | -
|---|---|---|---|
| 1 | -Mark | -Otto | -@mdo | -
| 2 | -Jacob | -Thornton | -@fat | -
| 3 | -Larry | -the Bird | -
Use .table-striped to add zebra-striping to any table row within the <tbody> via the :nth-child CSS selector (not available in IE8).
| # | +First Name | +Last Name | +Username | +
|---|---|---|---|
| 1 | +Mark | +Otto | +@mdo | +
| 2 | +Jacob | +Thornton | +@fat | +
| 3 | +Larry | +the Bird | +
Add .table-bordered for borders and rounded corners.
| # | -First Name | -Last Name | -Username | -
|---|---|---|---|
| 1 | -Mark | -Otto | -@mdo | -
| Mark | -Otto | -@TwBootstrap | -|
| 2 | -Jacob | -Thornton | -@fat | -
| 3 | -Larry the Bird | -||
Add .table-bordered for borders and rounded corners.
| # | +First Name | +Last Name | +Username | +
|---|---|---|---|
| 1 | +Mark | +Otto | +@mdo | +
| Mark | +Otto | +@TwBootstrap | +|
| 2 | +Jacob | +Thornton | +@fat | +
| 3 | +Larry the Bird | +||
Add .table-hover to enable a hover state on table rows within a <tbody>.
| # | -First Name | -Last Name | -Username | -
|---|---|---|---|
| 1 | -Mark | -Otto | -@mdo | -
| 2 | -Jacob | -Thornton | -@fat | -
| 3 | -Larry the Bird | -||
Add .table-hover to enable a hover state on table rows within a <tbody>.
| # | +First Name | +Last Name | +Username | +
|---|---|---|---|
| 1 | +Mark | +Otto | +@mdo | +
| 2 | +Jacob | +Thornton | +@fat | +
| 3 | +Larry the Bird | +||
| # | -First Name | -Last Name | -Username | -
|---|---|---|---|
| 1 | -Mark | -Otto | -@mdo | -
| 2 | -Jacob | -Thornton | -@fat | -
| 3 | -Larry the Bird | -||
Add .table-condensed to make tables more compact by cutting cell padding in half.
| # | +First Name | +Last Name | +Username | +
|---|---|---|---|
| 1 | +Mark | +Otto | +@mdo | +
| 2 | +Jacob | +Thornton | +@fat | +
| 3 | +Larry the Bird | +||
| Class | -Description | -
|---|---|
- .success
- |
- Indicates a successful or positive action. | -
- .error
- |
- Indicates a dangerous or potentially negative action. | -
- .warning
- |
- Indicates a warning that might need attention. | -
- .info
- |
- Used as an alternative to the default styles. | -
| # | -Product | -Payment Taken | -Status | -
|---|---|---|---|
| 1 | -TB - Monthly | -01/04/2012 | -Approved | -
| 2 | -TB - Monthly | -02/04/2012 | -Declined | -
| 3 | -TB - Monthly | -03/04/2012 | -Pending | -
Use contextual classes to color table rows.
+| Class | +Description | +
|---|---|
+ .success
+ |
+ Indicates a successful or positive action. | +
+ .error
+ |
+ Indicates a dangerous or potentially negative action. | +
+ .warning
+ |
+ Indicates a warning that might need attention. | +
+ .info
+ |
+ Used as an alternative to the default styles. | +
| # | +Product | +Payment Taken | +Status | +
|---|---|---|---|
| 1 | +TB - Monthly | +01/04/2012 | +Approved | +
| 2 | +TB - Monthly | +02/04/2012 | +Declined | +
| 3 | +TB - Monthly | +03/04/2012 | +Pending | +
<section> should be wrapped as inline.
...
{% endhighlight %}
+
+
+
+
+
+ Individual form controls automatically receive some global styling. By default, inputs are set to width: 100%;.