underoos 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (140) hide show
  1. data/Gemfile +5 -0
  2. data/Gemfile.lock +21 -7
  3. data/README.md +85 -10
  4. data/Rakefile +36 -1
  5. data/app/assets/javascripts/docs.js +6 -0
  6. data/app/assets/javascripts/styleguide.coffee +162 -0
  7. data/app/assets/javascripts/underoos.js +0 -1
  8. data/app/assets/stylesheets/base/_base.sass +14 -0
  9. data/app/assets/stylesheets/base/_buttons.sass +68 -0
  10. data/app/assets/stylesheets/base/_forms.sass +313 -24
  11. data/app/assets/stylesheets/base/_helpers.sass +27 -13
  12. data/app/assets/stylesheets/base/_normalize.sass +17 -9
  13. data/app/assets/stylesheets/base/_scaffold.sass +85 -0
  14. data/app/assets/stylesheets/base/_tables.sass +77 -0
  15. data/app/assets/stylesheets/base/_transitions.sass +10 -2
  16. data/app/assets/stylesheets/base/_typography.sass +183 -21
  17. data/app/assets/stylesheets/components/_accordions.sass +38 -0
  18. data/app/assets/stylesheets/components/_breadcrumbs.sass +19 -5
  19. data/app/assets/stylesheets/components/_button-groups.sass +43 -0
  20. data/app/assets/stylesheets/components/_carets.sass +13 -2
  21. data/app/assets/stylesheets/components/_carousels.sass +32 -0
  22. data/app/assets/stylesheets/components/_close.sass +15 -2
  23. data/app/assets/stylesheets/components/_components.sass +28 -0
  24. data/app/assets/stylesheets/components/_decals.sass +14 -0
  25. data/app/assets/stylesheets/components/_dropdowns.sass +88 -4
  26. data/app/assets/stylesheets/components/_media.sass +36 -0
  27. data/app/assets/stylesheets/components/_modals.sass +29 -0
  28. data/app/assets/stylesheets/components/_nav-lists.sass +20 -0
  29. data/app/assets/stylesheets/components/_navbars.sass +64 -3
  30. data/app/assets/stylesheets/components/_notifications.sass +112 -16
  31. data/app/assets/stylesheets/components/_paddles.sass +26 -0
  32. data/app/assets/stylesheets/components/_pagination.sass +23 -3
  33. data/app/assets/stylesheets/components/_pills.sass +80 -0
  34. data/app/assets/stylesheets/components/_popovers.sass +28 -0
  35. data/app/assets/stylesheets/components/_progress-bars.sass +33 -1
  36. data/app/assets/stylesheets/components/_tabs.sass +79 -0
  37. data/app/assets/stylesheets/components/_tooltips.sass +26 -0
  38. data/app/assets/stylesheets/components/_wells.sass +9 -0
  39. data/app/assets/stylesheets/layouts/_containers.sass +12 -0
  40. data/app/assets/stylesheets/layouts/_layouts.sass +5 -0
  41. data/app/assets/stylesheets/layouts/_print.sass +5 -1
  42. data/app/assets/stylesheets/layouts/_queries.sass +18 -15
  43. data/app/assets/stylesheets/layouts/_upgrades.sass +51 -40
  44. data/app/assets/stylesheets/mixins/_arrows.sass +13 -1
  45. data/app/assets/stylesheets/mixins/_clearfixins.sass +18 -4
  46. data/app/assets/stylesheets/mixins/_coloring.sass +10 -1
  47. data/app/assets/stylesheets/mixins/_columns.sass +16 -3
  48. data/app/assets/stylesheets/mixins/_conversions.sass +18 -6
  49. data/app/assets/stylesheets/mixins/_font-size.sass +16 -1
  50. data/app/assets/stylesheets/mixins/_image-tools.sass +12 -1
  51. data/app/assets/stylesheets/mixins/_inline-block.sass +21 -0
  52. data/app/assets/stylesheets/mixins/_ir.sass +14 -1
  53. data/app/assets/stylesheets/mixins/_mixins.sass +6 -0
  54. data/app/assets/stylesheets/mixins/_responsive.sass +16 -0
  55. data/app/assets/stylesheets/mixins/_sticky-footer.sass +52 -0
  56. data/app/assets/stylesheets/mixins/_tab-focus.sass +8 -1
  57. data/app/assets/stylesheets/mixins/_timing-equations.sass +34 -1
  58. data/app/assets/stylesheets/mixins/_visibility.sass +18 -5
  59. data/app/assets/stylesheets/polyfills/_box-shadow.sass +10 -0
  60. data/app/assets/stylesheets/polyfills/_box-sizing.sass +10 -1
  61. data/app/assets/stylesheets/polyfills/_functions.sass +14 -1
  62. data/app/assets/stylesheets/polyfills/_opacity.sass +10 -1
  63. data/app/assets/stylesheets/polyfills/_polyfills.sass +9 -2
  64. data/app/assets/stylesheets/polyfills/_transition.sass +10 -0
  65. data/app/assets/stylesheets/polyfills/_user-select.sass +10 -0
  66. data/app/assets/stylesheets/settings/_config.sass +26 -0
  67. data/app/assets/stylesheets/settings/_settings.sass +7 -0
  68. data/app/assets/stylesheets/settings/_theme.sass +189 -0
  69. data/app/assets/stylesheets/{styleguide.sass → underoos-docs.sass} +20 -116
  70. data/app/assets/stylesheets/underoos.sass +5 -16
  71. data/config.ru +1 -3
  72. data/features/generator.feature +13 -4
  73. data/lib/generators/underoos/assets_generator.rb +4 -2
  74. data/lib/underoos/version.rb +1 -1
  75. data/public/images.html +157 -0
  76. data/public/index.html +149 -0
  77. data/public/sherpa.css +306 -0
  78. data/public/styles.html +5374 -0
  79. data/script/javascripts +0 -1
  80. data/sherpa/config.yml +96 -0
  81. data/sherpa/layouts/images.mustache +17 -0
  82. data/sherpa/layouts/layout.mustache +77 -0
  83. data/sherpa/layouts/overview.mustache +19 -0
  84. data/sherpa/layouts/raw.mustache +25 -0
  85. data/sherpa/layouts/section.mustache +67 -0
  86. data/underoos.gemspec +0 -2
  87. data/vendor/assets/javascripts/bootstrap-alert.js +28 -32
  88. data/vendor/assets/javascripts/bootstrap-button.js +29 -33
  89. data/vendor/assets/javascripts/bootstrap-collapse.js +45 -26
  90. data/vendor/assets/javascripts/bootstrap-dropdown.js +18 -10
  91. data/vendor/assets/javascripts/bootstrap-modal.js +25 -17
  92. data/vendor/assets/javascripts/bootstrap-popover.js +13 -10
  93. data/vendor/assets/javascripts/bootstrap-tab.js +12 -7
  94. data/vendor/assets/javascripts/bootstrap-tooltip.js +40 -35
  95. data/vendor/assets/javascripts/bootstrap-transition.js +30 -20
  96. data/vendor/assets/javascripts/bootstrap-typeahead.js +24 -10
  97. data/vendor/assets/javascripts/sherpa.coffee +78 -0
  98. metadata +34 -75
  99. data/app/assets/javascripts/styleguide.js +0 -132
  100. data/app/assets/stylesheets/base/_elements.sass +0 -61
  101. data/app/assets/stylesheets/polyfills/_inline-block.sass +0 -8
  102. data/app/assets/stylesheets/themes/_default.sass +0 -119
  103. data/app/controllers/underoos/styleguides_controller.rb +0 -79
  104. data/app/views/shared/_upgrades.html.haml +0 -12
  105. data/app/views/underoos/styleguides/_assets.haml +0 -42
  106. data/app/views/underoos/styleguides/_components.haml +0 -42
  107. data/app/views/underoos/styleguides/_elements.haml +0 -242
  108. data/app/views/underoos/styleguides/_forms.haml +0 -305
  109. data/app/views/underoos/styleguides/_layouts.haml +0 -76
  110. data/app/views/underoos/styleguides/_palettes.haml +0 -18
  111. data/app/views/underoos/styleguides/_resources.haml +0 -27
  112. data/app/views/underoos/styleguides/_tables.haml +0 -124
  113. data/app/views/underoos/styleguides/_typography.haml +0 -284
  114. data/app/views/underoos/styleguides/_utilities.haml +0 -270
  115. data/app/views/underoos/styleguides/components/_accordions.haml +0 -83
  116. data/app/views/underoos/styleguides/components/_breadcrumbs.haml +0 -42
  117. data/app/views/underoos/styleguides/components/_button-groups.haml +0 -162
  118. data/app/views/underoos/styleguides/components/_carets.haml +0 -28
  119. data/app/views/underoos/styleguides/components/_close.haml +0 -20
  120. data/app/views/underoos/styleguides/components/_decals.haml +0 -40
  121. data/app/views/underoos/styleguides/components/_dropdowns.haml +0 -189
  122. data/app/views/underoos/styleguides/components/_media.haml +0 -78
  123. data/app/views/underoos/styleguides/components/_modals.haml +0 -42
  124. data/app/views/underoos/styleguides/components/_nav-lists.haml +0 -52
  125. data/app/views/underoos/styleguides/components/_navbars.haml +0 -144
  126. data/app/views/underoos/styleguides/components/_navs-showcase.haml +0 -27
  127. data/app/views/underoos/styleguides/components/_notifications.haml +0 -169
  128. data/app/views/underoos/styleguides/components/_paddles.haml +0 -68
  129. data/app/views/underoos/styleguides/components/_pagination.haml +0 -64
  130. data/app/views/underoos/styleguides/components/_popovers.haml +0 -33
  131. data/app/views/underoos/styleguides/components/_progress-bars.haml +0 -72
  132. data/app/views/underoos/styleguides/components/_tabs-pills.haml +0 -241
  133. data/app/views/underoos/styleguides/components/_tooltips.haml +0 -37
  134. data/app/views/underoos/styleguides/components/_wells.haml +0 -29
  135. data/app/views/underoos/styleguides/index.html.haml +0 -259
  136. data/app/views/underoos/styleguides/partials/_form-template.haml +0 -171
  137. data/app/views/underoos/styleguides/partials/_table-data.haml +0 -33
  138. data/app/views/underoos/styleguides/partials/_transitions.haml +0 -136
  139. data/config/routes.rb +0 -3
  140. data/vendor/assets/javascripts/bootstrap-scrollspy.js +0 -125
