bootstrap-bookingsync-sass 0.0.19 → 1.0.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (162) hide show
  1. checksums.yaml +4 -4
  2. data/.bowerrc +4 -0
  3. data/.editorconfig +34 -0
  4. data/.ember-cli +9 -0
  5. data/.gitignore +18 -0
  6. data/.jshintrc +32 -0
  7. data/.npmignore +16 -0
  8. data/.travis.yaml +34 -0
  9. data/.watchmanconfig +3 -0
  10. data/CHANGELOG.md +34 -1
  11. data/README.md +110 -5
  12. data/addon/.gitkeep +0 -0
  13. data/addon/components/bsy-button.js +34 -0
  14. data/addon/templates/components/bsy-button.hbs +1 -0
  15. data/app/.gitkeep +0 -0
  16. data/app/components/bsy-button.js +1 -0
  17. data/assets/fonts/bookingsync/bookingsync-icons.eot +0 -0
  18. data/assets/fonts/bookingsync/bookingsync-icons.svg +37 -0
  19. data/assets/fonts/bookingsync/bookingsync-icons.ttf +0 -0
  20. data/assets/fonts/bookingsync/bookingsync-icons.woff +0 -0
  21. data/assets/fonts/bookingsync/bookingsync-icons.woff2 +0 -0
  22. data/assets/fonts/bookingsync/bookingsync-smiles.eot +0 -0
  23. data/assets/fonts/bookingsync/bookingsync-smiles.svg +1 -1
  24. data/assets/fonts/bookingsync/bookingsync-smiles.ttf +0 -0
  25. data/assets/fonts/bookingsync/bookingsync-smiles.woff +0 -0
  26. data/assets/fonts/bookingsync/bookingsync-smiles.woff2 +0 -0
  27. data/assets/javascripts/bookingsync/menu.js +29 -0
  28. data/assets/javascripts/bookingsync/toggle.js +15 -0
  29. data/assets/javascripts/bootstrap-bookingsync-sprockets.js +2 -0
  30. data/assets/stylesheets/_bootstrap-bookingsync.scss +9 -1
  31. data/assets/stylesheets/bookingsync/_annotated-sections.scss +28 -0
  32. data/assets/stylesheets/bookingsync/_buttons.scss +218 -0
  33. data/assets/stylesheets/bookingsync/_ember-power-select.scss +131 -0
  34. data/assets/stylesheets/bookingsync/_form.scss +22 -1
  35. data/assets/stylesheets/bookingsync/_icons.scss +119 -0
  36. data/assets/stylesheets/bookingsync/_layout.scss +18 -9
  37. data/assets/stylesheets/bookingsync/_list-group.scss +37 -0
  38. data/assets/stylesheets/bookingsync/_menu.scss +230 -210
  39. data/assets/stylesheets/bookingsync/_modals.scss +24 -0
  40. data/assets/stylesheets/bookingsync/_navbar.scss +53 -0
  41. data/assets/stylesheets/bookingsync/_sheet.scss +9 -0
  42. data/assets/stylesheets/bookingsync/_smiles.scss +25 -19
  43. data/assets/stylesheets/bookingsync/_theme.scss +0 -22
  44. data/assets/stylesheets/bookingsync/_variables.scss +191 -38
  45. data/blueprints/ember-cli-bootstrap-bookingsync-sass/files/app/styles/app.scss +3 -0
  46. data/blueprints/ember-cli-bootstrap-bookingsync-sass/files/app/templates/application.hbs +31 -0
  47. data/blueprints/ember-cli-bootstrap-bookingsync-sass/files/ember-cli-build.js +28 -0
  48. data/blueprints/ember-cli-bootstrap-bookingsync-sass/index.js +15 -0
  49. data/bower.json +14 -0
  50. data/config/deploy.js +30 -0
  51. data/config/ember-try.js +36 -0
  52. data/config/environment.js +6 -0
  53. data/docs/Gemfile +1 -1
  54. data/docs/Gemfile.lock +16 -13
  55. data/docs/Rakefile +1 -1
  56. data/docs/Rules +29 -11
  57. data/docs/content/assets/fonts/bookingsync/bookingsync-icons.eot +0 -0
  58. data/docs/content/assets/fonts/bookingsync/bookingsync-icons.svg +37 -0
  59. data/docs/content/assets/fonts/bookingsync/bookingsync-icons.ttf +0 -0
  60. data/docs/content/assets/fonts/bookingsync/bookingsync-icons.woff +0 -0
  61. data/docs/content/assets/fonts/bookingsync/bookingsync-icons.woff2 +0 -0
  62. data/docs/content/assets/fonts/bookingsync/bookingsync-smiles.eot +0 -0
  63. data/docs/content/assets/fonts/bookingsync/bookingsync-smiles.svg +19 -0
  64. data/docs/content/assets/fonts/bookingsync/bookingsync-smiles.ttf +0 -0
  65. data/docs/content/assets/fonts/bookingsync/bookingsync-smiles.woff +0 -0
  66. data/docs/content/assets/fonts/bookingsync/bookingsync-smiles.woff2 +0 -0
  67. data/docs/content/assets/images/bookingsync.png +0 -0
  68. data/docs/content/assets/javascripts/application.js.coffee +1 -0
  69. data/docs/content/assets/stylesheets/_base.scss +64 -25
  70. data/docs/content/assets/stylesheets/_code.scss +6 -0
  71. data/docs/content/assets/stylesheets/_icons.scss +54 -0
  72. data/docs/content/assets/stylesheets/_override.scss +67 -0
  73. data/docs/content/assets/stylesheets/_variables.scss +7 -0
  74. data/docs/content/assets/stylesheets/application.scss +2 -1
  75. data/docs/content/brand.html +9 -0
  76. data/docs/content/brand/_navbar.html +17 -0
  77. data/docs/content/brand/colors.md +101 -0
  78. data/docs/content/brand/iconography.md +87 -0
  79. data/docs/content/brand/smiles.md +51 -0
  80. data/docs/content/brand/typography.md +301 -0
  81. data/docs/content/buttons.html +6 -0
  82. data/docs/content/buttons/_navbar.html +13 -0
  83. data/docs/content/buttons/buttons.md +320 -0
  84. data/docs/content/components.html +11 -22
  85. data/docs/content/components/_navbar.html +22 -0
  86. data/docs/content/components/chosen.md +28 -17
  87. data/docs/content/components/dropdown.md +2 -4
  88. data/docs/content/components/list-group.md +239 -0
  89. data/docs/content/components/menu.md +134 -219
  90. data/docs/content/components/modal.html +108 -0
  91. data/docs/content/components/sheet.md +11 -60
  92. data/docs/content/components/switch.md +42 -25
  93. data/docs/content/compositions.html +6 -0
  94. data/docs/content/compositions/_navbar.html +12 -0
  95. data/docs/content/compositions/compositions.md +348 -0
  96. data/docs/content/embed/menu.html +160 -0
  97. data/docs/content/forms.html +6 -0
  98. data/docs/content/forms/_navbar.html +39 -0
  99. data/docs/content/{css → forms}/forms.md +98 -86
  100. data/docs/content/utilities.html +6 -0
  101. data/docs/content/utilities/_navbar.html +6 -0
  102. data/docs/content/{css → utilities}/helpers.md +4 -6
  103. data/docs/layouts/default.html +12 -7
  104. data/docs/layouts/embed.html +7 -0
  105. data/docs/layouts/head.html +1 -2
  106. data/docs/layouts/navbar.html +15 -23
  107. data/docs/layouts/sidebar.html +53 -0
  108. data/docs/nanoc.yaml +2 -0
  109. data/docs/public/ember/assets/dummy-605390683726afd79cffdf529eb4531a.css +28 -0
  110. data/docs/public/ember/assets/dummy-daae8f1136db419cd268e84ad4f5c989.js +2 -0
  111. data/docs/public/ember/assets/vendor-226e4280b8b1da91e2e598b6726ea1f4.js +28 -0
  112. data/docs/public/ember/assets/vendor-d41d8cd98f00b204e9800998ecf8427e.css +0 -0
  113. data/docs/public/ember/crossdomain.xml +15 -0
  114. data/docs/public/ember/fonts/bookingsync/bookingsync-icons.eot +0 -0
  115. data/docs/public/ember/fonts/bookingsync/bookingsync-icons.svg +37 -0
  116. data/docs/public/ember/fonts/bookingsync/bookingsync-icons.ttf +0 -0
  117. data/docs/public/ember/fonts/bookingsync/bookingsync-icons.woff +0 -0
  118. data/docs/public/ember/fonts/bookingsync/bookingsync-icons.woff2 +0 -0
  119. data/docs/public/ember/fonts/bookingsync/bookingsync-smiles.eot +0 -0
  120. data/docs/public/ember/fonts/bookingsync/bookingsync-smiles.svg +19 -0
  121. data/docs/public/ember/fonts/bookingsync/bookingsync-smiles.ttf +0 -0
  122. data/docs/public/ember/fonts/bookingsync/bookingsync-smiles.woff +0 -0
  123. data/docs/public/ember/fonts/bookingsync/bookingsync-smiles.woff2 +0 -0
  124. data/docs/public/ember/index.html +27 -0
  125. data/docs/public/ember/robots.txt +3 -0
  126. data/ember-cli-build.js +23 -0
  127. data/index.js +78 -0
  128. data/lib/bootstrap/bookingsync/version.rb +1 -1
  129. data/package.json +62 -0
  130. data/testem.json +12 -0
  131. data/tests/.jshintrc +52 -0
  132. data/tests/dummy/app/app.js +18 -0
  133. data/tests/dummy/app/components/.gitkeep +0 -0
  134. data/tests/dummy/app/controllers/.gitkeep +0 -0
  135. data/tests/dummy/app/controllers/index.js +31 -0
  136. data/tests/dummy/app/helpers/.gitkeep +0 -0
  137. data/tests/dummy/app/index.html +25 -0
  138. data/tests/dummy/app/models/.gitkeep +0 -0
  139. data/tests/dummy/app/resolver.js +3 -0
  140. data/tests/dummy/app/router.js +11 -0
  141. data/tests/dummy/app/routes/.gitkeep +0 -0
  142. data/tests/dummy/app/styles/app.scss +3 -0
  143. data/tests/dummy/app/templates/application.hbs +7 -0
  144. data/tests/dummy/app/templates/components/.gitkeep +0 -0
  145. data/tests/dummy/app/templates/index.hbs +275 -0
  146. data/tests/dummy/app/templates/navbar.hbs +24 -0
  147. data/tests/dummy/app/templates/sidebar.hbs +47 -0
  148. data/tests/dummy/config/environment.js +47 -0
  149. data/tests/dummy/public/crossdomain.xml +15 -0
  150. data/tests/dummy/public/robots.txt +3 -0
  151. data/tests/helpers/destroy-app.js +5 -0
  152. data/tests/helpers/module-for-acceptance.js +23 -0
  153. data/tests/helpers/resolver.js +11 -0
  154. data/tests/helpers/start-app.js +18 -0
  155. data/tests/index.html +34 -0
  156. data/tests/integration/.gitkeep +0 -0
  157. data/tests/integration/components/bsy-button-test.js +24 -0
  158. data/tests/test-helper.js +6 -0
  159. data/tests/unit/.gitkeep +0 -0
  160. data/vendor/.gitkeep +0 -0
  161. metadata +127 -8
  162. data/docs/content/css.html +0 -68
