<p>Sample text here...</p>
{% endhighlight %}
</pre>
</pre>
<p>You may optionally add the <code>.pre-scrollable</code> class which will set a max-height of 350px and provide a y-axis scrollbar.</p>
<p>You may optionally add the <code>.pre-scrollable</code> class which will set a max-height of 350px and provide a y-axis scrollbar.</p>
</section>
</section>
...
@@ -583,7 +582,7 @@ For example, <code>&lt;section&gt;</code> should be wrapped
...
@@ -583,7 +582,7 @@ For example, <code>&lt;section&gt;</code> should be wrapped
</div>
</div>
<h2>Default styles</h2>
<h2>Default styles</h2>
<p>For basic styling—light padding and only horizontal dividers—add the base class <code>.table</code> to any <code><table></code>.</p>
<p>For basic styling—light padding and only horizontal dividers—add the base class <code>.table</code> to any <code><table></code>. It may seem super redundant, but given the widespread use of tables for other plugins like calendars and date pickers, we've opted to isolate our custom table styles.</p>
<divclass="bs-docs-example">
<divclass="bs-docs-example">
<tableclass="table">
<tableclass="table">
<thead>
<thead>
...
@@ -616,11 +615,11 @@ For example, <code>&lt;section&gt;</code> should be wrapped
...
@@ -616,11 +615,11 @@ For example, <code>&lt;section&gt;</code> should be wrapped
</tbody>
</tbody>
</table>
</table>
</div><!-- /example -->
</div><!-- /example -->
<preclass="prettyprint linenums">
{% highlight html linenos %}
<table class="table">
<tableclass="table">
…
...
</table>
</table>
</pre>
{% endhighlight %}
<h2>Optional classes</h2>
<h2>Optional classes</h2>
...
@@ -660,11 +659,11 @@ For example, <code>&lt;section&gt;</code> should be wrapped
...
@@ -660,11 +659,11 @@ For example, <code>&lt;section&gt;</code> should be wrapped
<p>Right align labels and float them to the left to make them appear on the same line as controls. Requires the most markup changes from a default form:</p>
<p>Right align labels and float them to the left to make them appear on the same line as controls. Requires the most markup changes from a default form:</p>
...
@@ -1074,32 +1072,32 @@ For example, <code>&lt;section&gt;</code> should be wrapped
...
@@ -1074,32 +1072,32 @@ For example, <code>&lt;section&gt;</code> should be wrapped
<p>Use the default option or specify a <code>multiple="multiple"</code> to show multiple options at once.</p>
<p>Use the default option or specify a <code>multiple="multiple"</code> to show multiple options at once.</p>
...
@@ -1214,23 +1206,23 @@ For example, <code>&lt;section&gt;</code> should be wrapped
...
@@ -1214,23 +1206,23 @@ For example, <code>&lt;section&gt;</code> should be wrapped
<option>5</option>
<option>5</option>
</select>
</select>
</form>
</form>
<preclass="prettyprint linenums">
{% highlight html linenos %}
<select>
<select>
<option>1</option>
<option>1</option>
<option>2</option>
<option>2</option>
<option>3</option>
<option>3</option>
<option>4</option>
<option>4</option>
<option>5</option>
<option>5</option>
</select>
</select>
<select multiple="multiple">
<selectmultiple="multiple">
<option>1</option>
<option>1</option>
<option>2</option>
<option>2</option>
<option>3</option>
<option>3</option>
<option>4</option>
<option>4</option>
<option>5</option>
<option>5</option>
</select>
</select>
</pre>
{% endhighlight %}
...
@@ -1242,9 +1234,9 @@ For example, <code>&lt;section&gt;</code> should be wrapped
...
@@ -1242,9 +1234,9 @@ For example, <code>&lt;section&gt;</code> should be wrapped
<formclass="bs-docs-example form-inline">
<formclass="bs-docs-example form-inline">
<inputclass="focused"id="focusedInput"type="text"value="This is focused...">
<inputclass="focused"id="focusedInput"type="text"value="This is focused...">
</form>
</form>
<preclass="prettyprint linenums">
{% highlight html linenos %}
<input id="focusedInput" type="text" value="This is focused...">
<inputid="focusedInput"type="text"value="This is focused...">
</pre>
{% endhighlight %}
<h3id="forms-invalid-inputs">Invalid inputs</h3>
<h3id="forms-invalid-inputs">Invalid inputs</h3>
<p>Style inputs via default browser functionality with <code>:invalid</code>. Specify a <code>type</code>, add the <code>required</code> attribute if the field is not optional, and (if applicable) specify a <code>pattern</code>.</p>
<p>Style inputs via default browser functionality with <code>:invalid</code>. Specify a <code>type</code>, add the <code>required</code> attribute if the field is not optional, and (if applicable) specify a <code>pattern</code>.</p>
...
@@ -1252,18 +1244,18 @@ For example, <code>&lt;section&gt;</code> should be wrapped
...
@@ -1252,18 +1244,18 @@ For example, <code>&lt;section&gt;</code> should be wrapped
<p>Add the <code>disabled</code> attribute to a <code><fieldset></code> to disable all the controls within the <code><fieldset></code> at once. Link buttons (with the <code><a></code> element) will be aesthetically disabled, but you will need custom JavaScript to disable their behavior.</p>
<p>Add the <code>disabled</code> attribute to a <code><fieldset></code> to disable all the controls within the <code><fieldset></code> at once. Link buttons (with the <code><a></code> element) will be aesthetically disabled, but you will need custom JavaScript to disable their behavior.</p>
...
@@ -1285,22 +1277,26 @@ For example, <code>&lt;section&gt;</code> should be wrapped
...
@@ -1285,22 +1277,26 @@ For example, <code>&lt;section&gt;</code> should be wrapped
<p>Buttons in input groups are a bit different and require one extra level of nesting. Instead of <code>.input-group-addon</code>, you'll need to use <code>.input-group-btn</code> to wrap the buttons. This is required due to default browser styles that cannot be overridden.</p>
<p>Buttons in input groups are a bit different and require one extra level of nesting. Instead of <code>.input-group-addon</code>, you'll need to use <code>.input-group-btn</code> to wrap the buttons. This is required due to default browser styles that cannot be overridden.</p>
...
@@ -1444,21 +1442,21 @@ For example, <code>&lt;section&gt;</code> should be wrapped
...
@@ -1444,21 +1442,21 @@ For example, <code>&lt;section&gt;</code> should be wrapped
<p>If you need multiple inputs on the same line, wrap them in the standard grid markup (with <code>.row</code> and <code>.span*</code> classes). Each input should have it's own column and will expand to fill the available width automatically.</p>
<p>If you need multiple inputs on the same line, wrap them in the standard grid markup (with <code>.row</code> and <code>.span*</code> classes). Each input should have it's own column and will expand to fill the available width automatically.</p>
@@ -1644,28 +1650,28 @@ For example, <code>&lt;section&gt;</code> should be wrapped
...
@@ -1644,28 +1650,28 @@ For example, <code>&lt;section&gt;</code> should be wrapped
</div>
</div>
</div>
</div>
</form>
</form>
<preclass="prettyprint linenums">
{% highlight html linenos %}
<div class="row">
<divclass="row">
<div class="span4">
<divclass="span4">
<input type="text" placeholder=".span4">
<inputtype="text"placeholder=".span4">
</div>
</div>
<div class="span4">
<divclass="span4">
<input type="text" placeholder=".span4">
<inputtype="text"placeholder=".span4">
</div>
</div>
<div class="span4">
<divclass="span4">
<input type="text" placeholder=".span4">
<inputtype="text"placeholder=".span4">
</div>
</div>
</div>
</div>
</pre>
{% endhighlight %}
<h3>Uneditable inputs</h3>
<h3>Uneditable inputs</h3>
<p>Present data in a form that's not editable without using actual form markup.</p>
<p>Present data in a form that's not editable without using actual form markup.</p>
<formclass="bs-docs-example">
<formclass="bs-docs-example">
<spanclass="input-xlarge uneditable-input">Some value here</span>
<spanclass="input-xlarge uneditable-input">Some value here</span>
</form>
</form>
<preclass="prettyprint linenums">
{% highlight html linenos %}
<span class="input-xlarge uneditable-input">Some value here</span>
<spanclass="uneditable-input">Some value here</span>
</pre>
{% endhighlight %}
<h3>Form actions</h3>
<h3>Form actions</h3>
<p>End a form with a group of actions (buttons). When placed within a <code>.form-horizontal</code>, the buttons will automatically indent to line up with the form controls.</p>
<p>End a form with a group of actions (buttons). When placed within a <code>.form-horizontal</code>, the buttons will automatically indent to line up with the form controls.</p>
...
@@ -1675,12 +1681,12 @@ For example, <code>&lt;section&gt;</code> should be wrapped
...
@@ -1675,12 +1681,12 @@ For example, <code>&lt;section&gt;</code> should be wrapped
<p>Inline and block level support for help text that appears around form controls.</p>
<p>Inline and block level support for help text that appears around form controls.</p>
...
@@ -1688,18 +1694,20 @@ For example, <code>&lt;section&gt;</code> should be wrapped
...
@@ -1688,18 +1694,20 @@ For example, <code>&lt;section&gt;</code> should be wrapped
<formclass="bs-docs-example form-inline">
<formclass="bs-docs-example form-inline">
<inputtype="text"><spanclass="help-inline">Inline help text</span>
<inputtype="text"><spanclass="help-inline">Inline help text</span>
</form>
</form>
<preclass="prettyprint linenums">
{% highlight html linenos %}
<input type="text"><span class="help-inline">Inline help text</span>
<inputtype="text">
</pre>
<spanclass="help-inline">Inline help text</span>
{% endhighlight %}
<h4>Block help</h4>
<h4>Block help</h4>
<formclass="bs-docs-example form-inline">
<formclass="bs-docs-example form-inline">
<inputtype="text">
<inputtype="text">
<spanclass="help-block">A longer block of help text that breaks onto a new line and may extend beyond one line.</span>
<spanclass="help-block">A longer block of help text that breaks onto a new line and may extend beyond one line.</span>
</form>
</form>
<preclass="prettyprint linenums">
{% highlight html linenos %}
<input type="text"><span class="help-block">A longer block of help text that breaks onto a new line and may extend beyond one line.</span>
<inputtype="text">
</pre>
<spanclass="help-block">A longer block of help text that breaks onto a new line and may extend beyond one line.</span>
{% endhighlight %}
</section>
</section>
...
@@ -1785,24 +1793,25 @@ For example, <code>&lt;section&gt;</code> should be wrapped
...
@@ -1785,24 +1793,25 @@ For example, <code>&lt;section&gt;</code> should be wrapped
We use <code>.disabled</code> as a utility class here, similar to the common <code>.active</code> class, so no prefix is required. Also, this class is only for aesthetic; you must use custom JavaScript to disable links here.
We use <code>.disabled</code> as a utility class here, similar to the common <code>.active</code> class, so no prefix is required. Also, this class is only for aesthetic; you must use custom JavaScript to disable links here.
</p>
</p>
<h3>Button element</h3>
<p>Add the <code>disabled</code> attribute to <code><button></code> buttons.</p>
<p>As a best practice, try to match the element for your context to ensure matching cross-browser rendering. If you have an <code>input</code>, use an <code><input type="submit"></code> for your button.</p>
<p>As a best practice, <strong>we highly recommend matching using the <code><button<</code> element whenever possible</strong> to ensure matching cross-browser rendering.</p>
</section>
</section>
...
@@ -1878,11 +1887,11 @@ For example, <code>&lt;section&gt;</code> should be wrapped
...
@@ -1878,11 +1887,11 @@ For example, <code>&lt;section&gt;</code> should be wrapped
@@ -2073,9 +2082,9 @@ For example, <code>&lt;section&gt;</code> should be wrapped
...
@@ -2073,9 +2082,9 @@ For example, <code>&lt;section&gt;</code> should be wrapped
<h2>How to use</h2>
<h2>How to use</h2>
<p>Add the appropriate class to any inline element. All icon classes are prefixed with <code>glyphicon-</code> for easy styling. To use, place the following code just about anywhere:</p>
<p>Add the appropriate class to any inline element. All icon classes are prefixed with <code>glyphicon-</code> for easy styling. To use, place the following code just about anywhere:</p>
<preclass="prettyprint linenums">
{% highlight html linenos %}
<i class="glyphicon-search"></i>
<spanclass="glyphicon-search"></span>
</pre>
{% endhighlight %}
<p>Want to change the icon color? Just change the <code>color</code> of the parent element.</p>
<p>Want to change the icon color? Just change the <code>color</code> of the parent element.</p>
<p>When using beside strings of text, as in buttons or nav links, be sure to leave a space after the icon for proper spacing.</p>
<p>When using beside strings of text, as in buttons or nav links, be sure to leave a space after the icon for proper spacing.</p>
...
@@ -2089,87 +2098,86 @@ For example, <code>&lt;section&gt;</code> should be wrapped
...
@@ -2089,87 +2098,86 @@ For example, <code>&lt;section&gt;</code> should be wrapped