From 48c64127b37be4a692a70cb7b38ed9744163582b Mon Sep 17 00:00:00 2001 From: Thomas Park Date: Wed, 30 Oct 2013 16:13:42 -0400 Subject: 3.0.0 -> 3.0.1 --- bower_components/bootstrap/css.html | 871 +++++++++++++++++++++++------------- 1 file changed, 552 insertions(+), 319 deletions(-) (limited to 'bower_components/bootstrap/css.html') diff --git a/bower_components/bootstrap/css.html b/bower_components/bootstrap/css.html index f976d229..3542f87c 100755 --- a/bower_components/bootstrap/css.html +++ b/bower_components/bootstrap/css.html @@ -44,8 +44,7 @@ base_url: "../"

Bootstrap sets basic global display, typography, and link styles. Specifically, we:

@@ -73,27 +72,44 @@ base_url: "../"

Bootstrap includes a responsive, mobile first fluid grid system that appropriately scales up to 12 columns as the device or viewport size increases. It includes predefined classes for easy layout options, as well as powerful mixins for generating more semantic layouts.

+

Introduction

+

Grid systems are used for creating page layouts through a series of rows and columns that house your content. Here's how the Bootstrap grid system works:

+ +

Look to the examples for applying these principles to your code.

+ +
+

Grids and full-width layouts

+

Folks looking to create fully fluid layouts (meaning your site stretches the entire width of the viewport) must wrap their grid content in a containing element with padding: 0 15px; to offset the margin: 0 -15px; used on .rows.

+
+

Media queries

-

We use the following media queries to create the key breakpoints in our grid system.

+

We use the following media queries in our LESS files to create the key breakpoints in our grid system.

{% highlight css %} -/* Extra small devices (phones, up to 480px) */ +/* Extra small devices (phones, less than 768px) */ /* No media query since this is the default in Bootstrap */ /* Small devices (tablets, 768px and up) */ -@media (min-width: @screen-tablet) { ... } +@media (min-width: @screen-sm-min) { ... } /* Medium devices (desktops, 992px and up) */ -@media (min-width: @screen-desktop) { ... } +@media (min-width: @screen-md-min) { ... } /* Large devices (large desktops, 1200px and up) */ -@media (min-width: @screen-large-desktop) { ... } +@media (min-width: @screen-lg-min) { ... } {% endhighlight %}

We occasionally expand on these media queries to include a max-width to limit CSS to a narrower set of devices.

{% highlight css %} -@media (max-width: @screen-phone-max) { ... } -@media (min-width: @screen-tablet) and (max-width: @screen-tablet-max) { ... } -@media (min-width: @screen-desktop) and (max-width: @screen-desktop-max) { ... } -@media (min-width: @screen-large-desktop) { ... } +@media (max-width: @screen-xs-max) { ... } +@media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) { ... } +@media (min-width: @screen-md-min) and (max-width: @screen-md-max) { ... } +@media (min-width: @screen-lg-min) { ... } {% endhighlight %}

Grid options

@@ -173,9 +189,10 @@ base_url: "../" +

Grid classes apply to devices with screen widths greater than or equal to the breakpoint sizes, and override grid classes targeted at smaller devices. Therefore, applying any .col-md- class to an element will not only affect its styling on medium devices but also on large devices if a .col-lg- class is not present.

Example: Stacked-to-horizontal

-

Using a single set of .col-md-* grid classes, you can create a basic grid system that starts out stacked on mobile devices and tablet devices (the extra small to small range) before becoming horizontal on desktop (medium) devices.

+

Using a single set of .col-md-* grid classes, you can create a basic grid system that starts out stacked on mobile devices and tablet devices (the extra small to small range) before becoming horizontal on desktop (medium) devices. Place grid columns in any .row.

.col-md-1
@@ -239,7 +256,7 @@ base_url: "../"

Don't want your columns to simply stack in smaller devices? Use the extra small and medium device grid classes by adding .col-xs-* .col-md-* to your columns. See the example below for a better idea of how it all works.

