bootstrap-scss 5.1.1 → 5.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. package/LICENSE +2 -2
  2. package/README.md +5 -5
  3. package/_accordion.scss +146 -118
  4. package/_alert.scss +71 -57
  5. package/_badge.scss +38 -29
  6. package/_breadcrumb.scss +40 -28
  7. package/_button-group.scss +142 -139
  8. package/_buttons.scss +186 -111
  9. package/_card.scss +234 -216
  10. package/_carousel.scss +229 -229
  11. package/_close.scss +40 -40
  12. package/_containers.scss +41 -41
  13. package/_dropdown.scss +248 -240
  14. package/_forms.scss +9 -9
  15. package/_functions.scss +302 -302
  16. package/_grid.scss +33 -33
  17. package/_helpers.scss +10 -9
  18. package/_list-group.scss +191 -174
  19. package/_maps.scss +54 -0
  20. package/_mixins.scss +43 -43
  21. package/_modal.scss +237 -209
  22. package/_nav.scss +172 -139
  23. package/_navbar.scss +276 -335
  24. package/_offcanvas.scss +143 -83
  25. package/_pagination.scss +109 -64
  26. package/_placeholders.scss +51 -51
  27. package/_popover.scss +196 -158
  28. package/_progress.scss +59 -48
  29. package/_reboot.scss +610 -625
  30. package/_root.scss +73 -54
  31. package/_spinners.scss +85 -69
  32. package/_tables.scss +164 -151
  33. package/_toasts.scss +70 -51
  34. package/_tooltip.scss +120 -115
  35. package/_transitions.scss +27 -27
  36. package/_type.scss +106 -104
  37. package/_utilities.scss +647 -630
  38. package/_variables.scss +1633 -1639
  39. package/bootstrap-grid.scss +64 -67
  40. package/bootstrap-reboot.scss +9 -13
  41. package/bootstrap-utilities.scss +15 -18
  42. package/bootstrap.scss +51 -53
  43. package/forms/_floating-labels.scss +74 -63
  44. package/forms/_form-check.scss +175 -152
  45. package/forms/_form-control.scss +194 -219
  46. package/forms/_form-range.scss +91 -91
  47. package/forms/_form-select.scss +71 -70
  48. package/forms/_form-text.scss +11 -11
  49. package/forms/_input-group.scss +129 -121
  50. package/forms/_labels.scss +36 -36
  51. package/forms/_validation.scss +12 -12
  52. package/helpers/_clearfix.scss +3 -3
  53. package/helpers/_color-bg.scss +10 -0
  54. package/helpers/_colored-links.scss +12 -12
  55. package/helpers/_position.scss +36 -30
  56. package/helpers/_ratio.scss +26 -26
  57. package/helpers/_stacks.scss +15 -15
  58. package/helpers/_stretched-link.scss +15 -15
  59. package/helpers/_text-truncation.scss +7 -7
  60. package/helpers/_visually-hidden.scss +8 -8
  61. package/helpers/_vr.scss +8 -8
  62. package/mixins/_alert.scss +15 -11
  63. package/mixins/_backdrop.scss +14 -14
  64. package/mixins/_banner.scss +9 -0
  65. package/mixins/_border-radius.scss +78 -78
  66. package/mixins/_box-shadow.scss +18 -18
  67. package/mixins/_breakpoints.scss +127 -127
  68. package/mixins/_buttons.scss +70 -133
  69. package/mixins/_caret.scss +64 -64
  70. package/mixins/_clearfix.scss +9 -9
  71. package/mixins/_color-scheme.scss +7 -7
  72. package/mixins/_container.scss +11 -9
  73. package/mixins/_forms.scss +152 -144
  74. package/mixins/_gradients.scss +47 -47
  75. package/mixins/_grid.scss +151 -150
  76. package/mixins/_image.scss +16 -16
  77. package/mixins/_list-group.scss +24 -24
  78. package/mixins/_lists.scss +7 -7
  79. package/mixins/_pagination.scss +10 -31
  80. package/mixins/_reset-text.scss +17 -17
  81. package/mixins/_table-variants.scss +24 -21
  82. package/mixins/_transition.scss +26 -26
  83. package/mixins/_utilities.scss +97 -89
  84. package/mixins/_visually-hidden.scss +29 -29
  85. package/package.json +1 -1
  86. package/utilities/_api.scss +47 -47
  87. package/vendor/_rfs.scss +354 -354