@@ -0,0 +1,6 @@
1
+ ---
2
+ section_name: "Buttons"
3
+ ---
4
+ <div class="reference-body">
5
+ <%= items['/buttons/buttons.*'].compiled_content %>
6
+ </div>
@@ -0,0 +1,13 @@
1
+ <ul class="list-group list-unstyled">
2
+ <li><%= link_to("Button tags", "#button-tags", class: "list-group-item") %></li>
3
+ <li><%= link_to("Options", "#options", class: "list-group-item") %></li>
4
+ <li><%= link_to("Sizes", "#sizes", class: "list-group-item") %></li>
5
+ <li><%= link_to("Active State", "#active-state", class: "list-group-item") %></li>
6
+ <li><%= link_to("Disabled State", "#disabled-state",
7
+ class: "list-group-item") %></li>
8
+ <li><%= link_to("Loading State", "#loading-state",
9
+ class: "list-group-item") %></li>
10
+ <li><%= link_to("Group", "#group", class: "list-group-item") %></li>
11
+ <li><%= link_to("Nesting", "#nesting", class: "list-group-item") %></li>
12
+ <li><%= link_to("Radio", "#radio", class: "list-group-item") %></li>
13
+ </ul>
@@ -0,0 +1,320 @@
1
+ <div class="example">
2
+ <div class="sheet-header">
3
+ <h3 id="button-tags">Button tags</h3>
4
+ </div>
5
+
6
+ <p>Use the button classes on an <code>&lt;a&gt;</code>, <code>&lt;button&gt;</code>, or <code>&lt;input&gt;</code> element.</p>
7
+
8
+ <div class="bs-callout bs-callout-warning">
9
+ <h4>Context-specific usage</h4>
10
+ <p>While button classes can be used on <code>&lt;a&gt;</code> and <code>&lt;button&gt;</code> elements, only <code>&lt;button&gt;</code> elements are supported within our nav and navbar components.</p>
11
+ </div>
12
+
13
+ <div class="bs-example bs-sheet" data-example-id="button-tags">
14
+ <a class="btn btn-secondary" href="#" role="button">Link</a>
15
+ <button class="btn btn-secondary" type="submit">Button</button>
16
+ <input class="btn btn-secondary" type="button" value="Input">
17
+ <input class="btn btn-secondary" type="submit" value="Submit">
18
+ </div>
19
+ </div>
20
+ ~~~ html
21
+ <a class="btn btn-secondary" href="#" role="button">Link</a>
22
+ <button class="btn btn-secondary" type="submit">Button</button>
23
+ <input class="btn btn-secondary" type="button" value="Input">
24
+ <input class="btn btn-secondary" type="submit" value="Submit">
25
+ ~~~
26
+
27
+ <div class="example">
28
+ <div class="sheet-header">
29
+ <h3 id="options">Options</h3>
30
+ </div>
31
+
32
+ <p>Use any of the available button classes to quickly create a styled button.</p>
33
+
34
+ <div class="bs-example bs-sheet" data-example-id="options">
35
+ <button type="button" class="btn btn-primary">Primary</button>
36
+ <button type="button" class="btn btn-secondary">Secondary</button>
37
+ <button type="button" class="btn btn-default">Default</button>
38
+ <button class="btn btn-secondary-inverse btn-round" type="button">
39
+ <span>&times;</span>
40
+ </button>
41
+ <button type="button" class="btn btn-danger">Danger</button>
42
+ <button type="button" class="btn btn-link">Link</button>
43
+ </div>
44
+ </div>
45
+ ~~~ html
46
+
47
+ <!-- Provides extra visual weight and identifies the primary action in a set of buttons -->
48
+ <button type="button" class="btn btn-primary">Primary</button>
49
+
50
+ <!-- Secondary, outline button -->
51
+ <button type="button" class="btn btn-secondary">Secondary</button>
52
+ <!-- DEPRECATED, kept for Bootstap 3.x support: Standard button -->
53
+ <button type="button" class="btn btn-default">Default</button>
54
+
55
+ <!-- Secondary inverse -->
56
+ <button class="btn btn-secondary-inverse btn-round" type="button">
57
+ <span>&times;</span>
58
+ </button>
59
+
60
+ <!-- Indicates a dangerous or potentially negative action -->
61
+ <button type="button" class="btn btn-danger">Danger</button>
62
+
63
+ <!-- Deemphasize a button by making it look like a link while maintaining button behavior -->
64
+ <button type="button" class="btn btn-link">Link</button>
65
+ ~~~
66
+
67
+ <div class="example">
68
+ <div class="sheet-header">
69
+ <h3 id="sizes">Sizes</h3>
70
+ </div>
71
+
72
+ <p>Need smaller buttons? Add <code>.btn-sm</code> for additional sizes.</p>
73
+
74
+ <div class="bs-example bs-sheet" data-example-id="sizes">
75
+ <p>
76
+ <button type="button" class="btn btn-primary">Default button</button>
77
+ <button type="button" class="btn btn-secondary">Default button</button>
78
+ </p>
79
+ <p>
80
+ <button type="button" class="btn btn-primary btn-sm">Small button</button>
81
+ <button type="button" class="btn btn-secondary btn-sm">Small button</button>
82
+ </p>
83
+ </div>
84
+ </div>
85
+ ~~~ html
86
+ <p>
87
+ <button type="button" class="btn btn-primary">Default button</button>
88
+ <button type="button" class="btn btn-secondary">Default button</button>
89
+ </p>
90
+ <p>
91
+ <button type="button" class="btn btn-primary btn-sm">Small button</button>
92
+ <button type="button" class="btn btn-secondary btn-sm">Small button</button>
93
+ </p>
94
+ ~~~
95
+
96
+ <div class="example">
97
+ <div class="sheet-header">
98
+ <h3 id="active-state">Active State</h3>
99
+ </div>
100
+
101
+ <p>For <code>&lt;button&gt;</code> elements, this is done via <code>:active</code>. For <code>&lt;a&gt;</code> elements, it's done with <code>.active</code>. However, you may use <code>.active</code> on <code>&lt;button&gt;</code>s (and include the <code>aria-pressed="true"</code> attribute) should you need to replicate the active state programmatically.</p>
102
+
103
+ <div class="bs-example bs-sheet" data-example-id="active-state">
104
+ <button type="button" class="btn btn-primary active">Primary button</button>
105
+ <button type="button" class="btn btn-secondary active">Button</button>
106
+ <a href="#" class="btn btn-primary active" role="button">Primary link</a>
107
+ <a href="#" class="btn btn-secondary active" role="button">Link</a>
108
+ </div>
109
+ </div>
110
+ ~~~ html
111
+ <button type="button" class="btn btn-primary active">Primary button</button>
112
+ <button type="button" class="btn btn-secondary active">Button</button>
113
+ <a href="#" class="btn btn-primary active" role="button">Primary link</a>
114
+ <a href="#" class="btn btn-secondary active" role="button">Link</a>
115
+ ~~~
116
+
117
+ <div class="example">
118
+ <div class="sheet-header">
119
+ <h3 id="disabled-state">Disabled State</h3>
120
+ </div>
121
+
122
+ <p>For <code>&lt;button&gt;</code> elements, this is done via <code>disabled</code> attribute or <code>.disabled</code> class. It's also possible to disable buttons from a parent disabled fieldset.</p>
123
+
124
+ <div class="bs-example bs-sheet" data-example-id="disabled-state">
125
+ <button type="button" class="btn btn-primary disabled">Primary button</button>
126
+ <button type="button" class="btn btn-secondary disabled">Button</button>
127
+ <a href="#" class="btn btn-primary disabled" role="button">Primary link</a>
128
+ <a href="#" class="btn btn-secondary disabled" role="button">Link</a>
129
+
130
+ <hr>
131
+
132
+ <button type="button" class="btn btn-primary" disabled>Primary button</button>
133
+ <button type="button" class="btn btn-secondary" disabled>Button</button>
134
+ <a href="#" class="btn btn-primary" disabled role="button">Primary link</a>
135
+ <a href="#" class="btn btn-secondary" disabled role="button">Link</a>
136
+
137
+ <hr>
138
+
139
+ <form>
140
+ <fieldset disabled>
141
+ <button type="button" class="btn btn-primary">Primary button</button>
142
+ <button type="button" class="btn btn-secondary">Button</button>
143
+ <a href="#" class="btn btn-primary" role="button">Primary link</a>
144
+ <a href="#" class="btn btn-secondary" role="button">Link</a>
145
+ </fieldset>
146
+ </form>
147
+ </div>
148
+ </div>
149
+ ~~~ html
150
+ <button type="button" class="btn btn-primary disabled">Primary button</button>
151
+ <button type="button" class="btn btn-secondary disabled">Button</button>
152
+ <a href="#" class="btn btn-primary disabled" role="button">Primary link</a>
153
+ <a href="#" class="btn btn-secondary disabled" role="button">Link</a>
154
+
155
+ <hr>
156
+
157
+ <button type="button" class="btn btn-primary" disabled>Primary button</button>
158
+ <button type="button" class="btn btn-secondary" disabled>Button</button>
159
+ <a href="#" class="btn btn-primary" disabled role="button">Primary link</a>
160
+ <a href="#" class="btn btn-secondary" disabled role="button">Link</a>
161
+
162
+ <hr>
163
+
164
+ <form>
165
+ <fieldset disabled>
166
+ <button type="button" class="btn btn-primary">Primary button</button>
167
+ <button type="button" class="btn btn-secondary">Button</button>
168
+ <a href="#" class="btn btn-primary" role="button">Primary link</a>
169
+ <a href="#" class="btn btn-secondary" role="button">Link</a>
170
+ </fieldset>
171
+ </form>
172
+ ~~~
173
+
174
+ <div class="example">
175
+ <div class="sheet-header">
176
+ <h3 id="loading-state">Loading State</h3>
177
+ </div>
178
+
179
+ <p>This is done via <code>.btn-loading</code> and it's good practice to add <code>disabled</code> attribute as well.</p>
180
+
181
+ <div class="bs-example bs-sheet" data-example-id="loading-state">
182
+ <button type="button" class="btn btn-primary btn-loading" disabled>Loading...</button>
183
+ <button type="button" class="btn btn-secondary btn-loading" disabled>Loading...</button>
184
+ <a href="#" class="btn btn-primary btn-loading" role="button" disabled>Loading...</a>
185
+ <a href="#" class="btn btn-secondary btn-loading" role="button" disabled>Loading...</a>
186
+ <button type="button" class="btn btn-secondary-inverse btn-round btn-loading" disabled>
187
+ <span>&times;</span>
188
+ </button>
189
+
190
+ <hr>
191
+
192
+ <button type="button" class="btn btn-sm btn-primary btn-loading" disabled>Loading...</button>
193
+ <button type="button" class="btn btn-sm btn-secondary btn-loading" disabled>Loading...</button>
194
+ <a href="#" class="btn btn-sm btn-primary btn-loading" role="button" disabled>Loading...</a>
195
+ <a href="#" class="btn btn-sm btn-secondary btn-loading" role="button" disabled>Loading...</a>
196
+ <button type="button" class="btn btn-sm btn-secondary-inverse btn-round btn-loading" disabled>
197
+ <span>&times;</span>
198
+ </button>
199
+ </div>
200
+ </div>
201
+ ~~~ html
202
+ <button type="button" class="btn btn-primary btn-loading" disabled>Loading...</button>
203
+ <button type="button" class="btn btn-secondary btn-loading" disabled>Loading...</button>
204
+ <a href="#" class="btn btn-primary btn-loading" role="button" disabled>Loading...</a>
205
+ <a href="#" class="btn btn-secondary btn-loading" role="button" disabled>Loading...</a>
206
+ <button type="button" class="btn btn-secondary-inverse btn-round btn-loading" disabled>
207
+ <span>&times;</span>
208
+ </button>
209
+
210
+ <hr>
211
+
212
+ <button type="button" class="btn btn-sm btn-primary btn-loading" disabled>Loading...</button>
213
+ <button type="button" class="btn btn-sm btn-secondary btn-loading" disabled>Loading...</button>
214
+ <a href="#" class="btn btn-sm btn-primary btn-loading" role="button" disabled>Loading...</a>
215
+ <a href="#" class="btn btn-sm btn-secondary btn-loading" role="button" disabled>Loading...</a>
216
+ <button type="button" class="btn btn-sm btn-secondary-inverse btn-round btn-loading" disabled>
217
+ <span>&times;</span>
218
+ </button>
219
+ ~~~
220
+
221
+ <div class="example">
222
+ <div class="sheet-header">
223
+ <h3 id="group">Group</h3>
224
+ </div>
225
+
226
+ <p>Wrap a series of buttons with <code>.btn</code> in <code>.btn-group</code>.</p>
227
+
228
+ <div class="bs-example bs-sheet" data-example-id="group">
229
+ <div class="btn-group" role="group" aria-label="...">
230
+ <button type="button" class="btn btn-secondary">Left</button>
231
+ <button type="button" class="btn btn-secondary">Middle</button>
232
+ <button type="button" class="btn btn-secondary">Right</button>
233
+ </div>
234
+ </div>
235
+ </div>
236
+ ~~~ html
237
+ <div class="btn-group" role="group" aria-label="...">
238
+ <button type="button" class="btn btn-secondary">Left</button>
239
+ <button type="button" class="btn btn-secondary">Middle</button>
240
+ <button type="button" class="btn btn-secondary">Right</button>
241
+ </div>
242
+ ~~~
243
+
244
+ <div class="example">
245
+ <div class="sheet-header">
246
+ <h3 id="nesting">Nesting</h3>
247
+ </div>
248
+
249
+ <p>Place a .btn-group within another <code>.btn-group</code> when you want dropdown menus mixed with a series of buttons.</p>
250
+
251
+ <div class="bs-example bs-sheet" data-example-id="nesting">
252
+ <div class="btn-group" role="group" aria-label="...">
253
+ <button type="button" class="btn btn-secondary">1</button>
254
+ <button type="button" class="btn btn-secondary">2</button>
255
+
256
+ <div class="btn-group" role="group">
257
+ <button type="button" class="btn btn-secondary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
258
+ Dropdown
259
+ <span class="caret"></span>
260
+ </button>
261
+ <ul class="dropdown-menu">
262
+ <li><a href="#">Dropdown link</a></li>
263
+ <li><a href="#">Dropdown link</a></li>
264
+ </ul>
265
+ </div>
266
+ </div>
267
+ </div>
268
+ </div>
269
+ ~~~ html
270
+ <div class="btn-group" role="group" aria-label="...">
271
+ <button type="button" class="btn btn-secondary">1</button>
272
+ <button type="button" class="btn btn-secondary">2</button>
273
+
274
+ <div class="btn-group" role="group">
275
+ <button type="button" class="btn btn-secondary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
276
+ Dropdown
277
+ <span class="caret"></span>
278
+ </button>
279
+ <ul class="dropdown-menu">
280
+ <li><a href="#">Dropdown link</a></li>
281
+ <li><a href="#">Dropdown link</a></li>
282
+ </ul>
283
+ </div>
284
+ </div>
285
+ ~~~
286
+
287
+ <div class="example">
288
+ <div class="sheet-header">
289
+ <h3 id="radio">Radio</h3>
290
+ </div>
291
+
292
+ <div class="bs-example bs-sheet" data-example-id="radio">
293
+ <div class="btn-group" data-toggle="buttons">
294
+ <label class="btn btn-secondary active">
295
+ <input type="radio" name="options" id="option1" autocomplete="off" checked> Radio 1 (preselected)
296
+ </label>
297
+ <label class="btn btn-secondary">
298
+ <input type="radio" name="options" id="option2" autocomplete="off"> Radio 2
299
+ </label>
300
+ <label class="btn btn-secondary">
301
+ <input type="radio" name="options" id="option3" autocomplete="off"> Radio 3
302
+ </label>
303
+ </div>
304
+ </div>
305
+ </div>
306
+ ~~~ html
307
+ <div class="btn-group" role="group" aria-label="...">
308
+ <div class="btn-group" data-toggle="buttons">
309
+ <label class="btn btn-secondary active">
310
+ <input type="radio" name="options" id="option1" autocomplete="off" checked> Radio 1 (preselected)
311
+ </label>
312
+ <label class="btn btn-secondary">
313
+ <input type="radio" name="options" id="option2" autocomplete="off"> Radio 2
314
+ </label>
315
+ <label class="btn btn-secondary">
316
+ <input type="radio" name="options" id="option3" autocomplete="off"> Radio 3
317
+ </label>
318
+ </div>
319
+ </div>
320
+ ~~~
@@ -1,23 +1,12 @@
1
- <div class="row">
2
- <div class="col-md-3 col-md-push-9">
3
- <div class="panel panel-default">
4
- <div class="list-group">
5
- <%= link_to("Menu", "#menu", class: "list-group-item") %>
6
- <%= link_to("Dropdown", "#dropdown", class: "list-group-item") %>
7
- <%= link_to("Sheet", "#sheet", class: "list-group-item") %>
8
- <%= link_to("Chosen", "#chosen", class: "list-group-item") %>
9
- <%= link_to("Switch", "#switch", class: "list-group-item") %>
10
- </div>
11
- </div>
12
- </div>
13
-
14
- <div class="col-md-9 col-md-pull-3">
15
- <div class="reference-body">
16
- <%= items['/components/menu/'].compiled_content %>
17
- <%= items['/components/dropdown/'].compiled_content %>
18
- <%= items['/components/sheet/'].compiled_content %>
19
- <%= items['/components/chosen/'].compiled_content %>
20
- <%= items['/components/switch/'].compiled_content %>
21
- </div>
22
- </div>
1
+ ---
2
+ section_name: "Components"
3
+ ---
4
+ <div class="reference-body">
5
+ <%= items['/components/menu.*'].compiled_content %>
6
+ <%= items['/components/list-group.*'].compiled_content %>
7
+ <%= items['/components/dropdown.*'].compiled_content %>
8
+ <%= items['/components/sheet.*'].compiled_content %>
9
+ <%= items['/components/chosen.*'].compiled_content %>
10
+ <%= items['/components/switch.*'].compiled_content %>
11
+ <%= items['/components/modal.*'].compiled_content %>
23
12
  </div>