-
.col-xs-12 col-md-8
+
.col-xs-12 .col-md-8
.col-xs-6 .col-md-4
@@ -255,7 +272,7 @@ base_url: "../" {% highlight html %}
-
.col-xs-12 col-md-8
+
.col-xs-12 .col-md-8
.col-xs-6 .col-md-4
@@ -278,32 +295,48 @@ base_url: "../"
.col-xs-12 .col-sm-6 .col-md-8
-
.col-xs-6 .col-sm-6 .col-md-4
+
.col-xs-6 .col-md-4
-
.col-xs-6 .col-sm-4 .col-md-4
-
.col-xs-6 .col-sm-4 .col-md-4
+
.col-xs-6 .col-sm-4
+
.col-xs-6 .col-sm-4
-
.col-xs-6 .col-sm-4 .col-md-4
+
.col-xs-6 .col-sm-4
{% highlight html %}
.col-xs-12 .col-sm-6 .col-md-8
-
.col-xs-6 .col-sm-6 .col-md-4
+
.col-xs-6 .col-md-4
-
.col-xs-6 .col-sm-4 .col-md-4
-
.col-xs-6 .col-sm-4 .col-md-4
+
.col-xs-6 .col-sm-4
+
.col-xs-6 .col-sm-4
-
.col-xs-6 .col-sm-4 .col-md-4
+
.col-xs-6 .col-sm-4
{% endhighlight %}

Responsive column resets

With the four tiers of grids available you're bound to run into issues where, at certain breakpoints, your columns don't clear quite right as one is taller than the other. To fix that, use a combination of a .clearfix and our responsive utility classes.

+
+
+
+ .col-xs-6 .col-sm-3 +
+ Resize your viewport or check it out on your phone for an example. +
+
.col-xs-6 .col-sm-3
+ + +
+ +
.col-xs-6 .col-sm-3
+
.col-xs-6 .col-sm-3
+
+
{% highlight html %}
.col-xs-6 .col-sm-3
@@ -316,7 +349,7 @@ base_url: "../"
.col-xs-6 .col-sm-3
{% endhighlight %} -

In addition to column clearing at responsive breakpoints, you may need to reset offsets, pushes, or pulls. Those resets are available for medium and large grid tiers only, since they start only at the (second) small grid tier.

+

In addition to column clearing at responsive breakpoints, you may need to reset offsets, pushes, or pulls. Those resets are available for medium and large grid tiers only, since they start only at the (second) small grid tier. See this in action in the grid example.

{% highlight html %}
.col-sm-5 .col-md-6
@@ -424,7 +457,7 @@ base_url: "../" // Then clear the floated columns .clearfix(); - @media (min-width: @screen-small) { + @media (min-width: @screen-sm-min) { margin-left: (@gutter / -2); margin-right: (@gutter / -2); } @@ -462,7 +495,7 @@ base_url: "../" padding-right: (@gutter / 2); // Calculate width based on number of columns available - @media (min-width: @screen-small) { + @media (min-width: @screen-sm-min) { float: left; width: percentage((@columns / @grid-columns)); } @@ -470,17 +503,17 @@ base_url: "../" // Generate the small column offsets .make-sm-column-offset(@columns) { - @media (min-width: @screen-small) { + @media (min-width: @screen-sm-min) { margin-left: percentage((@columns / @grid-columns)); } } .make-sm-column-push(@columns) { - @media (min-width: @screen-small) { + @media (min-width: @screen-sm-min) { left: percentage((@columns / @grid-columns)); } } .make-sm-column-pull(@columns) { - @media (min-width: @screen-small) { + @media (min-width: @screen-sm-min) { right: percentage((@columns / @grid-columns)); } } @@ -495,25 +528,25 @@ base_url: "../" padding-right: (@gutter / 2); // Calculate width based on number of columns available - @media (min-width: @screen-medium) { + @media (min-width: @screen-md-min) { float: left; width: percentage((@columns / @grid-columns)); } } -// Generate the large column offsets +// Generate the medium column offsets .make-md-column-offset(@columns) { - @media (min-width: @screen-medium) { + @media (min-width: @screen-md-min) { margin-left: percentage((@columns / @grid-columns)); } } .make-md-column-push(@columns) { - @media (min-width: @screen-medium) { + @media (min-width: @screen-md-min) { left: percentage((@columns / @grid-columns)); } } .make-md-column-pull(@columns) { - @media (min-width: @screen-medium) { + @media (min-width: @screen-md-min) { right: percentage((@columns / @grid-columns)); } } @@ -528,7 +561,7 @@ base_url: "../" padding-right: (@gutter / 2); // Calculate width based on number of columns available - @media (min-width: @screen-large) { + @media (min-width: @screen-lg-min) { float: left; width: percentage((@columns / @grid-columns)); } @@ -536,17 +569,17 @@ base_url: "../" // Generate the large column offsets .make-lg-column-offset(@columns) { - @media (min-width: @screen-large) { + @media (min-width: @screen-lg-min) { margin-left: percentage((@columns / @grid-columns)); } } .make-lg-column-push(@columns) { - @media (min-width: @screen-large) { + @media (min-width: @screen-lg-min) { left: percentage((@columns / @grid-columns)); } } .make-lg-column-pull(@columns) { - @media (min-width: @screen-large) { + @media (min-width: @screen-lg-min) { right: percentage((@columns / @grid-columns)); } } @@ -587,47 +620,81 @@ base_url: "../"

