From ff6dd0cf56c1b50b7fa7cba35aab4d13cb251f05 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 7 Jun 2012 14:01:03 -0700 Subject: nav and content tweaks --- docs/base-css.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/base-css.html') diff --git a/docs/base-css.html b/docs/base-css.html index 7ed6c68ac..58fbecc39 100644 --- a/docs/base-css.html +++ b/docs/base-css.html @@ -27,7 +27,7 @@ - +
-- cgit v1.2.3 From df869f1eb074f5c2baaaf744f333c5f5d6ce0bee Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 7 Jun 2012 21:45:37 -0700 Subject: fix grids --- docs/base-css.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/base-css.html') diff --git a/docs/base-css.html b/docs/base-css.html index 58fbecc39..7ed6c68ac 100644 --- a/docs/base-css.html +++ b/docs/base-css.html @@ -27,7 +27,7 @@ - +
-- cgit v1.2.3 From c1c7528dd9f0617cb65bc5fac7aa6b2cfc2eb822 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 7 Jun 2012 21:48:03 -0700 Subject: drop the side nav, restore topbar --- docs/base-css.html | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) (limited to 'docs/base-css.html') diff --git a/docs/base-css.html b/docs/base-css.html index 7ed6c68ac..56756b81f 100644 --- a/docs/base-css.html +++ b/docs/base-css.html @@ -29,6 +29,50 @@ + + +
    -- cgit v1.2.3 From bba0b34c36ae54e923cf89fe17914e715aaa9746 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 7 Jun 2012 22:10:36 -0700 Subject: restore top navs entirely --- docs/base-css.html | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'docs/base-css.html') diff --git a/docs/base-css.html b/docs/base-css.html index 56756b81f..e012f2741 100644 --- a/docs/base-css.html +++ b/docs/base-css.html @@ -33,7 +33,7 @@ ================================================== --> -

    Example markup

    -

    Given the above example form layout, here's the markup associated with the first input and control group. The .control-group, .control-label, and .controls classes are all required for styling.

     <form class="form-horizontal">
    -  <fieldset>
    -    <legend>Legend text</legend>
    -    <div class="control-group">
    -      <label class="control-label" for="input01">Text input</label>
    -      <div class="controls">
    -        <input type="text" class="input-xlarge" id="input01">
    -        <p class="help-block">Supporting help text</p>
    -      </div>
    +  <div class="control-group">
    +    <label class="control-label" for="">Email</label>
    +    <div class="controls">
    +      <input type="text" placeholder="Email">
    +    </div>
    +  </div>
    +  <div class="control-group">
    +    <label class="control-label" for="">Password</label>
    +    <div class="controls">
    +      <input type="password" placeholder="Password">
         </div>
    -  </fieldset>
    +  </div>
    +  <div class="control-group">
    +    <div class="controls">
    +      <label class="checkbox">
    +        <input type="checkbox"> Remember me
    +      </label>
    +      <button type="submit" class="btn">Sign in</button>
    +    </div>
    +  </div>
     </form>
     
    -
    -

    Form control states

    -

    Bootstrap features styles for browser-supported focused and disabled states. We remove the default Webkit outline and apply a box-shadow in its place for :focus.

    -
    -

    Form validation

    -

    It also includes validation styles for errors, warnings, and success. To use, add the error class to the surrounding .control-group.

    +
    + + +

    Supported form controls

    +

    Examples of standard form controls supported in an example form layout.

    + +

    Inputs

    +

    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.

    +

    Requires the use of a specified type at all times.

    +
    + +
    -<fieldset
    -  class="control-group error">
    -  …
    -</fieldset>
    +<input type="text" placeholder="Text input">
     
    -
    -
    -
    - -
    - -
    -
    -
    - -
    - Some value here -
    -
    -
    - -
    - -
    -
    -
    - -
    - -
    -
    -
    - -
    - - Something may have gone wrong -
    -
    -
    - -
    - - Please correct the error -
    -
    -
    - -
    - - Woohoo! -
    -
    -
    - -
    - - Woohoo! -
    -
    -
    - - -
    -
    +

    Textarea

    +

    Form control which supports multiple lines of text. Change row attribute as necessary.

    + +
    +
    +<textarea id="textarea" rows="3"></textarea>
    +
    + +

    Checkboxes and radios

    +

    Checkboxes are for selecting one or several options in a list while radios are for selecting one option from many.

    +

    Default (stacked)

    +
    + +
    + + +
    +
    +<label class="checkbox">
    +  <input type="checkbox" value="">
    +  Option one is this and that—be sure to include why it's great
    +</label>
    +
    +<label class="radio">
    +  <input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked>
    +  Option one is this and that—be sure to include why it's great
    +</label>
    +<label class="radio">
    +  <input type="radio" name="optionsRadios" id="optionsRadios2" value="option2">
    +  Option two can be something else and selecting it will deselect option one
    +</label>
    +
    + +

    Inline checkboxes

    +

    Add the .inline class to a series of checkboxes or radios for controls appear on the same line.

    +
    + + + +
    +
    +<label class="checkbox inline">
    +  <input type="checkbox" id="inlineCheckbox1" value="option1"> 1
    +</label>
    +<label class="checkbox inline">
    +  <input type="checkbox" id="inlineCheckbox2" value="option2"> 2
    +</label>
    +<label class="checkbox inline">
    +  <input type="checkbox" id="inlineCheckbox3" value="option3"> 3
    +</label>
    +
    + +

    Selects

    +

    Use the default option or specify a multiple="multiple" to show multiple options at once.

    +
    + +
    + +
    +
    +<select>
    +  <option>something</option>
    +  <option>2</option>
    +  <option>3</option>
    +  <option>4</option>
    +  <option>5</option>
    +</select>
    +
    +<select>
    +  <option>1</option>
    +  <option>2</option>
    +  <option>3</option>
    +  <option>4</option>
    +  <option>5</option>
    +</select>
    +
    + + +
    -

    Extending form controls

    -

    Prepend & append inputs

    -

    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.

    -
    -

    Checkboxes and radios

    -

    Up to v1.4, Bootstrap required extra markup around checkboxes and radios to stack them. Now, it's a simple matter of repeating the <label class="checkbox"> that wraps the <input type="checkbox">.

    -

    Inline checkboxes and radios are also supported. Just add .inline to any .checkbox or .radio and you're done.

    -
    -

    Inline forms and append/prepend

    -

    To use prepend or append inputs in an inline form, be sure to place the .add-on and input on the same line, without spaces.

    -
    -

    Form help text

    -

    To add help text for your form inputs, include inline help text with <span class="help-inline"> or a help text block with <p class="help-block"> after the input element.

    - -
    -
    -
    - -
    - - - - - - -

    Use the same .span* classes from the grid system for input sizes.

    -
    -
    -
    - -
    - - - -

    You may also use static classes that don't map to the grid, adapt to the responsive CSS styles, or account for varying types of controls (e.g., input vs. select).

    -
    -
    -
    - -
    -
    - @ -
    -

    Here's some help text

    -
    -
    -
    - -
    -
    - .00 -
    - Here's more help text -
    -
    -
    - -
    -
    - $.00 -
    -
    -
    -
    - -
    -
    - -
    -
    -
    -
    - -
    -
    - -
    -
    -
    -
    - -
    - - - -
    -
    -
    - -
    - - - -

    Note: Labels surround all the options for much larger click areas and a more usable form.

    -
    +

    Adding on top of existing browser controls, Bootstrap includes other useful form components.

    + +

    Prepended and appended inputs

    +

    Add text or buttons before or after any text-based input.

    + +

    Default options

    +

    Wrap a .add-on and an input with one of two classes to prepend or append text to an input.

    + +
    + @ +
    +
    +
    + .00 +
    + +
    +<div class="input-prepend">
    +  <span class="add-on">@</span><input class="span2" id="prependedInput" size="16" type="text" placeholder="Username">
    +</div>
    +<div class="input-append">
    +  <input class="span2" id="appendedInput" size="16" type="text"><span class="add-on">.00</span>
    +</div>
    +
    + +

    Combined

    +

    Use both classes and two instances of .add-on to prepend and append an input.

    +
    +
    + $.00 +
    +
    +
    +<div class="input-prepend input-append">
    +  <span class="add-on">$</span><input class="span2" id="appendedPrependedInput" size="16" type="text"><span class="add-on">.00</span>
    +</div>
    +
    + +

    Buttons instead of text

    +

    Instead of a <span> with text, use a .btn to attach a button (or two) to an input.

    +
    +
    + +
    +
    +
    + +
    +
    +
    +<div class="input-append">
    +  <input class="span2" id="appendedInputButton" size="16" type="text"><button class="btn" type="button">Go!</button>
    +</div>
    +
    +<div class="input-append">
    +  <input class="span2" id="appendedInputButtons" size="16" type="text"><button class="btn" type="button">Search</button><button class="btn" type="button">Options</button>
    +</div>
    +
    + +

    Control sizing

    +

    Use relative sizing classes like .input-large or match your inputs to the grid column sizes using .span* classes.

    + +

    Relative sizing

    +
    +
    + + + + + + +
    +
    +
    +<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">
    +
    + +

    Grid sizing

    +

    Use .span1 to .span12 for inputs that match the same sizes of the grid columns.

    +
    +
    + + + + + + +
    +
    +
    +<input class="span1" type="text">
    +<input class="span2" type="text">
    +<input class="span3" type="text">
    +
    + +

    Uneditable inputs

    +

    Present data in a form that's not editable without using actual form markup.

    +
    + Some value here +
    +
    +  <span class="input-xlarge uneditable-input">Some value here</span>
    +
    + +

    Form actions

    +

    End a form with a group of actions (buttons). When placed within a .form-horizontal, the buttons will automatically indent to line up with the form controls.

    +
    +
    + + +
    +
    +
    +<div class="form-actions">
    +  <button type="submit" class="btn btn-primary">Save changes</button>
    +  <button class="btn">Cancel</button>
    +</div>
    +
    + +

    Help text

    +

    Inline and block level support for help text that appears around form controls.

    +

    Inline help

    +
    + Inline help text +
    +
    +<span class="help-inline">Inline help text</span>
    +
    + +

    Block help

    +
    + + A longer block of help text that breaks onto a new line and may extend beyond one line. +
    +
    +<span class="help-block">A longer block of help text that breaks onto a new line and may extend beyond one line.</span>
    +
    + + +
    + + +

    Form control states

    +

    Provide feedback to users or visitors with basic feedback states on form controls and labels.

    + +

    Input focus

    +

    We remove the default outline styles on some form controls and apply a box-shadow in its place for :focus.

    +
    + +
    +
    +<input class="input-xlarge" id="focusedInput" type="text" value="This is focused...">
    +
    + +

    Disabled inputs

    +

    Add the disabled attribute on an input to prevent user input and trigger a slightly different look.

    +
    + +
    +
    +<input class="input-xlarge" id="disabledInput" type="text" placeholder="Disabled input here..." disabled>
    +
    + +

    Validation states

    +

    Bootstrap includes validation styles for error, warning, and success messages. To use, add the appropriate class to the surrounding .control-group.

    + +
    +
    + +
    + + Something may have gone wrong
    -
    - -
    - - -
    +
    +
    + +
    + + Please correct the error
    -
    - - +
    +
    + +
    + + Woohoo!
    -
    +
