diff options
| author | Mark Otto <[email protected]> | 2012-08-18 16:31:13 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2012-08-18 16:31:13 -0700 |
| commit | 80ced60778404462a83f70ea2192152e3dd4ffbc (patch) | |
| tree | 9947d935bcd15c577db5abc090602dd1cc286f26 /docs/base-css.html | |
| parent | 50638530e61307f174950ef295235a6dbddec6b9 (diff) | |
| parent | dda951d1e1283738c132f1132e9dec28f27fa1ec (diff) | |
| download | bootstrap-80ced60778404462a83f70ea2192152e3dd4ffbc.tar.xz bootstrap-80ced60778404462a83f70ea2192152e3dd4ffbc.zip | |
Merge branch '2.1.0-wip' of https://github.com/smerik/bootstrap into smerik-2.1.0-wip
Diffstat (limited to 'docs/base-css.html')
| -rw-r--r-- | docs/base-css.html | 242 |
1 files changed, 164 insertions, 78 deletions
diff --git a/docs/base-css.html b/docs/base-css.html index 3ea3bdce3..363f91a02 100644 --- a/docs/base-css.html +++ b/docs/base-css.html @@ -417,10 +417,10 @@ For example, <code>section</code> should be wrapped as inline. </pre> <pre class="prettyprint linenums" style="margin-bottom: 9px;"> <pre> - &lt;p&gt;Sample text here...&lt;/p&gt; +&lt;p&gt;Sample text here...&lt;/p&gt; </pre> </pre> - <p><strong>Note:</strong> Be sure to keep code within <code><pre></code> tags as close to the left as possible; it will render all tabs.</p> + <p><span class="label label-info">Heads up!</span> Be sure to keep code within <code><pre></code> tags as close to the left as possible; it will render all tabs.</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> @@ -802,6 +802,7 @@ For example, <code>section</code> should be wrapped as inline. </table> <pre class="prettyprint linenums"> <table> + <caption>…</caption> <thead> <tr> <th>…</th> @@ -834,14 +835,15 @@ For example, <code>section</code> should be wrapped as inline. <legend>Legend</legend> <label>Label name</label> <input type="text" placeholder="Type something…"> - <p class="help-block">Example block-level help text here.</p> + <span class="help-block">Example block-level help text here.</span> <label class="checkbox"> <input type="checkbox"> Check me out </label> <button type="submit" class="btn">Submit</button> </form> <pre class="prettyprint linenums"> -<form class="well"> +<form> + <legend>Legend</legend> <label>Label name</label> <input type="text" placeholder="Type something…"> <span class="help-block">Example block-level help text here.</span> @@ -853,7 +855,7 @@ For example, <code>section</code> should be wrapped as inline. </pre> - <hr class="bs-docs-separator"></hr> + <hr class="bs-docs-separator"> <h2>Optional layouts</h2> @@ -904,15 +906,15 @@ For example, <code>section</code> should be wrapped as inline. <form class="bs-docs-example form-horizontal"> <legend>Legend</legend> <div class="control-group"> - <label class="control-label" for="">Email</label> + <label class="control-label" for="inputEmail">Email</label> <div class="controls"> - <input type="text" placeholder="Email"> + <input type="text" id="inputEmail" placeholder="Email"> </div> </div> <div class="control-group"> - <label class="control-label" for="">Password</label> + <label class="control-label" for="inputPassword">Password</label> <div class="controls"> - <input type="password" placeholder="Password"> + <input type="password" id="inputPassword" placeholder="Password"> </div> </div> <div class="control-group"> @@ -927,15 +929,15 @@ For example, <code>section</code> should be wrapped as inline. <pre class="prettyprint linenums"> <form class="form-horizontal"> <div class="control-group"> - <label class="control-label" for="">Email</label> + <label class="control-label" for="inputEmail">Email</label> <div class="controls"> - <input type="text" placeholder="Email"> + <input type="text" id="inputEmail" placeholder="Email"> </div> </div> <div class="control-group"> - <label class="control-label" for="">Password</label> + <label class="control-label" for="inputPassword">Password</label> <div class="controls"> - <input type="password" placeholder="Password"> + <input type="password" id="inputPassword" placeholder="Password"> </div> </div> <div class="control-group"> @@ -950,7 +952,7 @@ For example, <code>section</code> should be wrapped as inline. </pre> - <hr class="bs-docs-separator"></hr> + <hr class="bs-docs-separator"> <h2>Supported form controls</h2> @@ -972,7 +974,7 @@ For example, <code>section</code> should be wrapped as inline. <textarea rows="3"></textarea> </form> <pre class="prettyprint linenums"> -<textarea id="textarea" rows="3"></textarea> +<textarea rows="3"></textarea> </pre> <h3>Checkboxes and radios</h3> @@ -1045,7 +1047,7 @@ For example, <code>section</code> should be wrapped as inline. <option>5</option> </select> <br> - <select> + <select multiple="multiple"> <option>1</option> <option>2</option> <option>3</option> @@ -1062,7 +1064,7 @@ For example, <code>section</code> should be wrapped as inline. <option>5</option> </select> -<select> +<select multiple="multiple"> <option>1</option> <option>2</option> <option>3</option> @@ -1072,7 +1074,7 @@ For example, <code>section</code> should be wrapped as inline. </pre> - <hr class="bs-docs-separator"></hr> + <hr class="bs-docs-separator"> <h2>Extending form controls</h2> @@ -1082,7 +1084,7 @@ For example, <code>section</code> should be wrapped as inline. <p>Add text or buttons before or after any text-based input. Do note that <code>select</code> elements are not supported here.</p> <h4>Default options</h4> - <p>Wrap a <code>.add-on</code> and an <code>input</code> with one of two classes to prepend or append text to an input.</p> + <p>Wrap an <code>.add-on</code> and an <code>input</code> with one of two classes to prepend or append text to an input.</p> <form class="bs-docs-example"> <div class="input-prepend"> <span class="add-on">@</span> @@ -1155,8 +1157,14 @@ For example, <code>section</code> should be wrapped as inline. </form> <pre class="prettyprint linenums"> <form class="form-search"> - <input type="text" class="span2 search-query"> - <button type="submit" class="btn">Search</button> + <div class="input-append"> + <input type="text" class="span2 search-query"> + <button type="submit" class="btn">Search</button> + </div> + <div class="input-prepend"> + <input type="text" class="span2 search-query"> + <button type="submit" class="btn">Search</button> + </div> </form> </pre> @@ -1175,12 +1183,12 @@ For example, <code>section</code> should be wrapped as inline. </div> </form> <pre class="prettyprint linenums"> -<input class="input-mini" type="text"> -<input class="input-small" type="text"> -<input class="input-medium" type="text"> -<input class="input-large" type="text"> -<input class="input-xlarge" type="text"> -<input class="input-xxlarge" type="text"> +<input class="input-mini" type="text" placeholder=".input-mini"> +<input class="input-small" type="text" placeholder=".input-small"> +<input class="input-medium" type="text" placeholder=".input-medium"> +<input class="input-large" type="text" placeholder=".input-large"> +<input class="input-xlarge" type="text" placeholder=".input-xlarge"> +<input class="input-xxlarge" type="text" placeholder=".input-xxlarge"> </pre> <p> <span class="label label-info">Heads up!</span> In future versions, we'll be altering the use of these relative input classes to match our button sizes. For example, <code>.input-large</code> will increase the padding and font-size of an input. @@ -1217,9 +1225,18 @@ For example, <code>section</code> should be wrapped as inline. </div> </form> <pre class="prettyprint linenums"> -<input class="span1" type="text"> -<input class="span2" type="text"> -<input class="span3" type="text"> +<input class="span1" type="text" placeholder=".span1"> +<input class="span2" type="text" placeholder=".span2"> +<input class="span3" type="text" placeholder=".span3"> +<select class="span1"> + ... +</select> +<select class="span2"> + ... +</select> +<select class="span3"> + ... +</select> </pre> <p>For multiple grid inputs per line, <strong>use the <code>.controls-row</code> modifier class for proper spacing</strong>. It floats the inputs to collapse white-space, sets the proper margins, and the clears the float.</p> @@ -1245,10 +1262,14 @@ For example, <code>section</code> should be wrapped as inline. </div> </form> <pre class="prettyprint linenums"> +<div class="controls"> + <input class="span5" type="text" placeholder=".span5"> +</div> <div class="controls controls-row"> <input class="span4" type="text" placeholder=".span4"> <input class="span1" type="text" placeholder=".span1"> </div> +... </pre> <h3>Uneditable inputs</h3> @@ -1282,7 +1303,7 @@ For example, <code>section</code> should be wrapped as inline. <input type="text"> <span class="help-inline">Inline help text</span> </form> <pre class="prettyprint linenums"> -<span class="help-inline">Inline help text</span> +<input type="text"><span class="help-inline">Inline help text</span> </pre> <h4>Block help</h4> @@ -1291,11 +1312,11 @@ For example, <code>section</code> should be wrapped as inline. <span class="help-block">A longer block of help text that breaks onto a new line and may extend beyond one line.</span> </form> <pre class="prettyprint linenums"> -<span class="help-block">A longer block of help text that breaks onto a new line and may extend beyond one line.</span> +<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> </pre> - <hr class="bs-docs-separator"></hr> + <hr class="bs-docs-separator"> <h2>Form control states</h2> @@ -1306,9 +1327,9 @@ For example, <code>section</code> should be wrapped as inline. <form class="bs-docs-example form-inline"> <input class="input-xlarge focused" id="focusedInput" type="text" value="This is focused..."> </form> - <pre class="prettyprint linenums"> - <input class="input-xlarge" id="focusedInput" type="text" value="This is focused..."> - </pre> +<pre class="prettyprint linenums"> +<input class="input-xlarge" id="focusedInput" type="text" value="This is focused..."> +</pre> <h3>Disabled inputs</h3> <p>Add the <code>disabled</code> attribute on an input to prevent user input and trigger a slightly different look.</p> @@ -1439,39 +1460,54 @@ For example, <code>section</code> should be wrapped as inline. <h2>Button sizes</h2> - <p>Fancy larger or smaller buttons? Add <code>.btn-large</code>, <code>.btn-small</code>, or <code>.btn-mini</code> for two additional sizes.</p> + <p>Fancy larger or smaller buttons? Add <code>.btn-large</code>, <code>.btn-small</code>, or <code>.btn-mini</code> for additional sizes.</p> <div class="bs-docs-example"> <p> - <button type="button" class="btn btn-large btn-primary">Primary action</button> - <button type="button" class="btn btn-large">Action</button> + <button type="button" class="btn btn-large btn-primary">Large button</button> + <button type="button" class="btn btn-large">Large button</button> </p> <p> - <button type="button" class="btn btn-primary">Primary action</button> - <button type="button" class="btn">Action</button> + <button type="button" class="btn btn-primary">Default button</button> + <button type="button" class="btn">Default button</button> </p> <p> - <button type="button" class="btn btn-small btn-primary">Primary action</button> - <button type="button" class="btn btn-small">Action</button> + <button type="button" class="btn btn-small btn-primary">Small button</button> + <button type="button" class="btn btn-small">Small button</button> </p> <p> - <button type="button" class="btn btn-mini btn-primary">Primary action</button> - <button type="button" class="btn btn-mini">Action</button> + <button type="button" class="btn btn-mini btn-primary">Mini button</button> + <button type="button" class="btn btn-mini">Mini button</button> </p> </div> <pre class="prettyprint linenums"> -<button class="btn btn-large" type="button">Large button</button> -<button class="btn btn-small" type="button">Small button</button> -<button class="btn" type="button">Default button</button> -<button class="btn btn-mini" type="button">Mini button</button> +<p> + <button class="btn btn-large btn-primary" type="button">Large button</button> + <button class="btn btn-large" type="button">Large button</button> +</p> +<p> + <button class="btn btn-primary" type="button">Default button</button> + <button class="btn" type="button">Default button</button> +</p> +<p> + <button class="btn btn-small btn-primary" type="button">Small button</button> + <button class="btn btn-small" type="button">Small button</button> +</p> +<p> + <button class="btn btn-mini btn-primary" type="button">Mini button</button> + <button class="btn btn-mini" type="button">Mini button</button> +</p> </pre> <p>Create block level buttons—those that span the full width of a parent— by adding <code>.btn-block</code>.</p> <div class="bs-docs-example"> <div class="well" style="max-width: 400px; margin: 0 auto 10px;"> - <button type="button" class="btn btn-large btn-primary btn-block">Block level button</button> + <button type="button" class="btn btn-large btn-block btn-primary">Block level button</button> <button type="button" class="btn btn-large btn-block">Block level button</button> </div> </div> - <pre class="prettyprint linenums"><button class="btn btn-large btn-block" type="button">Block level button</button></pre> +<pre class="prettyprint linenums"> +<button class="btn btn-large btn-block btn-primary" type="button">Block level button</button> +<button class="btn btn-large btn-block" type="button">Block level button</button> +</pre> <h2>Disabled state</h2> @@ -1514,15 +1550,11 @@ For example, <code>section</code> should be wrapped as inline. </form> <pre class="prettyprint linenums"> <a class="btn" href="">Link</a> -<button class="btn" type="submit"> - Button -</button> -<input class="btn" type="button" - value="Input"> -<input class="btn" type="submit" - value="Submit"> +<button class="btn" type="submit">Button</button> +<input class="btn" type="button" value="Input"> +<input class="btn" type="submit" value="Submit"> </pre> - <p>As a best practice, try to match the element for you 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, 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> </section> @@ -1535,16 +1567,17 @@ For example, <code>section</code> should be wrapped as inline. <h1>Images</h1> </div> - <p>Simple classes to easily style images in any project. Heads up: <code>.img-rounded</code> and <code>.img-circle</code> don't work in IE7-8.</p> + <p>Add the <code>.img-rounded</code>, <code>.img-circle</code> or <code>.img-polaroid</code> class to a <code><img></code> element to easily style images in any project.</p> + <p><span class="label label-info">Heads up!</span> <code>.img-rounded</code> and <code>.img-circle</code> don't work in IE7-8.</p> <div class="bs-docs-example bs-docs-example-images"> <img src="http://placehold.it/140x140" class="img-rounded"> <img src="http://placehold.it/140x140" class="img-circle"> <img src="http://placehold.it/140x140" class="img-polaroid"> </div> <pre class="prettyprint linenums"> - <img src="..." class="img-rounded"> - <img src="..." class="img-circle"> - <img src="..." class="img-polaroid"> +<img src="..." class="img-rounded"> +<img src="..." class="img-circle"> +<img src="..." class="img-polaroid"> </pre> @@ -1737,30 +1770,66 @@ For example, <code>section</code> should be wrapped as inline. <p>Use them in buttons, button groups for a toolbar, navigation, or prepended form inputs.</p> <h4>Buttons</h4> + + <h6>Button group in a button toolbar</h6> <div class="bs-docs-example"> - <div class="btn-toolbar" style="margin-bottom: 9px"> + <div class="btn-toolbar"> <div class="btn-group"> <a class="btn" href="#"><i class="icon-align-left"></i></a> <a class="btn" href="#"><i class="icon-align-center"></i></a> <a class="btn" href="#"><i class="icon-align-right"></i></a> <a class="btn" href="#"><i class="icon-align-justify"></i></a> </div> - <br><br> - <div class="btn-group"> - <a class="btn btn-primary" href="#"><i class="icon-user icon-white"></i> User</a> - <a class="btn btn-primary dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a> - <ul class="dropdown-menu"> - <li><a href="#"><i class="icon-pencil"></i> Edit</a></li> - <li><a href="#"><i class="icon-trash"></i> Delete</a></li> - <li><a href="#"><i class="icon-ban-circle"></i> Ban</a></li> - <li class="divider"></li> - <li><a href="#"><i class="i"></i> Make admin</a></li> - </ul> - </div> - <br><br> - <a class="btn btn-small" href="#"><i class="icon-star"></i></a> </div> </div> +<pre class="prettyprint linenums"> +<div class="btn-toolbar"> + <div class="btn-group"> + + <a class="btn" href="#"><i class="icon-align-left"></i></a> + <a class="btn" href="#"><i class="icon-align-center"></i></a> + <a class="btn" href="#"><i class="icon-align-right"></i></a> + <a class="btn" href="#"><i class="icon-align-justify"></i></a> + </div> +</div> +</pre> + + <h6>Dropdown in a button group</h6> + <div class="bs-docs-example"> + <div class="btn-group"> + <a class="btn btn-primary" href="#"><i class="icon-user icon-white"></i> User</a> + <a class="btn btn-primary dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a> + <ul class="dropdown-menu"> + <li><a href="#"><i class="icon-pencil"></i> Edit</a></li> + <li><a href="#"><i class="icon-trash"></i> Delete</a></li> + <li><a href="#"><i class="icon-ban-circle"></i> Ban</a></li> + <li class="divider"></li> + <li><a href="#"><i class="i"></i> Make admin</a></li> + </ul> + </div> + </div> +<pre class="prettyprint linenums"> +<div class="btn-group"> + <a class="btn btn-primary" href="#"><i class="icon-user icon-white"></i> User</a> + <a class="btn btn-primary dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a> + <ul class="dropdown-menu"> + <li><a href="#"><i class="icon-pencil"></i> Edit</a></li> + <li><a href="#"><i class="icon-trash"></i> Delete</a></li> + <li><a href="#"><i class="icon-ban-circle"></i> Ban</a></li> + <li class="divider"></li> + <li><a href="#"><i class="i"></i> Make admin</a></li> + </ul> +</div> +</pre> + + <h6>Button</h6> + <div class="bs-docs-example"> + <a class="btn btn-small" href="#"><i class="icon-star"></i></a> + </div> +<pre class="prettyprint linenums"> +<a class="btn btn-small" href="#"><i class="icon-star"></i></a> +</pre> + <h4>Navigation</h4> <div class="bs-docs-example"> @@ -1773,6 +1842,14 @@ For example, <code>section</code> should be wrapped as inline. </ul> </div> </div> +<pre class="prettyprint linenums"> +<ul class="nav nav-list"> + <li class="active"><a href="#"><i class="icon-home icon-white"></i> Home</a></li> + <li><a href="#"><i class="icon-book"></i> Library</a></li> + <li><a href="#"><i class="icon-pencil"></i> Applications</a></li> + <li><a href="#"><i class="i"></i> Misc</a></li> +</ul> +</pre> <h4>Form fields</h4> <form class="bs-docs-example form-horizontal"> @@ -1785,6 +1862,15 @@ For example, <code>section</code> should be wrapped as inline. </div> </div> </form> +<pre class="prettyprint linenums"> +<div class="control-group"> + <label class="control-label" for="inputIcon">Email address</label> + <div class="controls"> + <div class="input-prepend"> + <span class="add-on"><i class="icon-envelope"><i><span><input class="span2" id="inputIcon" type="text"> + </div> +</div> +</pre> </section> |
