diff --git a/docs/_includes/docs-nav.html b/docs/_includes/docs-nav.html index 92674c4454..f7c4b6c98e 100644 --- a/docs/_includes/docs-nav.html +++ b/docs/_includes/docs-nav.html @@ -9,12 +9,64 @@
  • CSS
  • Overview
  • -
  • Grid system
  • -
  • Typography
  • +
  • + Grid system + +
  • +
  • + Typography + +
  • Code
  • -
  • Tables
  • -
  • Forms
  • -
  • Buttons
  • +
  • + Tables + +
  • +
  • + Forms + +
  • +
  • + Buttons + +
  • Images
  • Components
  • diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css index b68972dd28..0afdb0ab84 100644 --- a/docs/assets/css/bootstrap.css +++ b/docs/assets/css/bootstrap.css @@ -3258,7 +3258,6 @@ button.close { } .navbar-fixed-top, -.navbar-fixed-left, .navbar-fixed-bottom { position: fixed; right: 0; @@ -3275,16 +3274,6 @@ button.close { bottom: 0; } -.navbar-fixed-left { - top: 0; - right: auto; - bottom: 0; -} - -.navbar-fixed-left .container { - max-width: none; -} - .navbar-brand { display: block; max-width: 200px; diff --git a/docs/assets/css/docs.css b/docs/assets/css/docs.css index ac05769fab..0700ddd596 100644 --- a/docs/assets/css/docs.css +++ b/docs/assets/css/docs.css @@ -190,25 +190,45 @@ section > ul li { text-shadow: 0 1px 0 #fff; box-shadow: inset -1px 0 0 #e5e5e5; } -.bs-docs-sidenav { + +/* Nav: first level */ +.bs-docs-sidebar > .nav { margin: 0 0 25px; } -.bs-docs-sidenav > li > a { +.bs-docs-sidebar .nav > li > a { + display: block; color: #666; padding: 4px 25px; } -.bs-docs-sidenav > li > a:hover { +.bs-docs-sidebar .nav > li > a:hover, +.bs-docs-sidebar .nav > li > a:focus { + text-decoration: none; border-right: 1px solid #d5d5d5; } -.bs-docs-sidenav > .active > a, -.bs-docs-sidenav > .active:hover > a, -.bs-docs-sidenav > .active:focus > a { +.bs-docs-sidebar .nav > .active > a, +.bs-docs-sidebar .nav > .active:hover > a, +.bs-docs-sidebar .nav > .active:focus > a { font-weight: 500; color: #b94a48; background-color: transparent; border-right: 1px solid #b94a48; } +/* Nav: second level (shown on .active) */ +.bs-docs-sidebar .nav .nav { + display: none; + margin-left: 15px; + margin-bottom: 5px; +} +.bs-docs-sidebar .nav > .active > ul { + display: block; +} +.bs-docs-sidebar .nav .nav > li > a { + padding-top: 2px; + padding-bottom: 2px; + font-size: 90%; +} + .bs-docs-sidenav-heading { margin: 0 0 25px; } diff --git a/docs/docs.html b/docs/docs.html index d958c9ddd6..30a9c76234 100644 --- a/docs/docs.html +++ b/docs/docs.html @@ -442,13 +442,13 @@ title: Bootstrap Documentation -
    +
    -

    Headings

    +

    Headings

    All HTML headings, <h1> through <h6> are available.

    @@ -491,7 +491,7 @@ title: Bootstrap Documentation {% endhighlight %} -

    Body copy

    +

    Body copy

    Bootstrap's global default font-size is 14px, with a line-height of 20px. This is applied to the <body> and all paragraphs. In addition, <p> (paragraphs) receive a bottom margin of half their line-height (10px by default).

    Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam id dolor id nibh ultricies vehicula.

    @@ -518,7 +518,7 @@ title: Bootstrap Documentation -

    Emphasis

    +

    Emphasis

    Make use of HTML's default emphasis tags with lightweight styles.

    Small text

    @@ -581,7 +581,7 @@ title: Bootstrap Documentation -

    Abbreviations

    +

    Abbreviations

    Stylized implementation of HTML's <abbr> element for abbreviations and acronyms to show the expanded version on hover. Abbreviations with a title attribute have a light dotted bottom border and a help cursor on hover, providing additional context on hover.

    Basic abbreviation

    @@ -604,7 +604,7 @@ title: Bootstrap Documentation -

    Addresses

    +

    Addresses

    Present contact information for the nearest ancestor or the entire body of work. Preserve formatting by ending all lines with <br>.

    @@ -634,7 +634,7 @@ title: Bootstrap Documentation -

    Blockquotes

    +

    Blockquotes

    For quoting blocks of content from another source within your document.

    Default blockquote

    @@ -684,7 +684,7 @@ title: Bootstrap Documentation -

    Lists

    +

    Lists

    Unordered

    A list of items in which the order does not explicitly matter.

    @@ -864,7 +864,7 @@ For example, <section> should be wrapped as inline.

    Tables

    -

    Default styles

    +

    Basic example

    For basic styling—light padding and only horizontal dividers—add the base class .table to any <table>. 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.

    @@ -908,7 +908,7 @@ For example, <section> should be wrapped as inline.

    Optional classes

    Add any of the following classes to the .table base class.

    -

    Striped

    +

    Striped

    Use .table-striped to add zebra-striping to any table row within the <tbody> via the :nth-child CSS selector (not available in IE8).

    @@ -948,7 +948,7 @@ For example, <section> should be wrapped as inline.
    {% endhighlight %} -

    Bordered

    +

    Bordered

    Add .table-bordered for borders and rounded corners.

    @@ -992,7 +992,7 @@ For example, <section> should be wrapped as inline.
    {% endhighlight %} -

    Hover rows

    +

    Hover rows

    Add .table-hover to enable a hover state on table rows within a <tbody>.

    @@ -1032,7 +1032,7 @@ For example, <section> should be wrapped as inline. {% endhighlight %} -

    Condensed

    +

    Condensed

    Add .table-condensed to make tables more compact by cutting cell padding in half.

    @@ -1073,7 +1073,7 @@ For example, <section> should be wrapped as inline. -

    Optional row classes

    +

    Optional row classes

    Use contextual classes to color table rows.

    @@ -1156,100 +1156,6 @@ For example, <section> should be wrapped as inline. ... {% endhighlight %} - - -

    Supported table markup

    -

    List of supported table HTML elements and how they should be used.

    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    TagDescription
    - <table> - - Wrapping element for displaying data in a tabular format -
    - <thead> - - Container element for table header rows (<tr>) to label table columns -
    - <tbody> - - Container element for table rows (<tr>) in the body of the table -
    - <tr> - - Container element for a set of table cells (<td> or <th>) that appears on a single row -
    - <td> - - Default table cell -
    - <th> - - Special table cell for column (or row, depending on scope and placement) labels -
    - <caption> - - Description or summary of what the table holds, especially useful for screen readers -
    -{% highlight html linenos %} - - - - - - - - - - - - - - - - -
    ...
    .........
    .........
    -{% endhighlight %} -
    @@ -1261,7 +1167,7 @@ For example, <section> should be wrapped as inline.

    Forms

    -

    Default styles

    +

    Basic example

    Individual form controls automatically receive some global styling. By default, inputs are set to width: 100%;.

    @@ -1295,10 +1201,10 @@ For example, <section> should be wrapped as inline. {% endhighlight %} -

    Optional layouts

    +

    Optional layouts

    Included with Bootstrap are optional form layouts for common use cases.

    -

    Inline form

    +

    Inline form

    Add .form-inline for left-aligned labels and inline-block controls for a compact layout.

    @@ -1323,7 +1229,7 @@ For example, <section> should be wrapped as inline. {% endhighlight %} -

    Horizontal form

    +

    Horizontal form

    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:

    • Add .form-horizontal to the form
    • @@ -1509,7 +1415,7 @@ For example, <section> should be wrapped as inline. -

      Form control states

      +

      Form control states

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

      Input focus

      @@ -1635,7 +1541,7 @@ For example, <section> should be wrapped as inline.

      Extending form controls

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

      -

      Input groups

      +

      Input groups

      Add text or buttons before, after, or on both sides of any text-based input. Use .input-group with a .add-on to prepend or append elements to an <input>.

      Avoid using <select> elements here as they cannot be fully styled in WebKit browsers.

      @@ -1856,7 +1762,7 @@ For example, <section> should be wrapped as inline.
    {% endhighlight %} -

    Control sizing

    +

    Control sizing

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

    Relative sizing

    @@ -1956,7 +1862,7 @@ For example, <section> should be wrapped as inline. Some value here {% endhighlight %} -

    Form actions

    +

    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.

    @@ -1971,7 +1877,7 @@ For example, <section> should be wrapped as inline.
    {% endhighlight %} -

    Help text

    +

    Help text

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

    Inline help

    @@ -2041,7 +1947,7 @@ For example, <section> should be wrapped as inline.

    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.

    -

    Button sizes

    +

    Button sizes

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

    @@ -2093,7 +1999,7 @@ For example, <section> should be wrapped as inline. {% endhighlight %} -

    Disabled state

    +

    Disabled state

    Make buttons look unclickable by fading them back 50%.

    Button element

    @@ -2122,7 +2028,7 @@ For example, <section> should be wrapped as inline.

    -

    One class, multiple tags

    +

    One class, multiple tags

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

    Link