+
+<div class="control-group warning">
+  <label class="control-label" for="inputWarning">Input with warning</label>
+  <div class="controls">
+    <input type="text" id="inputWarning">
+    <span class="help-inline">Something may have gone wrong</span>
+  </div>
+</div>
+<div class="control-group error">
+  <label class="control-label" for="inputError">Input with error</label>
+  <div class="controls">
+    <input type="text" id="inputError">
+    <span class="help-inline">Please correct the error</span>
+  </div>
+</div>
+<div class="control-group success">
+  <label class="control-label" for="inputSuccess">Input with success</label>
+  <div class="controls">
+    <input type="text" id="inputSuccess">
+    <span class="help-inline">Woohoo!</span>
+  </div>
+</div>
+
+ -- cgit v1.2.3 From fc2481b8e57ec79a4ec0e7f6d26f4c8492bc84f7 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 9 Jun 2012 19:26:06 -0700 Subject: fix form display issue in docs --- docs/base-css.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/base-css.html') diff --git a/docs/base-css.html b/docs/base-css.html index 0525a9674..979a87385 100644 --- a/docs/base-css.html +++ b/docs/base-css.html @@ -963,7 +963,7 @@ For example, <code>section</code> should be wrapped as inline.

Default options

Wrap a .add-on and an input with one of two classes to prepend or append text to an input.

