mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-17 09:52:29 +01:00
Final translation tags in Base CSS
This commit is contained in:
parent
a9c6dca094
commit
425e5bfb71
325
docs/templates/pages/base-css.mustache
vendored
325
docs/templates/pages/base-css.mustache
vendored
@ -809,125 +809,125 @@
|
|||||||
================================================== -->
|
================================================== -->
|
||||||
<section id="forms">
|
<section id="forms">
|
||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
<h1>Forms</h1>
|
<h1>{{_i}}Forms{{/i}}</h1>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h2>Flexible HTML and CSS</h2>
|
<h2>{{_i}}Flexible HTML and CSS{{/i}}</h2>
|
||||||
<p>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.</p>
|
<p>{{_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}}</p>
|
||||||
<p>More complicated layouts come with succinct and scalable classes for easy styling and event binding, so you're covered at every step.</p>
|
<p>{{_i}}More complicated layouts come with succinct and scalable classes for easy styling and event binding, so you're covered at every step.{{/i}}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h2>Four layouts included</h2>
|
<h2>{{_i}}Four layouts included{{/i}}</h2>
|
||||||
<p>Bootstrap comes with support for four types of form layouts:</p>
|
<p>{{_i}}Bootstrap comes with support for four types of form layouts:{{/i}}</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Vertical (default)</li>
|
<li>{{_i}}Vertical (default){{/i}}</li>
|
||||||
<li>Search</li>
|
<li>{{_i}}Search{{/i}}</li>
|
||||||
<li>Inline</li>
|
<li>{{_i}}Inline{{/i}}</li>
|
||||||
<li>Horizontal</li>
|
<li>{{_i}}Horizontal{{/i}}</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p>Different types of form layouts require some changes to markup, but the controls themselves remain and behave the same.</p>
|
<p>{{_i}}Different types of form layouts require some changes to markup, but the controls themselves remain and behave the same.{{/i}}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h2>Control states and more</h2>
|
<h2>{{_i}}Control states and more{{/i}}</h2>
|
||||||
<p>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.</p>
|
<p>{{_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}}</p>
|
||||||
<p>States like error, warning, and success are included for each type of form control. Also included are styles for disabled controls.</p>
|
<p>{{_i}}States like error, warning, and success are included for each type of form control. Also included are styles for disabled controls.{{/i}}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h2>Four types of forms</h2>
|
<h2>{{_i}}Four types of forms{{/i}}</h2>
|
||||||
<p>Bootstrap provides simple markup and styles for four styles of common web forms.</p>
|
<p>{{_i}}Bootstrap provides simple markup and styles for four styles of common web forms.{{/i}}</p>
|
||||||
<table class="table table-bordered table-striped">
|
<table class="table table-bordered table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Name</th>
|
<th>{{_i}}Name{{/i}}</th>
|
||||||
<th>Class</th>
|
<th>{{_i}}Class{{/i}}</th>
|
||||||
<th>Description</th>
|
<th>{{_i}}Description{{/i}}</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Vertical (default)</th>
|
<th>{{_i}}Vertical (default){{/i}}</th>
|
||||||
<td><code>.vertical-form</code> <span class="muted">(not required)</span></td>
|
<td><code>.vertical-form</code> <span class="muted">({{_i}}not required{{/i}})</span></td>
|
||||||
<td>Stacked, left-aligned labels over controls</td>
|
<td>{{_i}}Stacked, left-aligned labels over controls{{/i}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Horizontal</th>
|
<th>{{_i}}Horizontal{{/i}}</th>
|
||||||
<td><code>.form-horizontal</code></td>
|
<td><code>.form-horizontal</code></td>
|
||||||
<td>Float left, right-aligned labels on same line as controls</td>
|
<td>{{_i}}Float left, right-aligned labels on same line as controls{{/i}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Inline</th>
|
<th>{{_i}}Inline{{/i}}</th>
|
||||||
<td><code>.form-inline</code></td>
|
<td><code>.form-inline</code></td>
|
||||||
<td>Left-aligned label and inline-block controls for compact style</td>
|
<td>{{_i}}Left-aligned label and inline-block controls for compact style{{/i}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Search</th>
|
<th>{{_i}}Search{{/i}}</th>
|
||||||
<td><code>.form-search</code></td>
|
<td><code>.form-search</code></td>
|
||||||
<td>Extra-rounded text input for a typical search aesthetic</td>
|
<td>{{_i}}Extra-rounded text input for a typical search aesthetic{{/i}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
||||||
<h2>Example forms <small>using just form controls, no extra markup</small></h2>
|
<h2>{{_i}}Example forms <small>using just form controls, no extra markup</small>{{/i}}</h2>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h3>Basic form</h3>
|
<h3>{{_i}}Basic form{{/i}}</h3>
|
||||||
<p>With v2.0, we have lighter and smarter defaults for form styles. No extra markup, just form controls.</p>
|
<p>{{_i}}With v2.0, we have lighter and smarter defaults for form styles. No extra markup, just form controls.{{/i}}</p>
|
||||||
<form class="well">
|
<form class="well">
|
||||||
<label>Label name</label>
|
<label>{{_i}}Label name{{/i}}</label>
|
||||||
<input type="text" class="span3" placeholder="Type something...">
|
<input type="text" class="span3" placeholder="{{_i}}Type something…{{/i}}">
|
||||||
<label class="checkbox">
|
<label class="checkbox">
|
||||||
<input type="checkbox"> Check me out
|
<input type="checkbox"> {{_i}}Check me out{{/i}}
|
||||||
</label>
|
</label>
|
||||||
<button type="submit" class="btn">Submit</button>
|
<button type="submit" class="btn">{{_i}}Submit{{/i}}</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h3>Search form</h3>
|
<h3>{{_i}}Search form{{/i}}</h3>
|
||||||
<p>Reflecting default WebKit styles, just add <code>.form-search</code> for extra rounded search fields.</p>
|
<p>{{_i}}Reflecting default WebKit styles, just add <code>.form-search</code> for extra rounded search fields.{{/i}}</p>
|
||||||
<form class="well form-search">
|
<form class="well form-search">
|
||||||
<input type="text" class="input-medium search-query">
|
<input type="text" class="input-medium search-query">
|
||||||
<button type="submit" class="btn">Search</button>
|
<button type="submit" class="btn">{{_i}}Search{{/i}}</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h3>Inline form</h3>
|
<h3>{{_i}}Inline form{{/i}}</h3>
|
||||||
<p>Inputs are block level to start. For <code>.form-inline</code> and <code>.form-horizontal</code>, we use inline-block.</p>
|
<p>{{_i}}Inputs are block level to start. For <code>.form-inline</code> and <code>.form-horizontal</code>, we use inline-block.{{/i}}</p>
|
||||||
<form class="well form-search">
|
<form class="well form-search">
|
||||||
<input type="text" class="input-small" placeholder="Email">
|
<input type="text" class="input-small" placeholder="{{_i}}Email{{/i}}">
|
||||||
<input type="password" class="input-small" placeholder="Password">
|
<input type="password" class="input-small" placeholder="{{_i}}Password{{/i}}">
|
||||||
<button type="submit" class="btn">Go</button>
|
<button type="submit" class="btn">{{_i}}Go{{/i}}</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div><!-- /row -->
|
</div><!-- /row -->
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
<h2>Horizontal forms</h2>
|
<h2>{{_i}}Horizontal forms{{/i}}</h2>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span8">
|
<div class="span8">
|
||||||
<form class="form-horizontal">
|
<form class="form-horizontal">
|
||||||
<legend>Controls Bootstrap supports</legend>
|
<legend>{{_i}}Controls Bootstrap supports{{/i}}</legend>
|
||||||
<fieldset class="control-group">
|
<fieldset class="control-group">
|
||||||
<label class="control-label" for="input01">Text input</label>
|
<label class="control-label" for="input01">{{_i}}Text input{{/i}}</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<input type="text" class="xlarge" name="input01">
|
<input type="text" class="xlarge" name="input01">
|
||||||
<p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p>
|
<p class="help-block">{{_i}}In addition to freeform text, any HTML5 text-based input appears like so.{{/i}}</p>
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<fieldset class="control-group">
|
<fieldset class="control-group">
|
||||||
<label class="control-label" for="optionsCheckbox">Checkbox</label>
|
<label class="control-label" for="optionsCheckbox">{{_i}}Checkbox{{/i}}</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<label class="checkbox">
|
<label class="checkbox">
|
||||||
<input type="checkbox" name="optionsCheckbox" value="option1">
|
<input type="checkbox" name="optionsCheckbox" value="option1">
|
||||||
Option one is this and that—be sure to include why it’s great
|
{{_i}}Option one is this and that—be sure to include why it’s great{{/i}}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<fieldset class="control-group">
|
<fieldset class="control-group">
|
||||||
<label class="control-label" for="select01">Select list</label>
|
<label class="control-label" for="select01">{{_i}}Select list{{/i}}</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<select name="select01">
|
<select name="select01">
|
||||||
<option>1</option>
|
<option>1</option>
|
||||||
@ -939,7 +939,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<fieldset class="control-group">
|
<fieldset class="control-group">
|
||||||
<label class="control-label" for="multiSelect">Multi-select</label>
|
<label class="control-label" for="multiSelect">{{_i}}Multi-select{{/i}}</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<select multiple="multiple" name="multiSelect">
|
<select multiple="multiple" name="multiSelect">
|
||||||
<option>1</option>
|
<option>1</option>
|
||||||
@ -951,39 +951,39 @@
|
|||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<fieldset class="control-group">
|
<fieldset class="control-group">
|
||||||
<label class="control-label" for="fileInput">File input</label>
|
<label class="control-label" for="fileInput">{{_i}}File input{{/i}}</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<input class="input-file" id="fileInput" name="fileInput" type="file">
|
<input class="input-file" id="fileInput" name="fileInput" type="file">
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<fieldset class="control-group">
|
<fieldset class="control-group">
|
||||||
<label class="control-label" for="textarea">Textarea</label>
|
<label class="control-label" for="textarea">{{_i}}Textarea{{/i}}</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<textarea class="input-xlarge" name="textarea" id="textarea" rows="3"></textarea>
|
<textarea class="input-xlarge" name="textarea" id="textarea" rows="3"></textarea>
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<fieldset class="form-actions">
|
<fieldset class="form-actions">
|
||||||
<button type="submit" class="btn primary">Save changes</button>
|
<button type="submit" class="btn primary">{{_i}}Save changes{{/i}}</button>
|
||||||
<button type="reset" class="btn">Cancel</button>
|
<button type="reset" class="btn">{{_i}}Cancel{{/i}}</button>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<div class="form-docs">
|
<div class="form-docs">
|
||||||
<h3>What's included</h3>
|
<h3>{{_i}}What's included{{/i}}</h3>
|
||||||
<p>Shown on the left are all the default form controls we support. Here's the bulleted list:</p>
|
<p>{{_i}}Shown on the left are all the default form controls we support. Here's the bulleted list:{{/i}}</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>text inputs (text, password, email, etc)</li>
|
<li>{{_i}}text inputs (text, password, email, etc){{/i}}</li>
|
||||||
<li>checkbox</li>
|
<li>{{_i}}checkbox{{/i}}</li>
|
||||||
<li>radio</li>
|
<li>{{_i}}radio{{/i}}</li>
|
||||||
<li>select</li>
|
<li>{{_i}}select{{/i}}</li>
|
||||||
<li>multiple select</li>
|
<li>{{_i}}multiple select{{/i}}</li>
|
||||||
<li>file input</li>
|
<li>{{_i}}file input{{/i}}</li>
|
||||||
<li>textarea</li>
|
<li>{{_i}}textarea{{/i}}</li>
|
||||||
</ul>
|
</ul>
|
||||||
<hr>
|
<hr>
|
||||||
<h3>New defaults with v2.0</h3>
|
<h3>{{_i}}New defaults with v2.0{{/i}}</h3>
|
||||||
<p>Up to v1.4, Bootstrap's default form styles used the horizontal layout. With Bootstrap 2, we removed that constraint to have smarter, more scalable defaults for any form.</p>
|
<p>{{_i}}Up to v1.4, Bootstrap's default form styles used the horizontal layout. With Bootstrap 2, we removed that constraint to have smarter, more scalable defaults for any form.{{/i}}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -993,66 +993,66 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span8">
|
<div class="span8">
|
||||||
<form class="form-horizontal">
|
<form class="form-horizontal">
|
||||||
<legend>Form control states</legend>
|
<legend>{{_i}}Form control states{{/i}}</legend>
|
||||||
<fieldset class="control-group">
|
<fieldset class="control-group">
|
||||||
<label class="control-label" for="focusedInput">Focused input</label>
|
<label class="control-label" for="focusedInput">{{_i}}Focused input{{/i}}</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<input class="input-xlarge focused" id="focusedInput" name="focusedInput" type="text" value="This is focused...">
|
<input class="input-xlarge focused" id="focusedInput" name="focusedInput" type="text" value="{{_i}}This is focused…{{/i}}">
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<fieldset class="control-group">
|
<fieldset class="control-group">
|
||||||
<label class="control-label" for="disabledInput">Disabled input</label>
|
<label class="control-label" for="disabledInput">{{_i}}Disabled input{{/i}}</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<input class="input-xlarge disabled" id="disabledInput" name="disabledInput" type="text" placeholder="Disabled input here..." disabled>
|
<input class="input-xlarge disabled" id="disabledInput" name="disabledInput" type="text" placeholder="{{_i}}Disabled input here…{{/i}}" disabled>
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<fieldset class="control-group">
|
<fieldset class="control-group">
|
||||||
<label class="control-label" for="optionsCheckbox">Disabled checkbox</label>
|
<label class="control-label" for="optionsCheckbox">{{_i}}Disabled checkbox{{/i}}</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<label class="checkbox">
|
<label class="checkbox">
|
||||||
<input type="checkbox" name="optionsCheckbox" value="option1" disabled>
|
<input type="checkbox" name="optionsCheckbox" value="option1" disabled>
|
||||||
This is a disabled checkbox
|
{{_i}}This is a disabled checkbox{{/i}}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<fieldset class="control-group warning">
|
<fieldset class="control-group warning">
|
||||||
<label class="control-label" for="inputError">Input with warning</label>
|
<label class="control-label" for="inputError">{{_i}}Input with warning{{/i}}</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<input type="text" name="inputError">
|
<input type="text" name="inputError">
|
||||||
<span class="help-inline">Something may have gone wrong</span>
|
<span class="help-inline">{{_i}}Something may have gone wrong{{/i}}</span>
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<fieldset class="control-group error">
|
<fieldset class="control-group error">
|
||||||
<label class="control-label" for="inputError">Input with error</label>
|
<label class="control-label" for="inputError">{{_i}}Input with error{{/i}}</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<input type="text" name="inputError">
|
<input type="text" name="inputError">
|
||||||
<span class="help-inline">Please correct the error</span>
|
<span class="help-inline">{{_i}}Please correct the error{{/i}}</span>
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<fieldset class="control-group success">
|
<fieldset class="control-group success">
|
||||||
<label class="control-label" for="inputError">Input with success</label>
|
<label class="control-label" for="inputError">{{_i}}Input with success{{/i}}</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<input type="text" name="inputError">
|
<input type="text" name="inputError">
|
||||||
<span class="help-inline">Woohoo!</span>
|
<span class="help-inline">{{_i}}Woohoo!{{/i}}</span>
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<fieldset class="form-actions">
|
<fieldset class="form-actions">
|
||||||
<button type="submit" class="btn primary">Save changes</button>
|
<button type="submit" class="btn primary">{{_i}}Save changes{{/i}}</button>
|
||||||
<button type="reset" class="btn">Cancel</button>
|
<button type="reset" class="btn">{{_i}}Cancel{{/i}}</button>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<div class="form-docs">
|
<div class="form-docs">
|
||||||
<h3>Redesigned browser states</h3>
|
<h3>{{_i}}Redesigned browser states{{/i}}</h3>
|
||||||
<p>Bootstrap features styles for browser-supported focused and <code>disabled</code> states. We remove the default Webkit <code>outline</code> and apply a <code>box-shadow</code> in it's place for <code>:focus</code>.</p>
|
<p>{{_i}}Bootstrap features styles for browser-supported focused and <code>disabled</code> states. We remove the default Webkit <code>outline</code> and apply a <code>box-shadow</code> in it's place for <code>:focus</code>.{{/i}}</p>
|
||||||
<hr>
|
<hr>
|
||||||
<h3>Form validation</h3>
|
<h3>{{_i}}Form validation{{/i}}</h3>
|
||||||
<p>It also includes validation styles for errors, warnings, and success. To use, add the a class to the surrounding <code>.control-group</code>.</p>
|
<p>{{_i}}It also includes validation styles for errors, warnings, and success. To use, add the a class to the surrounding <code>.control-group</code>.{{/i}}</p>
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
<fieldset
|
<fieldset
|
||||||
class="control-group error">
|
class="control-group error">
|
||||||
...
|
…
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
@ -1064,38 +1064,38 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span8">
|
<div class="span8">
|
||||||
<form class="form-horizontal">
|
<form class="form-horizontal">
|
||||||
<legend>Extending form controls</legend>
|
<legend>{{_i}}Extending form controls{{/i}}</legend>
|
||||||
<fieldset class="control-group">
|
<fieldset class="control-group">
|
||||||
<label class="control-label">Form sizes</label>
|
<label class="control-label">{{_i}}Form sizes{{/i}}</label>
|
||||||
<div class="controls docs-input-sizes">
|
<div class="controls docs-input-sizes">
|
||||||
<input class="span2" type="text" name="" placeholder=".span2">
|
<input class="span2" type="text" name="" placeholder=".span2">
|
||||||
<input class="span3" type="text" name="" placeholder=".span3">
|
<input class="span3" type="text" name="" placeholder=".span3">
|
||||||
<input class="span4" type="text" name="" placeholder=".span4">
|
<input class="span4" type="text" name="" placeholder=".span4">
|
||||||
<p class="help-block">Use the same <code>.span*</code> classes from the grid system for input sizes.</p>
|
<p class="help-block">{{_i}}Use the same <code>.span*</code> classes from the grid system for input sizes.{{/i}}</p>
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<fieldset class="control-group">
|
<fieldset class="control-group">
|
||||||
<label class="control-label" for="prependedInput">Prepended text</label>
|
<label class="control-label" for="prependedInput">{{_i}}Prepended text{{/i}}</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<div class="input-prepend">
|
<div class="input-prepend">
|
||||||
<span class="add-on">@</span>
|
<span class="add-on">@</span>
|
||||||
<input class="span2" id="prependedInput" name="prependedInput" size="16" type="text">
|
<input class="span2" id="prependedInput" name="prependedInput" size="16" type="text">
|
||||||
</div>
|
</div>
|
||||||
<p class="help-block">Here's some help text</p>
|
<p class="help-block">{{_i}}Here's some help text{{/i}}</p>
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<fieldset class="control-group">
|
<fieldset class="control-group">
|
||||||
<label class="control-label" for="appendedInput">Appended text</label>
|
<label class="control-label" for="appendedInput">{{_i}}Appended text{{/i}}</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<div class="input-append">
|
<div class="input-append">
|
||||||
<input class="span2" id="appendedInput" name="appendedInput" size="16" type="text">
|
<input class="span2" id="appendedInput" name="appendedInput" size="16" type="text">
|
||||||
<span class="add-on">.00</span>
|
<span class="add-on">.00</span>
|
||||||
</div>
|
</div>
|
||||||
<p class="help-block">Here's more help text</p>
|
<p class="help-block">{{_i}}Here's more help text{{/i}}</p>
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<fieldset class="control-group">
|
<fieldset class="control-group">
|
||||||
<label class="control-label" for="inlineCheckboxes">Inline checkboxes</label>
|
<label class="control-label" for="inlineCheckboxes">{{_i}}Inline checkboxes{{/i}}</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<label class="checkbox inline">
|
<label class="checkbox inline">
|
||||||
<input type="checkbox" name="inlineCheckbox1" value="option1"> 1
|
<input type="checkbox" name="inlineCheckbox1" value="option1"> 1
|
||||||
@ -1109,50 +1109,50 @@
|
|||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<fieldset class="control-group">
|
<fieldset class="control-group">
|
||||||
<label class="control-label" for="optionsCheckboxes">Checkboxes</label>
|
<label class="control-label" for="optionsCheckboxes">{{_i}}Checkboxes{{/i}}</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<label class="checkbox">
|
<label class="checkbox">
|
||||||
<input type="checkbox" name="optionsCheckboxes" value="option1">
|
<input type="checkbox" name="optionsCheckboxes" value="option1">
|
||||||
Option one is this and that—be sure to include why it’s great
|
{{_i}}Option one is this and that—be sure to include why it’s great{{/i}}
|
||||||
</label>
|
</label>
|
||||||
<label class="checkbox">
|
<label class="checkbox">
|
||||||
<input type="checkbox" name="optionsCheckboxes" value="option2">
|
<input type="checkbox" name="optionsCheckboxes" value="option2">
|
||||||
Option two can also be checked and included in form results
|
{{_i}}Option two can also be checked and included in form results{{/i}}
|
||||||
</label>
|
</label>
|
||||||
<label class="checkbox">
|
<label class="checkbox">
|
||||||
<input type="checkbox" name="optionsCheckboxes" value="option3">
|
<input type="checkbox" name="optionsCheckboxes" value="option3">
|
||||||
Option three can—yes, you guessed it—also be checked and included in form results
|
{{_i}}Option three can—yes, you guessed it—also be checked and included in form results{{/i}}
|
||||||
</label>
|
</label>
|
||||||
<p class="help-text"><strong>Note:</strong> Labels surround all the options for much larger click areas and a more usable form.</p>
|
<p class="help-text">{{_i}}<strong>Note:</strong> Labels surround all the options for much larger click areas and a more usable form.{{/i}}</p>
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<fieldset class="control-group">
|
<fieldset class="control-group">
|
||||||
<label class="control-label" for="optionsRadios">Radio buttons</label>
|
<label class="control-label" for="optionsRadios">{{_i}}Radio buttons{{/i}}</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<label class="radio">
|
<label class="radio">
|
||||||
<input type="radio" checked name="optionsRadios" value="option1">
|
<input type="radio" checked name="optionsRadios" value="option1">
|
||||||
Option one is this and that—be sure to include why it’s great
|
{{_i}}Option one is this and that—be sure to include why it’s great{{/i}}
|
||||||
</label>
|
</label>
|
||||||
<label class="radio">
|
<label class="radio">
|
||||||
<input type="radio" name="optionsRadios" value="option2">
|
<input type="radio" name="optionsRadios" value="option2">
|
||||||
Option two can is something else and selecting it will deselect option one
|
{{_i}}Option two can is something else and selecting it will deselect option one{{/i}}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<fieldset class="form-actions">
|
<fieldset class="form-actions">
|
||||||
<button type="submit" class="btn primary">Save changes</button>
|
<button type="submit" class="btn primary">{{_i}}Save changes{{/i}}</button>
|
||||||
<button type="reset" class="btn">Cancel</button>
|
<button type="reset" class="btn">{{_i}}Cancel{{/i}}</button>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<div class="form-docs">
|
<div class="form-docs">
|
||||||
<h3>Prepend & append inputs</h3>
|
<h3>{{_i}}Prepend & append inputs{{/i}}</h3>
|
||||||
<p>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.</p>
|
<p>{{_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}}</p>
|
||||||
<hr>
|
<hr>
|
||||||
<h3>Checkboxes and radios</h3>
|
<h3>{{_i}}Checkboxes and radios{{/i}}</h3>
|
||||||
<p>Up to v1.4, Bootstrap required extra markup around checkboxes and radios to stack them. Now, it's a simple matter of repeating the <code><label class="checkbox"></code> that wraps the <code><input type="checkbox"></code>.</p>
|
<p>{{_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 <code><label class="checkbox"></code> that wraps the <code><input type="checkbox"></code>.{{/i}}</p>
|
||||||
<p>Inline checkboxes and radios are also supported. Just add <code>.inline</code> to any <code>.checkbox</code> or <code>.radio</code> and you're done.</p>
|
<p>{{_i}}Inline checkboxes and radios are also supported. Just add <code>.inline</code> to any <code>.checkbox</code> or <code>.radio</code> and you're done.{{/i}}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div><!-- /row -->
|
</div><!-- /row -->
|
||||||
@ -1162,81 +1162,82 @@
|
|||||||
|
|
||||||
<section id="buttons">
|
<section id="buttons">
|
||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
<h1>Buttons</h1>
|
<h1>{{_i}}Buttons{{/i}}</h1>
|
||||||
</div>
|
</div>
|
||||||
<table class="table table-bordered table-striped">
|
<table class="table table-bordered table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Button</th>
|
<th>{{_i}}Button{{/i}}</th>
|
||||||
<th>Class</th>
|
<th>{{_i}}Class{{/i}}</th>
|
||||||
<th>Description</th>
|
<th>{{_i}}Description{{/i}}</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td><a class="btn" href="#">Default</a></td>
|
<td><a class="btn" href="#">{{_i}}Default{{/i}}</a></td>
|
||||||
<td><code>.btn</code></td>
|
<td><code>.btn</code></td>
|
||||||
<td>Standard gray button with gradient</td>
|
<td>{{_i}}Standard gray button with gradient{{/i}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><a class="btn primary" href="#">Primary</a></td>
|
<td><a class="btn primary" href="#">{{_i}}Primary{{/i}}</a></td>
|
||||||
<td><code>.primary</code></td>
|
<td><code>.primary</code></td>
|
||||||
<td>Provides extra visual weight and identifies the primary action in a set of buttons</td>
|
<td>{{_i}}Provides extra visual weight and identifies the primary action in a set of buttons{{/i}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><a class="btn info" href="#">Info</a></td>
|
<td><a class="btn info" href="#">{{_i}}Info{{/i}}</a></td>
|
||||||
<td><code>.info</code></td>
|
<td><code>.info</code></td>
|
||||||
<td>Used as an alternate to the default styles</td>
|
<td>{{_i}}Used as an alternate to the default styles{{/i}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><a class="btn success" href="#">Success</a></td>
|
<td><a class="btn success" href="#">{{_i}}Success{{/i}}</a></td>
|
||||||
<td><code>.success</code></td>
|
<td><code>.success</code></td>
|
||||||
<td>Indicates a successful or positive action</td>
|
<td>{{_i}}Indicates a successful or positive action{{/i}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><a class="btn danger" href="#">Danger</a></td>
|
<td><a class="btn danger" href="#">{{_i}}Danger{{/i}}</a></td>
|
||||||
<td><code>.danger</code></td>
|
<td><code>.danger</code></td>
|
||||||
<td>Indicates a dangerous or potentially negative action</td>
|
<td>{{_i}}Indicates a dangerous or potentially negative action{{/i}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h3>Buttons for actions</h3>
|
<h3>{{_i}}Buttons for actions{{/i}}</h3>
|
||||||
<p>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.</p>
|
<p>{{_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}}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h3>For anchors and forms</h3>
|
<h3>{{_i}}For anchors and forms{{/i}}</h3>
|
||||||
<p>Button styles can be applied to anything with the <code>.btn</code> applied. However, typically you’ll want to apply these to only <code><a></code> and <code><button></code> elements.</p>
|
<p>{{_i}}Button styles can be applied to anything with the <code>.btn</code> applied. However, typically you’ll want to apply these to only <code><a></code> and <code><button></code> elements.{{/i}}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<p><strong>Note:</strong> All buttons must include the <code>.btn</code> class. Button styles should be applied to <code><button></code> and <code><a></code> elements for consistency.</p>
|
<p>{{_i}}<strong>Note:</strong> All buttons must include the <code>.btn</code> class. Button styles should be applied to <code><button></code> and <code><a></code> elements for consistency.{{/i}}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h3>Multiple sizes</h3>
|
<h3>{{_i}}Multiple sizes{{/i}}</h3>
|
||||||
<p>Fancy larger or smaller buttons? Have at it!</p>
|
<p>{{_i}}Fancy larger or smaller buttons? Have at it!{{/i}}</p>
|
||||||
<p>
|
<p>
|
||||||
<a href="#" class="btn large primary">Primary action</a>
|
<a href="#" class="btn large primary">{{_i}}Primary action{{/i}}</a>
|
||||||
<a href="#" class="btn large">Action</a>
|
<a href="#" class="btn large">{{_i}}Action{{/i}}</a>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<a href="#" class="btn small primary">Primary action</a>
|
<a href="#" class="btn small primary">{{_i}}Primary action{{/i}}</a>
|
||||||
<a href="#" class="btn small">Action</a>
|
<a href="#" class="btn small">{{_i}}Action{{/i}}</a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="span8">
|
<div class="span8">
|
||||||
<h3>Disabled state</h3>
|
<h3>{{_i}}Disabled state{{/i}}</h3>
|
||||||
<p>For buttons that are not active or are disabled by the app for one reason or another, use the disabled state. That’s <code>.disabled</code> for links and <code>:disabled</code> for <code><button></code> elements.</p>
|
<p>{{_i}}For buttons that are not active or are disabled by the app for one reason or another, use the disabled state. That’s <code>.disabled</code> for links and <code>:disabled</code> for <code><button></code> elements.{{/i}}</p>
|
||||||
<p>
|
<p>
|
||||||
<a href="#" class="btn large primary disabled">Primary action</a>
|
<a href="#" class="btn large primary disabled">{{_i}}Primary action{{/i}}</a>
|
||||||
<a href="#" class="btn large disabled">Action</a>
|
<a href="#" class="btn large disabled">{{_i}}Action{{/i}}</a>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<button class="btn large primary disabled" disabled="disabled">Primary action</button> <button class="btn large" disabled>Action</button>
|
<button class="btn large primary disabled" disabled="disabled">{{_i}}Primary action{{/i}}</button>
|
||||||
|
<button class="btn large" disabled>{{_i}}Action{{/i}}</button>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -1251,7 +1252,7 @@
|
|||||||
================================================== -->
|
================================================== -->
|
||||||
<section id="icons">
|
<section id="icons">
|
||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
<h1>Icons <small>Graciously provided by <a href="http://glyphicons.com" target="_blank">Glyphicons</a></small></h1>
|
<h1>{{_i}}Icons <small>Graciously provided by <a href="http://glyphicons.com" target="_blank">Glyphicons</a></small>{{/i}}</h1>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span2">
|
<div class="span2">
|
||||||
@ -1365,7 +1366,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="span2">
|
<div class="span2">
|
||||||
<p class="muted">Light red background color is only used to show the dimensions of the icons in the docs.</p>
|
<p class="muted">{{_i}}Light red background color is only used to show the dimensions of the icons in the docs.{{/i}}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -1373,38 +1374,38 @@
|
|||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h3>Built as a sprite</h3>
|
<h3>{{_i}}Built as a sprite{{/i}}</h3>
|
||||||
<p>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 <code>background-position</code>. This is the same method we use on Twitter.com and it has worked well for us.</p>
|
<p>{{_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 <code>background-position</code>. This is the same method we use on Twitter.com and it has worked well for us.{{/i}}</p>
|
||||||
<p><a href="http://glyphicons.com" target="_blank">Glyphicons</a> has granted us use of the Halflings set in our open-source toolkit so long as we provide a link and credit. Please consider doing the same in your projects.</p>
|
<p>{{_i}}<a href="http://glyphicons.com" target="_blank">Glyphicons</a> has granted us use of the Halflings set in our open-source toolkit so long as we provide a link and credit. Please consider doing the same in your projects.{{/i}}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h3>How to use</h3>
|
<h3>{{_i}}How to use{{/i}}</h3>
|
||||||
<p>With v2.0.0, the <code><i></code> tag is essentially dedicated to iconography. To use the icons, you can place the follow code wherever you like one to appear:</p>
|
<p>{{_i}}With v2.0.0, the <code><i></code> tag is essentially dedicated to iconography. To use the icons, you can place the follow code wherever you like one to appear:{{/i}}</p>
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
<i class="chevron-left"></i>
|
<i class="chevron-left"></i>
|
||||||
</pre>
|
</pre>
|
||||||
<p>There are over 100 classes to choose from for your icons. Just add an <code><i></code> tag with the right class and you're set. You can find the full list in sprites.less or right here in this document.</p>
|
<p>{{_i}}There are over 100 classes to choose from for your icons. Just add an <code><i></code> tag with the right class and you're set. You can find the full list in sprites.less or right here in this document.{{/i}}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h3>Use cases</h3>
|
<h3>{{_i}}Use cases{{/i}}</h3>
|
||||||
<p>Icons are great, but where would one use them? Here are a few ideas:</p>
|
<p>{{_i}}Icons are great, but where would one use them? Here are a few ideas:{{/i}}</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>As visuals for your sidebar navigation</li>
|
<li>{{_i}}As visuals for your sidebar navigation{{/i}}</li>
|
||||||
<li>For a purely icon-driven nav</li>
|
<li>{{_i}}For a purely icon-driven nav{{/i}}</li>
|
||||||
<li>For buttons to help convey the meaning of an action</li>
|
<li>{{_i}}For buttons to help convey the meaning of an action{{/i}}</li>
|
||||||
<li>With links to share context on a user's destination</li>
|
<li>{{_i}}With links to share context on a user's destination{{/i}}</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p>Essentially, anywhere you can put an <code><i></code> tag, you can put an icon.</p>
|
<p>{{_i}}Essentially, anywhere you can put an <code><i></code> tag, you can put an icon.{{/i}}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h3>Examples</h3>
|
<h3>{{_i}}Examples{{/i}}</h3>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<p>Use them in buttons, or in button groups for a toolbar style presentation.</p>
|
<p>{{_i}}Use them in buttons, or in button groups for a toolbar style presentation.{{/i}}</p>
|
||||||
<p>
|
<p>
|
||||||
<a class="btn" href="#"><i class="refresh"></i> Refresh</a>
|
<a class="btn" href="#"><i class="refresh"></i> {{_i}}Refresh{{/i}}</a>
|
||||||
<a class="btn" href="#"><i class="cog"></i> Settings</a>
|
<a class="btn" href="#"><i class="cog"></i> {{_i}}Settings{{/i}}</a>
|
||||||
</p>
|
</p>
|
||||||
<div class="btn-toolbar">
|
<div class="btn-toolbar">
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
@ -1421,12 +1422,12 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="span3">
|
<div class="span3">
|
||||||
<p>Or, use them in navigation.</p>
|
<p>{{_i}}Or, use them in navigation.{{/i}}</p>
|
||||||
<div class="well" style="padding: 8px 0;">
|
<div class="well" style="padding: 8px 0;">
|
||||||
<ul class="nav list">
|
<ul class="nav list">
|
||||||
<li class="active"><a href="#"><i class="home"></i> Home</a></li>
|
<li class="active"><a href="#"><i class="home"></i> {{_i}}Home{{/i}}</a></li>
|
||||||
<li><a href="#"><i class="book"></i> Library</a></li>
|
<li><a href="#"><i class="book"></i> {{_i}}Library{{/i}}</a></li>
|
||||||
<li><a href="#"><i class="pencil"></i> Applications</a></li>
|
<li><a href="#"><i class="pencil"></i> {{_i}}Applications{{/i}}</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div> <!-- /well -->
|
</div> <!-- /well -->
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user