@@ -0,0 +1,22 @@
1
+ <ul class="list-group list-unstyled">
2
+ <li><%= link_to("Menu", "#menu", class: "list-group-item") %></li>
3
+ <li><%= link_to("List group", "#list-group", class: "list-group-item") %></li>
4
+ <li><%= link_to("List group with icons", "#list-group-with-icons",
5
+ class: "list-group-item") %></li>
6
+ <li><%= link_to("Nested list group", "#nested-list-group", class: "list-group-item") %></li>
7
+ <li><%= link_to("Nested list group with icons", "#nested-list-group-with-icons",
8
+ class: "list-group-item") %></li>
9
+ <li><%= link_to("Dropdown", "#dropdown", class: "list-group-item") %></li>
10
+ <li><%= link_to("Sheet", "#sheet", class: "list-group-item") %></li>
11
+ <li><%= link_to("Sheet with header", "#sheet-with-header", class: "list-group-item") %></li>
12
+ <li><%= link_to("Sheet with tabs", "#sheet-with-tabs", class: "list-group-item") %></li>
13
+ <li><%= link_to("Sheet with stacked tabs", "#sheet-with-stacked-tabs",
14
+ class: "list-group-item") %></li>
15
+ <li><%= link_to("Sheet with auto-stackable tabs", "#sheet-with-auto-stackable-tabs",
16
+ class: "list-group-item") %></li>
17
+ <li><%= link_to("Chosen select", "#chosen-select", class: "list-group-item") %></li>
18
+ <li><%= link_to("Chosen multiple select", "#chosen-multiple-select", class: "list-group-item") %></li>
19
+ <li><%= link_to("Switch", "#switch", class: "list-group-item") %></li>
20
+ <li><%= link_to("Disabled switch", "#disabled-switch", class: "list-group-item") %></li>
21
+ <li><%= link_to("Modal", "#modal", class: "list-group-item") %></li>
22
+ </ul>
@@ -1,21 +1,20 @@
1
- # Chosen
2
-
3
- <div class="bs-callout bs-callout-danger">
4
- <h4>External dependency</h4>
5
- <p>
6
- This component requires the
7
- <a href="http://harvesthq.github.io/chosen/">Chosen</a> library.
8
- </p>
9
-
10
- <p>Custom styles for select boxes provided by
11
- <a href="http://harvesthq.github.io/chosen/">Chosen</a>.</p>
12
- </div>
13
-
14
1
  <div class="example">