Headings

-

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

- +

All HTML headings, <h1> through <h6>, are available. .h1 through .h6 classes are also available, for when you want to match the font styling of a heading but still want your text to be displayed inline.

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

h1. Bootstrap heading

Semibold 36pxSemibold 36px

h2. Bootstrap heading

Semibold 30pxSemibold 30px

h3. Bootstrap heading

Semibold 24pxSemibold 24px

h4. Bootstrap heading

Semibold 18pxSemibold 18px
h5. Bootstrap heading
Semibold 14pxSemibold 14px
h6. Bootstrap heading
Semibold 12pxSemibold 12px
+
+{% highlight html %} +

h1. Bootstrap heading

+

h2. Bootstrap heading

+

h3. Bootstrap heading

+

h4. Bootstrap heading

+
h5. Bootstrap heading
+
h6. Bootstrap heading
+{% endhighlight %} + +

Create lighter, secondary text in any heading with a generic <small> tag or the .small class.

+
+ + + + + + + + + + + + + + + + + + +

h1. Bootstrap heading Secondary text

h2. Bootstrap heading Secondary text

h3. Bootstrap heading Secondary text

h4. Bootstrap heading Secondary text

h5. Bootstrap heading Secondary text
h6. Bootstrap heading Secondary text
{% highlight html %} -

...

-

...

-

...

-

...

-
...
-
...
+

h1. Bootstrap heading Secondary text

+

h2. Bootstrap heading Secondary text

+

h3. Bootstrap heading Secondary text

+

h4. Bootstrap heading Secondary text

+
h5. Bootstrap heading Secondary text
+
h6. Bootstrap heading Secondary text
{% endhighlight %} +

Body copy

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

@@ -661,6 +728,7 @@ base_url: "../"

Small text

For de-emphasizing inline or blocks of text, use the <small> tag to set text at 85% the size of the parent. Heading elements receive their own font-size for nested <small> elements.

+

You may alternatively use an inline element with .small in place of any <small>

This line of text is meant to be treated as fine print.

@@ -706,7 +774,7 @@ base_url: "../" {% endhighlight %}

Emphasis classes

-

Convey meaning through color with a handful of emphasis utility classes.

+

Convey meaning through color with a handful of emphasis utility classes. These may also be applied to links and will darken on hover just like our default link styles.

Fusce dapibus, tellus ac cursus commodo, tortor mauris nibh.

Nullam id dolor id nibh ultricies vehicula ut id elit.

@@ -723,6 +791,10 @@ base_url: "../"

...

...

{% endhighlight %} +
+

Dealing with specificity

+

Sometimes emphasis classes cannot be applied due to the specificity of another selector. In most cases, a sufficient workaround is to wrap your text in a <span> with the class.

+
@@ -1222,8 +1294,8 @@ For example, <section> should be wrapped as inline.
- - + + @@ -1446,27 +1518,29 @@ For example, <section> should be wrapped as inline.

Basic example

Individual form controls automatically receive some global styling. All textual <input>, <textarea>, and <select> elements with .form-control are set to width: 100%; by default. Wrap labels and controls in .form-group for optimum spacing.

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

Example block-level help text here.

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

Example block-level help text here.

+
+
+ +
+ + +
{% highlight html %}
@@ -1502,22 +1576,24 @@ For example, <section> should be wrapped as inline.

Always add labels

Screen readers will have trouble with your forms if you don't include a label for every input. For these inline forms, you can hide the labels using the .sr-only class.

- -
- - -
-
- - -
-
- -
- - +
+
+
+ + +
+
+ + +
+
+ +
+ + +
{% highlight html %}
@@ -1540,50 +1616,52 @@ For example, <section> should be wrapped as inline.

Horizontal form

Use Bootstrap's predefined grid classes to align labels and groups of form controls in a horizontal layout by adding .form-horizontal to the form. Doing so changes .form-groups to behave as grid rows, so no need for .row.

- -
- -
- +
+ +
+ +
+ +
-
-
- -
- +
+ +
+ +
-
-
-
-
- +
+
+
+ +
-
-
-
- +
+
+ +
-
- + +
{% highlight html %}
- -
- + +
+
- -
- + +
+
-
+
-
+
@@ -1609,18 +1687,26 @@ For example, <section> should be wrapped as inline.

Type declaration required

Inputs will only be fully styled if their type is properly declared.

- - - +
+
+ + +
{% highlight html %} {% endhighlight %} +
+

