underoos 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (133) hide show
  1. data/.gitignore +8 -0
  2. data/.rvmrc +1 -0
  3. data/Gemfile +5 -0
  4. data/Gemfile.lock +143 -0
  5. data/LICENSE +26 -0
  6. data/Procfile +1 -0
  7. data/README.md +13 -0
  8. data/Rakefile +12 -0
  9. data/app/assets/javascripts/styleguide.js +132 -0
  10. data/app/assets/javascripts/underoos.js +18 -0
  11. data/app/assets/stylesheets/base/_button-btn-mixin.sass +72 -0
  12. data/app/assets/stylesheets/base/_elements.sass +61 -0
  13. data/app/assets/stylesheets/base/_forms.sass +362 -0
  14. data/app/assets/stylesheets/base/_helpers.sass +54 -0
  15. data/app/assets/stylesheets/base/_normalize.sass +114 -0
  16. data/app/assets/stylesheets/base/_scaffold.sass +51 -0
  17. data/app/assets/stylesheets/base/_tables.sass +99 -0
  18. data/app/assets/stylesheets/base/_transitions.sass +17 -0
  19. data/app/assets/stylesheets/base/_typography.sass +185 -0
  20. data/app/assets/stylesheets/components/_accordions.sass +17 -0
  21. data/app/assets/stylesheets/components/_breadcrumbs.sass +22 -0
  22. data/app/assets/stylesheets/components/_button-groups.sass +46 -0
  23. data/app/assets/stylesheets/components/_carets.sass +24 -0
  24. data/app/assets/stylesheets/components/_carousels.sass +18 -0
  25. data/app/assets/stylesheets/components/_close.sass +25 -0
  26. data/app/assets/stylesheets/components/_decals.sass +27 -0
  27. data/app/assets/stylesheets/components/_dropdowns.sass +85 -0
  28. data/app/assets/stylesheets/components/_media.sass +33 -0
  29. data/app/assets/stylesheets/components/_modals.sass +28 -0
  30. data/app/assets/stylesheets/components/_nav-lists.sass +22 -0
  31. data/app/assets/stylesheets/components/_navbars.sass +105 -0
  32. data/app/assets/stylesheets/components/_notifications.sass +108 -0
  33. data/app/assets/stylesheets/components/_paddles.sass +34 -0
  34. data/app/assets/stylesheets/components/_pagination.sass +41 -0
  35. data/app/assets/stylesheets/components/_pills.sass +64 -0
  36. data/app/assets/stylesheets/components/_popovers.sass +55 -0
  37. data/app/assets/stylesheets/components/_progress-bars.sass +29 -0
  38. data/app/assets/stylesheets/components/_tabs.sass +93 -0
  39. data/app/assets/stylesheets/components/_tooltips.sass +46 -0
  40. data/app/assets/stylesheets/components/_wells.sass +16 -0
  41. data/app/assets/stylesheets/layouts/_containers.sass +15 -0
  42. data/app/assets/stylesheets/layouts/_print.sass +48 -0
  43. data/app/assets/stylesheets/layouts/_queries.sass +121 -0
  44. data/app/assets/stylesheets/layouts/_upgrades.sass +64 -0
  45. data/app/assets/stylesheets/mixins/_arrows.sass +40 -0
  46. data/app/assets/stylesheets/mixins/_clearfixins.sass +15 -0
  47. data/app/assets/stylesheets/mixins/_coloring.sass +6 -0
  48. data/app/assets/stylesheets/mixins/_columns.sass +19 -0
  49. data/app/assets/stylesheets/mixins/_conversions.sass +25 -0
  50. data/app/assets/stylesheets/mixins/_font-size.sass +6 -0
  51. data/app/assets/stylesheets/mixins/_image-tools.sass +13 -0
  52. data/app/assets/stylesheets/mixins/_ir.sass +9 -0
  53. data/app/assets/stylesheets/mixins/_mixins.sass +14 -0
  54. data/app/assets/stylesheets/mixins/_tab-focus.sass +7 -0
  55. data/app/assets/stylesheets/mixins/_timing-equations.sass +29 -0
  56. data/app/assets/stylesheets/mixins/_visibility.sass +43 -0
  57. data/app/assets/stylesheets/polyfills/_box-shadow.sass +7 -0
  58. data/app/assets/stylesheets/polyfills/_box-sizing.sass +8 -0
  59. data/app/assets/stylesheets/polyfills/_functions.sass +22 -0
  60. data/app/assets/stylesheets/polyfills/_inline-block.sass +8 -0
  61. data/app/assets/stylesheets/polyfills/_opacity.sass +6 -0
  62. data/app/assets/stylesheets/polyfills/_polyfills.sass +10 -0
  63. data/app/assets/stylesheets/polyfills/_transition.sass +9 -0
  64. data/app/assets/stylesheets/polyfills/_user-select.sass +8 -0
  65. data/app/assets/stylesheets/styleguide.sass +199 -0
  66. data/app/assets/stylesheets/themes/_default.sass +119 -0
  67. data/app/assets/stylesheets/underoos.sass +52 -0
  68. data/app/controllers/underoos/styleguides_controller.rb +79 -0
  69. data/app/views/shared/_upgrades.html.haml +12 -0
  70. data/app/views/underoos/styleguides/_assets.haml +42 -0
  71. data/app/views/underoos/styleguides/_components.haml +42 -0
  72. data/app/views/underoos/styleguides/_elements.haml +242 -0
  73. data/app/views/underoos/styleguides/_forms.haml +305 -0
  74. data/app/views/underoos/styleguides/_layouts.haml +76 -0
  75. data/app/views/underoos/styleguides/_palettes.haml +18 -0
  76. data/app/views/underoos/styleguides/_resources.haml +27 -0
  77. data/app/views/underoos/styleguides/_tables.haml +124 -0
  78. data/app/views/underoos/styleguides/_typography.haml +284 -0
  79. data/app/views/underoos/styleguides/_utilities.haml +270 -0
  80. data/app/views/underoos/styleguides/components/_accordions.haml +83 -0
  81. data/app/views/underoos/styleguides/components/_breadcrumbs.haml +42 -0
  82. data/app/views/underoos/styleguides/components/_button-groups.haml +162 -0
  83. data/app/views/underoos/styleguides/components/_carets.haml +28 -0
  84. data/app/views/underoos/styleguides/components/_close.haml +20 -0
  85. data/app/views/underoos/styleguides/components/_decals.haml +40 -0
  86. data/app/views/underoos/styleguides/components/_dropdowns.haml +189 -0
  87. data/app/views/underoos/styleguides/components/_media.haml +78 -0
  88. data/app/views/underoos/styleguides/components/_modals.haml +42 -0
  89. data/app/views/underoos/styleguides/components/_nav-lists.haml +52 -0
  90. data/app/views/underoos/styleguides/components/_navbars.haml +144 -0
  91. data/app/views/underoos/styleguides/components/_navs-showcase.haml +27 -0
  92. data/app/views/underoos/styleguides/components/_notifications.haml +169 -0
  93. data/app/views/underoos/styleguides/components/_paddles.haml +68 -0
  94. data/app/views/underoos/styleguides/components/_pagination.haml +64 -0
  95. data/app/views/underoos/styleguides/components/_popovers.haml +33 -0
  96. data/app/views/underoos/styleguides/components/_progress-bars.haml +72 -0
  97. data/app/views/underoos/styleguides/components/_tabs-pills.haml +241 -0
  98. data/app/views/underoos/styleguides/components/_tooltips.haml +37 -0
  99. data/app/views/underoos/styleguides/components/_wells.haml +29 -0
  100. data/app/views/underoos/styleguides/index.html.haml +259 -0
  101. data/app/views/underoos/styleguides/partials/_form-template.haml +171 -0
  102. data/app/views/underoos/styleguides/partials/_table-data.haml +33 -0
  103. data/app/views/underoos/styleguides/partials/_transitions.haml +136 -0
  104. data/config.ru +38 -0
  105. data/config/routes.rb +3 -0
  106. data/features/generator.feature +78 -0
  107. data/features/step_definitions/underoos_steps.rb +3 -0
  108. data/features/support/env.rb +9 -0
  109. data/lib/generators/underoos/assets_generator.rb +33 -0
  110. data/lib/underoos.rb +5 -0
  111. data/lib/underoos/engine.rb +8 -0
  112. data/lib/underoos/version.rb +3 -0
  113. data/public/apple-touch-icon-114x114-precomposed.png +0 -0
  114. data/public/apple-touch-icon-57x57-precomposed.png +0 -0
  115. data/public/apple-touch-icon-72x72-precomposed.png +0 -0
  116. data/public/apple-touch-icon-precomposed.png +0 -0
  117. data/public/apple-touch-icon.png +0 -0
  118. data/public/favicon.ico +0 -0
  119. data/script/javascripts +15 -0
  120. data/underoos.gemspec +29 -0
  121. data/vendor/assets/javascripts/bootstrap-alert.js +94 -0
  122. data/vendor/assets/javascripts/bootstrap-button.js +100 -0
  123. data/vendor/assets/javascripts/bootstrap-collapse.js +138 -0
  124. data/vendor/assets/javascripts/bootstrap-dropdown.js +92 -0
  125. data/vendor/assets/javascripts/bootstrap-modal.js +210 -0
  126. data/vendor/assets/javascripts/bootstrap-popover.js +95 -0
  127. data/vendor/assets/javascripts/bootstrap-scrollspy.js +125 -0
  128. data/vendor/assets/javascripts/bootstrap-tab.js +130 -0
  129. data/vendor/assets/javascripts/bootstrap-tooltip.js +270 -0
  130. data/vendor/assets/javascripts/bootstrap-transition.js +51 -0
  131. data/vendor/assets/javascripts/bootstrap-typeahead.js +271 -0
  132. data/vendor/assets/javascripts/prettify.js +28 -0
  133. metadata +246 -0
