bootstrap_leather 0.9.4 → 0.10.4

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.
Files changed (174) hide show
  1. checksums.yaml +4 -4
  2. data/.rspec +1 -0
  3. data/.rubocop.yml +23 -0
  4. data/.rubocop_todo.yml +12 -0
  5. data/.ruby-gemset +1 -1
  6. data/.ruby-version +1 -1
  7. data/.travis.yml +5 -0
  8. data/Gemfile +40 -7
  9. data/LICENSE.txt +1 -1
  10. data/README.md +260 -0
  11. data/Rakefile +35 -20
  12. data/VERSION +1 -1
  13. data/app/helpers/bootstrap_leather/alerts_helper.rb +36 -0
  14. data/app/helpers/bootstrap_leather/application_helper.rb +21 -0
  15. data/app/helpers/bootstrap_leather/badges_helper.rb +21 -0
  16. data/app/helpers/bootstrap_leather/carousels_helper.rb +32 -0
  17. data/app/helpers/bootstrap_leather/foot_helper.rb +14 -0
  18. data/app/helpers/bootstrap_leather/grid_helper.rb +10 -0
  19. data/app/helpers/bootstrap_leather/head_helper.rb +67 -0
  20. data/app/helpers/bootstrap_leather/hero_unit_helper.rb +14 -0
  21. data/app/helpers/bootstrap_leather/icons_helper.rb +33 -0
  22. data/app/helpers/bootstrap_leather/modals_helper.rb +20 -0
  23. data/app/helpers/bootstrap_leather/navigation_helper.rb +71 -0
  24. data/app/helpers/bootstrap_leather/tabs_helper.rb +28 -0
  25. data/app/helpers/bootstrap_leather/thumbnails_helper.rb +13 -0
  26. data/app/helpers/bootstrap_leather/typography_helper.rb +38 -0
  27. data/app/helpers/bootstrap_leather/widgets_helper.rb +29 -0
  28. data/app/views/bootstrap_leather/{_alert.html.haml → alerts/_alert.html.haml} +1 -1
  29. data/app/views/bootstrap_leather/{_alert_flash_messages.html.haml → alerts/_alert_flash_messages.html.haml} +0 -0
  30. data/app/views/bootstrap_leather/{_badge.html.haml → badges/_badge.html.haml} +1 -1
  31. data/app/views/bootstrap_leather/badges/_badge_to.html.haml +3 -0
  32. data/app/views/bootstrap_leather/{_carousel.html.haml → carousels/_carousel.html.haml} +0 -0
  33. data/app/views/bootstrap_leather/{_carousel_with_thumbnails.html.haml → carousels/_carousel_with_thumbnails.html.haml} +0 -0
  34. data/app/views/bootstrap_leather/{_footer_javascript.html.haml → foot/_footer_javascript.html.haml} +0 -0
  35. data/app/views/bootstrap_leather/{_head_css.html.haml → head/_head_css.html.haml} +0 -0
  36. data/app/views/bootstrap_leather/{_hero_unit.html.haml → hero_unit/_hero_unit.html.haml} +0 -0
  37. data/app/views/bootstrap_leather/{_icon.html.haml → icons/_icon.html.haml} +0 -0
  38. data/app/views/bootstrap_leather/{_icon_button_to.html.haml → icons/_icon_button_to.html.haml} +0 -0
  39. data/app/views/bootstrap_leather/{_icon_link_to.html.haml → icons/_icon_link_to.html.haml} +0 -0
  40. data/app/views/bootstrap_leather/{_modal.html.haml → modals/_modal.html.haml} +2 -2
  41. data/app/views/bootstrap_leather/navigation/_dropdown_nav_item.html.haml +6 -0
  42. data/app/views/bootstrap_leather/navigation/_hamburger_menu.html.haml +6 -0
  43. data/app/views/bootstrap_leather/{_logo_and_title.html.haml → navigation/_logo_and_title.html.haml} +0 -0
  44. data/app/views/bootstrap_leather/{_nav_heading.html.haml → navigation/_nav_heading.html.haml} +0 -0
  45. data/app/views/bootstrap_leather/{_nav_item.html.haml → navigation/_nav_item.html.haml} +0 -0
  46. data/app/views/bootstrap_leather/{_nav_list.html.haml → navigation/_nav_list.html.haml} +0 -0
  47. data/app/views/bootstrap_leather/navigation/_navbar.html.haml +14 -0
  48. data/app/views/bootstrap_leather/navigation/_navbar_contents.html.haml +5 -0
  49. data/app/views/bootstrap_leather/tabs/_tabs.html.haml +10 -0
  50. data/app/views/bootstrap_leather/{_thumbnail.html.haml → thumbnails/_thumbnail.html.haml} +0 -0
  51. data/app/views/bootstrap_leather/{_definition_list.html.haml → typography/_dl.html.haml} +0 -0
  52. data/app/views/bootstrap_leather/{_page_header.html.haml → typography/_page_header.html.haml} +1 -1
  53. data/app/views/bootstrap_leather/widgets/_widgets.html.haml +10 -0
  54. data/bin/rails +15 -0
  55. data/bootstrap_leather.gemspec +219 -57
  56. data/config/locales/en.yml +9 -0
  57. data/lib/bootstrap_leather/configuration.rb +16 -12
  58. data/lib/bootstrap_leather/engine.rb +19 -4
  59. data/lib/bootstrap_leather/localization.rb +20 -18
  60. data/lib/bootstrap_leather/version.rb +4 -1
  61. data/lib/bootstrap_leather.rb +6 -2
  62. data/lib/generators/bootstrap_leather/install/install_generator.rb +21 -19
  63. data/lib/generators/bootstrap_leather/install/templates/initializer.rb +3 -1
  64. data/lib/generators/bootstrap_leather/utils.rb +13 -4
  65. data/lib/templates/erb/scaffold/_form.html.erb +11 -0
  66. data/lib/templates/erb/scaffold/edit.html.erb +9 -0
  67. data/lib/templates/erb/scaffold/index.html.erb +29 -0
  68. data/lib/templates/erb/scaffold/new.html.erb +7 -0
  69. data/lib/templates/erb/scaffold/show.html.erb +12 -0
  70. data/lib/templates/haml/scaffold/_form.html.haml +10 -0
  71. data/lib/templates/haml/scaffold/edit.html.haml +8 -0
  72. data/lib/templates/haml/scaffold/index.html.haml +21 -0
  73. data/lib/templates/haml/scaffold/new.html.haml +6 -0
  74. data/lib/templates/haml/scaffold/show.html.haml +10 -0
  75. data/spec/dummy/Rakefile +9 -0
  76. data/spec/dummy/app/assets/images/.keep +0 -0
  77. data/spec/dummy/app/assets/javascripts/application.js +16 -0
  78. data/spec/dummy/app/assets/stylesheets/application.scss +19 -0
  79. data/spec/dummy/app/assets/stylesheets/bootstrap-everything.scss +54 -0
  80. data/spec/dummy/app/controllers/application_controller.rb +6 -0
  81. data/spec/dummy/app/controllers/concerns/.keep +0 -0
  82. data/spec/dummy/app/controllers/doo_dads_controller.rb +58 -0
  83. data/spec/dummy/app/controllers/erbits_controller.rb +58 -0
  84. data/spec/dummy/app/controllers/whatzits_controller.rb +58 -0
  85. data/spec/dummy/app/helpers/application_helper.rb +4 -0
  86. data/spec/dummy/app/mailers/application_mailer.rb +6 -0
  87. data/spec/dummy/app/models/application_record.rb +5 -0
  88. data/spec/dummy/app/models/concerns/.keep +0 -0
  89. data/spec/dummy/app/models/doo_dad.rb +3 -0
  90. data/spec/dummy/app/models/erbit.rb +2 -0
  91. data/spec/dummy/app/models/whatzit.rb +2 -0
  92. data/spec/dummy/app/views/doo_dads/_form.html.haml +16 -0
  93. data/spec/dummy/app/views/doo_dads/edit.html.haml +7 -0
  94. data/spec/dummy/app/views/doo_dads/index.html.haml +23 -0
  95. data/spec/dummy/app/views/doo_dads/new.html.haml +5 -0
  96. data/spec/dummy/app/views/doo_dads/show.html.haml +12 -0
  97. data/spec/dummy/app/views/erbits/_form.html.erb +5 -0
  98. data/spec/dummy/app/views/erbits/edit.html.erb +9 -0
  99. data/spec/dummy/app/views/erbits/index.html.erb +27 -0
  100. data/spec/dummy/app/views/erbits/new.html.erb +7 -0
  101. data/spec/dummy/app/views/erbits/show.html.erb +12 -0
  102. data/spec/dummy/app/views/layouts/application.html.haml +22 -0
  103. data/spec/dummy/app/views/pages/index.html.haml +1 -0
  104. data/spec/dummy/app/views/pages/style_guide.html.haml +801 -0
  105. data/spec/dummy/app/views/whatzits/_form.html.haml +4 -0
  106. data/spec/dummy/app/views/whatzits/edit.html.haml +8 -0
  107. data/spec/dummy/app/views/whatzits/index.html.haml +19 -0
  108. data/spec/dummy/app/views/whatzits/new.html.haml +6 -0
  109. data/spec/dummy/app/views/whatzits/show.html.haml +10 -0
  110. data/spec/dummy/bin/bundle +5 -0
  111. data/spec/dummy/bin/rails +6 -0
  112. data/spec/dummy/bin/rake +6 -0
  113. data/spec/dummy/bin/setup +36 -0
  114. data/spec/dummy/bin/update +31 -0
  115. data/spec/dummy/config/application.rb +36 -0
  116. data/spec/dummy/config/boot.rb +7 -0
  117. data/spec/dummy/config/cable.yml +9 -0
  118. data/spec/dummy/config/database.yml +25 -0
  119. data/spec/dummy/config/environment.rb +7 -0
  120. data/spec/dummy/config/environments/development.rb +57 -0
  121. data/spec/dummy/config/environments/test.rb +45 -0
  122. data/spec/dummy/config/initializers/application_controller_renderer.rb +7 -0
  123. data/spec/dummy/config/initializers/assets.rb +14 -0
  124. data/spec/dummy/config/initializers/backtrace_silencers.rb +10 -0
  125. data/spec/dummy/config/initializers/bootstrap_leather.rb +9 -0
  126. data/spec/dummy/config/initializers/cookies_serializer.rb +7 -0
  127. data/spec/dummy/config/initializers/filter_parameter_logging.rb +6 -0
  128. data/spec/dummy/config/initializers/high_voltage.rb +5 -0
  129. data/spec/dummy/config/initializers/inflections.rb +17 -0
  130. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  131. data/spec/dummy/config/initializers/new_framework_defaults.rb +29 -0
  132. data/spec/dummy/config/initializers/session_store.rb +5 -0
  133. data/spec/dummy/config/initializers/wrap_parameters.rb +17 -0
  134. data/spec/dummy/config/locales/en.yml +23 -0
  135. data/spec/dummy/config/puma.rb +49 -0
  136. data/spec/dummy/config/routes.rb +8 -0
  137. data/spec/dummy/config/secrets.yml +22 -0
  138. data/spec/dummy/config/spring.rb +8 -0
  139. data/spec/dummy/config.ru +7 -0
  140. data/spec/dummy/db/migrate/20170407151055_create_doo_dads.rb +10 -0
  141. data/spec/dummy/db/migrate/20170408145839_create_whatzits.rb +10 -0
  142. data/spec/dummy/db/migrate/20170408161201_create_erbits.rb +10 -0
  143. data/spec/dummy/db/schema.rb +36 -0
  144. data/spec/dummy/db/seeds.rb +7 -0
  145. data/spec/dummy/db/test.sqlite3 +0 -0
  146. data/spec/factories/doo_dad.rb +6 -0
  147. data/spec/factories/erbit.rb +6 -0
  148. data/spec/factories/whatzit.rb +6 -0
  149. data/spec/helpers/bootstrap_leather/alerts_helper_spec.rb +62 -0
  150. data/spec/helpers/bootstrap_leather/badges_helper_spec.rb +41 -0
  151. data/spec/helpers/bootstrap_leather/carousels_helper_spec.rb +44 -0
  152. data/spec/helpers/bootstrap_leather/foot_helper_spec.rb +20 -0
  153. data/spec/helpers/bootstrap_leather/grid_helper_spec.rb +10 -0
  154. data/spec/helpers/bootstrap_leather/head_helper_spec.rb +82 -0
  155. data/spec/helpers/bootstrap_leather/hero_unit_helper_spec.rb +20 -0
  156. data/spec/helpers/bootstrap_leather/icon_helper_spec.rb +48 -0
  157. data/spec/helpers/bootstrap_leather/modals_helper_spec.rb +22 -0
  158. data/spec/helpers/bootstrap_leather/navigation_helper_spec.rb +110 -0
  159. data/spec/helpers/bootstrap_leather/tabs_helper_spec.rb +39 -0
  160. data/spec/helpers/bootstrap_leather/thumbnails_helper_spec.rb +20 -0
  161. data/spec/helpers/bootstrap_leather/typography_helper_spec.rb +43 -0
  162. data/spec/helpers/bootstrap_leather/widgets_helper_spec.rb +22 -0
  163. data/spec/rails_helper.rb +88 -0
  164. data/spec/spec_helper.rb +102 -0
  165. metadata +360 -44
  166. data/.document +0 -5
  167. data/README.rdoc +0 -194
  168. data/app/helpers/bootstrap_leather_helper.rb +0 -232
  169. data/app/views/bootstrap_leather/_badge_to.html.haml +0 -4
  170. data/app/views/bootstrap_leather/_dropdown_nav_item.html.haml +0 -11
  171. data/app/views/bootstrap_leather/_navbar.html.haml +0 -39
  172. data/app/views/bootstrap_leather/_tabs.html.haml +0 -10
  173. data/app/views/bootstrap_leather/_widgets.html.haml +0 -9
  174. data/lib/bootstrap_leather/railtie.rb +0 -9