@@ -1,270 +0,0 @@
1
-
2
- #utils_helpers.sg-spy-landing
3
- .sg-subsection
4
- %h3.sg-subheading Helpers <span>helpers.sass</span>
5
- %table.box.vborder.banded.thead-decorate
6
- %thead
7
- %tr
8
- %th Class
9
- %th Usage
10
- %tfoot
11
- %tr
12
- %td(colspan="2") All helper classes (except <code>.pull-left|right</code>) are also available as mixins
13
- %tbody
14
- %tr
15
- %td <code>.clearfixer</code>
16
- %td The <a href="http://nicolasgallagher.com/micro-clearfix-hack/">micro clearfix</a> from Nicolas Gallagher
17
- %tr
18
- %td <code>.clearfix</code>
19
- %td The standard clearfix from <a href="http://compass-style.org/reference/compass/utilities/general/clearfix/#mixin-clearfix">Compass</a>, utilizing <code>overflow hidden</code>
20
- %tr
21
- %td <code>.ir</code>
22
- %td For use in image replacement, typically on links
23
- %tr
24
- %td <code>.hidden</code>
25
- %td The opposite of <code>shown</code>, elements are completely hidden from screen readers and browsers
26
- %tr
27
- %td <code>.shown</code>
28
- %td Reverse the effects of <code>hidden</code>
29
- %tr
30
- %td <code>.visuallyhidden</code>
31
- %td Only visually hidden, elements are still available to screen readers, use this class instead of <code>display:none</code>
32
- %tr
33
- %td <code>.visuallyshown</code>
34
- %td Reverse the effects of <code>.visuallyhidden</code>
35
- %tr
36
- %td <code>.invisible</code>
37
- %td Keeps elements in the DOM, but hidden from view and screen readers
38
- %tr
39
- %td <code>.base-column</code>
40
- %td For use by extension for <code>column</code> classes
41
- %tr
42
- %td <code>.base-column-right</code>
43
- %td For use by extension for <code>column</code> classes, floats elements to the right
44
- %tr
45
- %td <code>.base-row</code>
46
- %td For use by extension for <code>row</code> classes
47
- %tr
48
- %td <code>.pull-left</code>
49
- %td Floats an element to the left (<em>Gabe, your welcome</em>)
50
- %tr
51
- %td <code>.pull-right</code>
52
- %td Floats an element to the right (<em>may be renamed to: </em><code>.varela</code>)
53
- .notification.important.fade.in
54
- %p <strong>Pro Tip!</strong> When using <code>visuallyhidden</code> and <code>visuallyshown</code> with <code>box-shadow</code>, you'll need to add <code>clip:initial</code> to get the shadows to reappear
55
-
56
- #utils_transitions.sg-spy-landing
57
- .sg-subsection
58
- %h3.sg-subheading Transitions <span>transitions.sass</span>
59
- %table.box.vborder.banded.thead-decorate
60
- %thead
61
- %tr
62
- %th Class
63
- %th Usage
64
- %tbody
65
- %tr
66
- %td <code>.fade</code>
67
- %td Transitions an element to an <code>opacity</code> of <code>0</code>
68
- %tr
69
- %td <code>.fade.in</code>
70
- %td Transitions an element to an <code>opacity</code> of <code>1</code>
71
- %tr
72
- %td <code>.collapse</code>
73
- %td Transitions an element to a <code>height</code> of <code>0</code>
74
- %tr
75
- %td <code>.collapse.in</code>
76
- %td Transitions an element to a <code>height</code> of <code>auto</code>
77
-
78
- .sg-subsection
79
- %h3.sg-subheading Timing Equations <span>mixins/timing-equations.sass</span>
80
- %p Underoos comes packed with a number of cubic-bezier timing properties for use with <code>transition-timing-function</code>. The timing functions are based on the properties included with <a href="http://thoughtbot.com/bourbon/">Bourbon</a>, which are courtesy of <a href="github.com/jaukia/easie">jquery.easie</a>.
81
- .notification.important.fade.in
82
- %p <strong>Pro Tip!</strong> Hover over the table below to see the results of each cubic-bezier function.
83
- .sg-subsection
84
- = render :partial => 'underoos/styleguides/partials/transitions'
85
-
86
- #utils_mixins.sg-spy-landing
87
- .sg-subsection
88
- %h3.sg-subheading Mixins <span>mixins/*.sass</span>
89
- %table.box.vborder.banded.thead-decorate
90
- %thead
91
- %tr
92
- %th Mixin
93
- %th Parameters
94
- %th Usage
95
- %tbody
96
- %tr
97
- %td <code>+arrow_[north|south|east|west]</code>
98
- %td <code>$color:#000, $size:5px</code>
99
- %td Draws a directional arrow, typically used for pseudo elements
100
- %tr
101
- %td <code>+clearfixer</code>
102
- %td(style="color: #999;") <em>none</em>
103
- %td The <a href="http://nicolasgallagher.com/micro-clearfix-hack/">micro clearfix</a> from Nicolas Gallagher
104
- %tr
105
- %td <code>+clearfix</code>
106
- %td(style="color: #999;") <em>none</em>
107
- %td The standard clearfix from <a href="http://compass-style.org/reference/compass/utilities/general/clearfix/#mixin-clearfix">Compass</a>, utilizing <code>overflow hidden</code>
108
- %tr
109
- %td <code>+background-darken-border</code>
110
- %td <code>$color, $percentage:20%</code>
111
- %td Fill a background and stroke a border with a darkened percentage
112
- %tr
113
- %td <code>+font-size</code>
114
- %td <code>$target_px, $context:$context_px</code>
115
- %td Inject <code>font-size</code> for <code>px</code> and <code>rem</code>: <a href="http://snook.ca/archives/html_and_css/font-size-with-rem">more info</a>
116
- %tr
117
- %td <code>+sharpen-image</code>
118
- %td(style="color: #999;") <em>none</em>
119
- %td Sharpen an image due to up/down scaling: <a href="http://stitchcss.com/#sharpen_image">stitchcss</a>
120
- %tr
121
- %td <code>+high-quality-image</code>
122
- %td(style="color: #999;") <em>none</em>
123
- %td Improve rendering quality on an image: <a href="http://stitchcss.com/#high_quality_image">stitchcss</a>
124
- %tr
125
- %td <code>+low-quality-image</code>
126
- %td(style="color: #999;") <em>none</em>
127
- %td Decrease rendering quality in favor of speed: <a href="http://stitchcss.com/#low_quality_image">stitchcss</a>
128
- %tr
129
- %td <code>+ir</code>
130
- %td(style="color: #999;") <em>none</em>
131
- %td For use in image replacement, typically on links
132
- %tr
133
- %td <code>+hidden</code>
134
- %td(style="color: #999;") <em>none</em>
135
- %td The opposite of <code>shown</code>, elements are completely hidden from screen readers and browsers
136
- %tr
137
- %td <code>+shown</code>
138
- %td(style="color: #999;") <em>none</em>
139
- %td Reverse the effects of <code>hidden</code>
140
- %tr
141
- %td <code>+visuallyhidden</code>
142
- %td(style="color: #999;") <em>none</em>
143
- %td Only visually hidden, elements are still available to screen readers, use this instead of <code>display:none</code>
144
- %tr
145
- %td <code>+visuallyshown</code>
146
- %td(style="color: #999;") <em>none</em>
147
- %td Reverse the effects of <code>visuallyhidden</code>
148
- %tr
149
- %td <code>+invisible</code>
150
- %td(style="color: #999;") <em>none</em>
151
- %td Keeps elements in the DOM, but hidden from view and screen readers
152
- %tr
153
- %td <code>+base-column</code>
154
- %td(style="color: #999;") <em>none</em>
155
- %td For use by <code>column</code> classes
156
- %tr
157
- %td <code>+base-column-right</code>
158
- %td(style="color: #999;") <em>none</em>
159
- %td For use by <code>column</code> classes, floats elements to the right
160
- %tr
161
- %td <code>+base-row</code>
162
- %td(style="color: #999;") <em>none</em>
163
- %td For use by <code>row</code> classes
164
- %tr
165
- %td <code>+tab-focus</code>
166
- %td(style="color: #999;") <em>none</em>
167
- %td Resets default outlines for webkit on focusable elements
168
-
169
- .notification.important.fade.in
170
- %p <strong>Pro Tip!</strong> See the Helpers section for classes using these mixins which can be used for extension
171
-
172
- #utils_functions.sg-spy-landing
173
- .sg-subsection
174
- %h3.sg-subheading Functions <span>mixins/conversions.sass</span>
175
- %table.box.vborder.banded.thead-decorate
176
- %thead
177
- %tr
178
- %th Function
179
- %th Parameters
180
- %th Usage
181
- %tfoot
182
- %tr
183
- %td(colspan="3") All functions return a value
184
- %tbody
185
- %tr
186
- %td <code>to_em</code>
187
- %td <code>$target_px, $context:$base_font_size</code>
188
- %td Convert target <code>px</code> value to <code>em</code> in context constraints of the base font size
189
- %tr
190
- %td <code>to_rem</code>
191
- %td <code>$target_px, $context:$context_px</code>
192
- %td Convert target <code>px</code> value to <code>rem</code> in context constraints of the user's base font size
193
- %tr
194
- %td <code>to_percent</code>
195
- %td <code>$target_px, $context:$base_width</code>
196
- %td Convert target <code>px</code> value to <code>percentage</code> in context constraints of the container's width
197
- %tr
198
- %td <code>vertical_pixel</code>
199
- %td <code>$target_px</code>
200
- %td Returns the vertical rhythm in <code>px</code> calculated from the <code>$base_vertical</code> setting
201
- %tr
202
- %td <code>vertical_em</code>
203
- %td <code>$target_px</code>
204
- %td Returns the vertical rhythm in <code>em</code> calculated from the <code>$base_vertical</code> setting
205
- %tr
206
- %td <code>vertical_percent</code>
207
- %td <code>$target_px</code>
208
- %td Returns the vertical rhythm in <code>percent</code> calculated from the <code>$base_vertical</code> setting
209
- .notification.warning.fade.in
210
- %p <strong>Warning!</strong> Define <code>$context_px</code>, <code>$base_font_size</code>, <code>$base_width</code> and <code>$base_vertical</code> prior to the functions being loaded.
211
- .notification.important.fade.in
212
- %p <strong>Important!</strong> When calculating vertical rhythm, always pass in what the expected pixel value is for the element.
213
-
214
- #utils_polyfill.sg-spy-landing
215
- .sg-subsection
216
- %h3.sg-subheading Polyfills <span>polyfill/*.sass</span>
217
- %p Most projects benefit greatly from using a library like <a href="http://compass-style.org/">Compass</a> or <a href="http://thoughtbot.com/bourbon/">Bourbon</a>. Underoos is not designed to replace these libraries, but rather sit on top of them. There may be times when using one of these libraries isn't an option, so Underoos provides a few simple polyfill mixins in it's place.
218
- %table.box.vborder.banded.thead-decorate
219
- %thead
220
- %tr
221
- %th Mixin
222
- %th Parameters
223
- %th Usage
224
- %tfoot
225
- %tr
226
- %td(colspan="3") The mixins above provided by either Compass, Bourbon or the polyfills are all interchangeable to allow Underoos to be as agnostic as possible.
227
- %tbody
228
- %tr
229
- %td <code>+border-radius</code>
230
- %td <code>$radii</code>
231
- %td Draws rounded corners on an element (also includes mixins for individual corners and sides)
232
- %tr
233
- %td <code>+box-shadow</code>
234
- %td <code>$shadow-1:none, $shadow-n:false, ...</code>
235
- %td Draws an outer or inset shadow around an element (supports up to 9 shadow parameters)
236
- %tr
237
- %td <code>+box-sizing</code>
238
- %td <code>$type:border-box</code>
239
- %td Changes the box model used for calculating an elements width and height
240
- %tr
241
- %td <code>+box-sizing</code>
242
- %td <code>$type:border-box</code>
243
- %td Changes the box model used for calculating an elements width and height
244
- %tr
245
- %td <code>+inline-block</code>
246
- %td(style="color: #999;") <em>none</em>
247
- %td Adds support for <code>display:inline-block</code> down to IE7
248
- %tr
249
- %td <code>+opacity</code>
250
- %td <code>$alpha:1</code>
251
- %td Provides cross browser opacity, values are between<code>0-1</code>
252
- %tr
253
- %td <code>+transition</code>
254
- %td <code>$transition-1:all 0.25s, $transition-n:false, ...</code>
255
- %td Adds vendor prefixes for transitions (supports up to 9 transition parameters)
256
- %tr
257
- %td <code>+user-select</code>
258
- %td <code>$type:none</code>
259
- %td Define whether an element is selectable
260
- %tr
261
- %td <code>combine</code>
262
- %td <code>$value-1:none, $value-n:false, ...</code>
263
- %td A function used to <em>combine</em> and normalize multiple parameters for a polyfill (supports up to 9 values)
264
- .notification.important.fade.in
265
- %p <strong>Pro Tip!</strong> To include all polyfills in a project: <code>@import polyfills/polyfills</code>
266
- .notification.warning.fade.in
267
- %p <strong>Warning!</strong> The <code>combine</code> function for mixin values only accepts 9 values, this is inline with the Bourbon library (Compass supports 10!)
268
- .notification.danger.fade.in
269
- %p <strong>Danger!</strong> If a project uses Compass or Bourbon, make sure not to import these polyfills
270
-
@@ -1,83 +0,0 @@
1
-
2
- .sg-subsection
3
- %h3.sg-subheading Accordions <span>accordions.sass</span>
4
- %p(style="width:67%;") The accordion navigation system requires <a href="http://twitter.github.com/bootstrap/javascript.html#collapse">Bootstrap's Collapse plugin</a>. They're used typically in navigation systems to toggle and reveal sections of content.
5
- %br
6
- %p(style="width:67%;") Accordions support multiple open sections or just single sections based on the <code>data</code> attributes set within the links.
7
-
8
- .sg-subsection
9
- %nav
10
- %ul#accordion_example
11
- %li.accordion-group
12
- %a.accordion-toggle(href="#collapse_1" data-toggle="collapse" data-parent="#accordion_example") Accordion Group 1
13
- %section.collapse#collapse_1
14
- %article.accordion-inner
15
- %p=@lorem
16
- %li.accordion-group
17
- %a.accordion-toggle(href="#collapse_2" data-toggle="collapse" data-parent="#accordion_example") Accordion Group 2
18
- %section.collapse#collapse_2
19
- %article.accordion-inner
20
- %p=@lorem
21
- %li.accordion-group
22
- %a.accordion-toggle(href="#collapse_3" data-toggle="collapse" data-parent="#accordion_example") Accordion Group 3
23
- %section.collapse#collapse_3
24
- %article.accordion-inner
25
- %p=@lorem
26
-
27
-
28
- .sg-subsection
29
- %pre.prettyprint.html
30
- = preserve do
31
- :escaped
32
- <nav>
33
- <ul id="accordion_example">
34
- <li class="accordion-group">
35
- <a class="accordion-toggle" data-parent="#accordion_example" data-toggle="collapse" href="#collapse_1">Accordion Group 1</a>
36
- <section class="collapse" id="collapse_1"">
37
- <article class="accordion-inner">
38
- <p>...</p>
39
- </article>
40
- </section>
41
- </li>
42
- <li class="accordion-group">
43
- <a class="accordion-toggle" data-parent="#accordion_example" data-toggle="collapse" href="#collapse_2">Accordion Group 2</a>
44
- <section class="collapse" id="collapse_2"">
45
- <article class="accordion-inner">
46
- <p>...</p>
47
- </article>
48
- </section>
49
- </li>
50
- <li class="accordion-group">
51
- <a class="accordion-toggle" data-parent="#accordion_example" data-toggle="collapse" href="#collapse_3">Accordion Group 3</a>
52
- <section class="collapse" id="collapse_3"">
53
- <article class="accordion-inner">
54
- <p>...</p>
55
- </article>
56
- </section>
57
- </li>
58
- </ul>
59
- </nav>
60
- %pre.prettyprint.haml.hidden
61
- = preserve do
62
- :escaped
63
- %nav
64
- %ul#accordion_example
65
- %li.accordion-group
66
- %a.accordion-toggle(href="#collapse_1" data-toggle="collapse" data-parent="#accordion_example") Accordion Group 1
67
- %section.collapse#collapse_1
68
- %article.accordion-inner
69
- %p ...
70
- %li.accordion-group
71
- %a.accordion-toggle(href="#collapse_2" data-toggle="collapse" data-parent="#accordion_example") Accordion Group 2
72
- %section.collapse#collapse_2
73
- %article.accordion-inner
74
- %p ...
75
- %li.accordion-group
76
- %a.accordion-toggle(href="#collapse_3" data-toggle="collapse" data-parent="#accordion_example") Accordion Group 3
77
- %section.collapse#collapse_3
78
- %article.accordion-inner
79
- %p ...
80
-
81
- .notification.important.fade.in
82
- %p <strong>Note!</strong> Remove the <code>data-parent</code> attribute from the links to have multiple sections open at the same time
83
-
@@ -1,42 +0,0 @@
1
-
2
- .sg-subsection
3
- %h3.sg-subheading Breadcrumbs <span>breadcrumbs.sass</span>
4
- .sg-onethird.pull
5
- %p Apply the <code>.breadcrumb</code> class to the <code>ol</code> or <code>ul</code> element to provide linkable references to nested sections within the application.
6
- .sg-twothird.push
7
- .well
8
- %nav
9
- %ol.nav.breadcrumb
10
- %li
11
- %a(href="#") Level 1
12
- %li
13
- %a(href="#") Level 2
14
- %li
15
- %a(href="#") Level 3
16
- %li.active
17
- %a(href="#") Active Level
18
- %pre.prettyprint.html
19
- = preserve do
20
- :escaped
21
- <nav>
22
- <ol class="nav breadcrumb">
23
- <li><a href="#">Level 1</a></li>
24
- <li><a href="#">Level 2</a></li>
25
- <li><a href="#">Level 3</a></li>
26
- <li class="active"><a href="#">Active</a></li>
27
- </ol>
28
- </nav>
29
- %pre.prettyprint.haml.hidden
30
- = preserve do
31
- :escaped
32
- %nav
33
- %ol.nav.breadcrumb
34
- %li
35
- %a(href="#") Level 1
36
- %li
37
- %a(href="#") Level 2
38
- %li
39
- %a(href="#") Level 3
40
- %li.active
41
- %a(href="#") Active
42
-
@@ -1,162 +0,0 @@
1
-
2
- .sg-subsection
3
- %h3.sg-subheading Button Groups <span>button-groups.sass</span>
4
- .sg-subsection
5
- .sg-onethird.pull
6
- %h4 Button group
7
- %p Button groups are used to join multiple buttons together as one composite component.
8
- .sg-twothird.push
9
- .well
10
- %nav.button-group(data-toggle="buttons-checkbox")
11
- %a.btn.primary(href="#") Left
12
- %a.btn.primary.active(href="#") Middle 1
13
- %a.btn.primary(href="#") Middle 2
14
- %a.btn.primary(href="#") Right
15
- %pre.prettyprint.html
16
- = preserve do
17
- :escaped
18
- <nav class="button-group">
19
- <a class="btn" href="#">Left</a>
20
- <a class="btn active" href="#">Middle 1</a>
21
- <a class="btn" href="#">Middle 2</a>
22
- <a class="btn" href="#">Right</a>
23
- </nav>
24
- %pre.prettyprint.haml.hidden
25
- = preserve do
26
- :escaped
27
- %nav.button-group
28
- %a.btn(href="#") Left
29
- %a.btn.active(href="#") Middle 1
30
- %a.btn(href="#") Middle 2
31
- %a.btn(href="#") Right
32
-
33
- .sg-subsection
34
- .sg-onethird.pull
35
- %h4 Button toolbar
36
- %p Combine multiple <code>.button-group</code> elements under a <code>.button-toolbar</code> container to form navigation system.
37
- .sg-twothird.push
38
- .well
39
- %section.button-toolbar
40
- %nav.button-group
41
- %a.btn(href="#") 1
42
- %a.btn(href="#") 2
43
- %a.btn(href="#") 3
44
- %nav.button-group
45
- %a.btn(href="#") 4
46
- %a.btn.active(href="#") 5
47
- %a.btn(href="#") 6
48
- %nav.button-group
49
- %a.btn(href="#") 7
50
- %pre.prettyprint.html
51
- = preserve do
52
- :escaped
53
- <section class="button-toolbar">
54
- <nav class="button-group">
55
- ...
56
- </nav>
57
- <nav class="button-group">
58
- ...
59
- </nav>
60
- <nav class="button-group">
61
- ...
62
- </nav>
63
- </section>
64
- %pre.prettyprint.haml.hidden
65
- = preserve do
66
- :escaped
67
- %section.button-toolbar
68
- %nav.button-group
69
- ...
70
- %nav.button-group
71
- ...
72
- %nav.button-group
73
- ...
74
- .notification.important.fade.in
75
- %p <strong>Note!</strong> When creating custom buttons, add the necessary overrides within <code>_button-groups.sass</code>
76
-
77
- .sg-subsection
78
- .sg-onethird.pull
79
- %h4 Button states
80
- %p Control a button state or entire button groups state using Bootstrap's <a href="http://twitter.github.com/bootstrap/javascript.html#buttons">button plugin</a>.
81
- %br
82
- %p A stateful button can be used for tasks like submitting a form. It disables a button and waits for a callback to either <code>reset</code> or populate the button's text with the value found in the attribute for <code>data-complete-text</code>.
83
- %br
84
- %pre.prettyprint
85
- = preserve do
86
- :escaped
87
- $('#btn').on('click', function(e) {
88
- var btn = $(this)
89
- btn.button('loading')
90
- setTimeout(function() {
91
- // set text to data-complete-text
92
- btn.button('complete')
93
- // reset text to original value
94
- // btn.button('reset')
95
- }, 3000)
96
- })
97
- .sg-twothird.push
98
- %table.box.banded.thead-decorate
99
- %thead
100
- %tr
101
- %th State
102
- %th Usage
103
- %tbody
104
- %tr
105
- %td
106
- %button.btn.primary(data-toggle="button") Toggle
107
- %td Toggles active state on a single button
108
- %tr
109
- %td
110
- %nav.button-group(data-toggle="buttons-checkbox")
111
- %a.btn.primary(href="#") 1
112
- %a.btn.primary(href="#") 2
113
- %a.btn.primary(href="#") 3
114
- %td Treats button group states similar to checkboxes
115
- %tr
116
- %td
117
- %nav.button-group(data-toggle="buttons-radio")
118
- %a.btn.primary(href="#") 4
119
- %a.btn.primary(href="#") 5
120
- %a.btn.primary(href="#") 6
121
- %td Treats button group states similar to radio buttons
122
- %tr
123
- %td
124
- %button#loader_btn.btn.primary(data-loading-text="sending..." data-complete-text="Sent") Send
125
- %td Disables a button as information is being sent, resets on callback
126
-
127
- %pre.prettyprint.html
128
- = preserve do
129
- :escaped
130
- <!-- Toggle -->
131
- <button class="btn" data-toggle="button">Toggle</button>
132
-
133
- <!-- Checkbox type button group -->
134
- <nav class="button-group" data-toggle="buttons-checkbox">
135
- ...
136
- </nav>
137
-
138
- <!-- Radio type button group -->
139
- <nav class="button-group" data-toggle="buttons-radio">
140
- ...
141
- </nav>
142
-
143
- <!-- Stateful -->
144
- <button data-loading-text="sending..." data-complete-text="Sent">Send</button>
145
-
146
- %pre.prettyprint.haml.hidden
147
- = preserve do
148
- :escaped
149
- <!-- Toggle -->
150
- %button.btn(data-toggle="button") Toggle
151
-
152
- <!-- Checkbox type button group -->
153
- %nav.button-group(data-toggle="buttons-checkbox")
154
- ...
155
-
156
- <!-- Radio type button group -->
157
- %nav.button-group(data-toggle="buttons-radio")
158
- ...
159
-
160
- <!-- Stateful -->
161
- %button(data-loading-text="sending..." data-complete-text="Sent") Send
162
-