@@ -0,0 +1,68 @@
1
+
2
+ .sg-subsection
3
+ %h3.sg-subheading Paddles <span>paddles.sass</span>
4
+
5
+ .sg-subsection
6
+ .sg-onethird.pull
7
+ %h4 Default paddles
8
+ %p Paddles are commonly used in carousel or simple paging navigations. The default set contains simple inline links.
9
+ .sg-twothird.push
10
+ .well
11
+ %nav
12
+ %ul.paddles
13
+ %li
14
+ %a(href="#") &larr; Previous
15
+ %li
16
+ %a(href="#") Next &rarr;
17
+ %pre.prettyprint.html
18
+ = preserve do
19
+ :escaped
20
+ <nav>
21
+ <ul class="paddles">
22
+ <li> <a href="#">&larr; Previous</a> </li>
23
+ <li> <a href="#">Next &rarr;</a> </li>
24
+ </ul>
25
+ </nav>
26
+ %pre.prettyprint.haml.hidden
27
+ = preserve do
28
+ :escaped
29
+ %nav
30
+ %ul.paddles
31
+ %li
32
+ %a(href="#") &larr; Previous
33
+ %li
34
+ %a(href="#") Next &rarr;
35
+ .notification.important.fade.in
36
+ %p <strong>Note!</strong> Add <code>.paddles-center</code> or <code>.paddles-right</code> on the container to change the alignment
37
+
38
+ .sg-subsection
39
+ .sg-onethird.pull
40
+ %h4 Aligned paddles
41
+ %p To allow paddles to float on the sides of the container, apply the <code>.prev</code> and <code>.next</code> classes to the containing paddles <code>li</code> element.
42
+ .sg-twothird.push
43
+ .well
44
+ %nav
45
+ %ul.paddles
46
+ %li.prev
47
+ %a(href="#") &larr; Previous
48
+ %li.next
49
+ %a(href="#") Next &rarr;
50
+ %pre.prettyprint.html
51
+ = preserve do
52
+ :escaped
53
+ <nav>
54
+ <ul class="paddles">
55
+ <li class="prev"><a href="#">&larr; Previous</a> </li>
56
+ <li class="next"><a href="#">Next &rarr;</a> </li>
57
+ </ul>
58
+ </nav>
59
+ %pre.prettyprint.haml.hidden
60
+ = preserve do
61
+ :escaped
62
+ %nav
63
+ %ul.paddles
64
+ %li.prev
65
+ %a(href="#") &larr; Previous
66
+ %li.next
67
+ %a(href="#") Next &rarr;
68
+
@@ -0,0 +1,64 @@
1
+
2
+ .sg-subsection
3
+ %h3.sg-subheading Pagination <span>pagination.sass</span>
4
+ .sg-onethird.pull
5
+ %p Apply the <code>.pagination</code> class to the <code>ol</code> or <code>ul</code> element to represent pagination navigation.
6
+ .sg-twothird.push
7
+ .well
8
+ %nav
9
+ %ol.nav.pagination
10
+ %li.disabled
11
+ %a(href="#") &laquo;
12
+ %li
13
+ %a(href="#") 1
14
+ %li.active
15
+ %a(href="#") 2
16
+ %li
17
+ %a(href="#" rel="next") 3
18
+ %li.disabled
19
+ %a(href="#") &hellip;
20
+ %li
21
+ %a(href="#") 11
22
+ %li
23
+ %a(href="#") 12
24
+ %li
25
+ %a(href="#" rel="next") &raquo;
26
+
27
+ %pre.prettyprint.html
28
+ = preserve do
29
+ :escaped
30
+ <nav>
31
+ <ol class="nav pagination">
32
+ <li class="disabled"><a href="#">&laquo;</a></li>
33
+ <li><a href="#">1</a></li>
34
+ <li class="active"><a href="#">2</a></li>
35
+ <li><a href="#" rel="next">3</a></li>
36
+ <li class="disabled"><a href="#">&hellip;</a></li>
37
+ <li><a href="#">11</a></li>
38
+ <li><a href="#">12</a></li>
39
+ <li><a href="#">&raquo;</a></li>
40
+ </ol>
41
+ </nav>
42
+ %pre.prettyprint.haml.hidden
43
+ = preserve do
44
+ :escaped
45
+ %ol.nav.pagination
46
+ %li.disabled
47
+ %a(href="#") &laquo;
48
+ %li
49
+ %a(href="#") 1
50
+ %li.active
51
+ %a(href="#") 2
52
+ %li
53
+ %a(href="#" rel="next") 3
54
+ %li.disabled
55
+ %a(href="#") &hellip;
56
+ %li
57
+ %a(href="#") 11
58
+ %li
59
+ %a(href="#") 12
60
+ %li
61
+ %a(href="#" rel="next") &raquo;
62
+ .notification.important.fade.in
63
+ %p <strong>Note!</strong> Add <code>.pagination-center</code> or <code>.pagination-right</code> on the container to change the alignment
64
+
@@ -0,0 +1,33 @@
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>&lt;a rel="popover" data-placement="top" data-original-title="Top" data-content="..."&gt;Top&lt;/a&gt;</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>&lt;a rel="popover" data-placement="bottom" data-original-title="Bottom" data-content="..."&gt;Bottom&lt;/a&gt;</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>&lt;a rel="popover" data-placement="left" data-original-title="Left" data-content="..."&gt;Left&lt;/a&gt;</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>&lt;a rel="popover" data-placement="right" data-original-title="Right" data-content="..."&gt;Right&lt;/a&gt;</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
+
@@ -0,0 +1,72 @@
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 &gt; .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 &amp; 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
+
@@ -0,0 +1,241 @@
1
+
2
+ .sg-subsection
3
+ %h3.sg-subheading Tabs &amp; 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 &amp; 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
+