<p>Make a group of buttons stretch at the same size to span the entire width of its parent. <strong>This only works with <code><a></code> elements</strong> as the <code><button></code> doesn't pick up these styles.</p>
<p>Make a group of buttons stretch at the same size to span the entire width of its parent.</p>
<divclass="bs-callout bs-callout-warning">
<h4>Element-specific usage</h4>
<p>This only works with <code><a></code> elements as the <code><button></code> doesn't pick up these styles.</p>
</div>
<divclass="bs-example">
<divclass="bs-example">
<divclass="btn-group btn-group-justified">
<divclass="btn-group btn-group-justified">
<ahref="#"class="btn btn-default">Left</a>
<ahref="#"class="btn btn-default">Left</a>
...
@@ -193,7 +199,7 @@ lead: "Dozens of reusable components built to provide iconography, dropdowns, na
...
@@ -193,7 +199,7 @@ lead: "Dozens of reusable components built to provide iconography, dropdowns, na
</div>
</div>
<pclass="lead">Use any button to trigger a dropdown menu by placing it within a <code>.btn-group</code> and providing the proper menu markup.</p>
<pclass="lead">Use any button to trigger a dropdown menu by placing it within a <code>.btn-group</code> and providing the proper menu markup.</p>
<divclass="bs-callout">
<divclass="bs-callout bs-callout-danger">
<h4>Plugin dependency</h4>
<h4>Plugin dependency</h4>
<p>Button dropdowns require the <ahref="/javascript/#dropdowns">dropdown plugin</a> to be included in your version of Bootstrap.</p>
<p>Button dropdowns require the <ahref="/javascript/#dropdowns">dropdown plugin</a> to be included in your version of Bootstrap.</p>
</div>
</div>
...
@@ -530,7 +536,7 @@ lead: "Dozens of reusable components built to provide iconography, dropdowns, na
...
@@ -530,7 +536,7 @@ lead: "Dozens of reusable components built to provide iconography, dropdowns, na
<h3id="nav-disabled-links">Disabled state</h3>
<h3id="nav-disabled-links">Disabled state</h3>
<p>For any nav component (tabs, pills, or list), add <code>.disabled</code> for <strong>gray links and no hover effects</strong>.</p>
<p>For any nav component (tabs, pills, or list), add <code>.disabled</code> for <strong>gray links and no hover effects</strong>.</p>
<divclass="bs-callout">
<divclass="bs-callout bs-callout-warning">
<h4>Link functionality not impacted</h4>
<h4>Link functionality not impacted</h4>
<p>This class will only change the <code><a></code>'s appearance, not its functionality. Use custom JavaScript to disable links here.</p>
<p>This class will only change the <code><a></code>'s appearance, not its functionality. Use custom JavaScript to disable links here.</p>
</div>
</div>
...
@@ -814,7 +820,7 @@ lead: "Dozens of reusable components built to provide iconography, dropdowns, na
...
@@ -814,7 +820,7 @@ lead: "Dozens of reusable components built to provide iconography, dropdowns, na
</div>
</div>
{% endhighlight %}
{% endhighlight %}
<divclass="bs-callout">
<divclass="bs-callout bs-callout-danger">
<h4>Body padding required</h4>
<h4>Body padding required</h4>
<p>The fixed navbar will overlay your other content, unless you add <code>padding</code> to the top of the <code><body></code>. Try out your own values or use our snippet below. Tip: By default, the navbar is 50px high.</p>
<p>The fixed navbar will overlay your other content, unless you add <code>padding</code> to the top of the <code><body></code>. Try out your own values or use our snippet below. Tip: By default, the navbar is 50px high.</p>
{% highlight css %}
{% highlight css %}
...
@@ -843,7 +849,7 @@ body { padding-top: 70px; }
...
@@ -843,7 +849,7 @@ body { padding-top: 70px; }
</div>
</div>
{% endhighlight %}
{% endhighlight %}
<divclass="bs-callout">
<divclass="bs-callout bs-callout-danger">
<h4>Body padding required</h4>
<h4>Body padding required</h4>
<p>The fixed navbar will overlay your other content, unless you add <code>padding</code> to the bottom of the <code><body></code>. Try out your own values or use our snippet below. Tip: By default, the navbar is 50px high.</p>
<p>The fixed navbar will overlay your other content, unless you add <code>padding</code> to the bottom of the <code><body></code>. Try out your own values or use our snippet below. Tip: By default, the navbar is 50px high.</p>
{% highlight css %}
{% highlight css %}
...
@@ -944,7 +950,7 @@ body { padding-bottom: 70px; }
...
@@ -944,7 +950,7 @@ body { padding-bottom: 70px; }
</div><!-- /.navbar -->
</div><!-- /.navbar -->
{% endhighlight %}
{% endhighlight %}
<divclass="bs-callout">
<divclass="bs-callout bs-callout-danger">
<h4>Plugin dependency</h4>
<h4>Plugin dependency</h4>
<p>The responsive navbar requires the <ahref="/javascript/#collapse">collapse plugin</a> to be included in your version of Bootstrap.</p>
<p>The responsive navbar requires the <ahref="/javascript/#collapse">collapse plugin</a> to be included in your version of Bootstrap.</p>
</div>
</div>
...
@@ -1261,7 +1267,7 @@ body { padding-bottom: 70px; }
...
@@ -1261,7 +1267,7 @@ body { padding-bottom: 70px; }
<h4>Self collapsing</h4>
<h4>Self collapsing</h4>
<p>When there are no new or unread items, badges will simply collapse (via CSS's <code>:empty</code> selector) provided no content exists within.</p>
<p>When there are no new or unread items, badges will simply collapse (via CSS's <code>:empty</code> selector) provided no content exists within.</p>
<divclass="bs-callout">
<divclass="bs-callout bs-callout-danger">
<h4>Cross-browser compatibility</h4>
<h4>Cross-browser compatibility</h4>
<p>Badges won't self collapse in Internet Explorer 8 because it lacks support for the <code>:empty</code> selector.</p>
<p>Badges won't self collapse in Internet Explorer 8 because it lacks support for the <code>:empty</code> selector.</p>
</div>
</div>
...
@@ -1455,7 +1461,13 @@ body { padding-bottom: 70px; }
...
@@ -1455,7 +1461,13 @@ body { padding-bottom: 70px; }
<pclass="lead">Provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages. For inline dismissal, use the <ahref="/javascript/#js-alerts">alerts jQuery plugin</a>.</p>
<pclass="lead">Provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages. For inline dismissal, use the <ahref="/javascript/#js-alerts">alerts jQuery plugin</a>.</p>
<h3id="alerts-default">Default alert</h3>
<h3id="alerts-default">Default alert</h3>
<p>Wrap any text and an optional dismiss button in <code>.alert</code> for a basic warning alert message. <strong>To ensure proper behavior across all devices</strong>, be sure to use <code><button></code> element with the <code>data-dismiss="alert"</code> data attribute.</p>
<p>Wrap any text and an optional dismiss button in <code>.alert</code> for a basic warning alert message.</p>
<divclass="bs-callout bs-callout-warning">
<h4>Ensure proper behavior across all devices</h4>
<p>Be sure to use the <code><button></code> element with the <code>data-dismiss="alert"</code> data attribute.</p>
@@ -1548,7 +1560,7 @@ body { padding-bottom: 70px; }
...
@@ -1548,7 +1560,7 @@ body { padding-bottom: 70px; }
</div>
</div>
<pclass="lead">Provide up-to-date feedback on the progress of a workflow or action with simple yet flexible progress bars.</p>
<pclass="lead">Provide up-to-date feedback on the progress of a workflow or action with simple yet flexible progress bars.</p>
<divclass="bs-callout">
<divclass="bs-callout bs-callout-danger">
<h4>Cross-browser compatibility</h4>
<h4>Cross-browser compatibility</h4>
<p>Progress bars use CSS3 transitions and animations to achieve some of their effects. These features are not supported in Internet Explorer 9 and below or older versions of Firefox. Opera 12 does not support animations.</p>
<p>Progress bars use CSS3 transitions and animations to achieve some of their effects. These features are not supported in Internet Explorer 9 and below or older versions of Firefox. Opera 12 does not support animations.</p>
@@ -520,7 +520,10 @@ lead: "Fundamental HTML elements styled and enhanced with extensible classes."
...
@@ -520,7 +520,10 @@ lead: "Fundamental HTML elements styled and enhanced with extensible classes."
<em>rendered as italicized text</em>
<em>rendered as italicized text</em>
{% endhighlight %}
{% endhighlight %}
<p>Feel free to use <code><b></code> and <code><i></code> in HTML5. <code><b></code> is meant to highlight words or phrases without conveying additional importance while <code><i></code> is mostly for voice, technical terms, etc.</p>
<divclass="bs-callout bs-callout-info">
<h4>Alternate elements</h4>
<p>Feel free to use <code><b></code> and <code><i></code> in HTML5. <code><b></code> is meant to highlight words or phrases without conveying additional importance while <code><i></code> is mostly for voice, technical terms, etc.</p>
</div>
<h3>Alignment classes</h3>
<h3>Alignment classes</h3>
<p>Easily realign text to components with text alignment classes.</p>
<p>Easily realign text to components with text alignment classes.</p>
...
@@ -788,10 +791,10 @@ lead: "Fundamental HTML elements styled and enhanced with extensible classes."
...
@@ -788,10 +791,10 @@ lead: "Fundamental HTML elements styled and enhanced with extensible classes."
</dl>
</dl>
{% endhighlight %}
{% endhighlight %}
<h5>Auto-truncating</h5>
<divclass="bs-callout bs-callout-info">
<p>
<h4>Auto-truncating</h4>
Horizontal description lists will truncate terms that are too long to fit in the left column fix<code>text-overflow</code>. In narrower viewports, they will change to the default stacked layout.
<p>Horizontal description lists will truncate terms that are too long to fit in the left column with<code>text-overflow</code>. In narrower viewports, they will change to the default stacked layout.</p>
</p>
</div>
</div>
</div>
...
@@ -878,7 +881,7 @@ For example, <code><section></code> should be wrapped as inline.
...
@@ -878,7 +881,7 @@ For example, <code><section></code> should be wrapped as inline.
<h3id="tables-striped">Striped</h3>
<h3id="tables-striped">Striped</h3>
<p>Use <code>.table-striped</code> to add zebra-striping to any table row within the <code><tbody></code>.</p>
<p>Use <code>.table-striped</code> to add zebra-striping to any table row within the <code><tbody></code>.</p>
<divclass="bs-callout">
<divclass="bs-callout bs-callout-danger">
<h4>Cross-browser compatibility</h4>
<h4>Cross-browser compatibility</h4>
<p>Striped tables are styled via the <code>:nth-child</code> CSS selector, which is not available in IE8.</p>
<p>Striped tables are styled via the <code>:nth-child</code> CSS selector, which is not available in IE8.</p>
</div>
</div>
...
@@ -1172,7 +1175,7 @@ For example, <code><section></code> should be wrapped as inline.
...
@@ -1172,7 +1175,7 @@ For example, <code><section></code> should be wrapped as inline.
<h3id="forms-inline">Inline form</h3>
<h3id="forms-inline">Inline form</h3>
<p>Add <code>.form-inline</code> for left-aligned and inline-block controls for a compact layout.</p>
<p>Add <code>.form-inline</code> for left-aligned and inline-block controls for a compact layout.</p>
<divclass="bs-callout">
<divclass="bs-callout bs-callout-danger">
<h4>Requires custom widths</h4>
<h4>Requires custom widths</h4>
<p>Inputs, selects, and textareas are 100% wide by default in Bootstrap. To use the inline form, you'll have to set a width on the form controls used within.</p>
<p>Inputs, selects, and textareas are 100% wide by default in Bootstrap. To use the inline form, you'll have to set a width on the form controls used within.</p>
</div>
</div>
...
@@ -1254,7 +1257,7 @@ For example, <code><section></code> should be wrapped as inline.
...
@@ -1254,7 +1257,7 @@ For example, <code><section></code> should be wrapped as inline.
<h3>Inputs</h3>
<h3>Inputs</h3>
<p>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.</p>
<p>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.</p>
<divclass="bs-callout">
<divclass="bs-callout bs-callout-danger">
<h4>Type declaration required</h4>
<h4>Type declaration required</h4>
<p>Inputs will only be fully styled if their <code>type</code> is properly declared.</p>
<p>Inputs will only be fully styled if their <code>type</code> is properly declared.</p>
</div>
</div>
...
@@ -1402,12 +1405,12 @@ For example, <code><section></code> should be wrapped as inline.
...
@@ -1402,12 +1405,12 @@ For example, <code><section></code> should be wrapped as inline.
<p>Add the <code>disabled</code> attribute to a <code><fieldset></code> to disable all the controls within the <code><fieldset></code> at once.</p>
<p>Add the <code>disabled</code> attribute to a <code><fieldset></code> to disable all the controls within the <code><fieldset></code> at once.</p>
<divclass="bs-callout">
<divclass="bs-callout bs-callout-warning">
<h4>Link functionality of <code><a></code> not impacted</h4>
<h4>Link functionality of <code><a></code> not impacted</h4>
<p>This class will only change the appearance of <code><a class="btn btn-default"></code> buttons, not their functionality. Use custom JavaScript to disable links here.</p>
<p>This class will only change the appearance of <code><a class="btn btn-default"></code> buttons, not their functionality. Use custom JavaScript to disable links here.</p>
</div>
</div>
<divclass="bs-callout">
<divclass="bs-callout bs-callout-danger">
<h4>Cross-browser compatibility</h4>
<h4>Cross-browser compatibility</h4>
<p>While Bootstrap will apply these styles in all browsers, IE and Safari don't actually support the <code><disabled></code> attribute on a <code><fieldset></code>. Use custom JavaScript to disable the fieldset in these browsers.</p>
<p>While Bootstrap will apply these styles in all browsers, IE and Safari don't actually support the <code><disabled></code> attribute on a <code><fieldset></code>. Use custom JavaScript to disable the fieldset in these browsers.</p>
</div>
</div>
...
@@ -1504,7 +1507,7 @@ For example, <code><section></code> should be wrapped as inline.
...
@@ -1504,7 +1507,7 @@ For example, <code><section></code> should be wrapped as inline.
<h3id="forms-input-groups">Input groups</h3>
<h3id="forms-input-groups">Input groups</h3>
<p>Add text or buttons before, after, or on both sides of any text-based input. Use <code>.input-group</code> with an <code>.add-on</code> to prepend or append elements to an <code><input></code>.</p>
<p>Add text or buttons before, after, or on both sides of any text-based input. Use <code>.input-group</code> with an <code>.add-on</code> to prepend or append elements to an <code><input></code>.</p>
<divclass="bs-callout">
<divclass="bs-callout bs-callout-danger">
<h4>Cross-browser compatibility</h4>
<h4>Cross-browser compatibility</h4>
<p>Avoid using <code><select></code> elements here as they cannot be fully styled in WebKit browsers.</p>
<p>Avoid using <code><select></code> elements here as they cannot be fully styled in WebKit browsers.</p>
</div>
</div>
...
@@ -1891,7 +1894,7 @@ For example, <code><section></code> should be wrapped as inline.
...
@@ -1891,7 +1894,7 @@ For example, <code><section></code> should be wrapped as inline.
<p>If you add the <code>disabled</code> attribute to a <code><button></code>, Internet Explorer 9 and below will render text gray with a nasty text-shadow that we cannot fix.</p>
<p>If you add the <code>disabled</code> attribute to a <code><button></code>, Internet Explorer 9 and below will render text gray with a nasty text-shadow that we cannot fix.</p>
</div>
</div>
...
@@ -1909,7 +1912,7 @@ For example, <code><section></code> should be wrapped as inline.
...
@@ -1909,7 +1912,7 @@ For example, <code><section></code> should be wrapped as inline.
<p>
<p>
We use <code>.disabled</code> as a utility class here, similar to the common <code>.active</code> class, so no prefix is required.
We use <code>.disabled</code> as a utility class here, similar to the common <code>.active</code> class, so no prefix is required.
</p>
</p>
<divclass="bs-callout">
<divclass="bs-callout bs-callout-warning">
<h4>Link functionality not impacted</h4>
<h4>Link functionality not impacted</h4>
<p>This class will only change the <code><a></code>'s appearance, not its functionality. Use custom JavaScript to disable links here.</p>
<p>This class will only change the <code><a></code>'s appearance, not its functionality. Use custom JavaScript to disable links here.</p>
</div>
</div>
...
@@ -1930,7 +1933,7 @@ For example, <code><section></code> should be wrapped as inline.
...
@@ -1930,7 +1933,7 @@ For example, <code><section></code> should be wrapped as inline.
<p>As a best practice, <strong>we highly recommend using the <code><button></code> element whenever possible</strong> to ensure matching cross-browser rendering.</p>
<p>As a best practice, <strong>we highly recommend using the <code><button></code> element whenever possible</strong> to ensure matching cross-browser rendering.</p>
</div>
</div>
...
@@ -1947,7 +1950,7 @@ For example, <code><section></code> should be wrapped as inline.
...
@@ -1947,7 +1950,7 @@ For example, <code><section></code> should be wrapped as inline.
</div>
</div>
<p>Add classes to an <code><img></code> element to easily style images in any project.</p>
<p>Add classes to an <code><img></code> element to easily style images in any project.</p>
<divclass="bs-callout">
<divclass="bs-callout bs-callout-danger">
<h4>Cross-browser compatibility</h4>
<h4>Cross-browser compatibility</h4>
<p>Keep in mind that Internet Explorer 8 lacks support for rounded corners.</p>
<p>Keep in mind that Internet Explorer 8 lacks support for rounded corners.</p>
@@ -349,9 +349,15 @@ lead: Customize Bootstrap's components, LESS variables, and jQuery plugins to ge
...
@@ -349,9 +349,15 @@ lead: Customize Bootstrap's components, LESS variables, and jQuery plugins to ge
</div>
</div>
</div>
</div>
</div>
</div>
<divclass="bs-callout">
<h4>Heads up!</h4>
<divclass="bs-callout bs-callout-info">
<p>All checked plugins will be compiled into a single file, <code>bootstrap.js</code>. All plugins require the latest version of <ahref="http://jquery.com/"target="_blank">jQuery</a> to be included.</p>
<h4>Produces two files</h4>
<p>All checked plugins will be compiled into a readable <code>bootstrap.js</code> and a minified <code>bootstrap.min.js</code>. We recommend you use the minified version in production.</p>
</div>
<divclass="bs-callout bs-callout-danger">
<h4>jQuery required</h4>
<p>All plugins require the latest version of <ahref="http://jquery.com/"target="_blank">jQuery</a> to be included.</p>
</div>
</div>
</div>
</div>
...
@@ -1151,7 +1157,7 @@ lead: Customize Bootstrap's components, LESS variables, and jQuery plugins to ge
...
@@ -1151,7 +1157,7 @@ lead: Customize Bootstrap's components, LESS variables, and jQuery plugins to ge
<divclass="bs-customize-download">
<divclass="bs-customize-download">
<aclass="btn"href="#"onclick="_gaq.push(['_trackEvent', 'Customize', 'Download', 'Customize and Download']);">Customize and Download</a>
<aclass="btn"href="#"onclick="_gaq.push(['_trackEvent', 'Customize', 'Download', 'Customize and Download']);">Customize and Download</a>
</div>
</div>
<divclass="bs-callout">
<divclass="bs-callout bs-callout-danger">
<h4>What's included?</h4>
<h4>What's included?</h4>
<p>Downloads include compiled CSS, compiled and minified CSS, and compiled jQuery plugins, all nicely packed up into a zipball for your convenience.</p>
<p>Downloads include compiled CSS, compiled and minified CSS, and compiled jQuery plugins, all nicely packed up into a zipball for your convenience.</p>
<p>If you download the original files, you need to compile Bootstrap's LESS files into usable CSS. To do that, Bootstrap only officially supports <ahref="http://twitter.github.io/recess/">Recess</a>, Twitter's CSS hinter built on top of <ahref="http://lesscss.org">less.js</a>.</p>
<p>If you download the original files, you need to compile Bootstrap's LESS files into usable CSS. To do that, Bootstrap only officially supports <ahref="http://twitter.github.io/recess/">Recess</a>, Twitter's CSS hinter built on top of <ahref="http://lesscss.org">less.js</a>.</p>
</div>
</div>
...
@@ -75,12 +75,35 @@ bootstrap/
...
@@ -75,12 +75,35 @@ bootstrap/
{% endhighlight %}
{% endhighlight %}
<p>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 (<code>bootstrap.*</code>), as well as compiled and minified CSS and JS (<code>bootstrap.min.*</code>). The image files are compressed using <ahref="http://imageoptim.com/">ImageOptim</a>, a Mac app for compressing PNGs.</p>
<p>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 (<code>bootstrap.*</code>), as well as compiled and minified CSS and JS (<code>bootstrap.min.*</code>). The image files are compressed using <ahref="http://imageoptim.com/">ImageOptim</a>, a Mac app for compressing PNGs.</p>
<divclass="bs-callout">
<divclass="bs-callout bs-callout-danger">
<h4>jQuery required</h4>
<h4>jQuery required</h4>
<p>Please note that <strong>all JavaScript plugins require jQuery</strong> to be included, as shown in the <ahref="#examples">starter template</a>.</p>
<p>Please note that <strong>all JavaScript plugins require jQuery</strong> to be included, as shown in the <ahref="#examples">starter template</a>.</p>
<pclass="lead">Bootstrap is built to work best in the latest desktop and mobile browsers, meaning older and less advanced browsers might receive a less stylized, though fully functional, version of certain components.</p>
<h4>Supported browsers</h4>
<p>Specifically, we support the latest versions of the following:</p>
<ul>
<li>Chrome (Mac, Windows, iOS, and Android)</li>
<li>Safari (Mac and iOS only, as Windows has more or less been discontinued)</li>
<li>Firefox (Mac, Windows)</li>
<li>Internet Explorer</li>
<li>Opera (Mac, Windows)</li>
</ul>
<p>Unofficially, Bootstrap should look and behave just fine in Chromium for Linux and Internet Explorer 7-8, though full support is not guaranteed.</p>
<h4>IE Compatibility modes</h4>
<p>Bootstrap is not supported in the old Internet Explorer compatibility modes. To be sure you're using the latest rendering mode for IE, consider including <code><meta http-equiv="X-UA-Compatible" content="IE=edge"></code> in your pages. See <ahref="http://stackoverflow.com/questions/6771258/whats-the-difference-if-meta-http-equiv-x-ua-compatible-content-ie-edge">this StackOverflow question</a> for more information.</p>
<pclass="lead">Bootstrap is released under the Apache 2 license. Boiled down to smaller chunks, it can be described with the following conditions.</p>
<divclass="row">
<divclass="col-12 col-lg-6">
<h4>It allows you to:</h4>
<ul>
<li>Freely download and use Twitter open source software, in whole or in part, for personal, company internal or commercial purposes</li>
<li>Use Twitter open source software in packages or distributions that you create</li>
</ul>
</div>
<divclass="col-12 col-lg-6">
<h4>It forbids you to:</h4>
<ul>
<li>Redistribute any piece of Twitter open source originated software without proper attribution</li>
<li>Use any marks owned by Twitter in any way that might state or imply that Twitter endorses your distribution</li>
<li>Use any marks owned by Twitter in any way that might state or imply that you created the Twitter software in question</li>
</ul>
</div>
</div>
<divclass="row">
<divclass="col-12 col-lg-6">
<h4>It requires you to:</h4>
<ul>
<li>Include a copy of the license in any redistribution you may make that includes Twitter software</li>
<li>Provide clear attribution to Twitter for any distributions that include Twitter open source software</li>
</ul>
</div>
<divclass="col-12 col-lg-6">
<h4>It does not require you to:</h4>
<ul>
<li>Include the source of the Twitter software itself, or of any modifications you may have made to it, in any redistribution you may assemble that includes it</li>
<li>Submit changes that you make to the software back to Twitter (though such feedback is encouraged)</li>
</ul>
</div>
</div>
<p>The full Bootstrap license is located <ahref="https://github.com/twbs/bootstrap/blob/master/README.md">in the project repository</a> for more information.</p>
</div><!-- /.bs-docs-section -->
<divclass="bs-docs-section"id="customizing">
<divclass="bs-docs-section"id="customizing">
<divclass="page-header">
<divclass="page-header">
...
@@ -222,7 +291,7 @@ bootstrap/
...
@@ -222,7 +291,7 @@ bootstrap/
<p>Once you've downloaded and included Bootstrap's CSS into your templates, you can move on to customizing the included components. To do so, create a new stylesheet (LESS, if you like, or just plain CSS) to house your customizations.</p>
<p>Once you've downloaded and included Bootstrap's CSS into your templates, you can move on to customizing the included components. To do so, create a new stylesheet (LESS, if you like, or just plain CSS) to house your customizations.</p>
<divclass="bs-callout">
<divclass="bs-callout bs-callout-info">
<h4>Compiled or minified?</h4>
<h4>Compiled or minified?</h4>
<p>Unless you plan on reading a good chunk of the compiled CSS, go with the minified. It's the same code, just compacted. Less bandwidth is good, especially in production environments.</p>
<p>Unless you plan on reading a good chunk of the compiled CSS, go with the minified. It's the same code, just compacted. Less bandwidth is good, especially in production environments.</p>
</div>
</div>
...
@@ -276,7 +345,7 @@ bootstrap/
...
@@ -276,7 +345,7 @@ bootstrap/
</ul>
</ul>
<p>Going beyond light customizations and into visual overhauls is just as straightforward as the above custom button. For a site like <ahref="http://yourkarma.com">Karma</a>, which uses Bootstrap as a CSS reset with heavy modifications, more extensive work is involved, but well worth it in the end.</p>
<p>Going beyond light customizations and into visual overhauls is just as straightforward as the above custom button. For a site like <ahref="http://yourkarma.com">Karma</a>, which uses Bootstrap as a CSS reset with heavy modifications, more extensive work is involved, but well worth it in the end.</p>
<divclass="bs-callout">
<divclass="bs-callout bs-callout-info">
<h4>Alternate customization methods</h4>
<h4>Alternate customization methods</h4>
<p>While not recommended for folks new to Bootstrap, you may use one of two alternate methods for customization. The first is modifying the source .less files (making upgrades super difficult), and the second is mapping source LESS code to <ahref="http://ruby.bvision.com/blog/please-stop-embedding-bootstrap-classes-in-your-html">your own classes via mixins</a>. For the time being, neither options are documented here.</p>
<p>While not recommended for folks new to Bootstrap, you may use one of two alternate methods for customization. The first is modifying the source .less files (making upgrades super difficult), and the second is mapping source LESS code to <ahref="http://ruby.bvision.com/blog/please-stop-embedding-bootstrap-classes-in-your-html">your own classes via mixins</a>. For the time being, neither options are documented here.</p>
@@ -14,8 +14,14 @@ lead: "Bring Bootstrap's components to life with over a dozen custom jQuery plug
...
@@ -14,8 +14,14 @@ lead: "Bring Bootstrap's components to life with over a dozen custom jQuery plug
</div>
</div>
<h3id="js-individual-compiled">Individual or compiled</h3>
<h3id="js-individual-compiled">Individual or compiled</h3>
<p>Plugins can be included individually, or all at once. <strong>Do not attempt to include both.</strong> Both <strong>bootstrap.js</strong> and <strong>bootstrap.min.js</strong> contain all plugins in a single file.</p>
<p>Plugins can be included individually (using <code>bootstrap-*.js</code> original files, or all at once (using <code>bootstrap.js</code> or the minified <code>bootstrap.min.js</code>.</p>
<divclass="bs-callout">
<divclass="bs-callout bs-callout-danger">
<h4>Do not attempt to include both.</h4>
<p>Both <code>bootstrap.js</code> and <code>bootstrap.min.js</code> contain all plugins in a single file.</p>
</div>
<divclass="bs-callout bs-callout-danger">
<h4>Plugin dependencies</h4>
<h4>Plugin dependencies</h4>
<p>Some plugins and CSS components depend on other plugins. If you include plugins individually, make sure to check for these dependencies in the docs.</p>
<p>Some plugins and CSS components depend on other plugins. If you include plugins individually, make sure to check for these dependencies in the docs.</p>
</div>
</div>
...
@@ -65,7 +71,7 @@ $('#myModal').on('show.bs.modal', function (e) {
...
@@ -65,7 +71,7 @@ $('#myModal').on('show.bs.modal', function (e) {
<p><strong>Bootstrap does not officially support third-party JavaScript libraries</strong> like Prototype or jQuery UI. Despite <code>.noConflict</code> and namespaced events, there may be compatibility problems that you need to fix on your own. Ask on the <ahref="http://groups.google.com/group/twitter-bootstrap">mailing list</a> if you need help.</p>
<p><strong>Bootstrap does not officially support third-party JavaScript libraries</strong> like Prototype or jQuery UI. Despite <code>.noConflict</code> and namespaced events, there may be compatibility problems that you need to fix on your own. Ask on the <ahref="http://groups.google.com/group/twitter-bootstrap">mailing list</a> if you need help.</p>
<p>Navbar links must have resolvable id targets. For example, a <code><a href="#home">home</a></code> must correspond to something in the DOM like <code><div id="home"></div></code>.</p>
<p>Navbar links must have resolvable id targets. For example, a <code><a href="#home">home</a></code> must correspond to something in the DOM like <code><div id="home"></div></code>.</p>
<p>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.</p>
<p>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.</p>
<divclass="bs-callout">
<divclass="bs-callout bs-callout-danger">
<h4>Plugin dependency</h4>
<h4>Plugin dependency</h4>
<p>Popovers require the <ahref="#tooltips">tooltip plugin</a> to be included in your version of Bootstrap.</p>
<p>Popovers require the <ahref="#tooltips">tooltip plugin</a> to be included in your version of Bootstrap.</p>
<p><ahref="https://github.com/twitter/bootstrap/issues/793">Firefox persists the disabled state across page loads</a>. A workaround for this is to use <code>autocomplete="off"</code>.</p>
<p><ahref="https://github.com/twitter/bootstrap/issues/793">Firefox persists the disabled state across page loads</a>. A workaround for this is to use <code>autocomplete="off"</code>.</p>
</div>
</div>
...
@@ -1284,7 +1290,7 @@ $('.nav-tabs').button()
...
@@ -1284,7 +1290,7 @@ $('.nav-tabs').button()
<h3>About</h3>
<h3>About</h3>
<p>Get base styles and flexible support for collapsible components like accordions and navigation.</p>
<p>Get base styles and flexible support for collapsible components like accordions and navigation.</p>
<divclass="bs-callout">
<divclass="bs-callout bs-callout-danger">
<h4>Plugin dependency</h4>
<h4>Plugin dependency</h4>
<p>Collapse requires the <ahref="#transitions">transitions plugin</a> to be included in your version of Bootstrap.</p>
<p>Collapse requires the <ahref="#transitions">transitions plugin</a> to be included in your version of Bootstrap.</p>
</div>
</div>
...
@@ -1551,7 +1557,7 @@ $('#myCollapsible').on('hidden.bs.collapse', function () {
...
@@ -1551,7 +1557,7 @@ $('#myCollapsible').on('hidden.bs.collapse', function () {
<h3>Optional captions</h3>
<h3>Optional captions</h3>
<p>Add captions to your slides easily with the <code>.carousel-caption</code> element within any <code>.item</code>. Place just about any optional HTML within there and it will be automatically aligned and formatted.</p>
<p>Add captions to your slides easily with the <code>.carousel-caption</code> element within any <code>.item</code>. Place just about any optional HTML within there and it will be automatically aligned and formatted.</p>
<divclass="bs-callout">
<divclass="bs-callout bs-callout-info">
<h4>Responsive visibility</h4>
<h4>Responsive visibility</h4>
<p><strong>Captions are hidden by default</strong> and will show up only with viewports greater than 768px wide.</p>
<p><strong>Captions are hidden by default</strong> and will show up only with viewports greater than 768px wide.</p>
</div>
</div>
...
@@ -1722,7 +1728,7 @@ $('#myCarousel').on('slide.bs.carousel', function () {
...
@@ -1722,7 +1728,7 @@ $('#myCarousel').on('slide.bs.carousel', function () {
<p>You must manage the position of a pinned element and the behavior of its immediate parent. Position is controlled by <code>affix</code>, <code>affix-top</code>, and <code>affix-bottom</code>. Remember to check for a potentially collapsed parent when the affix kicks in as it's removing content from the normal flow of the page.</p>
<p>You must manage the position of a pinned element and the behavior of its immediate parent. Position is controlled by <code>affix</code>, <code>affix-top</code>, and <code>affix-bottom</code>. Remember to check for a potentially collapsed parent when the affix kicks in as it's removing content from the normal flow of the page.</p>