bootstrap-sass 3.3.4.1 → 3.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +1 -0
- data/.travis.yml +8 -12
- data/CHANGELOG.md +26 -0
- data/Gemfile +1 -4
- data/LICENSE +2 -1
- data/README.md +80 -74
- data/Rakefile +46 -11
- data/assets/javascripts/bootstrap.js +441 -178
- data/assets/javascripts/bootstrap.min.js +4 -5
- data/assets/javascripts/bootstrap/affix.js +8 -6
- data/assets/javascripts/bootstrap/alert.js +6 -5
- data/assets/javascripts/bootstrap/button.js +24 -15
- data/assets/javascripts/bootstrap/carousel.js +16 -7
- data/assets/javascripts/bootstrap/collapse.js +7 -6
- data/assets/javascripts/bootstrap/dropdown.js +49 -45
- data/assets/javascripts/bootstrap/modal.js +47 -28
- data/assets/javascripts/bootstrap/popover.js +25 -10
- data/assets/javascripts/bootstrap/scrollspy.js +4 -4
- data/assets/javascripts/bootstrap/tab.js +13 -11
- data/assets/javascripts/bootstrap/tooltip.js +232 -31
- data/assets/javascripts/bootstrap/transition.js +5 -5
- data/assets/stylesheets/_bootstrap-mincer.scss +2 -2
- data/assets/stylesheets/_bootstrap.scss +6 -0
- data/assets/stylesheets/bootstrap/_alerts.scss +3 -3
- data/assets/stylesheets/bootstrap/_badges.scss +3 -3
- data/assets/stylesheets/bootstrap/_breadcrumbs.scss +3 -1
- data/assets/stylesheets/bootstrap/_button-groups.scss +9 -8
- data/assets/stylesheets/bootstrap/_buttons.scss +17 -9
- data/assets/stylesheets/bootstrap/_carousel.scss +34 -32
- data/assets/stylesheets/bootstrap/_close.scss +1 -0
- data/assets/stylesheets/bootstrap/_code.scss +3 -3
- data/assets/stylesheets/bootstrap/_component-animations.scss +1 -0
- data/assets/stylesheets/bootstrap/_dropdowns.scss +22 -23
- data/assets/stylesheets/bootstrap/_forms.scss +101 -72
- data/assets/stylesheets/bootstrap/_glyphicons.scss +15 -13
- data/assets/stylesheets/bootstrap/_grid.scss +10 -0
- data/assets/stylesheets/bootstrap/_input-groups.scss +10 -5
- data/assets/stylesheets/bootstrap/_jumbotron.scss +8 -4
- data/assets/stylesheets/bootstrap/_labels.scss +1 -1
- data/assets/stylesheets/bootstrap/_list-group.scss +30 -26
- data/assets/stylesheets/bootstrap/_media.scss +6 -1
- data/assets/stylesheets/bootstrap/_mixins.scss +1 -0
- data/assets/stylesheets/bootstrap/_modals.scss +8 -8
- data/assets/stylesheets/bootstrap/_navbar.scss +75 -81
- data/assets/stylesheets/bootstrap/_navs.scss +4 -4
- data/assets/stylesheets/bootstrap/_normalize.scss +13 -13
- data/assets/stylesheets/bootstrap/_pager.scss +2 -2
- data/assets/stylesheets/bootstrap/_pagination.scss +15 -17
- data/assets/stylesheets/bootstrap/_panels.scss +11 -5
- data/assets/stylesheets/bootstrap/_popovers.scss +50 -59
- data/assets/stylesheets/bootstrap/_print.scss +90 -98
- data/assets/stylesheets/bootstrap/_progress-bars.scss +3 -3
- data/assets/stylesheets/bootstrap/_responsive-embed.scss +2 -2
- data/assets/stylesheets/bootstrap/_responsive-utilities.scss +7 -5
- data/assets/stylesheets/bootstrap/_scaffolding.scss +8 -9
- data/assets/stylesheets/bootstrap/_tables.scss +23 -23
- data/assets/stylesheets/bootstrap/_theme.scss +42 -20
- data/assets/stylesheets/bootstrap/_thumbnails.scss +1 -1
- data/assets/stylesheets/bootstrap/_tooltip.scss +42 -32
- data/assets/stylesheets/bootstrap/_type.scss +11 -11
- data/assets/stylesheets/bootstrap/_variables.scss +16 -8
- data/assets/stylesheets/bootstrap/_wells.scss +2 -2
- data/assets/stylesheets/bootstrap/mixins/_alerts.scss +2 -1
- data/assets/stylesheets/bootstrap/mixins/_background-variant.scss +2 -1
- data/assets/stylesheets/bootstrap/mixins/_border-radius.scss +4 -4
- data/assets/stylesheets/bootstrap/mixins/_buttons.scss +20 -11
- data/assets/stylesheets/bootstrap/mixins/_center-block.scss +1 -1
- data/assets/stylesheets/bootstrap/mixins/_clearfix.scss +1 -1
- data/assets/stylesheets/bootstrap/mixins/_forms.scss +4 -4
- data/assets/stylesheets/bootstrap/mixins/_gradients.scss +6 -8
- data/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +2 -2
- data/assets/stylesheets/bootstrap/mixins/_grid.scss +8 -8
- data/assets/stylesheets/bootstrap/mixins/_hide-text.scss +2 -2
- data/assets/stylesheets/bootstrap/mixins/_image.scss +5 -10
- data/assets/stylesheets/bootstrap/mixins/_list-group.scss +3 -2
- data/assets/stylesheets/bootstrap/mixins/_opacity.scss +2 -3
- data/assets/stylesheets/bootstrap/mixins/_pagination.scss +2 -1
- data/assets/stylesheets/bootstrap/mixins/_reset-text.scss +18 -0
- data/assets/stylesheets/bootstrap/mixins/_resize.scss +1 -1
- data/assets/stylesheets/bootstrap/mixins/_responsive-visibility.scss +1 -5
- data/assets/stylesheets/bootstrap/mixins/_tab-focus.scss +3 -3
- data/assets/stylesheets/bootstrap/mixins/_text-emphasis.scss +2 -1
- data/assets/stylesheets/bootstrap/mixins/_vendor-prefixes.scss +3 -3
- data/bootstrap-sass.gemspec +10 -9
- data/bower.json +5 -9
- data/composer.json +2 -2
- data/eyeglass-exports.js +7 -0
- data/lib/bootstrap-sass.rb +18 -11
- data/lib/bootstrap-sass/engine.rb +6 -1
- data/lib/bootstrap-sass/version.rb +2 -2
- data/package-lock.json +1611 -0
- data/package.json +20 -6
- data/sache.json +1 -1
- data/tasks/converter/less_conversion.rb +20 -9
- data/tasks/converter/network.rb +2 -2
- data/templates/project/_bootstrap-variables.sass +17 -9
- data/test/compilation_test.rb +24 -12
- data/test/dummy_rails/config/application.rb +2 -1
- data/test/dummy_rails/config/boot.rb +1 -1
- data/test/dummy_sass_only/Gemfile +1 -1
- data/test/dummy_sass_only/compile.rb +14 -7
- data/test/dummy_sass_only/import_all.scss +2 -0
- data/test/gemfiles/default.gemfile +3 -0
- data/test/node_mincer_test.rb +2 -3
- data/test/node_sass_compile_test.sh +4 -3
- data/test/sass_test.rb +10 -7
- data/test/sprockets_rails_test.rb +12 -8
- data/test/support/dummy_rails_integration.rb +1 -1
- data/test/support/reporting.rb +10 -0
- data/test/test_helper.rb +3 -2
- metadata +38 -29
- data/test/compass_test.rb +0 -9
- data/test/dummy_sass_only/import_all.sass +0 -2
- data/test/gemfiles/sass_3_2.gemfile +0 -6
- data/test/gemfiles/sass_3_3.gemfile +0 -6
- data/test/gemfiles/sass_3_4.gemfile +0 -7
- data/test/gemfiles/sass_head.gemfile +0 -6
@@ -10,9 +10,10 @@
|
|
10
10
|
height: 0;
|
11
11
|
margin-left: 2px;
|
12
12
|
vertical-align: middle;
|
13
|
-
border-top:
|
13
|
+
border-top: $caret-width-base dashed;
|
14
|
+
border-top: $caret-width-base solid \9; // IE8
|
14
15
|
border-right: $caret-width-base solid transparent;
|
15
|
-
border-left:
|
16
|
+
border-left: $caret-width-base solid transparent;
|
16
17
|
}
|
17
18
|
|
18
19
|
// The dropdown wrapper (div)
|
@@ -37,15 +38,15 @@
|
|
37
38
|
min-width: 160px;
|
38
39
|
padding: 5px 0;
|
39
40
|
margin: 2px 0 0; // override default ul
|
40
|
-
list-style: none;
|
41
41
|
font-size: $font-size-base;
|
42
42
|
text-align: left; // Ensures proper alignment if parent has it changed (e.g., modal footer)
|
43
|
+
list-style: none;
|
43
44
|
background-color: $dropdown-bg;
|
45
|
+
background-clip: padding-box;
|
44
46
|
border: 1px solid $dropdown-fallback-border; // IE8 fallback
|
45
47
|
border: 1px solid $dropdown-border;
|
46
48
|
border-radius: $border-radius-base;
|
47
|
-
@include box-shadow(0 6px 12px rgba(0,0,0
|
48
|
-
background-clip: padding-box;
|
49
|
+
@include box-shadow(0 6px 12px rgba(0, 0, 0, .175));
|
49
50
|
|
50
51
|
// Aligns the dropdown menu to right
|
51
52
|
//
|
@@ -65,20 +66,17 @@
|
|
65
66
|
display: block;
|
66
67
|
padding: 3px 20px;
|
67
68
|
clear: both;
|
68
|
-
font-weight:
|
69
|
+
font-weight: 400;
|
69
70
|
line-height: $line-height-base;
|
70
71
|
color: $dropdown-link-color;
|
71
72
|
white-space: nowrap; // prevent links from randomly breaking onto new lines
|
72
|
-
}
|
73
|
-
}
|
74
73
|
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
background-color: $dropdown-link-hover-bg;
|
74
|
+
&:hover,
|
75
|
+
&:focus {
|
76
|
+
color: $dropdown-link-hover-color;
|
77
|
+
text-decoration: none;
|
78
|
+
background-color: $dropdown-link-hover-bg;
|
79
|
+
}
|
82
80
|
}
|
83
81
|
}
|
84
82
|
|
@@ -89,8 +87,8 @@
|
|
89
87
|
&:focus {
|
90
88
|
color: $dropdown-link-active-color;
|
91
89
|
text-decoration: none;
|
92
|
-
outline: 0;
|
93
90
|
background-color: $dropdown-link-active-bg;
|
91
|
+
outline: 0;
|
94
92
|
}
|
95
93
|
}
|
96
94
|
|
@@ -109,10 +107,10 @@
|
|
109
107
|
&:hover,
|
110
108
|
&:focus {
|
111
109
|
text-decoration: none;
|
110
|
+
cursor: $cursor-disabled;
|
112
111
|
background-color: transparent;
|
113
112
|
background-image: none; // Remove CSS gradient
|
114
113
|
@include reset-filter;
|
115
|
-
cursor: $cursor-disabled;
|
116
114
|
}
|
117
115
|
}
|
118
116
|
|
@@ -134,8 +132,8 @@
|
|
134
132
|
// Add extra class to `.dropdown-menu` to flip the alignment of the dropdown
|
135
133
|
// menu with the parent.
|
136
134
|
.dropdown-menu-right {
|
137
|
-
left: auto; // Reset the default from `.dropdown-menu`
|
138
135
|
right: 0;
|
136
|
+
left: auto; // Reset the default from `.dropdown-menu`
|
139
137
|
}
|
140
138
|
// With v3, we enabled auto-flipping if you have a dropdown within a right
|
141
139
|
// aligned nav component. To enable the undoing of that, we provide an override
|
@@ -144,8 +142,8 @@
|
|
144
142
|
// This is only for left-aligning a dropdown menu within a `.navbar-right` or
|
145
143
|
// `.pull-right` nav component.
|
146
144
|
.dropdown-menu-left {
|
147
|
-
left: 0;
|
148
145
|
right: auto;
|
146
|
+
left: 0;
|
149
147
|
}
|
150
148
|
|
151
149
|
// Dropdown section headers
|
@@ -161,10 +159,10 @@
|
|
161
159
|
// Backdrop to catch body clicks on mobile, etc.
|
162
160
|
.dropdown-backdrop {
|
163
161
|
position: fixed;
|
164
|
-
|
162
|
+
top: 0;
|
165
163
|
right: 0;
|
166
164
|
bottom: 0;
|
167
|
-
|
165
|
+
left: 0;
|
168
166
|
z-index: ($zindex-dropdown - 10);
|
169
167
|
}
|
170
168
|
|
@@ -183,9 +181,10 @@
|
|
183
181
|
.navbar-fixed-bottom .dropdown {
|
184
182
|
// Reverse the caret
|
185
183
|
.caret {
|
186
|
-
border-top: 0;
|
187
|
-
border-bottom: $caret-width-base solid;
|
188
184
|
content: "";
|
185
|
+
border-top: 0;
|
186
|
+
border-bottom: $caret-width-base dashed;
|
187
|
+
border-bottom: $caret-width-base solid \9; // IE8
|
189
188
|
}
|
190
189
|
// Different positioning for bottom up menu
|
191
190
|
.dropdown-menu {
|
@@ -8,13 +8,13 @@
|
|
8
8
|
// Restyle and baseline non-control form elements.
|
9
9
|
|
10
10
|
fieldset {
|
11
|
-
padding: 0;
|
12
|
-
margin: 0;
|
13
|
-
border: 0;
|
14
11
|
// Chrome and Firefox set a `min-width: min-content;` on fieldsets,
|
15
12
|
// so we reset that to ensure it behaves more like a standard block element.
|
16
13
|
// See https://github.com/twbs/bootstrap/issues/12359.
|
17
14
|
min-width: 0;
|
15
|
+
padding: 0;
|
16
|
+
margin: 0;
|
17
|
+
border: 0;
|
18
18
|
}
|
19
19
|
|
20
20
|
legend {
|
@@ -33,7 +33,7 @@ label {
|
|
33
33
|
display: inline-block;
|
34
34
|
max-width: 100%; // Force IE8 to wrap long content (see https://github.com/twbs/bootstrap/issues/13141)
|
35
35
|
margin-bottom: 5px;
|
36
|
-
font-weight:
|
36
|
+
font-weight: 700;
|
37
37
|
}
|
38
38
|
|
39
39
|
|
@@ -43,9 +43,18 @@ label {
|
|
43
43
|
// is required to ensure optimum display with or without those classes to better
|
44
44
|
// address browser inconsistencies.
|
45
45
|
|
46
|
-
// Override content-box in Normalize (* isn't specific enough)
|
47
46
|
input[type="search"] {
|
47
|
+
// Override content-box in Normalize (* isn't specific enough)
|
48
48
|
@include box-sizing(border-box);
|
49
|
+
|
50
|
+
// Search inputs in iOS
|
51
|
+
//
|
52
|
+
// This overrides the extra rounded corners on search inputs in iOS so that our
|
53
|
+
// `.form-control` class can properly style them. Note that this cannot simply
|
54
|
+
// be added to `.form-control` as it's not specific enough. For details, see
|
55
|
+
// https://github.com/twbs/bootstrap/issues/11586.
|
56
|
+
-webkit-appearance: none;
|
57
|
+
appearance: none;
|
49
58
|
}
|
50
59
|
|
51
60
|
// Position radios and checkboxes better
|
@@ -54,9 +63,18 @@ input[type="checkbox"] {
|
|
54
63
|
margin: 4px 0 0;
|
55
64
|
margin-top: 1px \9; // IE8-9
|
56
65
|
line-height: normal;
|
66
|
+
|
67
|
+
// Apply same disabled cursor tweak as for inputs
|
68
|
+
// Some special care is needed because <label>s don't inherit their parent's `cursor`.
|
69
|
+
//
|
70
|
+
// Note: Neither radios nor checkboxes can be readonly.
|
71
|
+
&[disabled],
|
72
|
+
&.disabled,
|
73
|
+
fieldset[disabled] & {
|
74
|
+
cursor: $cursor-disabled;
|
75
|
+
}
|
57
76
|
}
|
58
77
|
|
59
|
-
// Set the height of file controls to match text inputs
|
60
78
|
input[type="file"] {
|
61
79
|
display: block;
|
62
80
|
}
|
@@ -124,7 +142,7 @@ output {
|
|
124
142
|
background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214
|
125
143
|
border: 1px solid $input-border;
|
126
144
|
border-radius: $input-border-radius; // Note: This has no effect on <select>s in some browsers, due to the limited stylability of <select>s in CSS.
|
127
|
-
@include box-shadow(inset 0 1px 1px rgba(0,0,0
|
145
|
+
@include box-shadow(inset 0 1px 1px rgba(0, 0, 0, .075));
|
128
146
|
@include transition(border-color ease-in-out .15s, box-shadow ease-in-out .15s);
|
129
147
|
|
130
148
|
// Customize the `:focus` state to imitate native WebKit styles.
|
@@ -133,6 +151,12 @@ output {
|
|
133
151
|
// Placeholder
|
134
152
|
@include placeholder;
|
135
153
|
|
154
|
+
// Unstyle the caret on `<select>`s in IE10+.
|
155
|
+
&::-ms-expand {
|
156
|
+
background-color: transparent;
|
157
|
+
border: 0;
|
158
|
+
}
|
159
|
+
|
136
160
|
// Disabled and read-only inputs
|
137
161
|
//
|
138
162
|
// HTML5 says that controls under a fieldset > legend:first-child won't be
|
@@ -159,31 +183,23 @@ textarea.form-control {
|
|
159
183
|
}
|
160
184
|
|
161
185
|
|
162
|
-
// Search inputs in iOS
|
163
|
-
//
|
164
|
-
// This overrides the extra rounded corners on search inputs in iOS so that our
|
165
|
-
// `.form-control` class can properly style them. Note that this cannot simply
|
166
|
-
// be added to `.form-control` as it's not specific enough. For details, see
|
167
|
-
// https://github.com/twbs/bootstrap/issues/11586.
|
168
|
-
|
169
|
-
input[type="search"] {
|
170
|
-
-webkit-appearance: none;
|
171
|
-
}
|
172
|
-
|
173
|
-
|
174
186
|
// Special styles for iOS temporal inputs
|
175
187
|
//
|
176
188
|
// In Mobile Safari, setting `display: block` on temporal inputs causes the
|
177
189
|
// text within the input to become vertically misaligned. As a workaround, we
|
178
190
|
// set a pixel line-height that matches the given height of the input, but only
|
179
191
|
// for Safari. See https://bugs.webkit.org/show_bug.cgi?id=139848
|
192
|
+
//
|
193
|
+
// Note that as of 9.3, iOS doesn't support `week`.
|
180
194
|
|
181
195
|
@media screen and (-webkit-min-device-pixel-ratio: 0) {
|
182
196
|
input[type="date"],
|
183
197
|
input[type="time"],
|
184
198
|
input[type="datetime-local"],
|
185
199
|
input[type="month"] {
|
186
|
-
|
200
|
+
&.form-control {
|
201
|
+
line-height: $input-height-base;
|
202
|
+
}
|
187
203
|
|
188
204
|
&.input-sm,
|
189
205
|
.input-group-sm & {
|
@@ -219,11 +235,19 @@ input[type="search"] {
|
|
219
235
|
margin-top: 10px;
|
220
236
|
margin-bottom: 10px;
|
221
237
|
|
238
|
+
// These are used on elements with <label> descendants
|
239
|
+
&.disabled,
|
240
|
+
fieldset[disabled] & {
|
241
|
+
label {
|
242
|
+
cursor: $cursor-disabled;
|
243
|
+
}
|
244
|
+
}
|
245
|
+
|
222
246
|
label {
|
223
247
|
min-height: $line-height-computed; // Ensure the input doesn't jump when there is no text
|
224
248
|
padding-left: 20px;
|
225
249
|
margin-bottom: 0;
|
226
|
-
font-weight:
|
250
|
+
font-weight: 400;
|
227
251
|
cursor: pointer;
|
228
252
|
}
|
229
253
|
}
|
@@ -232,8 +256,8 @@ input[type="search"] {
|
|
232
256
|
.checkbox input[type="checkbox"],
|
233
257
|
.checkbox-inline input[type="checkbox"] {
|
234
258
|
position: absolute;
|
235
|
-
margin-left: -20px;
|
236
259
|
margin-top: 4px \9;
|
260
|
+
margin-left: -20px;
|
237
261
|
}
|
238
262
|
|
239
263
|
.radio + .radio,
|
@@ -248,45 +272,20 @@ input[type="search"] {
|
|
248
272
|
display: inline-block;
|
249
273
|
padding-left: 20px;
|
250
274
|
margin-bottom: 0;
|
275
|
+
font-weight: 400;
|
251
276
|
vertical-align: middle;
|
252
|
-
font-weight: normal;
|
253
277
|
cursor: pointer;
|
254
|
-
}
|
255
|
-
.radio-inline + .radio-inline,
|
256
|
-
.checkbox-inline + .checkbox-inline {
|
257
|
-
margin-top: 0;
|
258
|
-
margin-left: 10px; // space out consecutive inline controls
|
259
|
-
}
|
260
278
|
|
261
|
-
//
|
262
|
-
// Some special care is needed because <label>s don't inherit their parent's `cursor`.
|
263
|
-
//
|
264
|
-
// Note: Neither radios nor checkboxes can be readonly.
|
265
|
-
input[type="radio"],
|
266
|
-
input[type="checkbox"] {
|
267
|
-
&[disabled],
|
279
|
+
// These are used directly on <label>s
|
268
280
|
&.disabled,
|
269
281
|
fieldset[disabled] & {
|
270
282
|
cursor: $cursor-disabled;
|
271
283
|
}
|
272
284
|
}
|
273
|
-
|
274
|
-
.
|
275
|
-
|
276
|
-
|
277
|
-
fieldset[disabled] & {
|
278
|
-
cursor: $cursor-disabled;
|
279
|
-
}
|
280
|
-
}
|
281
|
-
// These classes are used on elements with <label> descendants
|
282
|
-
.radio,
|
283
|
-
.checkbox {
|
284
|
-
&.disabled,
|
285
|
-
fieldset[disabled] & {
|
286
|
-
label {
|
287
|
-
cursor: $cursor-disabled;
|
288
|
-
}
|
289
|
-
}
|
285
|
+
.radio-inline + .radio-inline,
|
286
|
+
.checkbox-inline + .checkbox-inline {
|
287
|
+
margin-top: 0;
|
288
|
+
margin-left: 10px; // space out consecutive inline controls
|
290
289
|
}
|
291
290
|
|
292
291
|
|
@@ -296,17 +295,17 @@ input[type="checkbox"] {
|
|
296
295
|
// a horizontal form layout.
|
297
296
|
|
298
297
|
.form-control-static {
|
298
|
+
min-height: ($line-height-computed + $font-size-base);
|
299
299
|
// Size it appropriately next to real form controls
|
300
300
|
padding-top: ($padding-base-vertical + 1);
|
301
301
|
padding-bottom: ($padding-base-vertical + 1);
|
302
302
|
// Remove default margin from `p`
|
303
303
|
margin-bottom: 0;
|
304
|
-
min-height: ($line-height-computed + $font-size-base);
|
305
304
|
|
306
305
|
&.input-lg,
|
307
306
|
&.input-sm {
|
308
|
-
padding-left: 0;
|
309
307
|
padding-right: 0;
|
308
|
+
padding-left: 0;
|
310
309
|
}
|
311
310
|
}
|
312
311
|
|
@@ -321,29 +320,53 @@ input[type="checkbox"] {
|
|
321
320
|
|
322
321
|
@include input-size('.input-sm', $input-height-small, $padding-small-vertical, $padding-small-horizontal, $font-size-small, $line-height-small, $input-border-radius-small);
|
323
322
|
.form-group-sm {
|
324
|
-
|
325
|
-
@include input-size('.form-control', $input-height-small, $padding-small-vertical, $padding-small-horizontal, $font-size-small, $line-height-small, $input-border-radius-small);
|
326
|
-
|
327
|
-
.form-control-static {
|
323
|
+
.form-control {
|
328
324
|
height: $input-height-small;
|
329
325
|
padding: $padding-small-vertical $padding-small-horizontal;
|
330
326
|
font-size: $font-size-small;
|
331
327
|
line-height: $line-height-small;
|
328
|
+
border-radius: $input-border-radius-small;
|
329
|
+
}
|
330
|
+
select.form-control {
|
331
|
+
height: $input-height-small;
|
332
|
+
line-height: $input-height-small;
|
333
|
+
}
|
334
|
+
textarea.form-control,
|
335
|
+
select[multiple].form-control {
|
336
|
+
height: auto;
|
337
|
+
}
|
338
|
+
.form-control-static {
|
339
|
+
height: $input-height-small;
|
332
340
|
min-height: ($line-height-computed + $font-size-small);
|
341
|
+
padding: ($padding-small-vertical + 1) $padding-small-horizontal;
|
342
|
+
font-size: $font-size-small;
|
343
|
+
line-height: $line-height-small;
|
333
344
|
}
|
334
345
|
}
|
335
346
|
|
336
347
|
@include input-size('.input-lg', $input-height-large, $padding-large-vertical, $padding-large-horizontal, $font-size-large, $line-height-large, $input-border-radius-large);
|
337
348
|
.form-group-lg {
|
338
|
-
|
339
|
-
@include input-size('.form-control', $input-height-large, $padding-large-vertical, $padding-large-horizontal, $font-size-large, $line-height-large, $input-border-radius-large);
|
340
|
-
|
341
|
-
.form-control-static {
|
349
|
+
.form-control {
|
342
350
|
height: $input-height-large;
|
343
351
|
padding: $padding-large-vertical $padding-large-horizontal;
|
344
352
|
font-size: $font-size-large;
|
345
353
|
line-height: $line-height-large;
|
354
|
+
border-radius: $input-border-radius-large;
|
355
|
+
}
|
356
|
+
select.form-control {
|
357
|
+
height: $input-height-large;
|
358
|
+
line-height: $input-height-large;
|
359
|
+
}
|
360
|
+
textarea.form-control,
|
361
|
+
select[multiple].form-control {
|
362
|
+
height: auto;
|
363
|
+
}
|
364
|
+
.form-control-static {
|
365
|
+
height: $input-height-large;
|
346
366
|
min-height: ($line-height-computed + $font-size-large);
|
367
|
+
padding: ($padding-large-vertical + 1) $padding-large-horizontal;
|
368
|
+
font-size: $font-size-large;
|
369
|
+
line-height: $line-height-large;
|
347
370
|
}
|
348
371
|
}
|
349
372
|
|
@@ -374,12 +397,16 @@ input[type="checkbox"] {
|
|
374
397
|
text-align: center;
|
375
398
|
pointer-events: none;
|
376
399
|
}
|
377
|
-
.input-lg + .form-control-feedback
|
400
|
+
.input-lg + .form-control-feedback,
|
401
|
+
.input-group-lg + .form-control-feedback,
|
402
|
+
.form-group-lg .form-control + .form-control-feedback {
|
378
403
|
width: $input-height-large;
|
379
404
|
height: $input-height-large;
|
380
405
|
line-height: $input-height-large;
|
381
406
|
}
|
382
|
-
.input-sm + .form-control-feedback
|
407
|
+
.input-sm + .form-control-feedback,
|
408
|
+
.input-group-sm + .form-control-feedback,
|
409
|
+
.form-group-sm .form-control + .form-control-feedback {
|
383
410
|
width: $input-height-small;
|
384
411
|
height: $input-height-small;
|
385
412
|
line-height: $input-height-small;
|
@@ -400,10 +427,10 @@ input[type="checkbox"] {
|
|
400
427
|
.has-feedback label {
|
401
428
|
|
402
429
|
& ~ .form-control-feedback {
|
403
|
-
|
430
|
+
top: ($line-height-computed + 5); // Height of the `label` and its margin
|
404
431
|
}
|
405
432
|
&.sr-only ~ .form-control-feedback {
|
406
|
-
|
433
|
+
top: 0;
|
407
434
|
}
|
408
435
|
}
|
409
436
|
|
@@ -523,9 +550,9 @@ input[type="checkbox"] {
|
|
523
550
|
.checkbox,
|
524
551
|
.radio-inline,
|
525
552
|
.checkbox-inline {
|
553
|
+
padding-top: ($padding-base-vertical + 1); // Default padding plus a border
|
526
554
|
margin-top: 0;
|
527
555
|
margin-bottom: 0;
|
528
|
-
padding-top: ($padding-base-vertical + 1); // Default padding plus a border
|
529
556
|
}
|
530
557
|
// Account for padding we're adding to ensure the alignment and of help text
|
531
558
|
// and other content below items
|
@@ -543,9 +570,9 @@ input[type="checkbox"] {
|
|
543
570
|
// labels on narrow viewports stack the same as a default form example.
|
544
571
|
@media (min-width: $screen-sm-min) {
|
545
572
|
.control-label {
|
546
|
-
text-align: right;
|
547
|
-
margin-bottom: 0;
|
548
573
|
padding-top: ($padding-base-vertical + 1); // Default padding plus a border
|
574
|
+
margin-bottom: 0;
|
575
|
+
text-align: right;
|
549
576
|
}
|
550
577
|
}
|
551
578
|
|
@@ -554,7 +581,7 @@ input[type="checkbox"] {
|
|
554
581
|
// Reposition the icon because it's now within a grid column and columns have
|
555
582
|
// `position: relative;` on them. Also accounts for the grid gutter padding.
|
556
583
|
.has-feedback .form-control-feedback {
|
557
|
-
right: ($grid-gutter-width / 2);
|
584
|
+
right: floor(($grid-gutter-width / 2));
|
558
585
|
}
|
559
586
|
|
560
587
|
// Form group sizes
|
@@ -564,7 +591,8 @@ input[type="checkbox"] {
|
|
564
591
|
.form-group-lg {
|
565
592
|
@media (min-width: $screen-sm-min) {
|
566
593
|
.control-label {
|
567
|
-
padding-top: (
|
594
|
+
padding-top: ($padding-large-vertical + 1);
|
595
|
+
font-size: $font-size-large;
|
568
596
|
}
|
569
597
|
}
|
570
598
|
}
|
@@ -572,6 +600,7 @@ input[type="checkbox"] {
|
|
572
600
|
@media (min-width: $screen-sm-min) {
|
573
601
|
.control-label {
|
574
602
|
padding-top: ($padding-small-vertical + 1);
|
603
|
+
font-size: $font-size-small;
|
575
604
|
}
|
576
605
|
}
|
577
606
|
}
|