bootstrap-scss 5.2.0 → 5.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/_accordion.scss +7 -4
- package/_alert.scss +71 -71
- package/_badge.scss +38 -38
- package/_breadcrumb.scss +40 -40
- package/_button-group.scss +1 -1
- package/_buttons.scss +23 -8
- package/_card.scss +234 -234
- package/_carousel.scss +229 -229
- package/_close.scss +40 -40
- package/_containers.scss +41 -41
- package/_dropdown.scss +2 -1
- package/_forms.scss +9 -9
- package/_functions.scss +1 -1
- package/_grid.scss +33 -33
- package/_helpers.scss +10 -10
- package/_list-group.scss +6 -5
- package/_maps.scss +54 -54
- package/_mixins.scss +43 -43
- package/_modal.scss +1 -1
- package/_nav.scss +2 -2
- package/_navbar.scss +2 -0
- package/_offcanvas.scss +5 -4
- package/_pagination.scss +1 -1
- package/_placeholders.scss +51 -51
- package/_popover.scss +5 -5
- package/_progress.scss +59 -59
- package/_reboot.scss +610 -610
- package/_root.scss +73 -73
- package/_spinners.scss +85 -85
- package/_tables.scss +164 -164
- package/_toasts.scss +3 -2
- package/_tooltip.scss +120 -120
- package/_transitions.scss +27 -27
- package/_type.scss +106 -106
- package/_utilities.scss +647 -647
- package/_variables.scss +17 -16
- package/bootstrap-grid.scss +64 -64
- package/bootstrap-reboot.scss +9 -9
- package/bootstrap-utilities.scss +15 -15
- package/bootstrap.scss +51 -51
- package/forms/_floating-labels.scss +1 -0
- package/forms/_form-check.scss +175 -175
- package/forms/_form-control.scss +194 -194
- package/forms/_form-range.scss +91 -91
- package/forms/_form-select.scss +71 -71
- package/forms/_form-text.scss +11 -11
- package/forms/_input-group.scss +7 -4
- package/forms/_labels.scss +36 -36
- package/forms/_validation.scss +12 -12
- package/helpers/_clearfix.scss +3 -3
- package/helpers/_color-bg.scss +10 -10
- package/helpers/_colored-links.scss +12 -12
- package/helpers/_position.scss +36 -36
- package/helpers/_ratio.scss +26 -26
- package/helpers/_stacks.scss +15 -15
- package/helpers/_stretched-link.scss +15 -15
- package/helpers/_text-truncation.scss +7 -7
- package/helpers/_visually-hidden.scss +8 -8
- package/helpers/_vr.scss +8 -8
- package/mixins/_alert.scss +15 -15
- package/mixins/_backdrop.scss +14 -14
- package/mixins/_banner.scss +2 -2
- package/mixins/_border-radius.scss +78 -78
- package/mixins/_box-shadow.scss +18 -18
- package/mixins/_breakpoints.scss +127 -127
- package/mixins/_buttons.scss +70 -70
- package/mixins/_caret.scss +64 -64
- package/mixins/_clearfix.scss +9 -9
- package/mixins/_color-scheme.scss +7 -7
- package/mixins/_container.scss +11 -11
- package/mixins/_forms.scss +10 -10
- package/mixins/_gradients.scss +47 -47
- package/mixins/_grid.scss +151 -151
- package/mixins/_image.scss +16 -16
- package/mixins/_list-group.scss +24 -24
- package/mixins/_lists.scss +7 -7
- package/mixins/_pagination.scss +10 -10
- package/mixins/_reset-text.scss +17 -17
- package/mixins/_table-variants.scss +24 -24
- package/mixins/_transition.scss +26 -26
- package/mixins/_utilities.scss +1 -1
- package/mixins/_visually-hidden.scss +29 -29
- package/package.json +1 -1
- package/utilities/_api.scss +47 -47
- package/vendor/_rfs.scss +354 -354
package/forms/_form-control.scss
CHANGED
@@ -1,194 +1,194 @@
|
|
1
|
-
//
|
2
|
-
// General form controls (plus a few specific high-level interventions)
|
3
|
-
//
|
4
|
-
|
5
|
-
.form-control {
|
6
|
-
display: block;
|
7
|
-
width: 100%;
|
8
|
-
padding: $input-padding-y $input-padding-x;
|
9
|
-
font-family: $input-font-family;
|
10
|
-
@include font-size($input-font-size);
|
11
|
-
font-weight: $input-font-weight;
|
12
|
-
line-height: $input-line-height;
|
13
|
-
color: $input-color;
|
14
|
-
background-color: $input-bg;
|
15
|
-
background-clip: padding-box;
|
16
|
-
border: $input-border-width solid $input-border-color;
|
17
|
-
appearance: none; // Fix appearance for date inputs in Safari
|
18
|
-
|
19
|
-
// Note: This has no effect on <select>s in some browsers, due to the limited stylability of `<select>`s in CSS.
|
20
|
-
@include border-radius($input-border-radius, 0);
|
21
|
-
|
22
|
-
@include box-shadow($input-box-shadow);
|
23
|
-
@include transition($input-transition);
|
24
|
-
|
25
|
-
&[type="file"] {
|
26
|
-
overflow: hidden; // prevent pseudo element button overlap
|
27
|
-
|
28
|
-
&:not(:disabled):not([readonly]) {
|
29
|
-
cursor: pointer;
|
30
|
-
}
|
31
|
-
}
|
32
|
-
|
33
|
-
// Customize the `:focus` state to imitate native WebKit styles.
|
34
|
-
&:focus {
|
35
|
-
color: $input-focus-color;
|
36
|
-
background-color: $input-focus-bg;
|
37
|
-
border-color: $input-focus-border-color;
|
38
|
-
outline: 0;
|
39
|
-
@if $enable-shadows {
|
40
|
-
@include box-shadow($input-box-shadow, $input-focus-box-shadow);
|
41
|
-
} @else {
|
42
|
-
// Avoid using mixin so we can pass custom focus shadow properly
|
43
|
-
box-shadow: $input-focus-box-shadow;
|
44
|
-
}
|
45
|
-
}
|
46
|
-
|
47
|
-
// Add some height to date inputs on iOS
|
48
|
-
// https://github.com/twbs/bootstrap/issues/23307
|
49
|
-
// TODO: we can remove this workaround once https://bugs.webkit.org/show_bug.cgi?id=198959 is resolved
|
50
|
-
&::-webkit-date-and-time-value {
|
51
|
-
// Multiply line-height by 1em if it has no unit
|
52
|
-
height: if(unit($input-line-height) == "", $input-line-height * 1em, $input-line-height);
|
53
|
-
}
|
54
|
-
|
55
|
-
// Placeholder
|
56
|
-
&::placeholder {
|
57
|
-
color: $input-placeholder-color;
|
58
|
-
// Override Firefox's unusual default opacity; see https://github.com/twbs/bootstrap/pull/11526.
|
59
|
-
opacity: 1;
|
60
|
-
}
|
61
|
-
|
62
|
-
// Disabled inputs
|
63
|
-
//
|
64
|
-
// HTML5 says that controls under a fieldset > legend:first-child won't be
|
65
|
-
// disabled if the fieldset is disabled. Due to implementation difficulty, we
|
66
|
-
// don't honor that edge case; we style them as disabled anyway.
|
67
|
-
&:disabled {
|
68
|
-
color: $input-disabled-color;
|
69
|
-
background-color: $input-disabled-bg;
|
70
|
-
border-color: $input-disabled-border-color;
|
71
|
-
// iOS fix for unreadable disabled content; see https://github.com/twbs/bootstrap/issues/11655.
|
72
|
-
opacity: 1;
|
73
|
-
}
|
74
|
-
|
75
|
-
// File input buttons theming
|
76
|
-
&::file-selector-button {
|
77
|
-
padding: $input-padding-y $input-padding-x;
|
78
|
-
margin: (-$input-padding-y) (-$input-padding-x);
|
79
|
-
margin-inline-end: $input-padding-x;
|
80
|
-
color: $form-file-button-color;
|
81
|
-
@include gradient-bg($form-file-button-bg);
|
82
|
-
pointer-events: none;
|
83
|
-
border-color: inherit;
|
84
|
-
border-style: solid;
|
85
|
-
border-width: 0;
|
86
|
-
border-inline-end-width: $input-border-width;
|
87
|
-
border-radius: 0; // stylelint-disable-line property-disallowed-list
|
88
|
-
@include transition($btn-transition);
|
89
|
-
}
|
90
|
-
|
91
|
-
&:hover:not(:disabled):not([readonly])::file-selector-button {
|
92
|
-
background-color: $form-file-button-hover-bg;
|
93
|
-
}
|
94
|
-
}
|
95
|
-
|
96
|
-
// Readonly controls as plain text
|
97
|
-
//
|
98
|
-
// Apply class to a readonly input to make it appear like regular plain
|
99
|
-
// text (without any border, background color, focus indicator)
|
100
|
-
|
101
|
-
.form-control-plaintext {
|
102
|
-
display: block;
|
103
|
-
width: 100%;
|
104
|
-
padding: $input-padding-y 0;
|
105
|
-
margin-bottom: 0; // match inputs if this class comes on inputs with default margins
|
106
|
-
line-height: $input-line-height;
|
107
|
-
color: $input-plaintext-color;
|
108
|
-
background-color: transparent;
|
109
|
-
border: solid transparent;
|
110
|
-
border-width: $input-border-width 0;
|
111
|
-
|
112
|
-
&:focus {
|
113
|
-
outline: 0;
|
114
|
-
}
|
115
|
-
|
116
|
-
&.form-control-sm,
|
117
|
-
&.form-control-lg {
|
118
|
-
padding-right: 0;
|
119
|
-
padding-left: 0;
|
120
|
-
}
|
121
|
-
}
|
122
|
-
|
123
|
-
// Form control sizing
|
124
|
-
//
|
125
|
-
// Build on `.form-control` with modifier classes to decrease or increase the
|
126
|
-
// height and font-size of form controls.
|
127
|
-
//
|
128
|
-
// Repeated in `_input_group.scss` to avoid Sass extend issues.
|
129
|
-
|
130
|
-
.form-control-sm {
|
131
|
-
min-height: $input-height-sm;
|
132
|
-
padding: $input-padding-y-sm $input-padding-x-sm;
|
133
|
-
@include font-size($input-font-size-sm);
|
134
|
-
@include border-radius($input-border-radius-sm);
|
135
|
-
|
136
|
-
&::file-selector-button {
|
137
|
-
padding: $input-padding-y-sm $input-padding-x-sm;
|
138
|
-
margin: (-$input-padding-y-sm) (-$input-padding-x-sm);
|
139
|
-
margin-inline-end: $input-padding-x-sm;
|
140
|
-
}
|
141
|
-
}
|
142
|
-
|
143
|
-
.form-control-lg {
|
144
|
-
min-height: $input-height-lg;
|
145
|
-
padding: $input-padding-y-lg $input-padding-x-lg;
|
146
|
-
@include font-size($input-font-size-lg);
|
147
|
-
@include border-radius($input-border-radius-lg);
|
148
|
-
|
149
|
-
&::file-selector-button {
|
150
|
-
padding: $input-padding-y-lg $input-padding-x-lg;
|
151
|
-
margin: (-$input-padding-y-lg) (-$input-padding-x-lg);
|
152
|
-
margin-inline-end: $input-padding-x-lg;
|
153
|
-
}
|
154
|
-
}
|
155
|
-
|
156
|
-
// Make sure textareas don't shrink too much when resized
|
157
|
-
// https://github.com/twbs/bootstrap/pull/29124
|
158
|
-
// stylelint-disable selector-no-qualifying-type
|
159
|
-
textarea {
|
160
|
-
&.form-control {
|
161
|
-
min-height: $input-height;
|
162
|
-
}
|
163
|
-
|
164
|
-
&.form-control-sm {
|
165
|
-
min-height: $input-height-sm;
|
166
|
-
}
|
167
|
-
|
168
|
-
&.form-control-lg {
|
169
|
-
min-height: $input-height-lg;
|
170
|
-
}
|
171
|
-
}
|
172
|
-
// stylelint-enable selector-no-qualifying-type
|
173
|
-
|
174
|
-
.form-control-color {
|
175
|
-
width: $form-color-width;
|
176
|
-
height: $input-height;
|
177
|
-
padding: $input-padding-y;
|
178
|
-
|
179
|
-
&:not(:disabled):not([readonly]) {
|
180
|
-
cursor: pointer;
|
181
|
-
}
|
182
|
-
|
183
|
-
&::-moz-color-swatch {
|
184
|
-
border: 0 !important; // stylelint-disable-line declaration-no-important
|
185
|
-
@include border-radius($input-border-radius);
|
186
|
-
}
|
187
|
-
|
188
|
-
&::-webkit-color-swatch {
|
189
|
-
@include border-radius($input-border-radius);
|
190
|
-
}
|
191
|
-
|
192
|
-
&.form-control-sm { height: $input-height-sm; }
|
193
|
-
&.form-control-lg { height: $input-height-lg; }
|
194
|
-
}
|
1
|
+
//
|
2
|
+
// General form controls (plus a few specific high-level interventions)
|
3
|
+
//
|
4
|
+
|
5
|
+
.form-control {
|
6
|
+
display: block;
|
7
|
+
width: 100%;
|
8
|
+
padding: $input-padding-y $input-padding-x;
|
9
|
+
font-family: $input-font-family;
|
10
|
+
@include font-size($input-font-size);
|
11
|
+
font-weight: $input-font-weight;
|
12
|
+
line-height: $input-line-height;
|
13
|
+
color: $input-color;
|
14
|
+
background-color: $input-bg;
|
15
|
+
background-clip: padding-box;
|
16
|
+
border: $input-border-width solid $input-border-color;
|
17
|
+
appearance: none; // Fix appearance for date inputs in Safari
|
18
|
+
|
19
|
+
// Note: This has no effect on <select>s in some browsers, due to the limited stylability of `<select>`s in CSS.
|
20
|
+
@include border-radius($input-border-radius, 0);
|
21
|
+
|
22
|
+
@include box-shadow($input-box-shadow);
|
23
|
+
@include transition($input-transition);
|
24
|
+
|
25
|
+
&[type="file"] {
|
26
|
+
overflow: hidden; // prevent pseudo element button overlap
|
27
|
+
|
28
|
+
&:not(:disabled):not([readonly]) {
|
29
|
+
cursor: pointer;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
|
33
|
+
// Customize the `:focus` state to imitate native WebKit styles.
|
34
|
+
&:focus {
|
35
|
+
color: $input-focus-color;
|
36
|
+
background-color: $input-focus-bg;
|
37
|
+
border-color: $input-focus-border-color;
|
38
|
+
outline: 0;
|
39
|
+
@if $enable-shadows {
|
40
|
+
@include box-shadow($input-box-shadow, $input-focus-box-shadow);
|
41
|
+
} @else {
|
42
|
+
// Avoid using mixin so we can pass custom focus shadow properly
|
43
|
+
box-shadow: $input-focus-box-shadow;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
// Add some height to date inputs on iOS
|
48
|
+
// https://github.com/twbs/bootstrap/issues/23307
|
49
|
+
// TODO: we can remove this workaround once https://bugs.webkit.org/show_bug.cgi?id=198959 is resolved
|
50
|
+
&::-webkit-date-and-time-value {
|
51
|
+
// Multiply line-height by 1em if it has no unit
|
52
|
+
height: if(unit($input-line-height) == "", $input-line-height * 1em, $input-line-height);
|
53
|
+
}
|
54
|
+
|
55
|
+
// Placeholder
|
56
|
+
&::placeholder {
|
57
|
+
color: $input-placeholder-color;
|
58
|
+
// Override Firefox's unusual default opacity; see https://github.com/twbs/bootstrap/pull/11526.
|
59
|
+
opacity: 1;
|
60
|
+
}
|
61
|
+
|
62
|
+
// Disabled inputs
|
63
|
+
//
|
64
|
+
// HTML5 says that controls under a fieldset > legend:first-child won't be
|
65
|
+
// disabled if the fieldset is disabled. Due to implementation difficulty, we
|
66
|
+
// don't honor that edge case; we style them as disabled anyway.
|
67
|
+
&:disabled {
|
68
|
+
color: $input-disabled-color;
|
69
|
+
background-color: $input-disabled-bg;
|
70
|
+
border-color: $input-disabled-border-color;
|
71
|
+
// iOS fix for unreadable disabled content; see https://github.com/twbs/bootstrap/issues/11655.
|
72
|
+
opacity: 1;
|
73
|
+
}
|
74
|
+
|
75
|
+
// File input buttons theming
|
76
|
+
&::file-selector-button {
|
77
|
+
padding: $input-padding-y $input-padding-x;
|
78
|
+
margin: (-$input-padding-y) (-$input-padding-x);
|
79
|
+
margin-inline-end: $input-padding-x;
|
80
|
+
color: $form-file-button-color;
|
81
|
+
@include gradient-bg($form-file-button-bg);
|
82
|
+
pointer-events: none;
|
83
|
+
border-color: inherit;
|
84
|
+
border-style: solid;
|
85
|
+
border-width: 0;
|
86
|
+
border-inline-end-width: $input-border-width;
|
87
|
+
border-radius: 0; // stylelint-disable-line property-disallowed-list
|
88
|
+
@include transition($btn-transition);
|
89
|
+
}
|
90
|
+
|
91
|
+
&:hover:not(:disabled):not([readonly])::file-selector-button {
|
92
|
+
background-color: $form-file-button-hover-bg;
|
93
|
+
}
|
94
|
+
}
|
95
|
+
|
96
|
+
// Readonly controls as plain text
|
97
|
+
//
|
98
|
+
// Apply class to a readonly input to make it appear like regular plain
|
99
|
+
// text (without any border, background color, focus indicator)
|
100
|
+
|
101
|
+
.form-control-plaintext {
|
102
|
+
display: block;
|
103
|
+
width: 100%;
|
104
|
+
padding: $input-padding-y 0;
|
105
|
+
margin-bottom: 0; // match inputs if this class comes on inputs with default margins
|
106
|
+
line-height: $input-line-height;
|
107
|
+
color: $input-plaintext-color;
|
108
|
+
background-color: transparent;
|
109
|
+
border: solid transparent;
|
110
|
+
border-width: $input-border-width 0;
|
111
|
+
|
112
|
+
&:focus {
|
113
|
+
outline: 0;
|
114
|
+
}
|
115
|
+
|
116
|
+
&.form-control-sm,
|
117
|
+
&.form-control-lg {
|
118
|
+
padding-right: 0;
|
119
|
+
padding-left: 0;
|
120
|
+
}
|
121
|
+
}
|
122
|
+
|
123
|
+
// Form control sizing
|
124
|
+
//
|
125
|
+
// Build on `.form-control` with modifier classes to decrease or increase the
|
126
|
+
// height and font-size of form controls.
|
127
|
+
//
|
128
|
+
// Repeated in `_input_group.scss` to avoid Sass extend issues.
|
129
|
+
|
130
|
+
.form-control-sm {
|
131
|
+
min-height: $input-height-sm;
|
132
|
+
padding: $input-padding-y-sm $input-padding-x-sm;
|
133
|
+
@include font-size($input-font-size-sm);
|
134
|
+
@include border-radius($input-border-radius-sm);
|
135
|
+
|
136
|
+
&::file-selector-button {
|
137
|
+
padding: $input-padding-y-sm $input-padding-x-sm;
|
138
|
+
margin: (-$input-padding-y-sm) (-$input-padding-x-sm);
|
139
|
+
margin-inline-end: $input-padding-x-sm;
|
140
|
+
}
|
141
|
+
}
|
142
|
+
|
143
|
+
.form-control-lg {
|
144
|
+
min-height: $input-height-lg;
|
145
|
+
padding: $input-padding-y-lg $input-padding-x-lg;
|
146
|
+
@include font-size($input-font-size-lg);
|
147
|
+
@include border-radius($input-border-radius-lg);
|
148
|
+
|
149
|
+
&::file-selector-button {
|
150
|
+
padding: $input-padding-y-lg $input-padding-x-lg;
|
151
|
+
margin: (-$input-padding-y-lg) (-$input-padding-x-lg);
|
152
|
+
margin-inline-end: $input-padding-x-lg;
|
153
|
+
}
|
154
|
+
}
|
155
|
+
|
156
|
+
// Make sure textareas don't shrink too much when resized
|
157
|
+
// https://github.com/twbs/bootstrap/pull/29124
|
158
|
+
// stylelint-disable selector-no-qualifying-type
|
159
|
+
textarea {
|
160
|
+
&.form-control {
|
161
|
+
min-height: $input-height;
|
162
|
+
}
|
163
|
+
|
164
|
+
&.form-control-sm {
|
165
|
+
min-height: $input-height-sm;
|
166
|
+
}
|
167
|
+
|
168
|
+
&.form-control-lg {
|
169
|
+
min-height: $input-height-lg;
|
170
|
+
}
|
171
|
+
}
|
172
|
+
// stylelint-enable selector-no-qualifying-type
|
173
|
+
|
174
|
+
.form-control-color {
|
175
|
+
width: $form-color-width;
|
176
|
+
height: $input-height;
|
177
|
+
padding: $input-padding-y;
|
178
|
+
|
179
|
+
&:not(:disabled):not([readonly]) {
|
180
|
+
cursor: pointer;
|
181
|
+
}
|
182
|
+
|
183
|
+
&::-moz-color-swatch {
|
184
|
+
border: 0 !important; // stylelint-disable-line declaration-no-important
|
185
|
+
@include border-radius($input-border-radius);
|
186
|
+
}
|
187
|
+
|
188
|
+
&::-webkit-color-swatch {
|
189
|
+
@include border-radius($input-border-radius);
|
190
|
+
}
|
191
|
+
|
192
|
+
&.form-control-sm { height: $input-height-sm; }
|
193
|
+
&.form-control-lg { height: $input-height-lg; }
|
194
|
+
}
|
package/forms/_form-range.scss
CHANGED
@@ -1,91 +1,91 @@
|
|
1
|
-
// Range
|
2
|
-
//
|
3
|
-
// Style range inputs the same across browsers. Vendor-specific rules for pseudo
|
4
|
-
// elements cannot be mixed. As such, there are no shared styles for focus or
|
5
|
-
// active states on prefixed selectors.
|
6
|
-
|
7
|
-
.form-range {
|
8
|
-
width: 100%;
|
9
|
-
height: add($form-range-thumb-height, $form-range-thumb-focus-box-shadow-width * 2);
|
10
|
-
padding: 0; // Need to reset padding
|
11
|
-
background-color: transparent;
|
12
|
-
appearance: none;
|
13
|
-
|
14
|
-
&:focus {
|
15
|
-
outline: 0;
|
16
|
-
|
17
|
-
// Pseudo-elements must be split across multiple rulesets to have an effect.
|
18
|
-
// No box-shadow() mixin for focus accessibility.
|
19
|
-
&::-webkit-slider-thumb { box-shadow: $form-range-thumb-focus-box-shadow; }
|
20
|
-
&::-moz-range-thumb { box-shadow: $form-range-thumb-focus-box-shadow; }
|
21
|
-
}
|
22
|
-
|
23
|
-
&::-moz-focus-outer {
|
24
|
-
border: 0;
|
25
|
-
}
|
26
|
-
|
27
|
-
&::-webkit-slider-thumb {
|
28
|
-
width: $form-range-thumb-width;
|
29
|
-
height: $form-range-thumb-height;
|
30
|
-
margin-top: ($form-range-track-height - $form-range-thumb-height) * .5; // Webkit specific
|
31
|
-
@include gradient-bg($form-range-thumb-bg);
|
32
|
-
border: $form-range-thumb-border;
|
33
|
-
@include border-radius($form-range-thumb-border-radius);
|
34
|
-
@include box-shadow($form-range-thumb-box-shadow);
|
35
|
-
@include transition($form-range-thumb-transition);
|
36
|
-
appearance: none;
|
37
|
-
|
38
|
-
&:active {
|
39
|
-
@include gradient-bg($form-range-thumb-active-bg);
|
40
|
-
}
|
41
|
-
}
|
42
|
-
|
43
|
-
&::-webkit-slider-runnable-track {
|
44
|
-
width: $form-range-track-width;
|
45
|
-
height: $form-range-track-height;
|
46
|
-
color: transparent; // Why?
|
47
|
-
cursor: $form-range-track-cursor;
|
48
|
-
background-color: $form-range-track-bg;
|
49
|
-
border-color: transparent;
|
50
|
-
@include border-radius($form-range-track-border-radius);
|
51
|
-
@include box-shadow($form-range-track-box-shadow);
|
52
|
-
}
|
53
|
-
|
54
|
-
&::-moz-range-thumb {
|
55
|
-
width: $form-range-thumb-width;
|
56
|
-
height: $form-range-thumb-height;
|
57
|
-
@include gradient-bg($form-range-thumb-bg);
|
58
|
-
border: $form-range-thumb-border;
|
59
|
-
@include border-radius($form-range-thumb-border-radius);
|
60
|
-
@include box-shadow($form-range-thumb-box-shadow);
|
61
|
-
@include transition($form-range-thumb-transition);
|
62
|
-
appearance: none;
|
63
|
-
|
64
|
-
&:active {
|
65
|
-
@include gradient-bg($form-range-thumb-active-bg);
|
66
|
-
}
|
67
|
-
}
|
68
|
-
|
69
|
-
&::-moz-range-track {
|
70
|
-
width: $form-range-track-width;
|
71
|
-
height: $form-range-track-height;
|
72
|
-
color: transparent;
|
73
|
-
cursor: $form-range-track-cursor;
|
74
|
-
background-color: $form-range-track-bg;
|
75
|
-
border-color: transparent; // Firefox specific?
|
76
|
-
@include border-radius($form-range-track-border-radius);
|
77
|
-
@include box-shadow($form-range-track-box-shadow);
|
78
|
-
}
|
79
|
-
|
80
|
-
&:disabled {
|
81
|
-
pointer-events: none;
|
82
|
-
|
83
|
-
&::-webkit-slider-thumb {
|
84
|
-
background-color: $form-range-thumb-disabled-bg;
|
85
|
-
}
|
86
|
-
|
87
|
-
&::-moz-range-thumb {
|
88
|
-
background-color: $form-range-thumb-disabled-bg;
|
89
|
-
}
|
90
|
-
}
|
91
|
-
}
|
1
|
+
// Range
|
2
|
+
//
|
3
|
+
// Style range inputs the same across browsers. Vendor-specific rules for pseudo
|
4
|
+
// elements cannot be mixed. As such, there are no shared styles for focus or
|
5
|
+
// active states on prefixed selectors.
|
6
|
+
|
7
|
+
.form-range {
|
8
|
+
width: 100%;
|
9
|
+
height: add($form-range-thumb-height, $form-range-thumb-focus-box-shadow-width * 2);
|
10
|
+
padding: 0; // Need to reset padding
|
11
|
+
background-color: transparent;
|
12
|
+
appearance: none;
|
13
|
+
|
14
|
+
&:focus {
|
15
|
+
outline: 0;
|
16
|
+
|
17
|
+
// Pseudo-elements must be split across multiple rulesets to have an effect.
|
18
|
+
// No box-shadow() mixin for focus accessibility.
|
19
|
+
&::-webkit-slider-thumb { box-shadow: $form-range-thumb-focus-box-shadow; }
|
20
|
+
&::-moz-range-thumb { box-shadow: $form-range-thumb-focus-box-shadow; }
|
21
|
+
}
|
22
|
+
|
23
|
+
&::-moz-focus-outer {
|
24
|
+
border: 0;
|
25
|
+
}
|
26
|
+
|
27
|
+
&::-webkit-slider-thumb {
|
28
|
+
width: $form-range-thumb-width;
|
29
|
+
height: $form-range-thumb-height;
|
30
|
+
margin-top: ($form-range-track-height - $form-range-thumb-height) * .5; // Webkit specific
|
31
|
+
@include gradient-bg($form-range-thumb-bg);
|
32
|
+
border: $form-range-thumb-border;
|
33
|
+
@include border-radius($form-range-thumb-border-radius);
|
34
|
+
@include box-shadow($form-range-thumb-box-shadow);
|
35
|
+
@include transition($form-range-thumb-transition);
|
36
|
+
appearance: none;
|
37
|
+
|
38
|
+
&:active {
|
39
|
+
@include gradient-bg($form-range-thumb-active-bg);
|
40
|
+
}
|
41
|
+
}
|
42
|
+
|
43
|
+
&::-webkit-slider-runnable-track {
|
44
|
+
width: $form-range-track-width;
|
45
|
+
height: $form-range-track-height;
|
46
|
+
color: transparent; // Why?
|
47
|
+
cursor: $form-range-track-cursor;
|
48
|
+
background-color: $form-range-track-bg;
|
49
|
+
border-color: transparent;
|
50
|
+
@include border-radius($form-range-track-border-radius);
|
51
|
+
@include box-shadow($form-range-track-box-shadow);
|
52
|
+
}
|
53
|
+
|
54
|
+
&::-moz-range-thumb {
|
55
|
+
width: $form-range-thumb-width;
|
56
|
+
height: $form-range-thumb-height;
|
57
|
+
@include gradient-bg($form-range-thumb-bg);
|
58
|
+
border: $form-range-thumb-border;
|
59
|
+
@include border-radius($form-range-thumb-border-radius);
|
60
|
+
@include box-shadow($form-range-thumb-box-shadow);
|
61
|
+
@include transition($form-range-thumb-transition);
|
62
|
+
appearance: none;
|
63
|
+
|
64
|
+
&:active {
|
65
|
+
@include gradient-bg($form-range-thumb-active-bg);
|
66
|
+
}
|
67
|
+
}
|
68
|
+
|
69
|
+
&::-moz-range-track {
|
70
|
+
width: $form-range-track-width;
|
71
|
+
height: $form-range-track-height;
|
72
|
+
color: transparent;
|
73
|
+
cursor: $form-range-track-cursor;
|
74
|
+
background-color: $form-range-track-bg;
|
75
|
+
border-color: transparent; // Firefox specific?
|
76
|
+
@include border-radius($form-range-track-border-radius);
|
77
|
+
@include box-shadow($form-range-track-box-shadow);
|
78
|
+
}
|
79
|
+
|
80
|
+
&:disabled {
|
81
|
+
pointer-events: none;
|
82
|
+
|
83
|
+
&::-webkit-slider-thumb {
|
84
|
+
background-color: $form-range-thumb-disabled-bg;
|
85
|
+
}
|
86
|
+
|
87
|
+
&::-moz-range-thumb {
|
88
|
+
background-color: $form-range-thumb-disabled-bg;
|
89
|
+
}
|
90
|
+
}
|
91
|
+
}
|