-
+
@
-- cgit v1.2.3 From 5ef2b6561a8409cc26c413e4a152df89a383f0e8 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 9 Jun 2012 22:47:45 -0700 Subject: realign icons to five cols, fix buttons --- docs/base-css.html | 92 ++++++++++++++++++++++++++++++++++++------------------ 1 file changed, 61 insertions(+), 31 deletions(-) (limited to 'docs/base-css.html') diff --git a/docs/base-css.html b/docs/base-css.html index 979a87385..618dee29a 100644 --- a/docs/base-css.html +++ b/docs/base-css.html @@ -1202,6 +1202,9 @@ For example, <code>section</code> should be wrapped as inline. + +

Default buttons

+

Button styles can be applied to anything with the .btn class applied. However, typically you'll want to apply these to only <a> and <button> elements for the best rendering.

@@ -1249,13 +1252,14 @@ For example, <code>section</code> should be wrapped as inline.
-

Buttons for actions

-

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.

-

Button styles can be applied to anything with the .btn class applied. However, typically you'll want to apply these to only <a> and <button> elements.

-

Cross browser compatibility

+

Cross browser compatibility

IE9 doesn't crop background gradients on rounded corners, so we remove it. Related, IE9 jankifies disabled button elements, rendering text gray with a nasty text-shadow that we cannot fix.

