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.
- checksums.yaml +4 -4
- data/.bowerrc +4 -0
- data/.editorconfig +34 -0
- data/.ember-cli +9 -0
- data/.gitignore +18 -0
- data/.jshintrc +32 -0
- data/.npmignore +16 -0
- data/.travis.yaml +34 -0
- data/.watchmanconfig +3 -0
- data/CHANGELOG.md +34 -1
- data/README.md +110 -5
- data/addon/.gitkeep +0 -0
- data/addon/components/bsy-button.js +34 -0
- data/addon/templates/components/bsy-button.hbs +1 -0
- data/app/.gitkeep +0 -0
- data/app/components/bsy-button.js +1 -0
- data/assets/fonts/bookingsync/bookingsync-icons.eot +0 -0
- data/assets/fonts/bookingsync/bookingsync-icons.svg +37 -0
- data/assets/fonts/bookingsync/bookingsync-icons.ttf +0 -0
- data/assets/fonts/bookingsync/bookingsync-icons.woff +0 -0
- data/assets/fonts/bookingsync/bookingsync-icons.woff2 +0 -0
- data/assets/fonts/bookingsync/bookingsync-smiles.eot +0 -0
- data/assets/fonts/bookingsync/bookingsync-smiles.svg +1 -1
- data/assets/fonts/bookingsync/bookingsync-smiles.ttf +0 -0
- data/assets/fonts/bookingsync/bookingsync-smiles.woff +0 -0
- data/assets/fonts/bookingsync/bookingsync-smiles.woff2 +0 -0
- data/assets/javascripts/bookingsync/menu.js +29 -0
- data/assets/javascripts/bookingsync/toggle.js +15 -0
- data/assets/javascripts/bootstrap-bookingsync-sprockets.js +2 -0
- data/assets/stylesheets/_bootstrap-bookingsync.scss +9 -1
- data/assets/stylesheets/bookingsync/_annotated-sections.scss +28 -0
- data/assets/stylesheets/bookingsync/_buttons.scss +218 -0
- data/assets/stylesheets/bookingsync/_ember-power-select.scss +131 -0
- data/assets/stylesheets/bookingsync/_form.scss +22 -1
- data/assets/stylesheets/bookingsync/_icons.scss +119 -0
- data/assets/stylesheets/bookingsync/_layout.scss +18 -9
- data/assets/stylesheets/bookingsync/_list-group.scss +37 -0
- data/assets/stylesheets/bookingsync/_menu.scss +230 -210
- data/assets/stylesheets/bookingsync/_modals.scss +24 -0
- data/assets/stylesheets/bookingsync/_navbar.scss +53 -0
- data/assets/stylesheets/bookingsync/_sheet.scss +9 -0
- data/assets/stylesheets/bookingsync/_smiles.scss +25 -19
- data/assets/stylesheets/bookingsync/_theme.scss +0 -22
- data/assets/stylesheets/bookingsync/_variables.scss +191 -38
- data/blueprints/ember-cli-bootstrap-bookingsync-sass/files/app/styles/app.scss +3 -0
- data/blueprints/ember-cli-bootstrap-bookingsync-sass/files/app/templates/application.hbs +31 -0
- data/blueprints/ember-cli-bootstrap-bookingsync-sass/files/ember-cli-build.js +28 -0
- data/blueprints/ember-cli-bootstrap-bookingsync-sass/index.js +15 -0
- data/bower.json +14 -0
- data/config/deploy.js +30 -0
- data/config/ember-try.js +36 -0
- data/config/environment.js +6 -0
- data/docs/Gemfile +1 -1
- data/docs/Gemfile.lock +16 -13
- data/docs/Rakefile +1 -1
- data/docs/Rules +29 -11
- data/docs/content/assets/fonts/bookingsync/bookingsync-icons.eot +0 -0
- data/docs/content/assets/fonts/bookingsync/bookingsync-icons.svg +37 -0
- data/docs/content/assets/fonts/bookingsync/bookingsync-icons.ttf +0 -0
- data/docs/content/assets/fonts/bookingsync/bookingsync-icons.woff +0 -0
- data/docs/content/assets/fonts/bookingsync/bookingsync-icons.woff2 +0 -0
- data/docs/content/assets/fonts/bookingsync/bookingsync-smiles.eot +0 -0
- data/docs/content/assets/fonts/bookingsync/bookingsync-smiles.svg +19 -0
- data/docs/content/assets/fonts/bookingsync/bookingsync-smiles.ttf +0 -0
- data/docs/content/assets/fonts/bookingsync/bookingsync-smiles.woff +0 -0
- data/docs/content/assets/fonts/bookingsync/bookingsync-smiles.woff2 +0 -0
- data/docs/content/assets/images/bookingsync.png +0 -0
- data/docs/content/assets/javascripts/application.js.coffee +1 -0
- data/docs/content/assets/stylesheets/_base.scss +64 -25
- data/docs/content/assets/stylesheets/_code.scss +6 -0
- data/docs/content/assets/stylesheets/_icons.scss +54 -0
- data/docs/content/assets/stylesheets/_override.scss +67 -0
- data/docs/content/assets/stylesheets/_variables.scss +7 -0
- data/docs/content/assets/stylesheets/application.scss +2 -1
- data/docs/content/brand.html +9 -0
- data/docs/content/brand/_navbar.html +17 -0
- data/docs/content/brand/colors.md +101 -0
- data/docs/content/brand/iconography.md +87 -0
- data/docs/content/brand/smiles.md +51 -0
- data/docs/content/brand/typography.md +301 -0
- data/docs/content/buttons.html +6 -0
- data/docs/content/buttons/_navbar.html +13 -0
- data/docs/content/buttons/buttons.md +320 -0
- data/docs/content/components.html +11 -22
- data/docs/content/components/_navbar.html +22 -0
- data/docs/content/components/chosen.md +28 -17
- data/docs/content/components/dropdown.md +2 -4
- data/docs/content/components/list-group.md +239 -0
- data/docs/content/components/menu.md +134 -219
- data/docs/content/components/modal.html +108 -0
- data/docs/content/components/sheet.md +11 -60
- data/docs/content/components/switch.md +42 -25
- data/docs/content/compositions.html +6 -0
- data/docs/content/compositions/_navbar.html +12 -0
- data/docs/content/compositions/compositions.md +348 -0
- data/docs/content/embed/menu.html +160 -0
- data/docs/content/forms.html +6 -0
- data/docs/content/forms/_navbar.html +39 -0
- data/docs/content/{css → forms}/forms.md +98 -86
- data/docs/content/utilities.html +6 -0
- data/docs/content/utilities/_navbar.html +6 -0
- data/docs/content/{css → utilities}/helpers.md +4 -6
- data/docs/layouts/default.html +12 -7
- data/docs/layouts/embed.html +7 -0
- data/docs/layouts/head.html +1 -2
- data/docs/layouts/navbar.html +15 -23
- data/docs/layouts/sidebar.html +53 -0
- data/docs/nanoc.yaml +2 -0
- data/docs/public/ember/assets/dummy-605390683726afd79cffdf529eb4531a.css +28 -0
- data/docs/public/ember/assets/dummy-daae8f1136db419cd268e84ad4f5c989.js +2 -0
- data/docs/public/ember/assets/vendor-226e4280b8b1da91e2e598b6726ea1f4.js +28 -0
- data/docs/public/ember/assets/vendor-d41d8cd98f00b204e9800998ecf8427e.css +0 -0
- data/docs/public/ember/crossdomain.xml +15 -0
- data/docs/public/ember/fonts/bookingsync/bookingsync-icons.eot +0 -0
- data/docs/public/ember/fonts/bookingsync/bookingsync-icons.svg +37 -0
- data/docs/public/ember/fonts/bookingsync/bookingsync-icons.ttf +0 -0
- data/docs/public/ember/fonts/bookingsync/bookingsync-icons.woff +0 -0
- data/docs/public/ember/fonts/bookingsync/bookingsync-icons.woff2 +0 -0
- data/docs/public/ember/fonts/bookingsync/bookingsync-smiles.eot +0 -0
- data/docs/public/ember/fonts/bookingsync/bookingsync-smiles.svg +19 -0
- data/docs/public/ember/fonts/bookingsync/bookingsync-smiles.ttf +0 -0
- data/docs/public/ember/fonts/bookingsync/bookingsync-smiles.woff +0 -0
- data/docs/public/ember/fonts/bookingsync/bookingsync-smiles.woff2 +0 -0
- data/docs/public/ember/index.html +27 -0
- data/docs/public/ember/robots.txt +3 -0
- data/ember-cli-build.js +23 -0
- data/index.js +78 -0
- data/lib/bootstrap/bookingsync/version.rb +1 -1
- data/package.json +62 -0
- data/testem.json +12 -0
- data/tests/.jshintrc +52 -0
- data/tests/dummy/app/app.js +18 -0
- data/tests/dummy/app/components/.gitkeep +0 -0
- data/tests/dummy/app/controllers/.gitkeep +0 -0
- data/tests/dummy/app/controllers/index.js +31 -0
- data/tests/dummy/app/helpers/.gitkeep +0 -0
- data/tests/dummy/app/index.html +25 -0
- data/tests/dummy/app/models/.gitkeep +0 -0
- data/tests/dummy/app/resolver.js +3 -0
- data/tests/dummy/app/router.js +11 -0
- data/tests/dummy/app/routes/.gitkeep +0 -0
- data/tests/dummy/app/styles/app.scss +3 -0
- data/tests/dummy/app/templates/application.hbs +7 -0
- data/tests/dummy/app/templates/components/.gitkeep +0 -0
- data/tests/dummy/app/templates/index.hbs +275 -0
- data/tests/dummy/app/templates/navbar.hbs +24 -0
- data/tests/dummy/app/templates/sidebar.hbs +47 -0
- data/tests/dummy/config/environment.js +47 -0
- data/tests/dummy/public/crossdomain.xml +15 -0
- data/tests/dummy/public/robots.txt +3 -0
- data/tests/helpers/destroy-app.js +5 -0
- data/tests/helpers/module-for-acceptance.js +23 -0
- data/tests/helpers/resolver.js +11 -0
- data/tests/helpers/start-app.js +18 -0
- data/tests/index.html +34 -0
- data/tests/integration/.gitkeep +0 -0
- data/tests/integration/components/bsy-button-test.js +24 -0
- data/tests/test-helper.js +6 -0
- data/tests/unit/.gitkeep +0 -0
- data/vendor/.gitkeep +0 -0
- metadata +127 -8
- data/docs/content/css.html +0 -68
@@ -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><a></code>, <code><button></code>, or <code><input></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><a></code> and <code><button></code> elements, only <code><button></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>×</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>×</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><button></code> elements, this is done via <code>:active</code>. For <code><a></code> elements, it's done with <code>.active</code>. However, you may use <code>.active</code> on <code><button></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><button></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>×</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>×</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>×</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>×</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
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
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-
|
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
|
-
|
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-
|
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
|
-
|
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>
|