15
2
  <div class="sheet-header">
16
- <h3 id="chosen-example">Standard Select</h3>
3
+ <h3 id="chosen-select">Chosen Select</h3>
4
+ </div>
5
+
6
+ <div class="bs-callout bs-callout-danger">
7
+ <h4>External dependency</h4>
8
+ <p>
9
+ This component requires the
10
+ <a href="http://harvesthq.github.io/chosen/">Chosen</a> library.
11
+ </p>
12
+
13
+ <p>Custom styles for select boxes provided by
14
+ <a href="http://harvesthq.github.io/chosen/">Chosen</a>.</p>
17
15
  </div>
18
- <div class="bs-example bs-sheet" data-example-id="chosen-example">
16
+
17
+ <div class="bs-example bs-sheet" data-example-id="chosen-select">
19
18
  <select class="form-control chosen">
20
19
  <option value=""></option>
21
20
  <option value="One">One</option>
@@ -37,9 +36,21 @@
37
36
 
38
37
  <div class="example">
39
38
  <div class="sheet-header">
40
- <h3 id="chosen-example-multiselect">Multiple Select</h3>
39
+ <h3 id="chosen-multiple-select">Chosen Multiple Select</h3>
40
+ </div>
41
+
42
+ <div class="bs-callout bs-callout-danger">
43
+ <h4>External dependency</h4>
44
+ <p>
45
+ This component requires the
46
+ <a href="http://harvesthq.github.io/chosen/">Chosen</a> library.
47
+ </p>
48
+
49
+ <p>Custom styles for select boxes provided by
50
+ <a href="http://harvesthq.github.io/chosen/">Chosen</a>.</p>
41
51
  </div>
42
- <div class="bs-example bs-sheet" data-example-id="chosen-example-multiselect">
52
+
53
+ <div class="bs-example bs-sheet" data-example-id="chosen-multiple-select">
43
54
  <select class="form-control chosen" multiple tabindex="3">
44
55
  <option value=""></option>
45
56
  <option value="One">One</option>