-

Multiple sizes

+ +
+ + +

Button sizes

Fancy larger or smaller buttons? Add .btn-large, .btn-small, or .btn-mini for two additional sizes.

@@ -1269,29 +1273,51 @@ For example, <code>section</code> should be wrapped as inline.

-
-

Disabled state

-

For disabled buttons, add the .disabled class to links and the disabled attribute for <button> elements.

-

+ + +


+ + +

Disabled state

+

Make buttons look unclickable by fading them back 50%.

+ +

Anchor element

+

Add the .disabled class to <a> buttons.

+

Primary link Link

-

- - -

+
+<a href="#" class="btn btn-large btn-primary disabled">Primary link</a>
+<a href="#" class="btn btn-large disabled">Link</a>
+

Heads up! We use .disabled as a utility class here, similar to the common .active class, so no prefix is required.

-

One class, multiple tags

+

Button element

+

Add the disabled attribute to <button> buttons.

+

+ + +

+
+<button class="btn btn-large btn-primary disabled" disabled="disabled">Primary button</button>
+<button class="btn btn-large" disabled>Button</button>
+
+ + +
+ + +

One class, multiple tags

Use the .btn class on an <a>, <button>, or <input> element.

- -Link - - - + + Link + + +
 <a class="btn" href="">Link</a>