@@ -0,0 +1,801 @@
1
+ - add_title 'Style Guide'
2
+ / Buttons=================================================
3
+ .page-header
4
+ .row
5
+ .col-lg-12
6
+ %h2#buttons Buttons
7
+ .row
8
+ .col-lg-7
9
+ %p.bs-component
10
+ %a.btn.btn-default{href: '#'} Default
11
+ %a.btn.btn-primary{href: '#'} Primary
12
+ %a.btn.btn-info{href: '#'} Info
13
+ %a.btn.btn-success{href: '#'} Success
14
+ %a.btn.btn-warning{href: '#'} Warning
15
+ %a.btn.btn-danger{href: '#'} Danger
16
+ %p.bs-component
17
+ %a.btn.btn-default.disabled{href: '#'} Default
18
+ %a.btn.btn-primary.disabled{href: '#'} Primary
19
+ %a.btn.btn-info.disabled{href: '#'} Info
20
+ %a.btn.btn-success.disabled{href: '#'} Success
21
+ %a.btn.btn-warning.disabled{href: '#'} Warning
22
+ %a.btn.btn-danger.disabled{href: '#'} Danger
23
+ %div{style: 'margin-bottom: 15px;'}
24
+ .btn-toolbar.bs-component{style: 'margin: 0;'}
25
+ .btn-group
26
+ %a.btn.btn-default{href: '#'} Default
27
+ %a.btn.btn-default.dropdown-toggle{'data-toggle' => 'dropdown', href: '#'}
28
+ %span.caret
29
+ %ul.dropdown-menu
30
+ %li
31
+ %a{href: '#'} Action
32
+ %li
33
+ %a{href: '#'} Another action
34
+ %li
35
+ %a{href: '#'} Something else here
36
+ %li.divider
37
+ %li
38
+ %a{href: '#'} Separated link
39
+ .btn-group
40
+ %a.btn.btn-primary{href: '#'} Primary
41
+ %a.btn.btn-primary.dropdown-toggle{'data-toggle' => 'dropdown', href: '#'}
42
+ %span.caret
43
+ %ul.dropdown-menu
44
+ %li
45
+ %a{href: '#'} Action
46
+ %li
47
+ %a{href: '#'} Another action
48
+ %li
49
+ %a{href: '#'} Something else here
50
+ %li.divider
51
+ %li
52
+ %a{href: '#'} Separated link
53
+ .btn-group
54
+ %a.btn.btn-info{href: '#'} Info
55
+ %a.btn.btn-info.dropdown-toggle{'data-toggle' => 'dropdown', href: '#'}
56
+ %span.caret
57
+ %ul.dropdown-menu
58
+ %li
59
+ %a{href: '#'} Action
60
+ %li
61
+ %a{href: '#'} Another action
62
+ %li
63
+ %a{href: '#'} Something else here
64
+ %li.divider
65
+ %li
66
+ %a{href: '#'} Separated link
67
+ .btn-group
68
+ %a.btn.btn-success{href: '#'} Success
69
+ %a.btn.btn-success.dropdown-toggle{'data-toggle' => 'dropdown', href: '#'}
70
+ %span.caret
71
+ %ul.dropdown-menu
72
+ %li
73
+ %a{href: '#'} Action
74
+ %li
75
+ %a{href: '#'} Another action
76
+ %li
77
+ %a{href: '#'} Something else here
78
+ %li.divider
79
+ %li
80
+ %a{href: '#'} Separated link
81
+ .btn-group
82
+ %a.btn.btn-warning{href: '#'} Warning
83
+ %a.btn.btn-warning.dropdown-toggle{'data-toggle' => 'dropdown', href: '#'}
84
+ %span.caret
85
+ %ul.dropdown-menu
86
+ %li
87
+ %a{href: '#'} Action
88
+ %li
89
+ %a{href: '#'} Another action
90
+ %li
91
+ %a{href: '#'} Something else here
92
+ %li.divider
93
+ %li
94
+ %a{href: '#'} Separated link
95
+ %p.bs-component
96
+ %a.btn.btn-primary.btn-lg{href: '#'} Large button
97
+ %a.btn.btn-primary{href: '#'} Default button
98
+ %a.btn.btn-primary.btn-sm{href: '#'} Small button
99
+ %a.btn.btn-primary.btn-xs{href: '#'} Mini button
100
+ .col-lg-5
101
+ %p.bs-component
102
+ %a.btn.btn-default.btn-lg.btn-block{href: '#'}
103
+ Block level
104
+ button
105
+ .bs-component{style: 'margin-bottom: 15px;'}
106
+ .btn-group.btn-group-justified
107
+ %a.btn.btn-default{href: '#'} Left
108
+ %a.btn.btn-default{href: '#'} Middle
109
+ %a.btn.btn-default{href: '#'} Right
110
+ .bs-component{style: 'margin-bottom: 15px;'}
111
+ .btn-toolbar
112
+ .btn-group
113
+ %a.btn.btn-default{href: '#'} 1
114
+ %a.btn.btn-default{href: '#'} 2
115
+ %a.btn.btn-default{href: '#'} 3
116
+ %a.btn.btn-default{href: '#'} 4
117
+ .btn-group
118
+ %a.btn.btn-default{href: '#'} 5
119
+ %a.btn.btn-default{href: '#'} 6
120
+ %a.btn.btn-default{href: '#'} 7
121
+ .btn-group
122
+ %a.btn.btn-default{href: '#'} 8
123
+ .btn-group
124
+ %a.btn.btn-default.dropdown-toggle{'data-toggle' => 'dropdown', href: '#'}
125
+ Dropdown
126
+ %span.caret
127
+ %ul.dropdown-menu
128
+ %li
129
+ %a{href: '#'} Dropdown link
130
+ %li
131
+ %a{href: '#'} Dropdown link
132
+ %li
133
+ %a{href: '#'} Dropdown link
134
+ .bs-component
135
+ .btn-group-vertical
136
+ %a.btn.btn-default{href: '#'} Button
137
+ %a.btn.btn-default{href: '#'} Button
138
+ %a.btn.btn-default{href: '#'} Button
139
+ %a.btn.btn-default{href: '#'} Button
140
+ / Typography==================================================
141
+ .row
142
+ .col-lg-12
143
+ .page-header
144
+ %h2#typography Typography
145
+ / Headings
146
+ .row
147
+ .col-lg-4
148
+ .bs-component
149
+ %h1 Heading 1
150
+ %h2 Heading 2
151
+ %h3 Heading 3
152
+ %h4 Heading 4
153
+ %h5 Heading 5
154
+ %h6 Heading 6
155
+ %p.lead
156
+ Vivamus sagittis lacus vel augue laoreet rutrum
157
+ faucibus dolor auctor.
158
+ .col-lg-4
159
+ .bs-component
160
+ %h2 Example body text
161
+ %p
162
+ Nullam quis risus eget
163
+ %a{href: '#'} urna mollis ornare
164
+ vel
165
+ eu leo. Cum sociis natoque penatibus et magnis dis
166
+ parturient montes, nascetur ridiculus mus. Nullam id dolor
167
+ id nibh ultricies vehicula.
168
+ %p
169
+ %small
170
+ This line of text is meant to be treated as fine
171
+ print.
172
+ %p
173
+ The following snippet of text is
174
+ = succeed '.' do
175
+ %strong
176
+ rendered as bold
177
+ text
178
+ %p
179
+ The following snippet of text is
180
+ = succeed '.' do
181
+ %em
182
+ rendered as italicized
183
+ text
184
+ %p
185
+ An abbreviation of the word attribute is
186
+ = succeed '.' do
187
+ %abbr{title: 'attribute'} attr
188
+ .col-lg-4
189
+ .bs-component
190
+ %h2 Emphasis classes
191
+ %p.text-muted
192
+ Fusce dapibus, tellus ac cursus commodo,
193
+ tortor mauris nibh.
194
+ %p.text-primary
195
+ Nullam id dolor id nibh ultricies
196
+ vehicula ut id elit.
197
+ %p.text-warning
198
+ Etiam porta sem malesuada magna mollis
199
+ euismod.
200
+ %p.text-danger
201
+ Donec ullamcorper nulla non metus auctor
202
+ fringilla.
203
+ %p.text-success
204
+ Duis mollis, est non commodo luctus,
205
+ nisi erat porttitor ligula.
206
+ %p.text-info
207
+ Maecenas sed diam eget risus varius blandit
208
+ sit amet non magna.
209
+ / Blockquotes
210
+ .row
211
+ .col-lg-12
212
+ %h2#type-blockquotes Blockquotes
213
+ .row
214
+ .col-lg-6
215
+ .bs-component
216
+ %blockquote
217
+ %p
218
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit.
219
+ Integer posuere erat a ante.
220
+ %small
221
+ Someone famous in
222
+ %cite{title: 'Source Title'}
223
+ Source
224
+ Title
225
+ .col-lg-6
226
+ .bs-component
227
+ %blockquote.blockquote-reverse
228
+ %p
229
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit.
230
+ Integer posuere erat a ante.
231
+ %small
232
+ Someone famous in
233
+ %cite{title: 'Source Title'}
234
+ Source
235
+ Title
236
+ / Table==================================================
237
+ .row
238
+ .col-lg-12
239
+ .page-header
240
+ %h2#tables Tables
241
+ .bs-component
242
+ %table.table.table-striped.table-hover
243
+ %thead
244
+ %tr
245
+ %th Table Head
246
+ %th Column heading
247
+ %th Column heading
248
+ %tbody
249
+ %tr
250
+ %td Striped Rows
251
+ %td Column content
252
+ %td Column content
253
+ %tr
254
+ %td Striped Rows
255
+ %td Column content
256
+ %td Column content
257
+ %tr
258
+ %td Striped Rows
259
+ %td Column content
260
+ %td Column content
261
+ %tr
262
+ %td Striped Rows
263
+ %td Column content
264
+ %td Column content
265
+ %tr.active
266
+ %td Active
267
+ %td Column content
268
+ %td Column content
269
+ %tr.info
270
+ %td Info
271
+ %td Column content
272
+ %td Column content
273
+ %tr.success
274
+ %td Success
275
+ %td Column content
276
+ %td Column content
277
+ %tr.warning
278
+ %td Warning
279
+ %td Column content
280
+ %td Column content
281
+ %tr.danger
282
+ %td Danger
283
+ %td Column content
284
+ %td Column content
285
+ / Form===============================================
286
+ .row
287
+ .col-lg-12
288
+ .page-header
289
+ %h2#forms Forms
290
+ .row
291
+ .col-lg-6
292
+ .well.bs-component
293
+ %form.form-horizontal
294
+ %fieldset
295
+ %legend Legend
296
+ .form-group
297
+ %label.col-lg-2.control-label{for: 'inputEmail'} Email
298
+ .col-lg-10
299
+ %input#inputEmail.form-control{placeholder: 'Email', type: 'text'}
300
+ .form-group
301
+ %label.col-lg-2.control-label{for: 'inputPassword'} Password
302
+ .col-lg-10
303
+ %input#inputPassword.form-control{placeholder: 'Password', type: 'password'}
304
+ .checkbox
305
+ %label
306
+ %input{type: 'checkbox'}
307
+ Checkbox
308
+ .form-group
309
+ %label.col-lg-2.control-label{for: 'textArea'} Textarea
310
+ .col-lg-10
311
+ %textarea#textArea.form-control{rows: '3'}
312
+ %span.help-block A longer block of help text that breaks onto a new line and may extend beyond one line.
313
+ .form-group
314
+ %label.col-lg-2.control-label Radios
315
+ .col-lg-10
316
+ .radio
317
+ %label
318
+ %input#optionsRadios1{checked: '', name: 'optionsRadios', type: 'radio', value: 'option1'}
319
+ Option one is this
320
+ .radio
321
+ %label
322
+ %input#optionsRadios2{name: 'optionsRadios', type: 'radio', value: 'option2'}
323
+ Option two can be something else
324
+ .form-group
325
+ %label.col-lg-2.control-label{for: 'select'} Selects
326
+ .col-lg-10
327
+ %select#select.form-control
328
+ %option 1
329
+ %option 2
330
+ %option 3
331
+ %option 4
332
+ %option 5
333
+ %br
334
+ %select.form-control{multiple: ''}
335
+ %option 1
336
+ %option 2
337
+ %option 3
338
+ %option 4
339
+ %option 5
340
+ .form-group
341
+ .col-lg-10.col-lg-offset-2
342
+ %button.btn.btn-default{type: 'reset'}
343
+ Cancel
344
+ %button.btn.btn-primary{type: 'submit'}
345
+ Submit
346
+ .col-lg-4.col-lg-offset-1
347
+ %form.bs-component
348
+ .form-group
349
+ %label.control-label{for: 'focusedInput'}
350
+ Focused
351
+ input
352
+ %input#focusedInput.form-control{type: 'text', value: 'This is focused...'}
353
+ :javascript
354
+ $(function (){
355
+ $('#focusedInput').focus();
356
+ });
357
+ .form-group
358
+ %label.control-label{for: 'disabledInput'}
359
+ Disabled
360
+ input
361
+ %input#disabledInput.form-control{disabled: '', placeholder: 'Disabled input here...', type: 'text'}
362
+ .form-group.has-warning
363
+ %label.control-label{for: 'inputWarning'}
364
+ Input
365
+ warning
366
+ %input#inputWarning.form-control{type: 'text'}
367
+ .form-group.has-error
368
+ %label.control-label{for: 'inputError'}
369
+ Input
370
+ error
371
+ %input#inputError.form-control{type: 'text'}
372
+ .form-group.has-success
373
+ %label.control-label{for: 'inputSuccess'}
374
+ Input
375
+ success
376
+ %input#inputSuccess.form-control{type: 'text'}
377
+ .form-group
378
+ %label.control-label{for: 'inputLarge'}
379
+ Large
380
+ input
381
+ %input#inputLarge.form-control.input-lg{type: 'text'}
382
+ .form-group
383
+ %label.control-label{for: 'inputDefault'}
384
+ Default
385
+ input
386
+ %input#inputDefault.form-control{type: 'text'}
387
+ .form-group
388
+ %label.control-label{for: 'inputSmall'}
389
+ Small
390
+ input
391
+ %input#inputSmall.form-control.input-sm{type: 'text'}
392
+ .form-group
393
+ %label.control-label Input addons
394
+ .input-group
395
+ %span.input-group-addon $
396
+ %input.form-control{type: 'text'}
397
+ %span.input-group-btn
398
+ %button.btn.btn-default{type: 'button'} Button
399
+ / Navs==================================================
400
+ .row
401
+ .col-lg-12
402
+ .page-header
403
+ %h2#navs Navs
404
+ .row
405
+ .col-lg-4
406
+ %h2#nav-tabs Tabs
407
+ .bs-component
408
+ %ul.nav.nav-tabs
409
+ %li.active
410
+ %a{'data-toggle' => 'tab', href: '#home'} Home
411
+ %li
412
+ %a{'data-toggle' => 'tab', href: '#profile'} Profile
413
+ %li.disabled
414
+ %a Disabled
415
+ %li.dropdown
416
+ %a.dropdown-toggle{'data-toggle' => 'dropdown', href: '#'}
417
+ Dropdown
418
+ %span.caret
419
+ %ul.dropdown-menu
420
+ %li
421
+ %a{'data-toggle' => 'tab', href: '#dropdown1'} Action
422
+ %li.divider
423
+ %li
424
+ %a{'data-toggle' => 'tab', href: '#dropdown2'}
425
+ Another
426
+ action
427
+ #myTabContent.tab-content
428
+ #home.tab-pane.fade.active.in
429
+ %p
430
+ Raw denim you probably haven't heard of them jean
431
+ shorts Austin. Nesciunt tofu stumptown aliqua, retro
432
+ synth master cleanse. Mustache cliche tempor,
433
+ williamsburg carles vegan helvetica. Reprehenderit
434
+ butcher retro keffiyeh dreamcatcher synth. Cosby
435
+ sweater eu banh mi, qui irure terry richardson ex
436
+ squid. Aliquip placeat salvia cillum iphone. Seitan
437
+ aliquip quis cardigan american apparel, butcher
438
+ voluptate nisi qui.
439
+ #profile.tab-pane.fade
440
+ %p
441
+ Food truck fixie locavore, accusamus mcsweeney's
442
+ marfa nulla single-origin coffee squid. Exercitation
443
+ +1 labore velit, blog sartorial PBR leggings next
444
+ level wes anderson artisan four loko farm-to-table
445
+ craft beer twee. Qui photo booth letterpress,
446
+ commodo enim craft beer mlkshk aliquip jean shorts
447
+ ullamco ad vinyl cillum PBR. Homo nostrud organic,
448
+ assumenda labore aesthetic magna delectus
449
+ mollit.
450
+ #dropdown1.tab-pane.fade
451
+ %p
452
+ Etsy mixtape wayfarers, ethical wes anderson tofu
453
+ before they sold out mcsweeney's organic lomo
454
+ retro fanny pack lo-fi farm-to-table readymade.
455
+ Messenger bag gentrify pitchfork tattooed craft
456
+ beer, iphone skateboard locavore carles etsy salvia
457
+ banksy hoodie helvetica. DIY synth PBR banksy irony.
458
+ Leggings gentrify squid 8-bit cred pitchfork.
459
+ #dropdown2.tab-pane.fade
460
+ %p
461
+ Trust fund seitan letterpress, keytar raw denim
462
+ keffiyeh etsy art party before they sold out master
463
+ cleanse gluten-free squid scenester freegan cosby
464
+ sweater. Fanny pack portland seitan DIY, art party
465
+ locavore wolf cliche high life echo park Austin.
466
+ Cred vinyl keffiyeh DIY salvia PBR, banh mi before
467
+ they sold out farm-to-table VHS viral locavore cosby
468
+ sweater.
469
+ .col-lg-4
470
+ %h2#nav-pills Pills
471
+ .bs-component
472
+ %ul.nav.nav-pills
473
+ %li.active
474
+ %a{href: '#'} Home
475
+ %li
476
+ %a{href: '#'} Profile
477
+ %li.disabled
478
+ %a{href: '#'} Disabled
479
+ %li.dropdown
480
+ %a.dropdown-toggle{'data-toggle' => 'dropdown', href: '#'}
481
+ Dropdown
482
+ %span.caret
483
+ %ul.dropdown-menu
484
+ %li
485
+ %a{href: '#'} Action
486
+ %li
487
+ %a{href: '#'} Another action
488
+ %li
489
+ %a{href: '#'} Something else here
490
+ %li.divider
491
+ %li
492
+ %a{href: '#'} Separated link
493
+ %br
494
+ .bs-component
495
+ %ul.nav.nav-pills.nav-stacked
496
+ %li.active
497
+ %a{href: '#'} Home
498
+ %li
499
+ %a{href: '#'} Profile
500
+ %li.disabled
501
+ %a{href: '#'} Disabled
502
+ %li.dropdown
503
+ %a.dropdown-toggle{'data-toggle' => 'dropdown', href: '#'}
504
+ Dropdown
505
+ %span.caret
506
+ %ul.dropdown-menu
507
+ %li
508
+ %a{href: '#'} Action
509
+ %li
510
+ %a{href: '#'} Another action
511
+ %li
512
+ %a{href: '#'} Something else here
513
+ %li.divider
514
+ %li
515
+ %a{href: '#'} Separated link
516
+ .col-lg-4
517
+ %h2#nav-breadcrumbs Breadcrumbs
518
+ .bs-component
519
+ %ul.breadcrumb
520
+ %li.active Home
521
+ %ul.breadcrumb
522
+ %li
523
+ %a{href: '#'} Home
524
+ %li.active Library
525
+ %ul.breadcrumb
526
+ %li
527
+ %a{href: '#'} Home
528
+ %li
529
+ %a{href: '#'} Library
530
+ %li.active Data
531
+ .row
532
+ .col-lg-4
533
+ %h2#pagination Pagination
534
+ .bs-component
535
+ %ul.pagination
536
+ %li.disabled
537
+ %a{href: '#'} «
538
+ %li.active
539
+ %a{href: '#'} 1
540
+ %li
541
+ %a{href: '#'} 2
542
+ %li
543
+ %a{href: '#'} 3
544
+ %li
545
+ %a{href: '#'} 4
546
+ %li
547
+ %a{href: '#'} 5
548
+ %li
549
+ %a{href: '#'} »
550
+ %ul.pagination.pagination-lg
551
+ %li.disabled
552
+ %a{href: '#'} «
553
+ %li.active
554
+ %a{href: '#'} 1
555
+ %li
556
+ %a{href: '#'} 2
557
+ %li
558
+ %a{href: '#'} 3
559
+ %li
560
+ %a{href: '#'} »
561
+ %ul.pagination.pagination-sm
562
+ %li.disabled
563
+ %a{href: '#'} «
564
+ %li.active
565
+ %a{href: '#'} 1
566
+ %li
567
+ %a{href: '#'} 2
568
+ %li
569
+ %a{href: '#'} 3
570
+ %li
571
+ %a{href: '#'} 4
572
+ %li
573
+ %a{href: '#'} 5
574
+ %li
575
+ %a{href: '#'} »
576
+ .col-lg-4
577
+ / Indicator==================================================
578
+ .row
579
+ .col-lg-12
580
+ .page-header
581
+ %h2#indicators Indicators
582
+ .row
583
+ .col-lg-12
584
+ %h2 Alerts
585
+ .bs-component
586
+ .alert.alert-dismissible.alert-warning
587
+ %button.close{'data-dismiss' => 'alert', type: 'button'}
588
+ ×
589
+ %h4 Warning!
590
+ %p
591
+ Best check yo self, you're not looking too good.
592
+ Nulla vitae elit libero, a pharetra augue. Praesent
593
+ commodo cursus magna,
594
+ = succeed '.' do
595
+ %a.alert-link{href: '#'}
596
+ vel
597
+ scelerisque nisl consectetur et
598
+ .row
599
+ .col-lg-4
600
+ .bs-component
601
+ .alert.alert-dismissible.alert-danger
602
+ %button.close{'data-dismiss' => 'alert', type: 'button'}
603
+ ×
604
+ %strong Oh snap!
605
+ %a.alert-link{href: '#'}
606
+ Change
607
+ a few things up
608
+ and try submitting again.
609
+ .col-lg-4
610
+ .bs-component
611
+ .alert.alert-dismissible.alert-success
612
+ %button.close{'data-dismiss' => 'alert', type: 'button'}
613
+ ×
614
+ %strong Well done!
615
+ You successfully read
616
+ = succeed '.' do
617
+ %a.alert-link{href: '#'}
618
+ this important alert
619
+ message
620
+ .col-lg-4
621
+ .bs-component
622
+ .alert.alert-dismissible.alert-info
623
+ %button.close{'data-dismiss' => 'alert', type: 'button'}
624
+ ×
625
+ %strong Heads up!
626
+ This
627
+ = succeed ',' do
628
+ %a.alert-link{href: '#'}
629
+ alert
630
+ needs your attention
631
+ but it's not super important.
632
+ .row
633
+ .col-lg-4
634
+ %h2 Labels
635
+ .bs-component{style: 'margin-bottom: 40px;'}
636
+ %span.label.label-default Default
637
+ %span.label.label-primary Primary
638
+ %span.label.label-success Success
639
+ %span.label.label-warning Warning
640
+ %span.label.label-danger Danger
641
+ %br
642
+ %br
643
+ %span.label.label-info Info
644
+ .col-lg-4
645
+ %h2 Badges
646
+ .bs-component
647
+ %ul.nav.nav-pills
648
+ %li.active
649
+ %a{href: '#'}
650
+ Home
651
+ %span.badge 42
652
+ %li
653
+ %a{href: '#'}
654
+ Profile
655
+ %span.badge
656
+ %li
657
+ %a{href: '#'}
658
+ Messages
659
+ %span.badge 3
660
+ / Containers==================================================
661
+ .row
662
+ .col-lg-12
663
+ .page-header
664
+ %h2#containers Containers
665
+ .bs-component
666
+ .jumbotron
667
+ %h1 Jumbotron
668
+ %p
669
+ This is a simple hero unit, a simple jumbotron-style
670
+ component for calling extra attention to featured
671
+ content or information.
672
+ %p
673
+ %a.btn.btn-primary.btn-lg Learn more
674
+ #source-button.btn.btn-primary.btn-xs{style: 'display: none;'} < >
675
+ .row
676
+ .col-lg-12
677
+ %h2 List groups
678
+ .row
679
+ .col-lg-4
680
+ .bs-component
681
+ %ul.list-group
682
+ %li.list-group-item
683
+ %span.badge 14
684
+ Cras justo odio
685
+ %li.list-group-item
686
+ %span.badge 2
687
+ Dapibus ac facilisis in
688
+ %li.list-group-item
689
+ %span.badge 1
690
+ Morbi leo risus
691
+ .col-lg-4
692
+ .bs-component
693
+ .list-group
694
+ %a.list-group-item.active{href: '#'}
695
+ Cras justo odio
696
+ %a.list-group-item{href: '#'}
697
+ Dapibus ac facilisis in
698
+ %a.list-group-item{href: '#'}
699
+ Morbi leo risus
700
+ .col-lg-4
701
+ .bs-component
702
+ .list-group
703
+ %a.list-group-item{href: '#'}
704
+ %h4.list-group-item-heading
705
+ List group item
706
+ heading
707
+ %p.list-group-item-text
708
+ Donec id elit non mi
709
+ porta gravida at eget metus. Maecenas sed diam eget
710
+ risus varius blandit.
711
+ %a.list-group-item{href: '#'}
712
+ %h4.list-group-item-heading
713
+ List group item
714
+ heading
715
+ %p.list-group-item-text
716
+ Donec id elit non mi
717
+ porta gravida at eget metus. Maecenas sed diam eget
718
+ risus varius blandit.
719
+ .row
720
+ .col-lg-12
721
+ %h2 Panels
722
+ .row
723
+ .col-lg-4
724
+ .bs-component
725
+ .panel.panel-default
726
+ .panel-body
727
+ Basic panel
728
+ .panel.panel-default
729
+ .panel-heading Panel heading
730
+ .panel-body
731
+ Panel content
732
+ .panel-footer Panel footer
733
+ .col-lg-4
734
+ .bs-component
735
+ .panel.panel-primary
736
+ .panel-heading
737
+ %h3.panel-title Panel primary
738
+ .panel-body
739
+ Panel content
740
+ .panel.panel-success
741
+ .panel-heading
742
+ %h3.panel-title Panel success
743
+ .panel-body
744
+ Panel content
745
+ .panel.panel-warning
746
+ .panel-heading
747
+ %h3.panel-title Panel warning
748
+ .panel-body
749
+ Panel content
750
+ .col-lg-4
751
+ .bs-component
752
+ .panel.panel-danger
753
+ .panel-heading
754
+ %h3.panel-title Panel danger
755
+ .panel-body
756
+ Panel content
757
+ .panel.panel-info
758
+ .panel-heading
759
+ %h3.panel-title Panel info
760
+ .panel-body
761
+ Panel content
762
+ .row
763
+ .col-lg-12
764
+ %h2 Wells
765
+ .row
766
+ .col-lg-4
767
+ .bs-component
768
+ .well
769
+ Look, I'm in a well!
770
+ .col-lg-4
771
+ .bs-component
772
+ .well.well-sm
773
+ Look, I'm in a small well!
774
+ .col-lg-4
775
+ .bs-component
776
+ .well.well-lg
777
+ Look, I'm in a large well!
778
+ / Dialog==================================================
779
+ .row
780
+ .col-lg-12
781
+ .page-header
782
+ %h2#dialogs Dialogs
783
+ .row
784
+ .col-lg-6
785
+ %h2 Modals
786
+ = link_to 'Click to Open Modal', '/blank_page', data: { toggle: 'modal', target: '#style_guide_modal' }, class: 'btn btn-primary'
787
+ .bs-component
788
+ .modal#style_guide_modal
789
+ .modal-dialog
790
+ .modal-content
791
+ .modal-header
792
+ %button.close{'aria-hidden' => 'true', 'data-dismiss' => 'modal', type: 'button'}
793
+ ×
794
+ %h4.modal-title Modal title
795
+ .modal-body
796
+ %p One fine body…
797
+ .modal-footer
798
+ %button.btn.btn-default{'data-dismiss' => 'modal', type: 'button'}
799
+ Close
800
+ %button.btn.btn-primary{type: 'button'}
801
+ Save changes