Input groups

+

To add integrated text or buttons before and/or after any text-based <input>, check out the input group component.

+

Textarea

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

-
- - +
+
+ + +
{% highlight html %} {% endhighlight %} @@ -1628,27 +1714,29 @@ For example, <section> should be wrapped as inline.

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)

-
-
- -
-
-
- -
-
- -
- +
+
+
+ +
+
+
+ +
+
+ +
+ +
{% highlight html %}
- + +
{% highlight html %}
- -
+ +

email@example.com

- -
+ +
@@ -1773,18 +1867,22 @@ For example, <section> should be wrapped as inline.

Input focus

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

- - - +
+
+ + +
{% highlight html %} {% endhighlight %}

Disabled inputs

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

-
- - +
+
+ + +
{% highlight html %} {% endhighlight %} @@ -1802,28 +1900,30 @@ For example, <section> should be wrapped as inline.

While Bootstrap will apply these styles in all browsers, Internet Explorer 9 and below don't actually support the disabled attribute on a <fieldset>. Use custom JavaScript to disable the fieldset in these browsers.

-
-
-
- - -
-
- - -
-
- -
- -
- +
+
+
+
+ + +
+
+ + +
+
+ +
+ +
+ +
{% highlight html %} -
+
@@ -1848,20 +1948,22 @@ For example, <section> should be wrapped as inline.

Validation states

Bootstrap includes validation styles for error, warning, and success states on form controls. To use, add .has-warning, .has-error, or .has-success to the parent element. Any .control-label, .form-control, and .help-block within that element will receive the validation styles.

- -
- - -
-
- - -
-
- - -
- +
+
+
+ + +
+
+ + +
+
+ + +
+ +
{% highlight html %}
@@ -1883,23 +1985,25 @@ For example, <section> should be wrapped as inline.

Height sizing

Create larger or smaller form controls that match button sizes.

-
-
- - - - - - - -
- +
+
+
+ + + + + + + +
+ +
{% highlight html %} @@ -1912,39 +2016,43 @@ For example, <section> should be wrapped as inline.

Column sizing

Wrap inputs in grid columns, or any custom parent element, to easily enforce desired widths.

-
-
-
- -
-
- -
-
- +
+ +
+
+ +
+
+ +
+
+ +
-
- + +
{% highlight html %}
-
- +
+
-
- +
+
-
- +
+
{% endhighlight %}

Help text

Block level help text for form controls.

-
- - A block of help text that breaks onto a new line and may extend beyond one line. - +
+
+ + A block of help text that breaks onto a new line and may extend beyond one line. + +
{% highlight html %} A block of help text that breaks onto a new line and may extend beyond one line. {% endhighlight %} @@ -1972,7 +2080,7 @@ For example, <section> should be wrapped as inline.
{% highlight html %} - + @@ -2046,6 +2154,32 @@ For example, <section> should be wrapped as inline. {% endhighlight %} +

Active state

+

Buttons will appear pressed (with a darker background, darker border, and inset shadow) when active. For <button> elements, this is done via :active. For <a> elements, it's done with .active. However, you may use .active <button>s should you need to replicate the active state progammatically.

+ +

Button element

+

No need to add :active as it's a pseudo-class, but if you need to force the same appearance, go ahead and add .active.

+

+ + +

+{% highlight html %} + + +{% endhighlight %} + +

Anchor element

+

Add the .active class to <a> buttons.

+

+ Primary link + Link +

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

Disabled state

Make buttons look unclickable by fading them back 50%.

@@ -2068,12 +2202,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. @@ -2082,18 +2216,22 @@ For example, <section> should be wrapped as inline.

Link functionality not impacted

This class will only change the <a>'s appearance, not its functionality. Use custom JavaScript to disable links here.

+
+

Context-specific usage

+

While button classes can be used on <a> and <button> elements, only <button> elements are supported within our nav and navbar components.

+

Button tags

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

- Link + Link {% highlight html %} -Link +Link @@ -2122,9 +2260,9 @@ For example, <section> should be wrapped as inline.

Keep in mind that Internet Explorer 8 lacks support for rounded corners.

- A generic square placeholder image with rounded corners - A generic square placeholder image where only the portion within the circle circumscribed about said square is visible - A generic square placeholder image with a white border around it, making it resemble a photograph taken with an old instant camera + A generic square placeholder image with rounded corners + A generic square placeholder image where only the portion within the circle circumscribed about said square is visible + A generic square placeholder image with a white border around it, making it resemble a photograph taken with an old instant camera
{% highlight html %} ... @@ -2147,7 +2285,8 @@ For example, <section> should be wrapped as inline.

