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,33 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
.sg-subsection
|
|
3
|
-
%h3.sg-subheading Popovers <span>popovers.sass</span>
|
|
4
|
-
%p(style="width:67%;") Pop Overs utilize <a href="http://twitter.github.com/bootstrap/javascript.html#popovers">Bootstrap's Popover plugin</a>. They are similar to the tool tip plugin and they require <a href="http://twitter.github.com/bootstrap/javascript.html#tooltips">Bootstrap's Tooltip plugin</a> to be included as well.
|
|
5
|
-
|
|
6
|
-
.sg-subsection
|
|
7
|
-
%table.box.banded.thead-decorate
|
|
8
|
-
%thead
|
|
9
|
-
%tr
|
|
10
|
-
%th Position
|
|
11
|
-
%th Markup
|
|
12
|
-
%tbody
|
|
13
|
-
%tr
|
|
14
|
-
%td <a href="#" rel="popover" data-placement="top" data-original-title="Top" data-content="This is a popover">Top</a>
|
|
15
|
-
%td.html <code><a rel="popover" data-placement="top" data-original-title="Top" data-content="...">Top</a></code>
|
|
16
|
-
%td.haml.hidden <code>%a(rel="popover" data-placement="top" data-original-title="Top" data-content="...") Top</code>
|
|
17
|
-
%tr
|
|
18
|
-
%td <a href="#" rel="popover" data-placement="bottom" data-original-title="Bottom" data-content="This is a popover">Bottom</a>
|
|
19
|
-
%td.html <code><a rel="popover" data-placement="bottom" data-original-title="Bottom" data-content="...">Bottom</a></code>
|
|
20
|
-
%td.haml.hidden <code>%a(rel="popover" data-placement="bottom" data-original-title="Bottom" data-content="...") Bottom</code>
|
|
21
|
-
%tr
|
|
22
|
-
%td <a href="#" rel="popover" data-placement="left" data-original-title="Left" data-content="This is a popover">Left</a>
|
|
23
|
-
%td.html <code><a rel="popover" data-placement="left" data-original-title="Left" data-content="...">Left</a></code>
|
|
24
|
-
%td.haml.hidden <code>%a(rel="popover" data-placement="left" data-original-title="Left" data-content="...") Left</code>
|
|
25
|
-
%tr
|
|
26
|
-
%td <a href="#" rel="popover" data-placement="right" data-original-title="Right" data-content="This is a popover">Right</a>
|
|
27
|
-
%td.html <code><a rel="popover" data-placement="right" data-original-title="Right" data-content="...">Right</a></code>
|
|
28
|
-
%td.haml.hidden <code>%a(rel="popover" data-placement="right" data-original-title="Right" data-content="...") Right</code>
|
|
29
|
-
|
|
30
|
-
.notification.important.fade.in
|
|
31
|
-
%p <strong>Note!</strong> Popovers are opt in and will only be instantiated if called directly from JavaScript:
|
|
32
|
-
%code $("a[rel=popover]").popover()
|
|
33
|
-
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
.sg-subsection
|
|
3
|
-
%h3.sg-subheading Progress Bars <span>progress-bars.sass</span>
|
|
4
|
-
%p(style="width:67%;") Progress bars are used to display actions being performed by the user. Utilize a bit of JavaScript to set the <code>width</code> of the <code>.progress > .bar</code> to showcase it's status.
|
|
5
|
-
.sg-subsection
|
|
6
|
-
%table.box.banded.thead-decorate
|
|
7
|
-
%thead
|
|
8
|
-
%tr
|
|
9
|
-
%th Progress Bar
|
|
10
|
-
%th Class
|
|
11
|
-
%th Description
|
|
12
|
-
%tbody
|
|
13
|
-
%tr
|
|
14
|
-
%td
|
|
15
|
-
.progress
|
|
16
|
-
.bar(style="width:60%")
|
|
17
|
-
%td <code>.progress</code>
|
|
18
|
-
%td The default style utilizing the <code>$standard</code> value
|
|
19
|
-
%tr
|
|
20
|
-
%td
|
|
21
|
-
.progress.info
|
|
22
|
-
.bar(style="width:60%")
|
|
23
|
-
%td <code>.progress.info</code>
|
|
24
|
-
%td The info bar is typically used as an alternate to the default bar
|
|
25
|
-
%tr
|
|
26
|
-
%td
|
|
27
|
-
.progress.important
|
|
28
|
-
.bar(style="width:60%")
|
|
29
|
-
%td <code>.progress.important</code>
|
|
30
|
-
%td Typically used when performing an important action
|
|
31
|
-
%tr
|
|
32
|
-
%td
|
|
33
|
-
.progress.success
|
|
34
|
-
.bar(style="width:60%")
|
|
35
|
-
%td <code>.progress.success</code>
|
|
36
|
-
%td Used to show a successful or positive progress
|
|
37
|
-
%tr
|
|
38
|
-
%td
|
|
39
|
-
.progress.warning
|
|
40
|
-
.bar(style="width:60%")
|
|
41
|
-
%td <code>.progress.warning</code>
|
|
42
|
-
%td Used when performing cautious or potentially negative action
|
|
43
|
-
%tr
|
|
44
|
-
%td
|
|
45
|
-
.progress.danger
|
|
46
|
-
.bar(style="width:60%")
|
|
47
|
-
%td <code>.progress.danger</code>
|
|
48
|
-
%td Typically used when performing a delete or negative action
|
|
49
|
-
%tr
|
|
50
|
-
%td
|
|
51
|
-
.progress.primary
|
|
52
|
-
.bar(style="width:60%")
|
|
53
|
-
%td <code>.progress.primary</code>
|
|
54
|
-
%td Inherits the main CI color to display a progress action
|
|
55
|
-
.notification.important.fade.in
|
|
56
|
-
%p <strong>Pro Tip!</strong> Click in the progress bar container to showcase the loading animation
|
|
57
|
-
|
|
58
|
-
.sg-subsection
|
|
59
|
-
%h4 Native Progress & Meter Bars
|
|
60
|
-
.sg-onethird.pull
|
|
61
|
-
%p Native Progress and Meter bars are not supported in all browsers, but are available to some. We opt for using a component over these, but polyfills are available for both <a href="https://gist.github.com/667320">meter</a> and <a href="http://www.useragentman.com/blog/2012/01/03/cross-browser-html5-progress-bars-in-depth/">progress bars</a>. They just require a bit more css to accommodate.
|
|
62
|
-
.sg-twothird.indent
|
|
63
|
-
.well
|
|
64
|
-
%p The <code>meter</code> bar is used to indicate a scalar measurement within a known range, or a fractional value.
|
|
65
|
-
%p
|
|
66
|
-
%meter(min="0" max="100" value="50")
|
|
67
|
-
%br
|
|
68
|
-
%br
|
|
69
|
-
%p The <code>progress</code> bar is used to represent the progress of a task.
|
|
70
|
-
%p
|
|
71
|
-
%progress(min="0" max="100" value="50")
|
|
72
|
-
|
|
@@ -1,241 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
.sg-subsection
|
|
3
|
-
%h3.sg-subheading Tabs & Pills <span>tabs.sass, pills.sass</span>
|
|
4
|
-
|
|
5
|
-
.sg-subsection
|
|
6
|
-
.sg-half.pull
|
|
7
|
-
%h4 Default Tabs
|
|
8
|
-
%p Attach the classes <code>.nav .tabs</code> to the <code>ol</code> or <code>ul</code> elements.
|
|
9
|
-
.well(style="margin-top:1.25em;")
|
|
10
|
-
%nav
|
|
11
|
-
%ul.nav.tabs
|
|
12
|
-
%li
|
|
13
|
-
%a(href="#tab_one" data-toggle="tab") Tab One
|
|
14
|
-
%li.active
|
|
15
|
-
%a(href="#tab_two" data-toggle="tab") Tab Two
|
|
16
|
-
%li
|
|
17
|
-
%a(href="#tab_three" data-toggle="tab") Tab Three
|
|
18
|
-
%li.dropdown
|
|
19
|
-
%a.dropdown-toggle(href="#" data-toggle="dropdown") Tab Four<span class="caret"></span>
|
|
20
|
-
%ul.dropdown-menu
|
|
21
|
-
%li
|
|
22
|
-
%a(href="#tab_four-1" data-toggle="tab") Subnav 1
|
|
23
|
-
%li
|
|
24
|
-
%a(href="#tab_four-2" data-toggle="tab") Subnav 2
|
|
25
|
-
%li.divider
|
|
26
|
-
%li
|
|
27
|
-
%a(href="#tab_four-3" data-toggle="tab") Subnav 3
|
|
28
|
-
.tab-content(style="margin-top:1.25em;")
|
|
29
|
-
.tab-pane#tab_one
|
|
30
|
-
%p Tab <span class="decal primary">one</span> content
|
|
31
|
-
.tab-pane#tab_two.active
|
|
32
|
-
%p Tab <span class="decal primary">two</span> content
|
|
33
|
-
.tab-pane#tab_three
|
|
34
|
-
%p Tab <span class="decal primary">three</span> content
|
|
35
|
-
.tab-pane#tab_four-1
|
|
36
|
-
%p Tab <span class="decal primary">four</span>: subnav <span class="decal primary">1</span> content
|
|
37
|
-
.tab-pane#tab_four-2
|
|
38
|
-
%p Tab <span class="decal primary">four</span>: subnav <span class="decal primary">2</span> content
|
|
39
|
-
.tab-pane#tab_four-3
|
|
40
|
-
%p Tab <span class="decal primary">four</span>: subnav <span class="decal primary">3</span> content
|
|
41
|
-
|
|
42
|
-
.sg-half.push
|
|
43
|
-
%h4 Default Pills
|
|
44
|
-
%p Attach the classes <code>.nav .pills</code> to the <code>ol</code> or <code>ul</code> elements.
|
|
45
|
-
.well(style="margin-top:1.25em;")
|
|
46
|
-
%nav
|
|
47
|
-
%ul.nav.pills
|
|
48
|
-
%li
|
|
49
|
-
%a(href="#pill_one" data-toggle="pill") Pill One
|
|
50
|
-
%li.active
|
|
51
|
-
%a(href="#pill_two" data-toggle="pill") Pill Two
|
|
52
|
-
%li
|
|
53
|
-
%a(href="#pill_three" data-toggle="pill") Pill Three
|
|
54
|
-
%li.dropdown
|
|
55
|
-
%a.dropdown-toggle(href="#" data-toggle="dropdown") Pill Four<span class="caret"></span>
|
|
56
|
-
%ul.dropdown-menu
|
|
57
|
-
%li
|
|
58
|
-
%a(href="#pill_four-1" data-toggle="pill") Subnav 1
|
|
59
|
-
%li
|
|
60
|
-
%a(href="#pill_four-2" data-toggle="pill") Subnav 2
|
|
61
|
-
%li.divider
|
|
62
|
-
%li
|
|
63
|
-
%a(href="#pill_four-3" data-toggle="pill") Subnav 3
|
|
64
|
-
.pill-content(style="margin-top:1.25em;")
|
|
65
|
-
.pill-pane#pill_one
|
|
66
|
-
%p Pill <span class="decal primary">one</span> content
|
|
67
|
-
.pill-pane#pill_two.active
|
|
68
|
-
%p Pill <span class="decal primary">two</span> content
|
|
69
|
-
.pill-pane#pill_three
|
|
70
|
-
%p Pill <span class="decal primary">three</span> content
|
|
71
|
-
.pill-pane#pill_four-1
|
|
72
|
-
%p Pill <span class="decal primary">four</span>: subnav <span class="decal primary">1</span> content
|
|
73
|
-
.pill-pane#pill_four-2
|
|
74
|
-
%p Pill <span class="decal primary">four</span>: subnav <span class="decal primary">2</span> content
|
|
75
|
-
.pill-pane#pill_four-3
|
|
76
|
-
%p Pill <span class="decal primary">four</span>: subnav <span class="decal primary">3</span> content
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
.sg-subsection
|
|
80
|
-
.sg-half.pull
|
|
81
|
-
%h4 Stacked Tabs
|
|
82
|
-
%p Stack tabs by adding the class <code>.stacked</code> to the <code>.tabs</code> element.
|
|
83
|
-
.well(style="margin-top:1.25em;")
|
|
84
|
-
%nav
|
|
85
|
-
%ul.nav.tabs.stacked
|
|
86
|
-
%li
|
|
87
|
-
%a(href="#") Tab One
|
|
88
|
-
%li.active
|
|
89
|
-
%a(href="#") Tab Two
|
|
90
|
-
%li.dropdown
|
|
91
|
-
%a.dropdown-toggle(href="#" data-toggle="dropdown") Tab Three<span class="caret"></span>
|
|
92
|
-
%ul.dropdown-menu
|
|
93
|
-
%li
|
|
94
|
-
%a(href="#") Subnav 1
|
|
95
|
-
%li
|
|
96
|
-
%a(href="#") Subnav 2
|
|
97
|
-
%li.divider
|
|
98
|
-
%li
|
|
99
|
-
%a(href="#") Subnav 3
|
|
100
|
-
%li
|
|
101
|
-
%a(href="#") Tab Four
|
|
102
|
-
|
|
103
|
-
.sg-half.push
|
|
104
|
-
%h4 Stacked Pills
|
|
105
|
-
%p Stack pills by adding the class <code>.stacked</code> to the <code>.pills</code> element.
|
|
106
|
-
.well(style="margin-top:1.25em; padding-bottom:1em;")
|
|
107
|
-
%nav
|
|
108
|
-
%ul.nav.pills.stacked
|
|
109
|
-
%li
|
|
110
|
-
%a(href="#") Pill One
|
|
111
|
-
%li.active
|
|
112
|
-
%a(href="#") Pill Two
|
|
113
|
-
%li.dropdown
|
|
114
|
-
%a.dropdown-toggle(href="#" data-toggle="dropdown") Pill Three<span class="caret"></span>
|
|
115
|
-
%ul.dropdown-menu
|
|
116
|
-
%li
|
|
117
|
-
%a(href="#") Subnav 1
|
|
118
|
-
%li
|
|
119
|
-
%a(href="#") Subnav 2
|
|
120
|
-
%li.divider
|
|
121
|
-
%li
|
|
122
|
-
%a(href="#") Subnav 3
|
|
123
|
-
%li
|
|
124
|
-
%a(href="#") Pill Four
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
.sg-subsection
|
|
128
|
-
.sg-half.pull
|
|
129
|
-
%h4 Tabs structure
|
|
130
|
-
%p Tabs structure shown with a dropdown.
|
|
131
|
-
%pre.prettyprint.html
|
|
132
|
-
= preserve do
|
|
133
|
-
:escaped
|
|
134
|
-
<nav>
|
|
135
|
-
<!-- Add `.stacked` to the ul below -->
|
|
136
|
-
<ul class="nav tabs">
|
|
137
|
-
<li><a>Tab 1</a></li>
|
|
138
|
-
<li><a class="active">Tab 2</a></li>
|
|
139
|
-
<li class="dropdown">
|
|
140
|
-
<a data-toggle="dropdown">Tab 3<span class="caret">...
|
|
141
|
-
<ul class="dropdown-menu">
|
|
142
|
-
...
|
|
143
|
-
</ul>
|
|
144
|
-
</li>
|
|
145
|
-
</ul>
|
|
146
|
-
</nav>
|
|
147
|
-
%pre.prettyprint.haml.hidden
|
|
148
|
-
= preserve do
|
|
149
|
-
:escaped
|
|
150
|
-
%nav
|
|
151
|
-
%ul.nav.tabs
|
|
152
|
-
%li
|
|
153
|
-
%a(href="#") Tab One
|
|
154
|
-
%li.active
|
|
155
|
-
%a(href="#") Tab Two
|
|
156
|
-
%li.dropdown
|
|
157
|
-
%a.dropdown-toggle(href="#" data-toggle="dropdown")
|
|
158
|
-
Tab Three
|
|
159
|
-
%span.caret
|
|
160
|
-
%ul.dropdown-menu
|
|
161
|
-
...
|
|
162
|
-
|
|
163
|
-
.sg-half.push
|
|
164
|
-
%h4 Pills structure
|
|
165
|
-
%p Pills structure shown with a dropdown.
|
|
166
|
-
%pre.prettyprint.html
|
|
167
|
-
= preserve do
|
|
168
|
-
:escaped
|
|
169
|
-
<nav>
|
|
170
|
-
<!-- Add `.stacked` to the ul below -->
|
|
171
|
-
<ul class="nav pills">
|
|
172
|
-
<li><a>Pill 1</a></li>
|
|
173
|
-
<li><a class="active">Pill 2</a></li>
|
|
174
|
-
<li class="dropdown">
|
|
175
|
-
<a data-toggle="dropdown">Pill 3<span class="caret">...
|
|
176
|
-
<ul class="dropdown-menu">
|
|
177
|
-
...
|
|
178
|
-
</ul>
|
|
179
|
-
</li>
|
|
180
|
-
</ul>
|
|
181
|
-
</nav>
|
|
182
|
-
%pre.prettyprint.haml.hidden
|
|
183
|
-
= preserve do
|
|
184
|
-
:escaped
|
|
185
|
-
%nav
|
|
186
|
-
%ul.nav.pills
|
|
187
|
-
%li
|
|
188
|
-
%a(href="#") Pill One
|
|
189
|
-
%li.active
|
|
190
|
-
%a(href="#") Pill Two
|
|
191
|
-
%li.dropdown
|
|
192
|
-
%a.dropdown-toggle(href="#" data-toggle="dropdown")
|
|
193
|
-
Pill Three
|
|
194
|
-
%span.caret
|
|
195
|
-
%ul.dropdown-menu
|
|
196
|
-
...
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
.sg-subsection
|
|
200
|
-
%h4 Togglable Tabs & Pills
|
|
201
|
-
%p(style="width:67%;") To utilize a drop dead simple version of hiding and showing content related to a tab/pill, utilize <a href="http://twitter.github.com/bootstrap/javascript.html#tabs">Bootstrap's Tab</a> plugin. The base structure of tabs and pills doesn't change, except to include a few more classes on the links and the <code>href</code> attribute the button will target.
|
|
202
|
-
%pre.prettyprint.html
|
|
203
|
-
= preserve do
|
|
204
|
-
:escaped
|
|
205
|
-
<nav>
|
|
206
|
-
<ul class="nav tabs">
|
|
207
|
-
<li>
|
|
208
|
-
<a data-toggle="tab" href="#tab_one">Tab One</a>
|
|
209
|
-
</li>
|
|
210
|
-
<li class="active">
|
|
211
|
-
<a data-toggle="tab" href="#tab_two">Tab Two</a>
|
|
212
|
-
</li>
|
|
213
|
-
</ul>
|
|
214
|
-
</nav>
|
|
215
|
-
<!-- tab-content holds all tab-pane markup -->
|
|
216
|
-
<div class="tab-content">
|
|
217
|
-
<div class="tab-pane" id="tab_one">
|
|
218
|
-
<p>Tab one content</p>
|
|
219
|
-
</div>
|
|
220
|
-
<div class="tab-pane active" id="tab_two">
|
|
221
|
-
<p>Tab two content</p>
|
|
222
|
-
</div>
|
|
223
|
-
</div>
|
|
224
|
-
%pre.prettyprint.haml.hidden
|
|
225
|
-
= preserve do
|
|
226
|
-
:escaped
|
|
227
|
-
%nav
|
|
228
|
-
%ul.nav.tabs
|
|
229
|
-
%li
|
|
230
|
-
%a(data-toggle="tab" href="#tab_one") Tab One
|
|
231
|
-
%li.active
|
|
232
|
-
%a(data-toggle="tab" href="#tab_two") Tab Two
|
|
233
|
-
|
|
234
|
-
.tab-content
|
|
235
|
-
#tab_one.tab-pane
|
|
236
|
-
%p Tab one content
|
|
237
|
-
#tab_two.tab-pane.active
|
|
238
|
-
%p Tab two content
|
|
239
|
-
.notification.important.fade.in
|
|
240
|
-
%p <strong>Note!</strong> When targeting pills, use <code>data-toggle="pill"</code> for links and <code>.pill-content</code>, <code>.pill-pane</code> for content elements.
|
|
241
|
-
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
.sg-subsection
|
|
3
|
-
%h3.sg-subheading Tooltips <span>tooltips.sass</span>
|
|
4
|
-
%p(style="width:50%;")
|
|
5
|
-
Tool tips utilize <a href="http://twitter.github.com/bootstrap/javascript.html#tooltips">Bootstrap's Tooltip plugin</a>. You can control various options of how a tool tip is shown based on attributes set in the link.
|
|
6
|
-
%br
|
|
7
|
-
%br
|
|
8
|
-
Styles are automatically generated based on the inverted colors of the body's <code>background-color</code> and font <code>color</code>.
|
|
9
|
-
|
|
10
|
-
.sg-subsection
|
|
11
|
-
%table.box.banded.thead-decorate.tools
|
|
12
|
-
%thead
|
|
13
|
-
%tr
|
|
14
|
-
%th Position
|
|
15
|
-
%th Markup
|
|
16
|
-
%tbody
|
|
17
|
-
%tr
|
|
18
|
-
%td <a href="#" rel="tooltip" data-placement="top" data-original-title="Top">Top</a>
|
|
19
|
-
%td.html <code><a href="#" rel="tooltip" data-placement="top" data-original-title="Top">Top</a></code>
|
|
20
|
-
%td.haml.hidden <code>%a(href="#" rel="tooltip" data-placement="top" data-original-title="Top") Top</code>
|
|
21
|
-
%tr
|
|
22
|
-
%td <a href="#" rel="tooltip" data-placement="bottom" data-original-title="Bottom">Bottom</a>
|
|
23
|
-
%td.html <code><a href="#" rel="tooltip" data-placement="bottom" data-original-title="Bottom">Bottom</a></code>
|
|
24
|
-
%td.haml.hidden <code>%a(href="#" rel="tooltip" data-placement="bottom" data-original-title="Bottom") Bottom</code>
|
|
25
|
-
%tr
|
|
26
|
-
%td <a href="#" rel="tooltip" data-placement="left" data-original-title="Left">Left</a>
|
|
27
|
-
%td.html <code><a href="#" rel="tooltip" data-placement="left" data-original-title="Left">Left</a></code>
|
|
28
|
-
%td.haml.hidden <code>%a(href="#" rel="tooltip" data-placement="left" data-original-title="Left") Left</code>
|
|
29
|
-
%tr
|
|
30
|
-
%td <a href="#" rel="tooltip" data-placement="right" data-original-title="Right" data-offset="10">Right</a>
|
|
31
|
-
%td.html <code><a href="#" rel="tooltip" data-placement="right" data-original-title="Right">Right</a></code>
|
|
32
|
-
%td.haml.hidden <code>%a(href="#" rel="tooltip" data-placement="right" data-original-title="Right") Right</code>
|
|
33
|
-
|
|
34
|
-
.notification.important.fade.in
|
|
35
|
-
%p <strong>Note!</strong> Tooltips are opt in and will only be instantiated if called directly from JavaScript:
|
|
36
|
-
%code $("a[rel=tooltip]").tooltip()
|
|
37
|
-
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
.sg-subsection
|
|
3
|
-
%h3.sg-subheading Wells <span>wells.sass</span>
|
|
4
|
-
.sg-half.pull
|
|
5
|
-
%p Wells are simple containers for popping elements off the page. They come in a few different flavors.
|
|
6
|
-
%pre.prettyprint.html
|
|
7
|
-
= preserve do
|
|
8
|
-
:escaped
|
|
9
|
-
<div class="well">...</div>
|
|
10
|
-
<div class="well lite">...</div>
|
|
11
|
-
<div class="well dark">...</div>
|
|
12
|
-
<div class="well primary">...</div>
|
|
13
|
-
%pre.prettyprint.haml.hidden
|
|
14
|
-
= preserve do
|
|
15
|
-
:escaped
|
|
16
|
-
.well ...
|
|
17
|
-
.well.lite ...
|
|
18
|
-
.well.dark ...
|
|
19
|
-
.well.primary ...
|
|
20
|
-
.sg-half
|
|
21
|
-
.well
|
|
22
|
-
%code .well
|
|
23
|
-
.well.lite
|
|
24
|
-
%code .well.lite
|
|
25
|
-
.well.dark
|
|
26
|
-
%code .well.dark
|
|
27
|
-
.well.primary
|
|
28
|
-
%code .well.primary
|
|
29
|
-
|
|
@@ -1,259 +0,0 @@
|
|
|
1
|
-
!!! 5
|
|
2
|
-
%html
|
|
3
|
-
%head
|
|
4
|
-
%title underoos.
|
|
5
|
-
%meta(content="IE=edge,chrome=1" http-equiv="X-UA-Compatible")
|
|
6
|
-
%meta(content="text/html; charset=UTF-8" http-equiv="Content-Type")
|
|
7
|
-
%meta(name="description" content="")
|
|
8
|
-
%meta(name="author" content="mode set")
|
|
9
|
-
%meta(name="keywords" content="")
|
|
10
|
-
%meta(name="imagetoolbar" content="no")
|
|
11
|
-
%meta(name="viewport" content="width=device-width, initial-scale=1.0")
|
|
12
|
-
%meta(name="apple-touch-fullscreen" content="YES")
|
|
13
|
-
%meta(name="apple-mobile-web-app-capable" content="YES")
|
|
14
|
-
%meta(name="apple-mobile-web-app-status-bar-style" content="black")
|
|
15
|
-
|
|
16
|
-
<!--[if lt IE 9]>
|
|
17
|
-
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
|
18
|
-
<![endif]-->
|
|
19
|
-
|
|
20
|
-
= stylesheet_link_tag 'underoos'
|
|
21
|
-
= stylesheet_link_tag 'styleguide'
|
|
22
|
-
|
|
23
|
-
%body(data-spy="scroll" data-target=".spy")
|
|
24
|
-
.navbar.fixed.sg-navbar
|
|
25
|
-
.navbar-inner
|
|
26
|
-
.container.outer
|
|
27
|
-
%a.btn.info.btn-navbar(data-toggle="collapse" data-target=".nav-collapse")
|
|
28
|
-
%span.icon-bar
|
|
29
|
-
%span.icon-bar
|
|
30
|
-
%span.icon-bar
|
|
31
|
-
%a#page_title.brand(href="/styleguide") underoos.
|
|
32
|
-
%nav.spy.nav-collapse
|
|
33
|
-
%ul.nav
|
|
34
|
-
%li.dropdown
|
|
35
|
-
%a.dropdown-toggle(href="#" data-toggle="dropdown") Typography<span class="caret"></span>
|
|
36
|
-
%ul.dropdown-menu
|
|
37
|
-
%li
|
|
38
|
-
%a(href="#typography") Description
|
|
39
|
-
%li
|
|
40
|
-
%a(href="#type_headings") Headings
|
|
41
|
-
%li
|
|
42
|
-
%a(href="#type_paragraphs") Inline Paragraph Elements
|
|
43
|
-
%li
|
|
44
|
-
%a(href="#type_rules") Rules
|
|
45
|
-
%li
|
|
46
|
-
%a(href="#type_lists") Lists
|
|
47
|
-
%li
|
|
48
|
-
%a(href="#type_code") Code
|
|
49
|
-
|
|
50
|
-
%li
|
|
51
|
-
%a(href="#palettes") Palettes
|
|
52
|
-
|
|
53
|
-
%li.dropdown
|
|
54
|
-
%a.dropdown-toggle(href="#" data-toggle="dropdown") Elements<span class="caret"></span>
|
|
55
|
-
%ul.dropdown-menu
|
|
56
|
-
%li
|
|
57
|
-
%a(href="#elements") Description
|
|
58
|
-
%li
|
|
59
|
-
%a(href="#elements_basenav") Base Nav
|
|
60
|
-
%li
|
|
61
|
-
%a(href="#elements_buttons") Buttons
|
|
62
|
-
%li
|
|
63
|
-
%a(href="#elements_images") Images
|
|
64
|
-
%li
|
|
65
|
-
%a(href="#elements_video") Video
|
|
66
|
-
|
|
67
|
-
%li.dropdown
|
|
68
|
-
%a.dropdown-toggle(href="#" data-toggle="dropdown") Components<span class="caret"></span>
|
|
69
|
-
%ul.dropdown-menu
|
|
70
|
-
%li
|
|
71
|
-
%a(href="#components") Description
|
|
72
|
-
%li
|
|
73
|
-
%a(href="#components_buttongroups") Button Groups
|
|
74
|
-
%li
|
|
75
|
-
%a(href="#components_dropdowns") Dropdowns
|
|
76
|
-
%li
|
|
77
|
-
%a(href="#components_tabs_pills") Tabs & Pills
|
|
78
|
-
%li
|
|
79
|
-
%a(href="#components_nav_lists") Navigation Lists
|
|
80
|
-
%li
|
|
81
|
-
%a(href="#components_breadcrumbs") Breadcrumbs
|
|
82
|
-
%li
|
|
83
|
-
%a(href="#components_pagination") Pagination
|
|
84
|
-
%li
|
|
85
|
-
%a(href="#components_navs_showcase") Navs Showcase
|
|
86
|
-
%li
|
|
87
|
-
%a(href="#components_accordions") Accordions
|
|
88
|
-
%li
|
|
89
|
-
%a(href="#components_navbars") Navbars
|
|
90
|
-
%li
|
|
91
|
-
%a(href="#components_paddles") Paddles
|
|
92
|
-
%li
|
|
93
|
-
%a(href="#components_modals") Modals
|
|
94
|
-
%li
|
|
95
|
-
%a(href="#components_notifications") Notifications
|
|
96
|
-
%li
|
|
97
|
-
%a(href="#components_decals") Decals
|
|
98
|
-
%li
|
|
99
|
-
%a(href="#components_tooltips") Tooltips
|
|
100
|
-
%li
|
|
101
|
-
%a(href="#components_popovers") Popovers
|
|
102
|
-
%li
|
|
103
|
-
%a(href="#components_progress_bars") Progress Bars
|
|
104
|
-
%li
|
|
105
|
-
%a(href="#components_carets") Carets
|
|
106
|
-
%li
|
|
107
|
-
%a(href="#components_close") Close Icons
|
|
108
|
-
%li
|
|
109
|
-
%a(href="#components_wells") Wells
|
|
110
|
-
%li
|
|
111
|
-
%a(href="#components_media") Media Grid
|
|
112
|
-
%li
|
|
113
|
-
%a(href="#tables") Tables
|
|
114
|
-
|
|
115
|
-
%li.dropdown
|
|
116
|
-
%a.dropdown-toggle(href="#" data-toggle="dropdown") Forms<span class="caret"></span>
|
|
117
|
-
%ul.dropdown-menu
|
|
118
|
-
%li
|
|
119
|
-
%a(href="#forms") Description
|
|
120
|
-
%li
|
|
121
|
-
%a(href="#forms_type") Form Types
|
|
122
|
-
%li
|
|
123
|
-
%a(href="#forms_example") Example Forms
|
|
124
|
-
%li
|
|
125
|
-
%a(href="#forms_vertical") Vertical Form
|
|
126
|
-
%li
|
|
127
|
-
%a(href="#forms_horizontal") Horizontal Form
|
|
128
|
-
%li
|
|
129
|
-
%a(href="#forms_structure") Form Structure
|
|
130
|
-
%li
|
|
131
|
-
%a(href="#forms_state") Form States
|
|
132
|
-
%li
|
|
133
|
-
%a(href="#forms_inputs") Additional Input Controls
|
|
134
|
-
%li
|
|
135
|
-
%a(href="#forms_typeahead") Typeahead
|
|
136
|
-
%li
|
|
137
|
-
%a(href="#forms_editable") Content Editable
|
|
138
|
-
|
|
139
|
-
%li.dropdown
|
|
140
|
-
%a.dropdown-toggle(href="#" data-toggle="dropdown") Layouts<span class="caret"></span>
|
|
141
|
-
%ul.dropdown-menu
|
|
142
|
-
%li
|
|
143
|
-
%a(href="#layouts") Description
|
|
144
|
-
%li
|
|
145
|
-
%a(href="#layouts_containers") Containers
|
|
146
|
-
%li
|
|
147
|
-
%a(href="#layouts_queries") Media Queries
|
|
148
|
-
%li
|
|
149
|
-
%a(href="#layouts_upgrades") Upgrades
|
|
150
|
-
|
|
151
|
-
%li.dropdown
|
|
152
|
-
%a.dropdown-toggle(href="#" data-toggle="dropdown") Assets<span class="caret"></span>
|
|
153
|
-
%ul.dropdown-menu
|
|
154
|
-
%li
|
|
155
|
-
%a(href="#assets") Description
|
|
156
|
-
%li
|
|
157
|
-
%a(href="#assets_icons") Favicon & Touch Icons
|
|
158
|
-
%li
|
|
159
|
-
%a(href="#assets_gui") UI Elements
|
|
160
|
-
|
|
161
|
-
%li.dropdown
|
|
162
|
-
%a.dropdown-toggle(href="#" data-toggle="dropdown") Utilities<span class="caret"></span>
|
|
163
|
-
%ul.dropdown-menu
|
|
164
|
-
%li
|
|
165
|
-
%a(href="#utilities") Description
|
|
166
|
-
%li
|
|
167
|
-
%a(href="#utils_helpers") Helpers
|
|
168
|
-
%li
|
|
169
|
-
%a(href="#utils_transitions") Transitions
|
|
170
|
-
%li
|
|
171
|
-
%a(href="#utils_mixins") Mixins
|
|
172
|
-
%li
|
|
173
|
-
%a(href="#utils_functions") Functions
|
|
174
|
-
%li
|
|
175
|
-
%a(href="#utils_polyfill") Polyfills
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
.container.outer
|
|
179
|
-
|
|
180
|
-
#typography.sg-spy-landing
|
|
181
|
-
.sg-section
|
|
182
|
-
.well.dark
|
|
183
|
-
%h2.sg-heading Typography
|
|
184
|
-
%p.sg-note Heading, paragraph, lists, and inline typographic elements.
|
|
185
|
-
= render :partial => 'typography'
|
|
186
|
-
|
|
187
|
-
#palettes.sg-spy-landing
|
|
188
|
-
.sg-section
|
|
189
|
-
.well.dark
|
|
190
|
-
%h2.sg-heading Palettes
|
|
191
|
-
%p.sg-note Various color palettes and themes used in the application. All properties are found under the themes directory
|
|
192
|
-
= render :partial => 'palettes'
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
#elements.sg-spy-landing
|
|
196
|
-
.sg-section
|
|
197
|
-
.well.dark
|
|
198
|
-
%h2.sg-heading Elements
|
|
199
|
-
%p.sg-note Base class styles to enhance common elements found in an application.
|
|
200
|
-
= render :partial => 'elements'
|
|
201
|
-
|
|
202
|
-
#components.sg-spy-landing
|
|
203
|
-
.sg-section
|
|
204
|
-
.well.dark
|
|
205
|
-
%h2.sg-heading Components
|
|
206
|
-
%p.sg-note Components are common patterns used in many applications but are not defined as base element tags.
|
|
207
|
-
= render :partial => 'components'
|
|
208
|
-
|
|
209
|
-
#tables.sg-spy-landing
|
|
210
|
-
.sg-section
|
|
211
|
-
.well.dark
|
|
212
|
-
%h2.sg-heading Tables
|
|
213
|
-
%p.sg-note Tables are used to represent tabular data.
|
|
214
|
-
= render :partial => 'tables'
|
|
215
|
-
|
|
216
|
-
#forms.sg-spy-landing
|
|
217
|
-
.sg-section
|
|
218
|
-
.well.dark
|
|
219
|
-
%h2.sg-heading Forms
|
|
220
|
-
%p.sg-note Inputs, textarea, labels, selects, and other controls associated with form elements. Tuned to play with <a href="https://github.com/justinfrench/formtastic">formtastic</a>.
|
|
221
|
-
= render :partial => 'forms'
|
|
222
|
-
|
|
223
|
-
#layouts.sg-spy-landing
|
|
224
|
-
.sg-section
|
|
225
|
-
.well.dark
|
|
226
|
-
%h2.sg-heading Layouts
|
|
227
|
-
%p.sg-note Layouts consists of various templates that are specific to the application.
|
|
228
|
-
= render :partial => 'layouts'
|
|
229
|
-
|
|
230
|
-
#assets.sg-spy-landing
|
|
231
|
-
.sg-section
|
|
232
|
-
.well.dark
|
|
233
|
-
%h2.sg-heading Assets
|
|
234
|
-
%p.sg-note Showcases the various assets in use by the application.
|
|
235
|
-
= render :partial => 'assets'
|
|
236
|
-
|
|
237
|
-
#utilities.sg-spy-landing
|
|
238
|
-
.sg-section
|
|
239
|
-
.well.dark
|
|
240
|
-
%h2.sg-heading Utilities
|
|
241
|
-
%p.sg-note Various utility, helpers and miscellaneous classes, commonly used for extension.
|
|
242
|
-
= render :partial => 'utilities'
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
#resources.sg-spy-landing
|
|
246
|
-
.sg-section
|
|
247
|
-
.well.dark
|
|
248
|
-
%h2.sg-heading Resources
|
|
249
|
-
%p.sg-note References, links, credits, and various information related to the styleguide.
|
|
250
|
-
= render :partial => 'resources'
|
|
251
|
-
|
|
252
|
-
#flash_messages.flash-messages
|
|
253
|
-
|
|
254
|
-
= render :partial => 'shared/upgrades'
|
|
255
|
-
|
|
256
|
-
= javascript_include_tag 'underoos'
|
|
257
|
-
= javascript_include_tag 'prettify'
|
|
258
|
-
= javascript_include_tag 'styleguide'
|
|
259
|
-
|