@@ -1,219 +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 and read-only 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
- &[readonly] {
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
- &::-webkit-file-upload-button {
96
- padding: $input-padding-y $input-padding-x;
97
- margin: (-$input-padding-y) (-$input-padding-x);
98
- margin-inline-end: $input-padding-x;
99
- color: $form-file-button-color;
100
- @include gradient-bg($form-file-button-bg);
101
- pointer-events: none;
102
- border-color: inherit;
103
- border-style: solid;
104
- border-width: 0;
105
- border-inline-end-width: $input-border-width;
106
- border-radius: 0; // stylelint-disable-line property-disallowed-list
107
- @include transition($btn-transition);
108
- }
109
-
110
- &:hover:not(:disabled):not([readonly])::-webkit-file-upload-button {
111
- background-color: $form-file-button-hover-bg;
112
- }
113
- }
114
-
115
- // Readonly controls as plain text
116
- //
117
- // Apply class to a readonly input to make it appear like regular plain
118
- // text (without any border, background color, focus indicator)
119
-
120
- .form-control-plaintext {
121
- display: block;
122
- width: 100%;
123
- padding: $input-padding-y 0;
124
- margin-bottom: 0; // match inputs if this class comes on inputs with default margins
125
- line-height: $input-line-height;
126
- color: $input-plaintext-color;
127
- background-color: transparent;
128
- border: solid transparent;
129
- border-width: $input-border-width 0;
130
-
131
- &.form-control-sm,
132
- &.form-control-lg {
133
- padding-right: 0;
134
- padding-left: 0;
135
- }
136
- }
137
-
138
- // Form control sizing
139
- //
140
- // Build on `.form-control` with modifier classes to decrease or increase the
141
- // height and font-size of form controls.
142
- //
143
- // Repeated in `_input_group.scss` to avoid Sass extend issues.
144
-
145
- .form-control-sm {
146
- min-height: $input-height-sm;
147
- padding: $input-padding-y-sm $input-padding-x-sm;
148
- @include font-size($input-font-size-sm);
149
- @include border-radius($input-border-radius-sm);
150
-
151
- &::file-selector-button {
152
- padding: $input-padding-y-sm $input-padding-x-sm;
153
- margin: (-$input-padding-y-sm) (-$input-padding-x-sm);
154
- margin-inline-end: $input-padding-x-sm;
155
- }
156
-
157
- &::-webkit-file-upload-button {
158
- padding: $input-padding-y-sm $input-padding-x-sm;
159
- margin: (-$input-padding-y-sm) (-$input-padding-x-sm);
160
- margin-inline-end: $input-padding-x-sm;
161
- }
162
- }
163
-
164
- .form-control-lg {
165
- min-height: $input-height-lg;
166
- padding: $input-padding-y-lg $input-padding-x-lg;
167
- @include font-size($input-font-size-lg);
168
- @include border-radius($input-border-radius-lg);
169
-
170
- &::file-selector-button {
171
- padding: $input-padding-y-lg $input-padding-x-lg;
172
- margin: (-$input-padding-y-lg) (-$input-padding-x-lg);
173
- margin-inline-end: $input-padding-x-lg;
174
- }
175
-
176
- &::-webkit-file-upload-button {
177
- padding: $input-padding-y-lg $input-padding-x-lg;
178
- margin: (-$input-padding-y-lg) (-$input-padding-x-lg);
179
- margin-inline-end: $input-padding-x-lg;
180
- }
181
- }
182
-
183
- // Make sure textareas don't shrink too much when resized
184
- // https://github.com/twbs/bootstrap/pull/29124
185
- // stylelint-disable selector-no-qualifying-type
186
- textarea {
187
- &.form-control {
188
- min-height: $input-height;
189
- }
190
-
191
- &.form-control-sm {
192
- min-height: $input-height-sm;
193
- }
194
-
195
- &.form-control-lg {
196
- min-height: $input-height-lg;
197
- }
198
- }
199
- // stylelint-enable selector-no-qualifying-type
200
-
201
- .form-control-color {
202
- width: $form-color-width;
203
- height: auto; // Override fixed browser height
204
- padding: $input-padding-y;
205
-
206
- &:not(:disabled):not([readonly]) {
207
- cursor: pointer;
208
- }
209
-
210
- &::-moz-color-swatch {
211
- height: if(unit($input-line-height) == "", $input-line-height * 1em, $input-line-height);
212
- @include border-radius($input-border-radius);
213
- }
214
-
215
- &::-webkit-color-swatch {
216
- height: if(unit($input-line-height) == "", $input-line-height * 1em, $input-line-height);
217
- @include border-radius($input-border-radius);
218
- }
219
- }
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,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
+ }