underoos 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile +5 -0
- data/Gemfile.lock +21 -7
- data/README.md +85 -10
- data/Rakefile +36 -1
- data/app/assets/javascripts/docs.js +6 -0
- data/app/assets/javascripts/styleguide.coffee +162 -0
- data/app/assets/javascripts/underoos.js +0 -1
- data/app/assets/stylesheets/base/_base.sass +14 -0
- data/app/assets/stylesheets/base/_buttons.sass +68 -0
- data/app/assets/stylesheets/base/_forms.sass +313 -24
- data/app/assets/stylesheets/base/_helpers.sass +27 -13
- data/app/assets/stylesheets/base/_normalize.sass +17 -9
- data/app/assets/stylesheets/base/_scaffold.sass +85 -0
- data/app/assets/stylesheets/base/_tables.sass +77 -0
- data/app/assets/stylesheets/base/_transitions.sass +10 -2
- data/app/assets/stylesheets/base/_typography.sass +183 -21
- data/app/assets/stylesheets/components/_accordions.sass +38 -0
- data/app/assets/stylesheets/components/_breadcrumbs.sass +19 -5
- data/app/assets/stylesheets/components/_button-groups.sass +43 -0
- data/app/assets/stylesheets/components/_carets.sass +13 -2
- data/app/assets/stylesheets/components/_carousels.sass +32 -0
- data/app/assets/stylesheets/components/_close.sass +15 -2
- data/app/assets/stylesheets/components/_components.sass +28 -0
- data/app/assets/stylesheets/components/_decals.sass +14 -0
- data/app/assets/stylesheets/components/_dropdowns.sass +88 -4
- data/app/assets/stylesheets/components/_media.sass +36 -0
- data/app/assets/stylesheets/components/_modals.sass +29 -0
- data/app/assets/stylesheets/components/_nav-lists.sass +20 -0
- data/app/assets/stylesheets/components/_navbars.sass +64 -3
- data/app/assets/stylesheets/components/_notifications.sass +112 -16
- data/app/assets/stylesheets/components/_paddles.sass +26 -0
- data/app/assets/stylesheets/components/_pagination.sass +23 -3
- data/app/assets/stylesheets/components/_pills.sass +80 -0
- data/app/assets/stylesheets/components/_popovers.sass +28 -0
- data/app/assets/stylesheets/components/_progress-bars.sass +33 -1
- data/app/assets/stylesheets/components/_tabs.sass +79 -0
- data/app/assets/stylesheets/components/_tooltips.sass +26 -0
- data/app/assets/stylesheets/components/_wells.sass +9 -0
- data/app/assets/stylesheets/layouts/_containers.sass +12 -0
- data/app/assets/stylesheets/layouts/_layouts.sass +5 -0
- data/app/assets/stylesheets/layouts/_print.sass +5 -1
- data/app/assets/stylesheets/layouts/_queries.sass +18 -15
- data/app/assets/stylesheets/layouts/_upgrades.sass +51 -40
- data/app/assets/stylesheets/mixins/_arrows.sass +13 -1
- data/app/assets/stylesheets/mixins/_clearfixins.sass +18 -4
- data/app/assets/stylesheets/mixins/_coloring.sass +10 -1
- data/app/assets/stylesheets/mixins/_columns.sass +16 -3
- data/app/assets/stylesheets/mixins/_conversions.sass +18 -6
- data/app/assets/stylesheets/mixins/_font-size.sass +16 -1
- data/app/assets/stylesheets/mixins/_image-tools.sass +12 -1
- data/app/assets/stylesheets/mixins/_inline-block.sass +21 -0
- data/app/assets/stylesheets/mixins/_ir.sass +14 -1
- data/app/assets/stylesheets/mixins/_mixins.sass +6 -0
- data/app/assets/stylesheets/mixins/_responsive.sass +16 -0
- data/app/assets/stylesheets/mixins/_sticky-footer.sass +52 -0
- data/app/assets/stylesheets/mixins/_tab-focus.sass +8 -1
- data/app/assets/stylesheets/mixins/_timing-equations.sass +34 -1
- data/app/assets/stylesheets/mixins/_visibility.sass +18 -5
- data/app/assets/stylesheets/polyfills/_box-shadow.sass +10 -0
- data/app/assets/stylesheets/polyfills/_box-sizing.sass +10 -1
- data/app/assets/stylesheets/polyfills/_functions.sass +14 -1
- data/app/assets/stylesheets/polyfills/_opacity.sass +10 -1
- data/app/assets/stylesheets/polyfills/_polyfills.sass +9 -2
- data/app/assets/stylesheets/polyfills/_transition.sass +10 -0
- data/app/assets/stylesheets/polyfills/_user-select.sass +10 -0
- data/app/assets/stylesheets/settings/_config.sass +26 -0
- data/app/assets/stylesheets/settings/_settings.sass +7 -0
- data/app/assets/stylesheets/settings/_theme.sass +189 -0
- data/app/assets/stylesheets/{styleguide.sass → underoos-docs.sass} +20 -116
- data/app/assets/stylesheets/underoos.sass +5 -16
- data/config.ru +1 -3
- data/features/generator.feature +13 -4
- data/lib/generators/underoos/assets_generator.rb +4 -2
- data/lib/underoos/version.rb +1 -1
- data/public/images.html +157 -0
- data/public/index.html +149 -0
- data/public/sherpa.css +306 -0
- data/public/styles.html +5374 -0
- data/script/javascripts +0 -1
- data/sherpa/config.yml +96 -0
- data/sherpa/layouts/images.mustache +17 -0
- data/sherpa/layouts/layout.mustache +77 -0
- data/sherpa/layouts/overview.mustache +19 -0
- data/sherpa/layouts/raw.mustache +25 -0
- data/sherpa/layouts/section.mustache +67 -0
- data/underoos.gemspec +0 -2
- data/vendor/assets/javascripts/bootstrap-alert.js +28 -32
- data/vendor/assets/javascripts/bootstrap-button.js +29 -33
- data/vendor/assets/javascripts/bootstrap-collapse.js +45 -26
- data/vendor/assets/javascripts/bootstrap-dropdown.js +18 -10
- data/vendor/assets/javascripts/bootstrap-modal.js +25 -17
- data/vendor/assets/javascripts/bootstrap-popover.js +13 -10
- data/vendor/assets/javascripts/bootstrap-tab.js +12 -7
- data/vendor/assets/javascripts/bootstrap-tooltip.js +40 -35
- data/vendor/assets/javascripts/bootstrap-transition.js +30 -20
- data/vendor/assets/javascripts/bootstrap-typeahead.js +24 -10
- data/vendor/assets/javascripts/sherpa.coffee +78 -0
- metadata +34 -75
- data/app/assets/javascripts/styleguide.js +0 -132
- data/app/assets/stylesheets/base/_elements.sass +0 -61
- data/app/assets/stylesheets/polyfills/_inline-block.sass +0 -8
- data/app/assets/stylesheets/themes/_default.sass +0 -119
- data/app/controllers/underoos/styleguides_controller.rb +0 -79
- data/app/views/shared/_upgrades.html.haml +0 -12
- data/app/views/underoos/styleguides/_assets.haml +0 -42
- data/app/views/underoos/styleguides/_components.haml +0 -42
- data/app/views/underoos/styleguides/_elements.haml +0 -242
- data/app/views/underoos/styleguides/_forms.haml +0 -305
- data/app/views/underoos/styleguides/_layouts.haml +0 -76
- data/app/views/underoos/styleguides/_palettes.haml +0 -18
- data/app/views/underoos/styleguides/_resources.haml +0 -27
- data/app/views/underoos/styleguides/_tables.haml +0 -124
- data/app/views/underoos/styleguides/_typography.haml +0 -284
- data/app/views/underoos/styleguides/_utilities.haml +0 -270
- data/app/views/underoos/styleguides/components/_accordions.haml +0 -83
- data/app/views/underoos/styleguides/components/_breadcrumbs.haml +0 -42
- data/app/views/underoos/styleguides/components/_button-groups.haml +0 -162
- data/app/views/underoos/styleguides/components/_carets.haml +0 -28
- data/app/views/underoos/styleguides/components/_close.haml +0 -20
- data/app/views/underoos/styleguides/components/_decals.haml +0 -40
- data/app/views/underoos/styleguides/components/_dropdowns.haml +0 -189
- data/app/views/underoos/styleguides/components/_media.haml +0 -78
- data/app/views/underoos/styleguides/components/_modals.haml +0 -42
- data/app/views/underoos/styleguides/components/_nav-lists.haml +0 -52
- data/app/views/underoos/styleguides/components/_navbars.haml +0 -144
- data/app/views/underoos/styleguides/components/_navs-showcase.haml +0 -27
- data/app/views/underoos/styleguides/components/_notifications.haml +0 -169
- data/app/views/underoos/styleguides/components/_paddles.haml +0 -68
- data/app/views/underoos/styleguides/components/_pagination.haml +0 -64
- data/app/views/underoos/styleguides/components/_popovers.haml +0 -33
- data/app/views/underoos/styleguides/components/_progress-bars.haml +0 -72
- data/app/views/underoos/styleguides/components/_tabs-pills.haml +0 -241
- data/app/views/underoos/styleguides/components/_tooltips.haml +0 -37
- data/app/views/underoos/styleguides/components/_wells.haml +0 -29
- data/app/views/underoos/styleguides/index.html.haml +0 -259
- data/app/views/underoos/styleguides/partials/_form-template.haml +0 -171
- data/app/views/underoos/styleguides/partials/_table-data.haml +0 -33
- data/app/views/underoos/styleguides/partials/_transitions.haml +0 -136
- data/config/routes.rb +0 -3
- data/vendor/assets/javascripts/bootstrap-scrollspy.js +0 -125
|
@@ -1,4 +1,42 @@
|
|
|
1
1
|
|
|
2
|
+
//~
|
|
3
|
+
// The accordion navigation system requires [Bootstrap's Collapse plugin](http://twitter.github.com/bootstrap/javascript.html#collapse).
|
|
4
|
+
// They're used typically in navigation systems to toggle and reveal sections of content.
|
|
5
|
+
// Accordions support multiple open sections or just single sections based on the `data` attributes set within the links.
|
|
6
|
+
//
|
|
7
|
+
// Notes:
|
|
8
|
+
// - **Pro Tip!** Remove the `data-parent` attribute from the links to have multiple accordion items open at the same time
|
|
9
|
+
//
|
|
10
|
+
// Usage:
|
|
11
|
+
// <nav>
|
|
12
|
+
// <ul id="accordion_example">
|
|
13
|
+
// <li class="accordion-group">
|
|
14
|
+
// <a class="accordion-toggle" data-parent="#accordion_example" data-toggle="collapse" href="#collapse_1">Accordion Group 1</a>
|
|
15
|
+
// <section class="collapse" id="collapse_1">
|
|
16
|
+
// <article class="accordion-inner">
|
|
17
|
+
// <p>...</p>
|
|
18
|
+
// </article>
|
|
19
|
+
// </section>
|
|
20
|
+
// </li>
|
|
21
|
+
// <li class="accordion-group">
|
|
22
|
+
// <a class="accordion-toggle" data-parent="#accordion_example" data-toggle="collapse" href="#collapse_2">Accordion Group 2</a>
|
|
23
|
+
// <section class="collapse" id="collapse_2">
|
|
24
|
+
// <article class="accordion-inner">
|
|
25
|
+
// <p>...</p>
|
|
26
|
+
// </article>
|
|
27
|
+
// </section>
|
|
28
|
+
// </li>
|
|
29
|
+
// <li class="accordion-group">
|
|
30
|
+
// <a class="accordion-toggle" data-parent="#accordion_example" data-toggle="collapse" href="#collapse_3">Accordion Group 3</a>
|
|
31
|
+
// <section class="collapse" id="collapse_3">
|
|
32
|
+
// <article class="accordion-inner">
|
|
33
|
+
// <p>...</p>
|
|
34
|
+
// </article>
|
|
35
|
+
// </section>
|
|
36
|
+
// </li>
|
|
37
|
+
// </ul>
|
|
38
|
+
// </nav>
|
|
39
|
+
|
|
2
40
|
// Typically the `li`
|
|
3
41
|
.accordion-group
|
|
4
42
|
border: 1px solid $component_border
|
|
@@ -1,15 +1,25 @@
|
|
|
1
1
|
|
|
2
|
+
//~
|
|
3
|
+
// Apply the `.breadcrumb` class to the `ol` or `ul` element to provide linkable
|
|
4
|
+
// references to nested sections within the application. Utilize a `span.divider`
|
|
5
|
+
// for separation of links. The list should contain the `.nav` class.
|
|
6
|
+
//
|
|
7
|
+
// Usage:
|
|
8
|
+
// <nav>
|
|
9
|
+
// <ol class="nav breadcrumb">
|
|
10
|
+
// <li><a href="#">Level 1 <span class="divider">/</span></a></li>
|
|
11
|
+
// <li><a href="#">Level 2 <span class="divider">/</span></a></li>
|
|
12
|
+
// <li><a href="#">Level 3 <span class="divider">/</span></a></li>
|
|
13
|
+
// <li class="active"><a href="#">Active</a></li>
|
|
14
|
+
// </ol>
|
|
15
|
+
// </nav>
|
|
16
|
+
|
|
2
17
|
.breadcrumb > li
|
|
3
18
|
+inline-block
|
|
4
19
|
color: $component_normal
|
|
5
20
|
font-weight: bold
|
|
6
|
-
&:after
|
|
7
|
-
content: " /"
|
|
8
|
-
&:last-child:after
|
|
9
|
-
content: ""
|
|
10
21
|
|
|
11
22
|
.breadcrumb > li > a
|
|
12
|
-
display: inline
|
|
13
23
|
color: $link_normal
|
|
14
24
|
|
|
15
25
|
.breadcrumb > li > a:hover,
|
|
@@ -20,3 +30,7 @@
|
|
|
20
30
|
.breadcrumb > .active > a:hover
|
|
21
31
|
color: $component_normal
|
|
22
32
|
|
|
33
|
+
.breadcrumb .divider
|
|
34
|
+
padding: 0 0.25em
|
|
35
|
+
color: $component_normal
|
|
36
|
+
|
|
@@ -1,4 +1,47 @@
|
|
|
1
1
|
|
|
2
|
+
//~ Button Groups & Toolbars
|
|
3
|
+
//
|
|
4
|
+
// Use button groups to join multiple buttons together as one composite component.
|
|
5
|
+
// Build them with a series of `<a>` or `<button>` elements.
|
|
6
|
+
//
|
|
7
|
+
// Building off of the button group concept, combine multiple `.button-group`
|
|
8
|
+
// elements under a `.button-toolbar` container to form a navigation system.
|
|
9
|
+
//
|
|
10
|
+
// Utilizing [Bootstrap's Button plugin](http://twitter.github.com/bootstrap/javascript.html#buttons),
|
|
11
|
+
// you can control a button group or toolbars states by utilizing the `data-toggle` attribute.
|
|
12
|
+
// Passing either `buttons-checkbox` or `buttons-radio` will allow buttons within a group to
|
|
13
|
+
// behave similar to their `input` counterparts.
|
|
14
|
+
//
|
|
15
|
+
// Notes:
|
|
16
|
+
// - **Heads Up!** When creating custom buttons (i.e. `btn`), add the necessary overrides within `button-groups.sass` file
|
|
17
|
+
//
|
|
18
|
+
// Usage:
|
|
19
|
+
// <!-- Button Group -->
|
|
20
|
+
// <nav class="button-group" data-toggle="buttons-radio">
|
|
21
|
+
// <a class="btn" href="#">Left</a>
|
|
22
|
+
// <a class="btn active" href="#">Middle 1</a>
|
|
23
|
+
// <a class="btn" href="#">Middle 2</a>
|
|
24
|
+
// <a class="btn" href="#">Right</a>
|
|
25
|
+
// </nav>
|
|
26
|
+
// <br />
|
|
27
|
+
//
|
|
28
|
+
// <!-- Button Toolbar -->
|
|
29
|
+
// <section class="button-toolbar" data-toggle="buttons-checkbox">
|
|
30
|
+
// <nav class="button-group">
|
|
31
|
+
// <a class="btn" href="#">1</a>
|
|
32
|
+
// <a class="btn" href="#">2</a>
|
|
33
|
+
// <a class="btn" href="#">3</a>
|
|
34
|
+
// </nav>
|
|
35
|
+
// <nav class="button-group">
|
|
36
|
+
// <a class="btn active" href="#">4</a>
|
|
37
|
+
// </nav>
|
|
38
|
+
// <nav class="button-group">
|
|
39
|
+
// <a class="btn" href="#">5</a>
|
|
40
|
+
// <a class="btn" href="#">6</a>
|
|
41
|
+
// <a class="btn" href="#">7</a>
|
|
42
|
+
// </nav>
|
|
43
|
+
// </section>
|
|
44
|
+
|
|
2
45
|
// Settings for button groups and toolbars
|
|
3
46
|
.button-group
|
|
4
47
|
+clearfixer
|
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
|
|
2
|
+
//~
|
|
3
|
+
// Carets are used as icons for links.
|
|
4
|
+
// They are generally applied within `span` elements.
|
|
5
|
+
//
|
|
6
|
+
// Caret | Markup
|
|
7
|
+
// ----------------------------------|---------------------------
|
|
8
|
+
// <span class="caret"></span> | `<span class="caret"></span>` or `class="caret south"`
|
|
9
|
+
// <span class="caret north"></span> | `<span class="caret north"></span>`
|
|
10
|
+
// <span class="caret east"></span> | `<span class="caret east"></span>`
|
|
11
|
+
// <span class="caret west"></span> | `<span class="caret west"></span>`
|
|
12
|
+
|
|
2
13
|
.caret
|
|
3
14
|
+inline-block
|
|
4
15
|
border-width: 4px
|
|
5
16
|
border-style: solid
|
|
6
17
|
border-color: $link_normal transparent transparent transparent
|
|
7
|
-
content: "\2193"
|
|
8
|
-
text-indent: -999em
|
|
9
18
|
width: 0
|
|
10
19
|
height: 0
|
|
11
20
|
vertical-align: top
|
|
@@ -21,4 +30,6 @@
|
|
|
21
30
|
margin-left: -5px
|
|
22
31
|
&.split
|
|
23
32
|
margin-left: 0
|
|
33
|
+
@if $legacy-support-for-ie
|
|
34
|
+
*vertical-align: auto
|
|
24
35
|
|
|
@@ -1,4 +1,36 @@
|
|
|
1
1
|
|
|
2
|
+
//~
|
|
3
|
+
// Carousels are used for displaying multiple media items in a slideshow fashion.
|
|
4
|
+
// Along with the media, they can contain an optional `.carousel-caption` element
|
|
5
|
+
// for displaying information about the media. The indicators are populated by
|
|
6
|
+
// the `carousel.js` file.
|
|
7
|
+
//
|
|
8
|
+
// Warnings:
|
|
9
|
+
// - **Warning!** The carousel JavaScript plugin is not yet available
|
|
10
|
+
|
|
11
|
+
//
|
|
12
|
+
// Notes:
|
|
13
|
+
// - **Heads Up!** Carousels require the `carousel` plugin and `bindable` javascript files
|
|
14
|
+
//
|
|
15
|
+
// Usage:
|
|
16
|
+
// <section class="carousel" data-bindable="carousel">
|
|
17
|
+
// <nav class="carousel-controls"></nav>
|
|
18
|
+
// <section class="carousel-inner">
|
|
19
|
+
// <article class="carousel-panel">
|
|
20
|
+
// <figure class="carousel-figure">
|
|
21
|
+
// <img src="http://placehold.it/710x350/ff00ff/ffffff" alt="img"/>
|
|
22
|
+
// <figcaption class="carousel-caption">
|
|
23
|
+
// <h2>Panel 1</h2>
|
|
24
|
+
// </figcaption>
|
|
25
|
+
// </figure>
|
|
26
|
+
// </article>
|
|
27
|
+
// <article class="carousel-panel">
|
|
28
|
+
// <figure class="carousel-figure">
|
|
29
|
+
// <img src="http://placehold.it/710x350/666666/ffffff" alt="img"/>
|
|
30
|
+
// </figure>
|
|
31
|
+
// </article>
|
|
32
|
+
// </section>
|
|
33
|
+
// </section>
|
|
2
34
|
.carousel
|
|
3
35
|
+clearfixer
|
|
4
36
|
|
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
3
|
-
//
|
|
2
|
+
//~
|
|
3
|
+
// Use the close icon to dismiss modals and notifications.
|
|
4
|
+
//
|
|
5
|
+
// Coupled with Bootstrap's [alert](http://twitter.github.com/bootstrap/javascript.html#alerts)
|
|
6
|
+
// or [modal](http://twitter.github.com/bootstrap/javascript.html#modals) plugins, you can pass
|
|
7
|
+
// the `data-dismiss="modal|alert"` attribute to trigger dismissal.
|
|
8
|
+
//
|
|
9
|
+
// Close Icon | Markup
|
|
10
|
+
// ----------------------------------------- | ---------------------------
|
|
11
|
+
// <a class="close" href="#">×</a> | `<a class="close" href="#">×</a>`
|
|
12
|
+
// <a class="close alt" href="#">×</a> | `<a class="close alt" href="#">×</a>` (_for use on darker backgrounds_)
|
|
13
|
+
//
|
|
14
|
+
// Notes:
|
|
15
|
+
// - **Pro Tip!** In your markup use `×` for the content of the close icon
|
|
16
|
+
|
|
4
17
|
.close
|
|
5
18
|
+font-size(20)
|
|
6
19
|
+opacity(0.3)
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
|
|
2
|
+
//~ # Components
|
|
3
|
+
// Components are common patterns used in many applications but are not defined as base element tags.
|
|
4
|
+
// The modules are used as a starting point and helps define the markup structure in use.
|
|
5
|
+
|
|
6
|
+
// imports all components, use wisely..
|
|
7
|
+
@import carets
|
|
8
|
+
@import close
|
|
9
|
+
@import decals
|
|
10
|
+
@import wells
|
|
11
|
+
@import dropdowns
|
|
12
|
+
@import tabs
|
|
13
|
+
@import pills
|
|
14
|
+
@import nav-lists
|
|
15
|
+
@import breadcrumbs
|
|
16
|
+
@import pagination
|
|
17
|
+
@import accordions
|
|
18
|
+
@import paddles
|
|
19
|
+
@import button-groups
|
|
20
|
+
@import navbars
|
|
21
|
+
@import tooltips
|
|
22
|
+
@import popovers
|
|
23
|
+
@import progress-bars
|
|
24
|
+
@import notifications
|
|
25
|
+
@import modals
|
|
26
|
+
@import carousels
|
|
27
|
+
@import media
|
|
28
|
+
|
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
|
|
2
|
+
//~
|
|
3
|
+
// Decals are used to <span class="decal important">POP</span> information in a block of text.
|
|
4
|
+
// They are typically used with inline elements.
|
|
5
|
+
//
|
|
6
|
+
// Decal | Markup
|
|
7
|
+
// ---------------------------------------------- | ---------------------------
|
|
8
|
+
// <span class="decal">Default</span> | `<span class="decal">Default</span>`
|
|
9
|
+
// <span class="decal info">Info</span> | `<span class="decal info">Info</span>`
|
|
10
|
+
// <span class="decal important">Important</span> | `<span class="decal important">Important</span>`
|
|
11
|
+
// <span class="decal success">Success</span> | `<span class="decal success">Success</span>`
|
|
12
|
+
// <span class="decal warning">Warning</span> | `<span class="decal warning">Warning</span>`
|
|
13
|
+
// <span class="decal danger">Danger</span> | `<span class="decal danger">Danger</span>`
|
|
14
|
+
// <span class="decal primary">Primary</span> | `<span class="decal primary">Primary</span>`
|
|
15
|
+
|
|
2
16
|
.decal
|
|
3
17
|
background-color: $standard
|
|
4
18
|
border-radius: $radii
|
|
@@ -1,4 +1,85 @@
|
|
|
1
1
|
|
|
2
|
+
//~
|
|
3
|
+
// Apply the `data-toggle="dropdown"` attribute to a target link or button, then structure a dropdown navigation
|
|
4
|
+
// under a `ul.dropdown-menu`. Within the menu item, there should be a listing of links and optional dividers.
|
|
5
|
+
//
|
|
6
|
+
// Dropdown's utilize a `visuallyhidden` and `visuallyshown` technique rather than a `display: none|block`
|
|
7
|
+
// to allow screen readers to still discover the inner content.
|
|
8
|
+
//
|
|
9
|
+
// Dropdown's require [Bootstrap's Dropdown plugin](http://twitter.github.com/bootstrap/javascript.html#dropdowns).
|
|
10
|
+
//
|
|
11
|
+
// When the target link is floated right, the dropdown will automatically align it's dropdown menu accordingly.
|
|
12
|
+
// Dropdowns are designed to work with `tabs`, `pills`, `navbars`, `button-groups` and `split buttons`.
|
|
13
|
+
//
|
|
14
|
+
// For elements outside of a list, typically in stand alone buttons, utilize
|
|
15
|
+
// the `button-group` structure for creating dropdowns. Split button dropdowns
|
|
16
|
+
// allow an action on the left while the dropdown on the right can be used
|
|
17
|
+
// for contextual menu items.
|
|
18
|
+
//
|
|
19
|
+
// Notes:
|
|
20
|
+
// - **Pro Tip!** Add the `.drop-up` class to the `.dropdown-menu` to pop the menu above the target
|
|
21
|
+
// - **Pro Tip!** For split button dropdowns, add the `.split` class to the caret `<span>` to center within the button
|
|
22
|
+
//
|
|
23
|
+
// Usage:
|
|
24
|
+
// <section class="button-toolbar">
|
|
25
|
+
//
|
|
26
|
+
// <!-- Basic dropdown with typical menu structure -->
|
|
27
|
+
// <nav class="button-group">
|
|
28
|
+
// <ul class="nav">
|
|
29
|
+
// <li class="dropdown">
|
|
30
|
+
// <a href="#" data-toggle="dropdown">Dropdown<span class="caret"></span></a>
|
|
31
|
+
// <ul class="dropdown-menu">
|
|
32
|
+
// <li><a href="#">Subnav 1</a></li>
|
|
33
|
+
// <li><a href="#">Subnav 2</a></li>
|
|
34
|
+
// <li class="divider"></li>
|
|
35
|
+
// <li><a href="#">Subnav 3</a></li>
|
|
36
|
+
// </ul>
|
|
37
|
+
// </li>
|
|
38
|
+
// </ul>
|
|
39
|
+
// </nav>
|
|
40
|
+
//
|
|
41
|
+
// <!-- Button Dropdowns -->
|
|
42
|
+
// <nav class="button-group">
|
|
43
|
+
// <button class="btn dropdown-toggle" data-toggle="dropdown">Default<span class="caret"></span></button>
|
|
44
|
+
// <ul class="dropdown-menu">
|
|
45
|
+
// <li><a href="#">Subnav 1</a></li>
|
|
46
|
+
// <li><a href="#">Subnav 2</a></li>
|
|
47
|
+
// </ul>
|
|
48
|
+
// </nav>
|
|
49
|
+
// <nav class="button-group">
|
|
50
|
+
// <button class="btn success dropdown-toggle" data-toggle="dropdown">Success<span class="caret"></span></button>
|
|
51
|
+
// <ul class="dropdown-menu">
|
|
52
|
+
// <li><a href="#">Subnav 1</a></li>
|
|
53
|
+
// <li><a href="#">Subnav 2</a></li>
|
|
54
|
+
// </ul>
|
|
55
|
+
// </nav>
|
|
56
|
+
// <nav class="button-group">
|
|
57
|
+
// <button class="btn danger dropdown-toggle" data-toggle="dropdown">Danger Dropup<span class="caret"></span></button>
|
|
58
|
+
// <ul class="dropdown-menu drop-up">
|
|
59
|
+
// <li><a href="#">Subnav 1</a></li>
|
|
60
|
+
// <li><a href="#">Subnav 2</a></li>
|
|
61
|
+
// </ul>
|
|
62
|
+
// </nav>
|
|
63
|
+
//
|
|
64
|
+
// <!-- Split Button Dropdowns -->
|
|
65
|
+
// <nav class="button-group">
|
|
66
|
+
// <button class="btn important">Action</button>
|
|
67
|
+
// <button class="btn important dropdown-toggle" data-toggle="dropdown"><span class="caret split"></span></button>
|
|
68
|
+
// <ul class="dropdown-menu">
|
|
69
|
+
// <li><a href="#">Subnav 1</a></li>
|
|
70
|
+
// <li><a href="#">Subnav 2</a></li>
|
|
71
|
+
// </ul>
|
|
72
|
+
// </nav>
|
|
73
|
+
// <nav class="button-group">
|
|
74
|
+
// <button class="btn warning">Warning</button>
|
|
75
|
+
// <button class="btn warning dropdown-toggle" data-toggle="dropdown"><span class="caret split"></span></button>
|
|
76
|
+
// <ul class="dropdown-menu">
|
|
77
|
+
// <li><a href="#">Subnav 1</a></li>
|
|
78
|
+
// <li><a href="#">Subnav 2</a></li>
|
|
79
|
+
// </ul>
|
|
80
|
+
// </nav>
|
|
81
|
+
// </section>
|
|
82
|
+
|
|
2
83
|
.dropdown
|
|
3
84
|
position: relative
|
|
4
85
|
|
|
@@ -13,10 +94,8 @@
|
|
|
13
94
|
.dropdown.open .caret
|
|
14
95
|
border-top-color: $link_hover
|
|
15
96
|
|
|
16
|
-
// To get IE7 support, comment out +visuallyhidden and uncomment display:none
|
|
17
97
|
.dropdown-menu
|
|
18
98
|
+visuallyhidden
|
|
19
|
-
// display: none
|
|
20
99
|
+box-shadow($drop_dark)
|
|
21
100
|
background-clip: padding-box
|
|
22
101
|
background-color: $body_bg
|
|
@@ -38,6 +117,8 @@
|
|
|
38
117
|
padding: 0.3em 1em
|
|
39
118
|
clear: both
|
|
40
119
|
white-space: nowrap
|
|
120
|
+
@if $legacy-support-for-ie
|
|
121
|
+
*padding-left: 0
|
|
41
122
|
|
|
42
123
|
.dropdown-menu li > a:hover,
|
|
43
124
|
.dropdown-menu .active > a,
|
|
@@ -58,18 +139,21 @@
|
|
|
58
139
|
height: 1px
|
|
59
140
|
overflow: hidden
|
|
60
141
|
|
|
142
|
+
@if $legacy-support-for-ie
|
|
143
|
+
.dropdown.open
|
|
144
|
+
*z-index: $zindex_dropdown
|
|
145
|
+
|
|
61
146
|
// Open state for the dropdown
|
|
62
147
|
.dropdown.open .dropdown-toggle
|
|
63
148
|
color: $link_hover
|
|
64
149
|
|
|
65
|
-
|
|
66
150
|
.dropdown.open .dropdown-menu,
|
|
67
151
|
.typeahead.dropdown-menu,
|
|
68
152
|
.button-group.open .dropdown-menu
|
|
69
153
|
+visuallyshown
|
|
70
154
|
display: block
|
|
71
155
|
position: absolute
|
|
72
|
-
clip:
|
|
156
|
+
clip: inherit
|
|
73
157
|
border: 1px solid $component_border
|
|
74
158
|
padding: 0.3em 0
|
|
75
159
|
&.drop-up
|
|
@@ -1,4 +1,40 @@
|
|
|
1
1
|
|
|
2
|
+
//~ Media Items
|
|
3
|
+
// Media items provide a simple way for showcasing images, video
|
|
4
|
+
// and other media items as static media or clickable links. Include
|
|
5
|
+
// a `.caption` element when an area is needed to describe the figure.
|
|
6
|
+
//
|
|
7
|
+
// The media grid contains some basic settings for layout, but a more
|
|
8
|
+
// structured layout is intended for the grid framework in use with
|
|
9
|
+
// the application.
|
|
10
|
+
//
|
|
11
|
+
// Notes:
|
|
12
|
+
// - **Pro Tip!** Define the column span class on the `<li>` for grid layouts
|
|
13
|
+
//
|
|
14
|
+
// Usage:
|
|
15
|
+
// <nav>
|
|
16
|
+
// <ul class="media-grid">
|
|
17
|
+
// <li>
|
|
18
|
+
// <figure class="media-item">
|
|
19
|
+
// <img alt="alt" src="http://placehold.it/260x180">
|
|
20
|
+
// <figcaption class="caption">
|
|
21
|
+
// <h5>Media Item</h5>
|
|
22
|
+
// <p>With a caption copy</p>
|
|
23
|
+
// <footer style="margin-top:1.2em;">
|
|
24
|
+
// <button class="btn">Action</button>
|
|
25
|
+
// </footer>
|
|
26
|
+
// </figcaption>
|
|
27
|
+
// </figure>
|
|
28
|
+
// </li>
|
|
29
|
+
// <li>
|
|
30
|
+
// <a class="media-item" href="#"><img alt="alt" src="http://placehold.it/260x180"></a>
|
|
31
|
+
// </li>
|
|
32
|
+
// <li>
|
|
33
|
+
// <a class="media-item" href="#"><img alt="alt" src="http://placehold.it/260x180"></a>
|
|
34
|
+
// </li>
|
|
35
|
+
// </ul>
|
|
36
|
+
// </nav>
|
|
37
|
+
|
|
2
38
|
.media-grid
|
|
3
39
|
+box-sizing(border-box)
|
|
4
40
|
+clearfixer
|
|
@@ -1,4 +1,33 @@
|
|
|
1
1
|
|
|
2
|
+
//~
|
|
3
|
+
// Modals utilize [Bootstrap's Modal plugin](http://twitter.github.com/bootstrap/javascript.html#modals).
|
|
4
|
+
// Control various options of how modals are shown based on attributes set
|
|
5
|
+
// in the trigger or the modal markup itself (preferred).
|
|
6
|
+
//
|
|
7
|
+
// Styles are not included for the contents of a modal. This is better suited
|
|
8
|
+
// for other components or custom layouts within the application.
|
|
9
|
+
//
|
|
10
|
+
// Usage:
|
|
11
|
+
// <!-- Modal Trigger Button -->
|
|
12
|
+
// <a class="btn important" data-toggle="modal" href="#modal_name">Launch Modal</a>
|
|
13
|
+
//
|
|
14
|
+
// <!-- Modal Wrapper -->
|
|
15
|
+
// <div id="modal_name" class="modal fade" data-backdrop="true" data-keyboard="true">
|
|
16
|
+
// <div class="notification">
|
|
17
|
+
// <header class="notify-header">
|
|
18
|
+
// <h3 class="notify-heading">Notification within a Modal</h3>
|
|
19
|
+
// </header>
|
|
20
|
+
// <section class="notify-content">
|
|
21
|
+
// <p>~lorem_medium</p>
|
|
22
|
+
// </section>
|
|
23
|
+
// <footer class="notify-footer notify-right">
|
|
24
|
+
// <button class="btn important">Action</button>
|
|
25
|
+
// <button class="btn danger">Cancel</button>
|
|
26
|
+
// </footer>
|
|
27
|
+
// <a class="close" data-dismiss="modal" href="#">×</a>
|
|
28
|
+
// </div>
|
|
29
|
+
// </div>
|
|
30
|
+
|
|
2
31
|
.modal-backdrop
|
|
3
32
|
+transition(opacity $speed)
|
|
4
33
|
background-color: $body_bg
|