Helper classes

-

Close icon

+ +

Close icon

Use the generic close icon for dismissing content like modals and alerts.

@@ -2156,35 +2295,76 @@ For example, <section> should be wrapped as inline. {% endhighlight %} -

.pull-left

-

Float an element left with a class. Can also be used as a mixin.

+ +

Carets

+

Use carets to indicate dropdown functionality and direction. Note that the default caret will reverse automatically in dropup menus.

+
+ +
+{% highlight html %} + +{% endhighlight %} + + +

Quick floats

+

Float an element to the left or right with a class. !important is included to avoid specificity issues. Classes can also be used as mixins.

{% highlight html %}
...
+
...
{% endhighlight %} {% highlight css %} +// Classes .pull-left { float: left !important; } +.pull-right { + float: right !important; +} + +// Usage as mixins +.element { + .pull-left(); +} +.another-element { + .pull-right(); +} {% endhighlight %} -

.pull-right

-

Float an element right with a class. Can also be used as a mixin.

+
+

Not for use in navbars

+

To align components in navbars with utility classes, use .navbar-left or .navbar-right instead. See the navbar docs for details.

+
+ + +

Center content blocks

+

Set an element to display: block and center via margin. Available as a mixin and class.

{% highlight html %} -
...
+
...
{% endhighlight %} {% highlight css %} -.pull-right { - float: right !important; +// Classes +.center-block { + display: block; + margin-left: auto; + margin-right: auto; +} + +// Usage as mixins +.element { + .center-block(); } {% endhighlight %} -

.clearfix

-

Clear the float on any element. Utilizes the micro clearfix as popularized by Nicolas Gallagher. Can also be used as a mixin.

+ + +

Clearfix

+

Clear the float on any element with the .clearfix class. Utilizes the micro clearfix as popularized by Nicolas Gallagher. Can also be used as a mixin.

{% highlight html %} +
...
{% endhighlight %} {% highlight css %} -// Mixin +// Mixin itself .clearfix() { &:before, &:after { @@ -2196,19 +2376,72 @@ For example, <section> should be wrapped as inline. } } -// Usage +// Usage as a Mixin .element { .clearfix(); } {% endhighlight %} -

.sr-only

-

Hide an element to all users except screen readers. Necessary for following accessibility best practices.

+ +

Showing and hiding content

+

Force an element to be shown or hidden (including for screen readers) with the use of .show and .hidden classes. These classes use !important to avoid specificity conflicts, just like the quick floats. They are only available for block level toggling. They can also be used as mixins.

+

.hide is available, but it does not always affect screen readers and is deprecated as of v3.0.1. Use .hidden or .sr-only instead.

+

Furthermore, .invisible can be used to toggle only the visibility of an element, meaning its display is not modified and the element can still affect the flow of the document.

+{% highlight html %} +
...
+ +{% endhighlight %} +{% highlight css %} +// Classes +.show { + display: block !important; +} +.hidden { + display: none !important; + visibility: hidden !important; +} +.invisible { + visibility: hidden; +} + +// Usage as mixins +.element { + .show(); +} +.another-element { + .hidden(); +} +{% endhighlight %} + + +

Screen reader content

+

Hide an element to all devices except screen readers with .sr-only. Necessary for following accessibility best practices. Can also be used as a mixin.

{% highlight html %} -Skip to content +Skip to main content +{% endhighlight %} +{% highlight css %} +// Usage as a Mixin +.skip-navigation { + .sr-only(); +} +{% endhighlight %} + + +

Image replacement

+

Utilize the .text-hide class or mixin to help replace an element's text content with a background image.

+{% highlight html %} +

Custom heading

+{% endhighlight %} + {% highlight css %} +// Usage as a Mixin +.heading { + .text-hide(); +} {% endhighlight %}
+ +
@@ -2389,52 +2622,52 @@ For example, <section> should be wrapped as inline.

Hidden on...

-

Here, green checkmarks indicate the element is hidden in your current viewport.

+

Here, green checkmarks also indicate the element is hidden in your current viewport.

- Extra small - + + ✔ Hidden on x-small
- Small - + + ✔ Hidden on small
- Medium - ✔ Hidden on medium + Medium + ✔ Hidden on medium
- Large - + + ✔ Hidden on large
- Extra small and small - + + ✔ Hidden on x-small and small
- Medium and large - + + ✔ Hidden on medium and large
- Extra small and medium - + + ✔ Hidden on x-small and medium
- Small and large - + + ✔ Hidden on small and large
- Extra small and large - + + ✔ Hidden on x-small and large
- Small and medium - + + ✔ Hidden on small and medium
-- cgit v1.2.3