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,160 @@
|
|
1
|
+
<nav id="sidebar" class="menu menu-fixed flex-col">
|
2
|
+
<header class="menu-header">
|
3
|
+
<div class="menu-icon menu-header-icon">
|
4
|
+
<i class="bs-icon-bookingsync"></i>
|
5
|
+
</div>
|
6
|
+
<div class="menu-body menu-header-body">
|
7
|
+
<h4 class="menu-header-heading">Vacation Rentals</h4>
|
8
|
+
<small>
|
9
|
+
<a href="#menu-header-submenu"
|
10
|
+
data-toggle="collapse"
|
11
|
+
role="button"
|
12
|
+
aria-expanded="false"
|
13
|
+
aria-controls="menu-header-submenu"
|
14
|
+
class="collapsed">
|
15
|
+
Switch account
|
16
|
+
<span class="caret"></span>
|
17
|
+
</a>
|
18
|
+
</small>
|
19
|
+
</div>
|
20
|
+
<nav id="menu-header-submenu" class="collapse menu-header-submenu">
|
21
|
+
<ol>
|
22
|
+
<li role="presentation">
|
23
|
+
<a href="#">Bed and Breakfast</a>
|
24
|
+
</li>
|
25
|
+
<li role="presentation" class="active">
|
26
|
+
<a href="#">City Apartments</a>
|
27
|
+
</li>
|
28
|
+
</ol>
|
29
|
+
</nav>
|
30
|
+
</header>
|
31
|
+
<div class="menu-body flex-1">
|
32
|
+
<ol>
|
33
|
+
<li role="presentation" class="active">
|
34
|
+
<a href="#" class="menu-link">
|
35
|
+
<div class="menu-icon menu-link-icon">
|
36
|
+
<i class="icon-calendar"></i>
|
37
|
+
</div>
|
38
|
+
<div class="menu-body menu-link-body">
|
39
|
+
Bookings
|
40
|
+
</div>
|
41
|
+
</a>
|
42
|
+
</li>
|
43
|
+
<li role="presentation">
|
44
|
+
<a href="#" class="menu-link">
|
45
|
+
<div class="menu-icon menu-link-icon">
|
46
|
+
<i class="icon-clients"></i>
|
47
|
+
</div>
|
48
|
+
<div class="menu-body menu-link-body">
|
49
|
+
Clients
|
50
|
+
</div>
|
51
|
+
</a>
|
52
|
+
</li>
|
53
|
+
<li role="presentation">
|
54
|
+
<a href="#" class="menu-link">
|
55
|
+
<div class="menu-icon menu-link-icon">
|
56
|
+
<i class="icon-rental"></i>
|
57
|
+
</div>
|
58
|
+
<div class="menu-body menu-link-body">
|
59
|
+
Rentals
|
60
|
+
</div>
|
61
|
+
</a>
|
62
|
+
</li>
|
63
|
+
</ol>
|
64
|
+
</div>
|
65
|
+
<footer class="menu-footer">
|
66
|
+
<ol>
|
67
|
+
<li role="separator" class="divider"></li>
|
68
|
+
<li role="presentation">
|
69
|
+
<a href="#" class="menu-link">
|
70
|
+
<div class="menu-icon menu-link-icon">
|
71
|
+
<i class="icon-applications"></i>
|
72
|
+
</div>
|
73
|
+
<div class="menu-body menu-link-body">
|
74
|
+
Apps
|
75
|
+
</div>
|
76
|
+
</a>
|
77
|
+
</li>
|
78
|
+
<li role="presentation">
|
79
|
+
<a href="#" class="menu-link" data-toggle="toggle" data-target="#sidebar"
|
80
|
+
data-value="menu-collapsed">
|
81
|
+
<div class="menu-icon menu-link-icon">
|
82
|
+
<i class="icon-settings"></i>
|
83
|
+
</div>
|
84
|
+
<div class="menu-body menu-link-body">
|
85
|
+
Settings
|
86
|
+
</div>
|
87
|
+
<div class="menu-caret">
|
88
|
+
<span class="caret-right"></span>
|
89
|
+
</div>
|
90
|
+
</a>
|
91
|
+
</li>
|
92
|
+
<li role="separator" class="divider"></li>
|
93
|
+
<li role="presentation">
|
94
|
+
<a href="#menu-footer-submenu"
|
95
|
+
data-toggle="collapse"
|
96
|
+
role="button"
|
97
|
+
aria-expanded="false"
|
98
|
+
aria-controls="menu-footer-submenu"
|
99
|
+
class="collapsed menu-link">
|
100
|
+
<div class="menu-icon menu-footer-icon">
|
101
|
+
<img src="http://lorempixel.com/100/100/people/9" alt="Jane Doe"
|
102
|
+
class="img-rounded">
|
103
|
+
</div>
|
104
|
+
<div class="menu-body menu-link-body">
|
105
|
+
Jane Doe
|
106
|
+
</div>
|
107
|
+
<div class="menu-caret">
|
108
|
+
<span class="caret"></span>
|
109
|
+
</div>
|
110
|
+
</a>
|
111
|
+
</li>
|
112
|
+
</ol>
|
113
|
+
<nav id="menu-footer-submenu" class="collapse menu-footer-submenu">
|
114
|
+
<ol>
|
115
|
+
<li role="presentation">
|
116
|
+
<a href="#">Help Center</a>
|
117
|
+
</li>
|
118
|
+
<li role="separator" class="divider"></li>
|
119
|
+
<li role="presentation">
|
120
|
+
<a href="#">Profile</a>
|
121
|
+
</li>
|
122
|
+
<li role="presentation" class="active">
|
123
|
+
<a href="#">Logout</a>
|
124
|
+
</li>
|
125
|
+
</ol>
|
126
|
+
</nav>
|
127
|
+
</footer>
|
128
|
+
</nav>
|
129
|
+
<nav class="menu menu-fixed flex-col menu-submenu">
|
130
|
+
<header class="menu-header">
|
131
|
+
<div class="menu-body menu-header-body">
|
132
|
+
<h4 class="menu-header-heading">Settings</h4>
|
133
|
+
</div>
|
134
|
+
</header>
|
135
|
+
<div class="menu-body flex-1">
|
136
|
+
<ol>
|
137
|
+
<li role="presentation" class="active">
|
138
|
+
<a href="#" class="menu-link">
|
139
|
+
<div class="menu-body menu-link-body">
|
140
|
+
General
|
141
|
+
</div>
|
142
|
+
</a>
|
143
|
+
</li>
|
144
|
+
<li role="presentation">
|
145
|
+
<a href="#" class="menu-link">
|
146
|
+
<div class="menu-body menu-link-body">
|
147
|
+
Payments
|
148
|
+
</div>
|
149
|
+
</a>
|
150
|
+
</li>
|
151
|
+
<li role="presentation">
|
152
|
+
<a href="#" class="menu-link">
|
153
|
+
<div class="menu-body menu-link-body">
|
154
|
+
Apps
|
155
|
+
</div>
|
156
|
+
</a>
|
157
|
+
</li>
|
158
|
+
</ol>
|
159
|
+
</div>
|
160
|
+
</nav>
|
@@ -0,0 +1,39 @@
|
|
1
|
+
<ul class="list-group list-unstyled">
|
2
|
+
<li><%= link_to("Basic form", "#basic-form", class: "list-group-item") %></li>
|
3
|
+
<li><%= link_to("Inline form", "#inline-form", class: "list-group-item") %></li>
|
4
|
+
<li><%= link_to("Inline form with checkboxes", "#inline-form-with-checkboxes",
|
5
|
+
class: "list-group-item") %></li>
|
6
|
+
<li><%= link_to("Inline form with input group", "#inline-form-with-input-group",
|
7
|
+
class: "list-group-item") %></li>
|
8
|
+
<li><%= link_to("Horizontal form", "#horizontal-form", class: "list-group-item") %></li>
|
9
|
+
<li><%= link_to("Inputs", "#inputs", class: "list-group-item") %></li>
|
10
|
+
<li><%= link_to("Textarea", "#textarea", class: "list-group-item") %></li>
|
11
|
+
<li><%= link_to("Checkboxes and radios (stacked)", "#checkboxes-and-radios",
|
12
|
+
class: "list-group-item") %></li>
|
13
|
+
<li><%= link_to("Inline checkboxes and radios", "#inline-checkboxes-and-radios",
|
14
|
+
class: "list-group-item") %></li>
|
15
|
+
<li><%= link_to("Checkboxes and radios without label text",
|
16
|
+
"#checkboxes-and-radios-without-label-text",
|
17
|
+
class: "list-group-item") %></li>
|
18
|
+
<li><%= link_to("Select", "#select", class: "list-group-item") %></li>
|
19
|
+
<li><%= link_to("Multiple Select", "#multiple-select",
|
20
|
+
class: "list-group-item") %></li>
|
21
|
+
<li><%= link_to("Static control", "#static-control", class: "list-group-item") %></li>
|
22
|
+
<li><%= link_to("Focus state", "#focus-state", class: "list-group-item") %></li>
|
23
|
+
<li><%= link_to("Filled state", "#filled-state", class: "list-group-item") %></li>
|
24
|
+
<li><%= link_to("Disabled state", "#disabled-state", class: "list-group-item") %></li>
|
25
|
+
<li><%= link_to("Disabled fieldsets", "#disabled-fieldsets",
|
26
|
+
class: "list-group-item") %></li>
|
27
|
+
<li><%= link_to("Readonly state", "#readonly-state", class: "list-group-item") %></li>
|
28
|
+
<li><%= link_to("Help text", "#help-text", class: "list-group-item") %></li>
|
29
|
+
<li><%= link_to("Validation states", "#validation-states", class: "list-group-item") %></li>
|
30
|
+
<li><%= link_to("Validation with optional icons", "#validation-with-optional-icons",
|
31
|
+
class: "list-group-item") %></li>
|
32
|
+
<li><%= link_to("Validation with optional icons in horizontal and inline forms",
|
33
|
+
"#validation-with-optional-icons-in-horizontal-and-inline-forms",
|
34
|
+
class: "list-group-item") %></li>
|
35
|
+
<li><%= link_to("Height sizing", "#height-sizing", class: "list-group-item") %></li>
|
36
|
+
<li><%= link_to("Horizontal form group sizes", "#horizontal-form-group-sizes",
|
37
|
+
class: "list-group-item") %></li>
|
38
|
+
<li><%= link_to("Column sizing", "#column-sizing", class: "list-group-item") %></li>
|
39
|
+
</ul>
|
@@ -1,8 +1,6 @@
|
|
1
|
-
# Forms
|
2
|
-
|
3
1
|
<div class="example">
|
4
2
|
<div class="sheet-header">
|
5
|
-
<h3 id="
|
3
|
+
<h3 id="basic-form">Basic form</h3>
|
6
4
|
</div>
|
7
5
|
|
8
6
|
<p>
|
@@ -18,7 +16,7 @@
|
|
18
16
|
Instead, nest the input group inside of the form group.</p>
|
19
17
|
</div>
|
20
18
|
|
21
|
-
<div class="bs-example bs-sheet" data-example-id="
|
19
|
+
<div class="bs-example bs-sheet" data-example-id="basic-form">
|
22
20
|
<form>
|
23
21
|
<div class="form-group">
|
24
22
|
<label for="exampleInputEmail1">Email address</label>
|
@@ -57,6 +55,10 @@
|
|
57
55
|
<label for="exampleInputPassword1">Password</label>
|
58
56
|
<input type="password" class="form-control" id="exampleInputPassword1">
|
59
57
|
</div>
|
58
|
+
<div class="form-group">
|
59
|
+
<label for="exampleTextarea1">Comment</label>
|
60
|
+
<textarea class="form-control" id="exampleTextarea1" rows="5"></textarea>
|
61
|
+
</div>
|
60
62
|
<div class="form-group">
|
61
63
|
<label for="exampleInputFile">File input</label>
|
62
64
|
<input type="file" id="exampleInputFile">
|
@@ -73,7 +75,7 @@
|
|
73
75
|
|
74
76
|
<div class="example">
|
75
77
|
<div class="sheet-header">
|
76
|
-
<h3 id="
|
78
|
+
<h3 id="inline-form">Inline form</h3>
|
77
79
|
</div>
|
78
80
|
|
79
81
|
<p>Add <code>.form-inline</code> to your form (which doesn't have to be a
|
@@ -90,7 +92,7 @@
|
|
90
92
|
<p>Screen readers will have trouble with your forms if you don't include a label for every input. For these inline forms, you can hide the labels using the `.sr-only` class. There are further alternative methods of providing a label for assistive technologies, such as the `aria-label`, `aria- labelledby` or `title` attribute. If none of these is present, screen readers may resort to using the `placeholder` attribute, if present, but note that use of `placeholder` as a replacement for other labelling methods is not advised.</p>
|
91
93
|
</div>
|
92
94
|
|
93
|
-
<div class="bs-example bs-sheet" data-example-id="
|
95
|
+
<div class="bs-example bs-sheet" data-example-id="inline-form">
|
94
96
|
<form class="form-inline">
|
95
97
|
<div class="form-group">
|
96
98
|
<label for="exampleInputName2">Name</label>
|
@@ -121,9 +123,9 @@
|
|
121
123
|
|
122
124
|
<div class="example">
|
123
125
|
<div class="sheet-header">
|
124
|
-
<h3 id="
|
126
|
+
<h3 id="inline-form-with-checkboxes">Inline form with checkboxes</h3>
|
125
127
|
</div>
|
126
|
-
<div class="bs-example bs-sheet" data-example-id="
|
128
|
+
<div class="bs-example bs-sheet" data-example-id="inline-form-with-checkboxes">
|
127
129
|
<form class="form-inline">
|
128
130
|
<div class="form-group">
|
129
131
|
<label for="exampleInputEmail3">Email address</label>
|
@@ -164,9 +166,10 @@
|
|
164
166
|
|
165
167
|
<div class="example">
|
166
168
|
<div class="sheet-header">
|
167
|
-
<h3 id="
|
169
|
+
<h3 id="inline-form-with-input-group">Inline form with input group</h3>
|
168
170
|
</div>
|
169
|
-
<div class="bs-example bs-sheet"
|
171
|
+
<div class="bs-example bs-sheet"
|
172
|
+
data-example-id="inline-form-with-input-group">
|
170
173
|
<form class="form-inline">
|
171
174
|
<div class="form-group">
|
172
175
|
<label class="sr-only" for="exampleInputAmount">Amount (in dollars)</label>
|
@@ -189,7 +192,6 @@
|
|
189
192
|
</form>
|
190
193
|
</div>
|
191
194
|
</div>
|
192
|
-
|
193
195
|
~~~ html
|
194
196
|
<form class="form-inline">
|
195
197
|
<div class="form-group">
|
@@ -215,7 +217,7 @@
|
|
215
217
|
|
216
218
|
<div class="example">
|
217
219
|
<div class="sheet-header">
|
218
|
-
<h3 id="
|
220
|
+
<h3 id="horizontal-form">Horizontal form</h3>
|
219
221
|
</div>
|
220
222
|
<div class="bs-callout bs-callout-info">
|
221
223
|
<h4>Not Recommended</h4>
|
@@ -225,7 +227,7 @@
|
|
225
227
|
|
226
228
|
<div class="example">
|
227
229
|
<div class="sheet-header">
|
228
|
-
<h3 id="
|
230
|
+
<h3 id="inputs">Inputs</h3>
|
229
231
|
</div>
|
230
232
|
<p>
|
231
233
|
Most common form control, text-based input fields. Includes support for all HTML5 types:
|
@@ -247,7 +249,7 @@
|
|
247
249
|
component</a>.</p>
|
248
250
|
</div>
|
249
251
|
|
250
|
-
<div class="bs-example bs-sheet" data-example-id="
|
252
|
+
<div class="bs-example bs-sheet" data-example-id="inputs">
|
251
253
|
<form>
|
252
254
|
<input type="text" class="form-control" placeholder="Text input">
|
253
255
|
</form>
|
@@ -260,13 +262,13 @@
|
|
260
262
|
|
261
263
|
<div class="example">
|
262
264
|
<div class="sheet-header">
|
263
|
-
<h3 id="
|
265
|
+
<h3 id="textarea">Textarea</h3>
|
264
266
|
</div>
|
265
267
|
|
266
268
|
<p>Form control which supports multiple lines of text.
|
267
269
|
Change <code>rows</code> attribute as necessary.</p>
|
268
270
|
|
269
|
-
<div class="bs-example bs-sheet" data-example-id="
|
271
|
+
<div class="bs-example bs-sheet" data-example-id="textarea">
|
270
272
|
<form>
|
271
273
|
<div class="form-group">
|
272
274
|
<textarea class="form-control" rows="3" placeholder="Textarea"></textarea>
|
@@ -276,12 +278,14 @@
|
|
276
278
|
</div>
|
277
279
|
|
278
280
|
~~~ html
|
279
|
-
<
|
281
|
+
<div class="form-group">
|
282
|
+
<textarea class="form-control" rows="3"></textarea>
|
283
|
+
</div>
|
280
284
|
~~~
|
281
285
|
|
282
286
|
<div class="example">
|
283
287
|
<div class="sheet-header">
|
284
|
-
<h3 id="
|
288
|
+
<h3 id="checkboxes-and-radios">Checkboxes and radios (stacked)</h3>
|
285
289
|
</div>
|
286
290
|
|
287
291
|
<p>Checkboxes are for selecting one or several options in a list, while radios are for
|
@@ -294,7 +298,7 @@
|
|
294
298
|
<code>.radio-inline</code>, <code>.checkbox</code>, or <code>.checkbox-inline</code>.</p>
|
295
299
|
</div>
|
296
300
|
|
297
|
-
<div class="bs-example bs-sheet" data-example-id="
|
301
|
+
<div class="bs-example bs-sheet" data-example-id="checkboxes-and-radios">
|
298
302
|
<form>
|
299
303
|
<div class="checkbox">
|
300
304
|
<label>
|
@@ -330,7 +334,6 @@
|
|
330
334
|
</form>
|
331
335
|
</div>
|
332
336
|
</div>
|
333
|
-
|
334
337
|
~~~ html
|
335
338
|
<div class="checkbox">
|
336
339
|
<label>
|
@@ -367,13 +370,13 @@
|
|
367
370
|
|
368
371
|
<div class="example">
|
369
372
|
<div class="sheet-header">
|
370
|
-
<h3 id="
|
373
|
+
<h3 id="inline-checkboxes-and-radios">Inline checkboxes and radios</h3>
|
371
374
|
</div>
|
372
375
|
|
373
376
|
<p>Use the <code>.checkbox-inline</code> or <code>.radio-inline</code> classes on a series of
|
374
377
|
checkboxes or radios for controls that appear on the same line.</p>
|
375
378
|
|
376
|
-
<div class="bs-example bs-sheet" data-example-id="
|
379
|
+
<div class="bs-example bs-sheet" data-example-id="inline-checkboxes-and-radios">
|
377
380
|
<form>
|
378
381
|
<label class="checkbox-inline">
|
379
382
|
<input type="checkbox" id="inlineCheckbox1" value="option1"> 1
|
@@ -399,7 +402,6 @@
|
|
399
402
|
</form>
|
400
403
|
</div>
|
401
404
|
</div>
|
402
|
-
|
403
405
|
~~~ html
|
404
406
|
<label class="checkbox-inline">
|
405
407
|
<input type="checkbox" id="inlineCheckbox1" value="option1"> 1
|
@@ -424,7 +426,7 @@
|
|
424
426
|
|
425
427
|
<div class="example">
|
426
428
|
<div class="sheet-header">
|
427
|
-
<h3 id="
|
429
|
+
<h3 id="checkboxes-and-radios-without-label-text">
|
428
430
|
Checkboxes and radios without label text
|
429
431
|
</h3>
|
430
432
|
</div>
|
@@ -438,7 +440,7 @@
|
|
438
440
|
<p>Currently only works on non-inline checkboxes and radios.</p>
|
439
441
|
</div>
|
440
442
|
|
441
|
-
<div class="bs-example bs-sheet" data-example-id="
|
443
|
+
<div class="bs-example bs-sheet" data-example-id="checkboxes-and-radios-without-label-text">
|
442
444
|
<form>
|
443
445
|
<div class="checkbox">
|
444
446
|
<label>
|
@@ -453,7 +455,6 @@
|
|
453
455
|
</form>
|
454
456
|
</div>
|
455
457
|
</div>
|
456
|
-
|
457
458
|
~~~ html
|
458
459
|
<div class="checkbox">
|
459
460
|
<label>
|
@@ -469,7 +470,7 @@
|
|
469
470
|
|
470
471
|
<div class="example">
|
471
472
|
<div class="sheet-header">
|
472
|
-
<h3 id="
|
473
|
+
<h3 id="select">Select</h3>
|
473
474
|
</div>
|
474
475
|
|
475
476
|
<p>Note that many native select menus—namely in Safari and Chrome—have rounded corners that
|
@@ -478,35 +479,41 @@
|
|
478
479
|
<div class="bs-callout bs-callout-info">
|
479
480
|
<h4>Chosen</h4>
|
480
481
|
<p>Using Chosen is recommended for a better design and improved experience. More details in
|
481
|
-
the <a href="/components/#chosen">Chosen component</a>.</p>
|
482
|
+
the <a href="/components/#chosen-select">Chosen component</a>.</p>
|
482
483
|
</div>
|
483
484
|
|
484
|
-
<div class="bs-example bs-sheet" data-example-id="
|
485
|
+
<div class="bs-example bs-sheet" data-example-id="select">
|
485
486
|
<form>
|
486
|
-
<
|
487
|
-
<
|
488
|
-
<
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
487
|
+
<div class="select">
|
488
|
+
<label for="destination">Destination</label>
|
489
|
+
<select class="form-control" id="destination">
|
490
|
+
<option>1</option>
|
491
|
+
<option>2</option>
|
492
|
+
<option>3</option>
|
493
|
+
<option>4</option>
|
494
|
+
<option>5</option>
|
495
|
+
</select>
|
496
|
+
</div>
|
493
497
|
</form>
|
494
498
|
</div>
|
495
499
|
</div>
|
496
500
|
|
497
501
|
~~~ html
|
498
|
-
<
|
499
|
-
<
|
500
|
-
<
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
</
|
502
|
+
<div class="select">
|
503
|
+
<label for="destination">Destination</label>
|
504
|
+
<select class="form-control" id="destination">
|
505
|
+
<option>1</option>
|
506
|
+
<option>2</option>
|
507
|
+
<option>3</option>
|
508
|
+
<option>4</option>
|
509
|
+
<option>5</option>
|
510
|
+
</select>
|
511
|
+
</div>
|
505
512
|
~~~
|
506
513
|
|
507
514
|
<div class="example">
|
508
515
|
<div class="sheet-header">
|
509
|
-
<h3 id="
|
516
|
+
<h3 id="multiple-select">Multiple Select</h3>
|
510
517
|
</div>
|
511
518
|
|
512
519
|
<p>For <code><select></code> controls with the <code>multiple</code> attribute,
|
@@ -515,41 +522,46 @@
|
|
515
522
|
<div class="bs-callout bs-callout-info">
|
516
523
|
<h4>Chosen</h4>
|
517
524
|
<p>Using Chosen is recommended for a better design and improved experience. More details in
|
518
|
-
the <a href="/components/#chosen">Chosen component</a>.</p>
|
525
|
+
the <a href="/components/#chosen-multiple-select">Chosen component</a>.</p>
|
519
526
|
</div>
|
520
527
|
|
521
|
-
<div class="bs-example bs-sheet" data-example-id="
|
528
|
+
<div class="bs-example bs-sheet" data-example-id="multiple-select">
|
522
529
|
<form>
|
523
|
-
<
|
524
|
-
<
|
525
|
-
<
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
+
<div class="select">
|
531
|
+
<label for="destinations">Destinations</label>
|
532
|
+
<select multiple class="form-control" id="destinations">
|
533
|
+
<option>1</option>
|
534
|
+
<option>2</option>
|
535
|
+
<option>3</option>
|
536
|
+
<option>4</option>
|
537
|
+
<option>5</option>
|
538
|
+
</select>
|
539
|
+
</div>
|
530
540
|
</form>
|
531
541
|
</div>
|
532
542
|
</div>
|
533
|
-
|
534
543
|
~~~ html
|
535
|
-
<
|
536
|
-
<
|
537
|
-
<
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
</
|
544
|
+
<div class="select">
|
545
|
+
<label for="destinations">Destinations</label>
|
546
|
+
<select multiple class="form-control" id="destinations">
|
547
|
+
<option>1</option>
|
548
|
+
<option>2</option>
|
549
|
+
<option>3</option>
|
550
|
+
<option>4</option>
|
551
|
+
<option>5</option>
|
552
|
+
</select>
|
553
|
+
</div>
|
542
554
|
~~~
|
543
555
|
|
544
556
|
<div class="example">
|
545
557
|
<div class="sheet-header">
|
546
|
-
<h3 id="
|
558
|
+
<h3 id="static-control">Static control</h3>
|
547
559
|
</div>
|
548
560
|
|
549
561
|
<p>When you need to place plain text next to a form label within a form, use the
|
550
562
|
<code>.form-control-static</code> class on a <code><p>.</code></p>
|
551
563
|
|
552
|
-
<div class="bs-example bs-sheet" data-example-id="
|
564
|
+
<div class="bs-example bs-sheet" data-example-id="static-control">
|
553
565
|
<form class="form-inline">
|
554
566
|
<div class="form-group">
|
555
567
|
<label class="sr-only">Email</label>
|
@@ -580,7 +592,7 @@
|
|
580
592
|
|
581
593
|
<div class="example">
|
582
594
|
<div class="sheet-header">
|
583
|
-
<h3 id="
|
595
|
+
<h3 id="focus-state">Focus state</h3>
|
584
596
|
</div>
|
585
597
|
|
586
598
|
<p>We remove the default <code>outline</code> styles on some form controls and adjust labels
|
@@ -593,7 +605,7 @@
|
|
593
605
|
<code>.form-group .form-control</code>.</p>
|
594
606
|
</div>
|
595
607
|
|
596
|
-
<div class="bs-example bs-sheet" data-example-id="
|
608
|
+
<div class="bs-example bs-sheet" data-example-id="focus-state">
|
597
609
|
<form>
|
598
610
|
<div class="form-group focused">
|
599
611
|
<label for="focusedInput2">Focus state</label>
|
@@ -626,7 +638,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas a blandit quam
|
|
626
638
|
|
627
639
|
<div class="example">
|
628
640
|
<div class="sheet-header">
|
629
|
-
<h3 id="
|
641
|
+
<h3 id="filled-state">Filled state</h3>
|
630
642
|
</div>
|
631
643
|
|
632
644
|
<div class="bs-callout bs-callout-info">
|
@@ -636,7 +648,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas a blandit quam
|
|
636
648
|
<code>.form-group .form-control</code>.</p>
|
637
649
|
</div>
|
638
650
|
|
639
|
-
<div class="bs-example bs-sheet" data-example-id="
|
651
|
+
<div class="bs-example bs-sheet" data-example-id="filled-state">
|
640
652
|
<form>
|
641
653
|
<div class="form-group filled">
|
642
654
|
<label for="filledInput">Filled state</label>
|
@@ -669,13 +681,13 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas a blandit quam
|
|
669
681
|
|
670
682
|
<div class="example">
|
671
683
|
<div class="sheet-header">
|
672
|
-
<h3 id="
|
684
|
+
<h3 id="disabled-state">Disabled state</h3>
|
673
685
|
</div>
|
674
686
|
|
675
687
|
<p>Add the <code>disabled</code> boolean attribute on an input to prevent user interactions.
|
676
688
|
Disabled inputs appear lighter and add a <code>not-allowed</code> cursor.</p>
|
677
689
|
|
678
|
-
<div class="bs-example bs-sheet" data-example-id="
|
690
|
+
<div class="bs-example bs-sheet" data-example-id="disabled-state">
|
679
691
|
<form>
|
680
692
|
<div class="form-group">
|
681
693
|
<label for="disabledInput">Disabled state</label>
|
@@ -746,7 +758,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas a blandit quam
|
|
746
758
|
|
747
759
|
<div class="example">
|
748
760
|
<div class="sheet-header">
|
749
|
-
<h3 id="
|
761
|
+
<h3 id="disabled-fieldsets">Disabled fieldsets</h3>
|
750
762
|
</div>
|
751
763
|
|
752
764
|
<p>Add the <code>disabled</code> attribute to a <code><fieldset></code> to disable all
|
@@ -774,7 +786,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas a blandit quam
|
|
774
786
|
Use custom JavaScript to disable the fieldset in these browsers.</p>
|
775
787
|
</div>
|
776
788
|
|
777
|
-
<div class="bs-example bs-sheet" data-example-id="
|
789
|
+
<div class="bs-example bs-sheet" data-example-id="disabled-fieldsets">
|
778
790
|
<form>
|
779
791
|
<fieldset disabled>
|
780
792
|
<div class="form-group">
|
@@ -854,14 +866,14 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas a blandit quam
|
|
854
866
|
|
855
867
|
<div class="example">
|
856
868
|
<div class="sheet-header">
|
857
|
-
<h3 id="
|
869
|
+
<h3 id="readonly-state">Readonly state</h3>
|
858
870
|
</div>
|
859
871
|
|
860
872
|
<p>Add the <code>readonly</code> boolean attribute on an input to prevent modification of
|
861
873
|
the input's value. Read-only inputs appear lighter (just like disabled inputs), but retain
|
862
874
|
the standard cursor.</p>
|
863
875
|
|
864
|
-
<div class="bs-example bs-sheet" data-example-id="
|
876
|
+
<div class="bs-example bs-sheet" data-example-id="readonly-state">
|
865
877
|
<form>
|
866
878
|
<div class="form-group">
|
867
879
|
<label for="readonlyInput">Readonly state</label>
|
@@ -910,7 +922,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas a blandit quam
|
|
910
922
|
|
911
923
|
<div class="example">
|
912
924
|
<div class="sheet-header">
|
913
|
-
<h3 id="
|
925
|
+
<h3 id="help-text">Help text</h3>
|
914
926
|
</div>
|
915
927
|
|
916
928
|
<p>Block level help text for form controls.</p>
|
@@ -923,7 +935,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas a blandit quam
|
|
923
935
|
control.</p>
|
924
936
|
</div>
|
925
937
|
|
926
|
-
<div class="bs-example bs-sheet" data-example-id="
|
938
|
+
<div class="bs-example bs-sheet" data-example-id="help-text">
|
927
939
|
<form>
|
928
940
|
<div class="form-group">
|
929
941
|
<label for="inputHelpBlock">Input with help text</label>
|
@@ -944,7 +956,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas a blandit quam
|
|
944
956
|
|
945
957
|
<div class="example">
|
946
958
|
<div class="sheet-header">
|
947
|
-
<h3 id="
|
959
|
+
<h3 id="validation-states">Validation states</h3>
|
948
960
|
</div>
|
949
961
|
|
950
962
|
<p>Bootstrap includes validation styles for error, warning, and success states on form controls.
|
@@ -952,7 +964,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas a blandit quam
|
|
952
964
|
to the parent element. Any <code>.control-label</code>, <code>.form-control</code>, and
|
953
965
|
<code>.help-block</code> within that element will receive the validation styles.</p>
|
954
966
|
|
955
|
-
<div class="bs-example bs-sheet" data-example-id="
|
967
|
+
<div class="bs-example bs-sheet" data-example-id="validation-states">
|
956
968
|
<form>
|
957
969
|
<div class="form-group has-success">
|
958
970
|
<label class="control-label" for="inputSuccess1">Input with success</label>
|
@@ -1038,7 +1050,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas a blandit quam
|
|
1038
1050
|
|
1039
1051
|
<div class="example">
|
1040
1052
|
<div class="sheet-header">
|
1041
|
-
<h3 id="
|
1053
|
+
<h3 id="validation-with-optional-icons">Validation with optional icons</h3>
|
1042
1054
|
</div>
|
1043
1055
|
|
1044
1056
|
<p>You can also add optional feedback icons with the addition of <code>.has-feedback</code>
|
@@ -1061,7 +1073,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas a blandit quam
|
|
1061
1073
|
your addon.</p>
|
1062
1074
|
</div>
|
1063
1075
|
|
1064
|
-
<div class="bs-example bs-sheet" data-example-id="
|
1076
|
+
<div class="bs-example bs-sheet" data-example-id="validation-with-optional-icons">
|
1065
1077
|
<form>
|
1066
1078
|
<div class="form-group has-success has-feedback">
|
1067
1079
|
<label class="control-label" for="inputSuccess2">Input with success</label>
|
@@ -1131,7 +1143,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas a blandit quam
|
|
1131
1143
|
|
1132
1144
|
<div class="example">
|
1133
1145
|
<div class="sheet-header">
|
1134
|
-
<h3 id="
|
1146
|
+
<h3 id="validation-with-optional-icons-in-horizontal-and-inline-forms">
|
1135
1147
|
Validation with optional icons in horizontal and inline forms
|
1136
1148
|
</h3>
|
1137
1149
|
</div>
|
@@ -1142,7 +1154,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas a blandit quam
|
|
1142
1154
|
</div>
|
1143
1155
|
|
1144
1156
|
<div class="bs-example bs-sheet"
|
1145
|
-
data-example-id="
|
1157
|
+
data-example-id="validation-with-optional-icons-in-horizontal-and-inline-forms">
|
1146
1158
|
<form class="form-inline">
|
1147
1159
|
<div class="form-group has-success has-feedback">
|
1148
1160
|
<label class="control-label" for="inputSuccess4">Input with success</label>
|
@@ -1192,13 +1204,13 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas a blandit quam
|
|
1192
1204
|
|
1193
1205
|
<div class="example">
|
1194
1206
|
<div class="sheet-header">
|
1195
|
-
<h3 id="
|
1207
|
+
<h3 id="height-sizing">Height sizing</h3>
|
1196
1208
|
</div>
|
1197
1209
|
|
1198
1210
|
<p>Set heights using classes like <code>.input-lg</code>. Create taller or shorter form
|
1199
1211
|
controls that match button sizes.</p>
|
1200
1212
|
|
1201
|
-
<div class="bs-example bs-sheet" data-example-id="
|
1213
|
+
<div class="bs-example bs-sheet" data-example-id="height-sizing">
|
1202
1214
|
<form>
|
1203
1215
|
<div class="controls">
|
1204
1216
|
<input class="form-control input-lg" type="text" placeholder=".input-lg">
|
@@ -1231,7 +1243,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas a blandit quam
|
|
1231
1243
|
|
1232
1244
|
<div class="example">
|
1233
1245
|
<div class="sheet-header">
|
1234
|
-
<h3 id="
|
1246
|
+
<h3 id="horizontal-form-group-sizes">Horizontal form group sizes</h3>
|
1235
1247
|
</div>
|
1236
1248
|
|
1237
1249
|
<div class="bs-callout bs-callout-info">
|
@@ -1242,13 +1254,13 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas a blandit quam
|
|
1242
1254
|
|
1243
1255
|
<div class="example">
|
1244
1256
|
<div class="sheet-header">
|
1245
|
-
<h3 id="
|
1257
|
+
<h3 id="column-sizing">Column sizing</h3>
|
1246
1258
|
</div>
|
1247
1259
|
|
1248
1260
|
<p>Set widths using grid column classes like <code>.col-lg-*</code>. Wrap inputs in grid columns,
|
1249
1261
|
or any custom parent element, to easily enforce desired widths.</p>
|
1250
1262
|
|
1251
|
-
<div class="bs-example bs-sheet" data-example-id="
|
1263
|
+
<div class="bs-example bs-sheet" data-example-id="column-sizing">
|
1252
1264
|
<form>
|
1253
1265
|
<div class="row">
|
1254
1266
|
<div class="col-xs-2">
|