From f06294d80f7a8dd0752837aab3ed5fca17d3d9be Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 7 May 2013 10:33:41 -0700 Subject: Outdent nav links a bit more so they line up in navbar --- docs/assets/css/bootstrap.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css index 67b0bd18e..e8ddf5bb1 100644 --- a/docs/assets/css/bootstrap.css +++ b/docs/assets/css/bootstrap.css @@ -3529,7 +3529,7 @@ button.close { } .navbar-nav { - margin-top: 5px; + margin: 10px -15px 0; } .navbar-nav > li > a { -- cgit v1.2.3 From d7f84d1220719cdf2272c9aa3c6731a932394c58 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 7 May 2013 18:07:06 -0700 Subject: Require .btn-default for regular buttons * Instead of , use for standard, gray button * Improves ability to customize buttons by encouraging folks to not override .btn and thus overriding all button modifier classes * Updates docs to reflect the change * Reorganize buttons CSS --- docs/assets/css/bootstrap.css | 111 +++++++++++++------------ docs/docs.html | 187 +++++++++++++++++++++--------------------- 2 files changed, 151 insertions(+), 147 deletions(-) (limited to 'docs') diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css index e8ddf5bb1..26cfc3b09 100644 --- a/docs/assets/css/bootstrap.css +++ b/docs/assets/css/bootstrap.css @@ -1830,7 +1830,7 @@ select:focus:invalid:focus { white-space: nowrap; vertical-align: middle; cursor: pointer; - border: 1px solid #a7a9aa; + border: 1px solid transparent; border-radius: 4px; } @@ -1865,72 +1865,38 @@ fieldset[disabled] .btn { box-shadow: none; } -.btn-large { - padding: 11px 14px; - font-size: 17.5px; - border-radius: 6px; -} - -.btn-small { - padding: 2px 10px; - font-size: 11.9px; - border-radius: 3px; -} - -.btn-mini { - padding: 0 6px; - font-size: 10.5px; - border-radius: 3px; -} - -.btn-block { - display: block; - width: 100%; - padding-right: 0; - padding-left: 0; -} - -.btn-block + .btn-block { - margin-top: 5px; -} - -input[type="submit"].btn-block, -input[type="reset"].btn-block, -input[type="button"].btn-block { - width: 100%; -} - -.btn { +.btn-default { color: #ffffff; background-color: #a7a9aa; border-color: #a7a9aa; } -.btn:hover, -.btn:focus, -.btn:active, -.btn.active { +.btn-default:hover, +.btn-default:focus, +.btn-default:active, +.btn-default.active { background-color: #9a9c9d; border-color: #8d9091; } -.btn.disabled:hover, -.btn[disabled]:hover, -fieldset[disabled] .btn:hover, -.btn.disabled:focus, -.btn[disabled]:focus, -fieldset[disabled] .btn:focus, -.btn.disabled:active, -.btn[disabled]:active, -fieldset[disabled] .btn:active, -.btn.disabled.active, -.btn[disabled].active, -fieldset[disabled] .btn.active { +.btn-default.disabled:hover, +.btn-default[disabled]:hover, +fieldset[disabled] .btn-default:hover, +.btn-default.disabled:focus, +.btn-default[disabled]:focus, +fieldset[disabled] .btn-default:focus, +.btn-default.disabled:active, +.btn-default[disabled]:active, +fieldset[disabled] .btn-default:active, +.btn-default.disabled.active, +.btn-default[disabled].active, +fieldset[disabled] .btn-default.active { background-color: #a7a9aa; border-color: #a7a9aa; } .btn-primary { + color: #ffffff; background-color: #428bca; border-color: #428bca; } @@ -1960,6 +1926,7 @@ fieldset[disabled] .btn-primary.active { } .btn-warning { + color: #ffffff; background-color: #f0ad4e; border-color: #f0ad4e; } @@ -1989,6 +1956,7 @@ fieldset[disabled] .btn-warning.active { } .btn-danger { + color: #ffffff; background-color: #d9534f; border-color: #d9534f; } @@ -2018,6 +1986,7 @@ fieldset[disabled] .btn-danger.active { } .btn-success { + color: #ffffff; background-color: #5cb85c; border-color: #5cb85c; } @@ -2047,6 +2016,7 @@ fieldset[disabled] .btn-success.active { } .btn-info { + color: #ffffff; background-color: #5bc0de; border-color: #5bc0de; } @@ -2114,6 +2084,41 @@ fieldset[disabled] .btn-link:focus { text-decoration: none; } +.btn-large { + padding: 11px 14px; + font-size: 17.5px; + border-radius: 6px; +} + +.btn-small { + padding: 2px 10px; + font-size: 11.9px; + border-radius: 3px; +} + +.btn-mini { + padding: 0 6px; + font-size: 10.5px; + border-radius: 3px; +} + +.btn-block { + display: block; + width: 100%; + padding-right: 0; + padding-left: 0; +} + +.btn-block + .btn-block { + margin-top: 5px; +} + +input[type="submit"].btn-block, +input[type="reset"].btn-block, +input[type="button"].btn-block { + width: 100%; +} + .fade { opacity: 0; -webkit-transition: opacity 0.15s linear; diff --git a/docs/docs.html b/docs/docs.html index 88ab16d7c..5b502cf89 100644 --- a/docs/docs.html +++ b/docs/docs.html @@ -2047,7 +2047,7 @@ For example, <section> should be wrapped as inline.

Button options

-

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.

+

Use any of the available button classes to quickly create a styled button.

@@ -2080,56 +2080,55 @@ For example, <section> should be wrapped as inline. {% endhighlight %} -

Button sizes

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

- - + +

- +

- - + +

- - + +

{% highlight html %}

- - + +

- +

- - + +

- - + +

{% endhighlight %}

Create block level buttons—those that span the full width of a parent— by adding .btn-block.

- - + +
{% highlight html %} - - + + {% endhighlight %} @@ -2139,12 +2138,12 @@ For example, <section> should be wrapped as inline.

Button element

Add the disabled attribute to <button> buttons.

- - + +

{% highlight html %} - + {% endhighlight %}
@@ -2155,12 +2154,12 @@ For example, <section> should be wrapped as inline.

Anchor element

Add the .disabled class to <a> buttons.

- Primary link - Link + Primary link + Link

{% highlight html %} -Primary link -Link +Primary link +Link {% endhighlight %}

We use .disabled as a utility class here, similar to the common .active class, so no prefix is required. @@ -2171,19 +2170,19 @@ For example, <section> should be wrapped as inline.

-

One class, multiple tags

-

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

+

Using multiple tags

+

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

- Link - - - + Link + + +
{% highlight html %} -Link - - - +Link + + + {% endhighlight %}
@@ -2599,20 +2598,20 @@ For example, <section> should be wrapped as inline.
- - - - + + + +
{% highlight html %}
- - - - + + + +
{% endhighlight %} @@ -2638,8 +2637,8 @@ For example, <section> should be wrapped as inline.
{% highlight html %}
- User - + User +
diff --git a/docs/assets/css/docs.css b/docs/assets/css/docs.css index 9221cac1b..ddab6ba6a 100644 --- a/docs/assets/css/docs.css +++ b/docs/assets/css/docs.css @@ -94,6 +94,29 @@ body { +/* Customize and Download button +-------------------------------------------------- */ + +.bs-customize-download { + text-align:center; +} +.bs-customize-download .btn { + margin-top: 5px; + margin-bottom: 5px; + padding: 18px 24px; + font-size: 21px; + color: #b94a48; + background-color: #fff; + border-color: #b94a48; +} +.bs-customize-download .btn:hover, +.bs-customize-download .btn:active { + color: #fff; + background-color: #b94a48; +} + + + /* Docs pages and sections -------------------------------------------------- */ diff --git a/docs/customize.html b/docs/customize.html index 32a00b441..6a703e47f 100644 --- a/docs/customize.html +++ b/docs/customize.html @@ -1,354 +1,1160 @@ --- -layout: customize +layout: default title: Customize and download slug: customize +lead: Customize Bootstrap's components, LESS variables, and jQuery plugins to get your very own version. --- - - - - - -
-
- -
-
- - -
-
- -
- -
- Customize and Download -

What's included?

-

Downloads include compiled CSS, compiled and minified CSS, and compiled jQuery plugins, all nicely packed up into a zipball for your convenience.

-
-
- +
+ +

Hooray! Your custom version of Bootstrap is now ready to be compiled. Just click the button below to finish the process.

+ +
+

What's included?

+

Downloads include compiled CSS, compiled and minified CSS, and compiled jQuery plugins, all nicely packed up into a zipball for your convenience.

+
+
+ -- cgit v1.2.3 From cdcc3e87688e470598fb8254194a5c86f72dd368 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Wed, 22 May 2013 21:50:25 -0700 Subject: delete customize layout since it's no longer in use --- docs/_layouts/customize.html | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 docs/_layouts/customize.html (limited to 'docs') diff --git a/docs/_layouts/customize.html b/docs/_layouts/customize.html deleted file mode 100644 index f01f4f86e..000000000 --- a/docs/_layouts/customize.html +++ /dev/null @@ -1,25 +0,0 @@ - - - - - {% include header.html %} - - - - - - {% include nav-main.html %} - - -
- {{ content }} - - - {% include colophon.html %} -
- - - {% include footer.html %} - - - -- cgit v1.2.3 From acc0875259593d3206a07ac24bf877d0c8c0c8b9 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Wed, 22 May 2013 23:34:28 -0700 Subject: fix up customizer js and classes; turn buttons into real buttons --- docs/assets/css/docs.css | 11 +++++++++++ docs/assets/js/application.js | 29 +++++++++++------------------ docs/customize.html | 14 +++++++------- 3 files changed, 29 insertions(+), 25 deletions(-) (limited to 'docs') diff --git a/docs/assets/css/docs.css b/docs/assets/css/docs.css index ddab6ba6a..6f7254e82 100644 --- a/docs/assets/css/docs.css +++ b/docs/assets/css/docs.css @@ -97,6 +97,17 @@ body { /* Customize and Download button -------------------------------------------------- */ +.bs-customizer { + +} +.bs-customizer .toggle { + float: right; +} +.bs-customizer label { + margin-top: 10px; +} + + .bs-customize-download { text-align:center; } diff --git a/docs/assets/js/application.js b/docs/assets/js/application.js index 02785a49c..9e75a8040 100644 --- a/docs/assets/js/application.js +++ b/docs/assets/js/application.js @@ -27,13 +27,6 @@ $('.bs-top').affix() }, 100) - // add-ons - $('.add-on :checkbox').on('click', function () { - var $this = $(this) - , method = $this.attr('checked') ? 'addClass' : 'removeClass' - $(this).parents('.add-on')[method]('active') - }) - // add tipsies to grid for scaffolding if ($('#grid-system').length) { $('#grid-system').tooltip({ @@ -76,22 +69,22 @@ $('.bs-docs-carousel-example').carousel() // javascript build logic - var inputsComponent = $("#components.download input") - , inputsPlugin = $("#plugins.download input") - , inputsVariables = $("#variables.download input") + var inputsComponent = $("#components input") + , inputsPlugin = $("#plugins input") + , inputsVariables = $("#variables input") // toggle all plugin checkboxes - $('#components.download .toggle-all').on('click', function (e) { + $('#components .toggle').on('click', function (e) { e.preventDefault() - inputsComponent.attr('checked', !inputsComponent.is(':checked')) + inputsComponent.prop('checked', !inputsComponent.is(':checked')) }) - $('#plugins.download .toggle-all').on('click', function (e) { + $('#plugins .toggle').on('click', function (e) { e.preventDefault() - inputsPlugin.attr('checked', !inputsPlugin.is(':checked')) + inputsPlugin.prop('checked', !inputsPlugin.is(':checked')) }) - $('#variables.download .toggle-all').on('click', function (e) { + $('#variables .toggle').on('click', function (e) { e.preventDefault() inputsVariables.val('') }) @@ -99,16 +92,16 @@ // request built javascript $('.download-btn .btn').on('click', function () { - var css = $("#components.download input:checked") + var css = $("#components input:checked") .map(function () { return this.value }) .toArray() - , js = $("#plugins.download input:checked") + , js = $("#plugins input:checked") .map(function () { return this.value }) .toArray() , vars = {} , img = ['glyphicons-halflings.png', 'glyphicons-halflings-white.png'] - $("#variables.download input") + $("#variables input") .each(function () { $(this).val() && (vars[ $(this).prev().text() ] = $(this).val()) }) diff --git a/docs/customize.html b/docs/customize.html index 6a703e47f..e6139f23a 100644 --- a/docs/customize.html +++ b/docs/customize.html @@ -7,10 +7,10 @@ lead: Customize Bootstrap's components, LESS variables, and jQuery plugins to ge -
+

Choose which LESS files should be compiled into your custom stylesheets.

@@ -273,10 +273,10 @@ lead: Customize Bootstrap's components, LESS variables, and jQuery plugins to ge
- +

Choose which jQuery plugins should be included in your custom JavaScript files.

@@ -369,11 +369,11 @@ lead: Customize Bootstrap's components, LESS variables, and jQuery plugins to ge

All checked plugins will be compiled into a single file, bootstrap.js. All plugins require the latest version of jQuery to be included.

- - + +

Customize LESS variables to define colors, sizes and more inside your custom CSS stylesheets.

-- cgit v1.2.3 From a3cba92edd6f778c061ff40dc34a5e939342d31c Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Wed, 22 May 2013 23:45:12 -0700 Subject: rejigger the customizer layout --- docs/customize.html | 167 ++++++++++++++++++++++++++-------------------------- 1 file changed, 82 insertions(+), 85 deletions(-) (limited to 'docs') diff --git a/docs/customize.html b/docs/customize.html index e6139f23a..62ed43a9b 100644 --- a/docs/customize.html +++ b/docs/customize.html @@ -13,31 +13,32 @@ lead: Customize Bootstrap's components, LESS variables, and jQuery plugins to ge

LESS components

-

Choose which LESS files should be compiled into your custom stylesheets.

+

Choose which LESS files to compile into your custom build of Bootstrap.

Read the documentation

Make an informed choice by first reading about CSS and Components in the docs.

+

The basics

-
+

Layout

@@ -47,79 +48,76 @@ lead: Customize Bootstrap's components, LESS variables, and jQuery plugins to ge
-
-

Utility classes

+
+

Global CSS

-
-
-

Standard element styles

-
-
+
+
+

Utility classes

-
-
+

Bootstrap features

-
+

Navigation

@@ -141,75 +139,76 @@ lead: Customize Bootstrap's components, LESS variables, and jQuery plugins to ge
-
-

Additional information

+
+

Content blocks

+
+
+

Behavioral (requires JS)

-
-
-
-
-

Content blocks

-
+
+ +
+

Media

-
-
-
-

Other

+
+

Miscellaneous

@@ -381,7 +378,7 @@ lead: Customize Bootstrap's components, LESS variables, and jQuery plugins to ge

Body background

-

Background color applied to <body>.

+

Background color applied to <body>.

Typography

-- cgit v1.2.3 From 371d14e2173888932b1edf11083ccbf73bae313e Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 23 May 2013 21:06:02 -0700 Subject: Remove commented out code and properly nest CSS again for .collapse --- docs/assets/css/bootstrap.css | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'docs') diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css index 29cf51923..b65d86480 100644 --- a/docs/assets/css/bootstrap.css +++ b/docs/assets/css/bootstrap.css @@ -1985,16 +1985,6 @@ input[type="button"].btn-block { opacity: 1; } -/*.collapse { - position: relative; - height: 0; - overflow: hidden; - .transition(height .35s ease); - &.in { - height: auto; - } -}*/ - .collapse { position: relative; height: 0; -- cgit v1.2.3 From 3160bd872ee02567ae369ad1d940207523cd5a44 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 23 May 2013 21:34:32 -0700 Subject: rearrange customizer content --- docs/_includes/nav-customize.html | 43 +++---- docs/assets/css/docs.css | 8 ++ docs/assets/js/application.js | 2 +- docs/customize.html | 241 +++++++++++++++++--------------------- 4 files changed, 138 insertions(+), 156 deletions(-) (limited to 'docs') diff --git a/docs/_includes/nav-customize.html b/docs/_includes/nav-customize.html index 5a869659f..38c96d543 100644 --- a/docs/_includes/nav-customize.html +++ b/docs/_includes/nav-customize.html @@ -1,10 +1,5 @@
  • - LESS components - + LESS components
  • jQuery plugins @@ -12,24 +7,24 @@
  • LESS variables
  • diff --git a/docs/assets/css/docs.css b/docs/assets/css/docs.css index 6f7254e82..305247251 100644 --- a/docs/assets/css/docs.css +++ b/docs/assets/css/docs.css @@ -105,6 +105,14 @@ body { } .bs-customizer label { margin-top: 10px; + font-weight: 500; + color: #555; +} +.bs-customizer h4 { + margin-top: 15px; +} +.bs-customizer input[type="text"] { + background-color: #fafafa; } diff --git a/docs/assets/js/application.js b/docs/assets/js/application.js index 9e75a8040..30a7c0d6e 100644 --- a/docs/assets/js/application.js +++ b/docs/assets/js/application.js @@ -69,7 +69,7 @@ $('.bs-docs-carousel-example').carousel() // javascript build logic - var inputsComponent = $("#components input") + var inputsComponent = $("#less input") , inputsPlugin = $("#plugins input") , inputsVariables = $("#variables input") diff --git a/docs/customize.html b/docs/customize.html index 62ed43a9b..6b3c627d0 100644 --- a/docs/customize.html +++ b/docs/customize.html @@ -8,18 +8,14 @@ lead: Customize Bootstrap's components, LESS variables, and jQuery plugins to ge -
    +
    -

    Choose which LESS files to compile into your custom build of Bootstrap.

    -
    -

    Read the documentation

    -

    Make an informed choice by first reading about CSS and Components in the docs.

    +

    LESS files

    +

    Choose which LESS files to compile into your custom build of Bootstrap. Not sure which files to use? Read through the CSS and Components pages in the docs

    -

    The basics

    +

    Basics

    Layout

    @@ -104,7 +100,7 @@ lead: Customize Bootstrap's components, LESS variables, and jQuery plugins to ge
    -

    Bootstrap features

    +

    Components

    Navigation

    @@ -271,16 +267,14 @@ lead: Customize Bootstrap's components, LESS variables, and jQuery plugins to ge
    + +
    -

    Choose which jQuery plugins should be included in your custom JavaScript files.

    -
    -

    Read the documentation

    -

    Make an informed choice by first reading about JavaScript in the docs.

    -
    +

    Choose which jQuery plugins should be included in your custom JavaScript files. Unsure what to include? Read the JavaScript page in the docs.

    Linked to components

    @@ -368,53 +362,57 @@ lead: Customize Bootstrap's components, LESS variables, and jQuery plugins to ge
    -
    + +

    Customize LESS variables to define colors, sizes and more inside your custom CSS stylesheets.

    -

    The basics

    + +

    Basics

    +

    Body background

    - - -

    Background color applied to <body>.

    +
    +
    + + +

    Background color applied to <body>.

    +
    +
    +

    Typography

    - -

    Default sans-serif fonts. Used almost anywhere in Bootstrap.

    + +

    Default sans-serif fonts.

    - +

    Default serif fonts.

    + + +

    Default monospace fonts for <code> and <pre>.

    - - -

    Default monospace fonts. Most prominently used for <code> and <pre>.

    -
    -
    -
    -
    +

    Used to globally set font-family in Bootstrap.

    -

    Will be used to calculate font sizes throughout Bootstrap.

    +

    Used to calculate font-size throughout Bootstrap.

    -

    Will be used to calculate line heights throughout Bootstrap. Default is ˜14/20.

    -
    -
    +

    Used to calculate line-height throughout Bootstrap.

    -

    Choose a separate font weight for headings.

    +

    Choose a separate font-weight for headings.

    -

    Choose a separate line height for headings.

    +

    Choose a separate line-height for headings.

    +

    Colors

    @@ -439,15 +437,16 @@ lead: Customize Bootstrap's components, LESS variables, and jQuery plugins to ge

    Define your preferred colors for standard text and links.

    -

    Color for all standard text.

    +

    Global color set on the body.

    -

    Link color for links in standard text.

    +

    Global link color for text.

    -

    Hovered link color. Leave this blank to compute using @link-color.

    +

    Automatically darken links on hover via color function.

    +

    Media queries breakpoints

    Define the breakpoints at which your layout will change, adapting to different screen sizes.

    @@ -464,7 +463,8 @@ lead: Customize Bootstrap's components, LESS variables, and jQuery plugins to ge
    -

    The grid

    + +

    Grid system

    Define your custom responsive grid.

    @@ -481,6 +481,7 @@ lead: Customize Bootstrap's components, LESS variables, and jQuery plugins to ge

    Point at which the navbar stops collapsing.

    +

    Components

    Define common padding and border radius sizes and more.

    @@ -509,11 +510,17 @@ lead: Customize Bootstrap's components, LESS variables, and jQuery plugins to ge
    +

    Active background color

    - - -

    Used for active or hovered items in places like navs or dropdowns.

    -

    Buttons

    +
    +
    + + +

    Used for active or hovered items in places like navs or dropdowns.

    +
    +
    + +

    Buttons

    For each of Bootstrap's buttons, define text, background and border color.

    @@ -563,7 +570,8 @@ lead: Customize Bootstrap's components, LESS variables, and jQuery plugins to ge
    -

    Form states and alerts

    + +

    Form states and alerts

    Define colors for form feedback states and, by default, alerts.

    @@ -599,7 +607,8 @@ lead: Customize Bootstrap's components, LESS variables, and jQuery plugins to ge
    -

    Alerts

    + +

    Alerts

    Define alert colors and border radius.

    Border radius

    @@ -638,10 +647,12 @@ lead: Customize Bootstrap's components, LESS variables, and jQuery plugins to ge
    -

    Navbar

    + +

    Navbar

    -

    The basics

    +

    Default navbar

    +

    Basics

    @@ -672,8 +683,8 @@ lead: Customize Bootstrap's components, LESS variables, and jQuery plugins to ge
    -

    Inverted variation

    -

    The basics

    +

    Inverted navbar

    +

    Basics

    @@ -702,28 +713,29 @@ lead: Customize Bootstrap's components, LESS variables, and jQuery plugins to ge
    -

    Tables

    + +

    Tables

    -
    +

    Default background color used for all tables.

    -
    -
    +

    Background color used for .table-striped.

    -
    +

    Background color used for .table-hover.

    + + +

    Border color for table and cell borders.

    - - -

    Border color for table and cell borders.

    -

    Forms

    + +

    Forms

    Background

    @@ -733,6 +745,11 @@ lead: Customize Bootstrap's components, LESS variables, and jQuery plugins to ge

    <input disabled>background color

    + +

    Placeholder

    + + +

    Placeholder text color

    Border

    @@ -744,10 +761,8 @@ lead: Customize Bootstrap's components, LESS variables, and jQuery plugins to ge

    <input>border radius

    - - -

    Placeholder text color

    -

    Dropdowns

    + +

    Dropdowns

    Background

    @@ -780,40 +795,30 @@ lead: Customize Bootstrap's components, LESS variables, and jQuery plugins to ge

    Dropdown divider top border color

    -
    -

    Dropdown divider bottom border color

    -

    Panels and wells

    -

    Panel background

    + +

    Panels and wells

    +

    Default panel styles

    -
    +

    Panel body background color

    -
    -

    Panel heading background color

    -
    -

    Panel footer background color

    -
    -

    Panel border

    -

    Panel border color

    -
    -

    Panel border radius

    @@ -821,94 +826,67 @@ lead: Customize Bootstrap's components, LESS variables, and jQuery plugins to ge

    Contextual panel colors

    -
    +
    +

    Primary

    Primary text color

    -
    -

    Primary border color

    -
    -

    Primary heading background color

    -
    -
    -
    -
    +

    Success

    Success text color

    -
    -

    Success border color

    -
    -

    Success heading background color

    +

    Info

    + + +

    Info text color

    + + +

    Info border color

    + + +

    Info heading background color

    -
    -
    -
    +
    +

    Warning

    Warning text color

    -
    -

    Warning border color

    -
    -

    Warning heading background color

    -
    -
    -
    -
    +

    Danger

    Danger text color

    -
    -

    Danger border color

    -
    -

    Danger heading background color

    -
    -
    - - -

    Info text color

    -
    -
    - - -

    Info border color

    -
    -
    - - -

    Info heading background color

    -
    -
    -

    Well background

    + +

    Wells

    -

    Jumbotron

    + +

    Jumbotron

    @@ -926,7 +904,7 @@ lead: Customize Bootstrap's components, LESS variables, and jQuery plugins to ge

    Jumbotron lead paragraph color

    -

    Modals

    +

    Modals

    @@ -944,7 +922,7 @@ lead: Customize Bootstrap's components, LESS variables, and jQuery plugins to ge

    Modal title line-height

    -

    List group

    +

    List group

    Background

    @@ -984,7 +962,7 @@ lead: Customize Bootstrap's components, LESS variables, and jQuery plugins to ge

    Text color of active list elements

    -

    Thumbnails

    +

    Thumbnails

    @@ -1003,7 +981,7 @@ lead: Customize Bootstrap's components, LESS variables, and jQuery plugins to ge

    Thumbnail border radius

    -

    Progress bars

    +

    Progress bars

    @@ -1038,7 +1016,7 @@ lead: Customize Bootstrap's components, LESS variables, and jQuery plugins to ge

    Info progress bar color

    -

    Pagination

    +

    Pagination

    @@ -1056,7 +1034,8 @@ lead: Customize Bootstrap's components, LESS variables, and jQuery plugins to ge

    Active background color

    -

    Labels

    + +

    Labels

    @@ -1075,7 +1054,7 @@ lead: Customize Bootstrap's components, LESS variables, and jQuery plugins to ge

    Danger label background color

    -

    Tooltips and popovers

    +

    Tooltips and popovers

    Tooltip styles

    @@ -1126,7 +1105,7 @@ lead: Customize Bootstrap's components, LESS variables, and jQuery plugins to ge

    Popover outer arrow color

    -

    Other

    +

    Other

    -- cgit v1.2.3 From 79666385f761bd27a31fc363fa26cdbe5b037017 Mon Sep 17 00:00:00 2001 From: Robert Burns Date: Fri, 24 May 2013 08:14:11 -0400 Subject: Use base padding for input-group-addon class --- docs/assets/css/bootstrap.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css index b65d86480..53dcf2edc 100644 --- a/docs/assets/css/bootstrap.css +++ b/docs/assets/css/bootstrap.css @@ -1579,7 +1579,7 @@ select:focus:invalid:focus { } .input-group-addon { - padding: 6px 8px; + padding: 8px 12px; font-size: 14px; font-weight: normal; line-height: 1.428571429; -- cgit v1.2.3 From f3e45c37780b12a3fa96e7d4578f38a883cba9a0 Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Fri, 24 May 2013 23:15:04 -0700 Subject: add show/shown hide/hidden events to dropdown + update dropdown links for testing + catch a few missed namespace things --- docs/assets/js/bootstrap.js | 36 ++++++++++++++++++++----------- docs/assets/js/bootstrap.min.js | 2 +- docs/javascript.html | 48 ++++++++++++++++++++--------------------- 3 files changed, 48 insertions(+), 38 deletions(-) (limited to 'docs') diff --git a/docs/assets/js/bootstrap.js b/docs/assets/js/bootstrap.js index f19a123a4..b2b408672 100644 --- a/docs/assets/js/bootstrap.js +++ b/docs/assets/js/bootstrap.js @@ -433,7 +433,7 @@ // CAROUSEL DATA-API // ================= - $(document).on('click.carousel.data-api', '[data-slide], [data-slide-to]', function (e) { + $(document).on('click.bs.carousel.data-api', '[data-slide], [data-slide-to]', function (e) { var $this = $(this), href var $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7 var options = $.extend({}, $target.data(), $this.data()) @@ -590,7 +590,7 @@ // COLLAPSE DATA-API // ================= - $(document).on('click.collapse.data-api', '[data-toggle=collapse]', function (e) { + $(document).on('click.bs.collapse.data-api', '[data-toggle=collapse]', function (e) { var $this = $(this), href var target = $this.attr('data-target') || e.preventDefault() @@ -630,10 +630,7 @@ var backdrop = '.dropdown-backdrop' var toggle = '[data-toggle=dropdown]' var Dropdown = function (element) { - var $el = $(element).on('click.dropdown.data-api', this.toggle) - $('html').on('click.dropdown.data-api', function () { - $el.parent().removeClass('open') - }) + var $el = $(element).on('click.bs.dropdown', this.toggle) } Dropdown.prototype.toggle = function (e) { @@ -651,7 +648,14 @@ // if mobile we we use a backdrop because click events don't delegate $('
  • @@ -369,11 +369,11 @@ $('#myModal').on('hidden.bs.modal', function () { @@ -389,31 +389,31 @@ $('#myModal').on('hidden.bs.modal', function () { -- cgit v1.2.3 From e424b3879c751a8c0efc20d549ee066c8b1f9068 Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Fri, 24 May 2013 23:53:44 -0700 Subject: fixes #4781 --- docs/assets/js/bootstrap.js | 7 ++++--- docs/assets/js/bootstrap.min.js | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'docs') diff --git a/docs/assets/js/bootstrap.js b/docs/assets/js/bootstrap.js index b2b408672..b7082dc21 100644 --- a/docs/assets/js/bootstrap.js +++ b/docs/assets/js/bootstrap.js @@ -817,7 +817,7 @@ var transition = $.support.transition && that.$element.hasClass('fade') if (!that.$element.parent().length) { - that.$element.appendTo(document.body) //don't move modals dom position + that.$element.appendTo(document.body) // don't move modals dom position } that.$element.show() @@ -835,7 +835,6 @@ transition ? that.$element.one($.support.transition.end, function () { that.$element.focus().trigger('shown.bs.modal') }) : that.$element.focus().trigger('shown.bs.modal') - }) } @@ -864,7 +863,9 @@ } Modal.prototype.enforceFocus = function () { - $(document).on('focusin.bs.modal', function (e) { + $(document) + .off('focusin.bs.modal') // guard against infinite focus loop + .on('focusin.bs.modal', function (e) { if (this.$element[0] !== e.target && !this.$element.has(e.target).length) { this.$element.focus() } diff --git a/docs/assets/js/bootstrap.min.js b/docs/assets/js/bootstrap.min.js index d6574777d..9b5d5dc9f 100644 --- a/docs/assets/js/bootstrap.min.js +++ b/docs/assets/js/bootstrap.min.js @@ -3,4 +3,4 @@ * Copyright 2012 Twitter, Inc. * http://www.apache.org/licenses/LICENSE-2.0.txt */ -+function(e){"use strict";function t(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in t)if(e.style[n]!==undefined)return{end:t[n]}}e(function(){e.support.transition=t()})}(window.jQuery),+function(e){"use strict";var t='[data-dismiss="alert"]',n=function(n){e(n).on("click",t,this.close)};n.prototype.close=function(t){function s(){i.trigger("closed.bs.alert").remove()}var n=e(this),r=n.attr("data-target");r||(r=n.attr("href"),r=r&&r.replace(/.*(?=#[^\s]*$)/,""));var i=e(r);t&&t.preventDefault(),i.length||(i=n.hasClass("alert")?n:n.parent()),i.trigger(t=e.Event("close.bs.alert"));if(t.isDefaultPrevented())return;i.removeClass("in"),e.support.transition&&i.hasClass("fade")?i.on(e.support.transition.end,s):s()};var r=e.fn.alert;e.fn.alert=function(t){return this.each(function(){var r=e(this),i=r.data("bs.alert");i||r.data("bs.alert",i=new n(this)),typeof t=="string"&&i[t].call(r)})},e.fn.alert.Constructor=n,e.fn.alert.noConflict=function(){return e.fn.alert=r,this},e(document).on("click.bs.alert.data-api",t,n.prototype.close)}(window.jQuery),+function(e){"use strict";var t=function(n,r){this.$element=e(n),this.options=e.extend({},t.DEFAULTS,r)};t.DEFAULTS={loadingText:"loading..."},t.prototype.setState=function(e){var t="disabled",n=this.$element,r=n.is("input")?"val":"html",i=n.data();e+="Text",i.resetText||n.data("resetText",n[r]()),n[r](i[e]||this.options[e]),setTimeout(function(){e=="loadingText"?n.addClass(t).attr(t,t):n.removeClass(t).removeAttr(t)},0)},t.prototype.toggle=function(){var e=this.$element.closest('[data-toggle="buttons-radio"]');e&&e.find(".active").removeClass("active"),this.$element.toggleClass("active")};var n=e.fn.button;e.fn.button=function(n){return this.each(function(){var r=e(this),i=r.data("button"),s=typeof n=="object"&&n;i||r.data("bs.button",i=new t(this,s)),n=="toggle"?i.toggle():n&&i.setState(n)})},e.fn.button.Constructor=t,e.fn.button.noConflict=function(){return e.fn.button=n,this},e(document).on("click.bs.button.data-api","[data-toggle^=button]",function(t){var n=e(t.target);n.hasClass("btn")||(n=n.closest(".btn")),n.button("toggle")})}(window.jQuery),+function(e){"use strict";var t=function(t,n){this.$element=e(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.paused=this.sliding=this.interval=this.$active=this.$items=null,this.options.pause=="hover"&&this.$element.on("mouseenter",e.proxy(this.pause,this)).on("mouseleave",e.proxy(this.cycle,this))};t.DEFAULTS={interval:5e3,pause:"hover"},t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},t.prototype.getActiveIndex=function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},t.prototype.to=function(t){var n=this,r=this.getActiveIndex();if(t>this.$items.length-1||t<0)return;return this.sliding?this.$element.one("slid",function(){n.to(t)}):r==t?this.pause().cycle():this.slide(t>r?"next":"prev",e(this.$items[t]))},t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition.end&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},t.prototype.next=function(){if(this.sliding)return;return this.slide("next")},t.prototype.prev=function(){if(this.sliding)return;return this.slide("prev")},t.prototype.slide=function(t,n){var r=this.$element.find(".item.active"),i=n||r[t](),s=this.interval,o=t=="next"?"left":"right",u=t=="next"?"first":"last",a=this;this.sliding=!0,s&&this.pause(),i=i.length?i:this.$element.find(".item")[u]();var f=e.Event("slide.bs.carousel",{relatedTarget:i[0],direction:o});if(i.hasClass("active"))return;this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),this.$element.one("slid",function(){var t=e(a.$indicators.children()[a.getActiveIndex()]);t&&t.addClass("active")}));if(e.support.transition&&this.$element.hasClass("slide")){this.$element.trigger(f);if(f.isDefaultPrevented())return;i.addClass(t),i[0].offsetWidth,r.addClass(o),i.addClass(o),this.$element.one(e.support.transition.end,function(){i.removeClass([t,o].join(" ")).addClass("active"),r.removeClass(["active",o].join(" ")),a.sliding=!1,setTimeout(function(){a.$element.trigger("slid")},0)})}else{this.$element.trigger(f);if(f.isDefaultPrevented())return;r.removeClass("active"),i.addClass("active"),this.sliding=!1,this.$element.trigger("slid")}return s&&this.cycle(),this};var n=e.fn.carousel;e.fn.carousel=function(n){return this.each(function(){var r=e(this),i=r.data("bs.carousel"),s=e.extend({},t.DEFAULTS,typeof n=="object"&&n),o=typeof n=="string"?n:s.slide;i||r.data("bs.carousel",i=new t(this,s)),typeof n=="number"?i.to(n):o?i[o]():s.interval&&i.pause().cycle()})},e.fn.carousel.Constructor=t,e.fn.carousel.noConflict=function(){return e.fn.carousel=n,this},e(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(t){var n=e(this),r,i=e(n.attr("data-target")||(r=n.attr("href"))&&r.replace(/.*(?=#[^\s]+$)/,"")),s=e.extend({},i.data(),n.data()),o;i.carousel(s),(o=n.attr("data-slide-to"))&&i.data("bs-carousel").pause().to(o).cycle(),t.preventDefault()})}(window.jQuery),+function(e){"use strict";var t=function(n,r){this.$element=e(n),this.options=e.extend({},t.DEFAULTS,r),this.transitioning=null,this.options.parent&&(this.$parent=e(this.options.parent)),this.options.toggle&&this.toggle()};t.DEFAULTS={toggle:!0},t.prototype.dimension=function(){var e=this.$element.hasClass("width");return e?"width":"height"},t.prototype.show=function(){if(this.transitioning||this.$element.hasClass("in"))return;var t=this.dimension(),n=e.camelCase(["scroll",t].join("-")),r=this.$parent&&this.$parent.find("> .accordion-group > .in");if(r&&r.length){var i=r.data("collapse");if(i&&i.transitioning)return;r.collapse("hide"),i||r.data("collapse",null)}this.$element[t](0),this.transition("addClass",e.Event("show.bs.collapse"),"shown.bs.collapse"),e.support.transition&&this.$element[t](this.$element[0][n])},t.prototype.hide=function(){if(this.transitioning||!this.$element.hasClass("in"))return;var t=this.dimension();this.reset(this.$element[t]()),this.transition("removeClass",e.Event("hide.bs.collapse"),"hidden"),this.$element[t](0)},t.prototype.reset=function(e){var t=this.dimension();return this.$element.removeClass("collapse")[t](e||"auto")[0].offsetWidth,this.$element[e!==null?"addClass":"removeClass"]("collapse"),this},t.prototype.transition=function(t,n,r){var i=this,s=function(){n.type=="show"&&i.reset(),i.transitioning=0,i.$element.trigger(r)};this.$element.trigger(n);if(n.isDefaultPrevented())return;this.transitioning=1,this.$element[t]("in"),e.support.transition&&this.$element.hasClass("collapse")?this.$element.one(e.support.transition.end,s):s()},t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var n=e.fn.collapse;e.fn.collapse=function(n){return this.each(function(){var r=e(this),i=r.data("collapse"),s=e.extend({},t.DEFAULTS,r.data(),typeof n=="object"&&n);i||r.data("collapse",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.collapse.Constructor=t,e.fn.collapse.noConflict=function(){return e.fn.collapse=n,this},e(document).on("click.bs.collapse.data-api","[data-toggle=collapse]",function(t){var n=e(this),r,i=n.attr("data-target")||t.preventDefault()||(r=n.attr("href"))&&r.replace(/.*(?=#[^\s]+$)/,""),s=e(i).data("collapse")?"toggle":n.data();n[e(i).hasClass("in")?"addClass":"removeClass"]("collapsed"),e(i).collapse(s)})}(window.jQuery),+function(e){"use strict";function i(){e(t).remove(),e(n).each(function(t){var n=s(e(this));if(!n.hasClass("open"))return;n.trigger(t=e.Event("hide.bs.dropdown"));if(t.isDefaultPrevented())return;n.removeClass("open").trigger("hidden.bs.dropdown")})}function s(t){var n=t.attr("data-target");n||(n=t.attr("href"),n=n&&/#/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var r=n&&e(n);return r&&r.length?r:t.parent()}var t=".dropdown-backdrop",n="[data-toggle=dropdown]",r=function(t){var n=e(t).on("click.bs.dropdown",this.toggle)};r.prototype.toggle=function(t){var n=e(this);if(n.is(".disabled, :disabled"))return;var r=s(n),o=r.hasClass("open");i();if(!o){"ontouchstart"in document.documentElement&&e('