@@ -1346,6 +1372,10 @@ For example, <code>section</code> should be wrapped as inline.
         
  • icon-download
  • icon-upload
  • icon-inbox
  • + +
    +
    +
    • icon-play-circle
    • icon-repeat
    • icon-refresh
    • @@ -1353,10 +1383,6 @@ For example, <code>section</code> should be wrapped as inline.
    • icon-lock
    • icon-flag
    • icon-headphones
    • -
    -
    -
    -
    • icon-volume-off
    • icon-volume-down
    • icon-volume-up
    • @@ -1378,6 +1404,10 @@ For example, <code>section</code> should be wrapped as inline.
    • icon-align-right
    • icon-align-justify
    • icon-list
    • +
    +
    +
    +
    • icon-indent-left
    • icon-indent-right
    • icon-facetime-video
    • @@ -1392,10 +1422,6 @@ For example, <code>section</code> should be wrapped as inline.
    • icon-move
    • icon-step-backward
    • icon-fast-backward
    • -
    -
    -
    -
    • icon-backward
    • icon-play
    • icon-pause
    • @@ -1410,6 +1436,10 @@ For example, <code>section</code> should be wrapped as inline.
    • icon-minus-sign
    • icon-remove-sign
    • icon-ok-sign
    • +
    +
    +
    +
    • icon-question-sign
    • icon-info-sign
    • icon-screenshot
    • @@ -1431,10 +1461,6 @@ For example, <code>section</code> should be wrapped as inline.
    • icon-leaf
    • icon-fire
    • icon-eye-open
    • -
    -
    -
    -
    • icon-eye-close
    • icon-warning-sign
    • icon-plane
    • @@ -1442,6 +1468,10 @@ For example, <code>section</code> should be wrapped as inline.
    • icon-random
    • icon-comment
    • icon-magnet
    • +
    +
    +
    +
    • icon-chevron-up
    • icon-chevron-down
    • icon-retweet
    • -- cgit v1.2.3 From 4a907709ba38767b118c1a880dadfb58df8ae1d6 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 9 Jun 2012 23:26:46 -0700 Subject: redo icons section --- docs/base-css.html | 94 ++++++++++++++++++++++++------------------------------ 1 file changed, 41 insertions(+), 53 deletions(-) (limited to 'docs/base-css.html') diff --git a/docs/base-css.html b/docs/base-css.html index 618dee29a..ee12d62e2 100644 --- a/docs/base-css.html +++ b/docs/base-css.html @@ -1341,6 +1341,9 @@ For example, <code>section</code> should be wrapped as inline. + +

      Icon glyphs

      +

      140 icons in sprite form, available in dark gray (default) and white, provided by Glyphicons.

        @@ -1504,16 +1507,12 @@ For example, <code>section</code> should be wrapped as inline.
      -
      +
      -

      Built as a sprite

      -

      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 background-position. This is the same method we use on Twitter.com and it has worked well for us.

      -

      All icons classes are prefixed with .icon- for proper namespacing and scoping, much like our other components. This will help avoid conflicts with other tools.

      -

      Glyphicons has granted us use of the Halflings set in our open-source toolkit so long as we provide a link and credit here in the docs. Please consider doing the same in your projects.

      -

      How to use

      -

      Bootstrap uses an <i> tag for all icons, but they have no case class—only a shared prefix. To use, place the following code just about anywhere:

      +

      How to use

      +

      All icons require an <i> tag with a unique class, prefixed with icon-. To use, place the following code just about anywhere:

       <i class="icon-search"></i>
       
      @@ -1521,66 +1520,55 @@ For example, <code>section</code> should be wrapped as inline.
       <i class="icon-search icon-white"></i>
       
      -

      There are 140 classes to choose from for your icons. Just add an <i> tag with the right classes and you're set. You can find the full list in sprites.less or right here in this document.

      Heads up! When using beside strings of text, as in buttons or nav links, be sure to leave a space after the <i> tag for proper spacing.

      -

      Use cases

      -

      Icons are great, but where would one use them? Here are a few ideas:

      -
        -
      • As visuals for your sidebar navigation
      • -
      • For a purely icon-driven navigation
      • -
      • For buttons to help convey the meaning of an action
      • -
      • With links to share context on a user's destination
      • -
      -

      Essentially, anywhere you can put an <i> tag, you can put an icon.

      + +
      -

      Examples

      +

      Icon examples

      Use them in buttons, button groups for a toolbar, navigation, or prepended form inputs.

      -
      -
      - - - - +

      Buttons

      +
      +
      +
      + + + + +
      +
      - + +

      Navigation

      + -

      - Refresh - Checkout - Delete -

      -

      - Comment - Settings - More Info -

      - - -
      +

      Form fields

      +
      -- cgit v1.2.3