bootstrap-scss 5.1.3 → 5.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. package/LICENSE +2 -2
  2. package/README.md +5 -5
  3. package/_accordion.scss +149 -118
  4. package/_alert.scss +18 -4
  5. package/_badge.scss +14 -5
  6. package/_breadcrumb.scss +22 -10
  7. package/_button-group.scss +142 -139
  8. package/_buttons.scss +201 -111
  9. package/_card.scss +55 -37
  10. package/_close.scss +1 -1
  11. package/_containers.scss +1 -1
  12. package/_dropdown.scss +249 -240
  13. package/_functions.scss +302 -302
  14. package/_grid.scss +3 -3
  15. package/_helpers.scss +1 -0
  16. package/_list-group.scss +192 -174
  17. package/_maps.scss +54 -0
  18. package/_modal.scss +237 -209
  19. package/_nav.scss +172 -139
  20. package/_navbar.scss +278 -335
  21. package/_offcanvas.scss +144 -83
  22. package/_pagination.scss +109 -64
  23. package/_placeholders.scss +1 -1
  24. package/_popover.scss +196 -158
  25. package/_progress.scss +20 -9
  26. package/_reboot.scss +25 -40
  27. package/_root.scss +40 -21
  28. package/_spinners.scss +38 -22
  29. package/_tables.scss +32 -23
  30. package/_toasts.scss +71 -51
  31. package/_tooltip.scss +61 -56
  32. package/_type.scss +2 -0
  33. package/_utilities.scss +43 -26
  34. package/_variables.scss +1634 -1641
  35. package/bootstrap-grid.scss +3 -6
  36. package/bootstrap-reboot.scss +3 -7
  37. package/bootstrap-utilities.scss +3 -6
  38. package/bootstrap.scss +4 -6
  39. package/forms/_floating-labels.scss +75 -63
  40. package/forms/_form-check.scss +28 -5
  41. package/forms/_form-control.scss +12 -37
  42. package/forms/_form-select.scss +0 -1
  43. package/forms/_input-group.scss +132 -121
  44. package/helpers/_color-bg.scss +10 -0
  45. package/helpers/_colored-links.scss +2 -2
  46. package/helpers/_position.scss +7 -1
  47. package/helpers/_ratio.scss +2 -2
  48. package/helpers/_vr.scss +1 -1
  49. package/mixins/_alert.scss +7 -3
  50. package/mixins/_banner.scss +9 -0
  51. package/mixins/_breakpoints.scss +8 -8
  52. package/mixins/_buttons.scss +32 -95
  53. package/mixins/_container.scss +4 -2
  54. package/mixins/_forms.scss +152 -144
  55. package/mixins/_gradients.scss +1 -1
  56. package/mixins/_grid.scss +12 -12
  57. package/mixins/_pagination.scss +4 -25
  58. package/mixins/_reset-text.scss +1 -1
  59. package/mixins/_table-variants.scss +12 -9
  60. package/mixins/_utilities.scss +97 -89
  61. package/package.json +1 -1
package/_popover.scss CHANGED
@@ -1,158 +1,196 @@
1
- .popover {
2
- position: absolute;
3
- top: 0;
4
- left: 0 #{"/* rtl:ignore */"};
5
- z-index: $zindex-popover;
6
- display: block;
7
- max-width: $popover-max-width;
8
- // Our parent element can be arbitrary since tooltips are by default inserted as a sibling of their target element.
9
- // So reset our font and text properties to avoid inheriting weird values.
10
- @include reset-text();
11
- @include font-size($popover-font-size);
12
- // Allow breaking very long words so they don't overflow the popover's bounds
13
- word-wrap: break-word;
14
- background-color: $popover-bg;
15
- background-clip: padding-box;
16
- border: $popover-border-width solid $popover-border-color;
17
- @include border-radius($popover-border-radius);
18
- @include box-shadow($popover-box-shadow);
19
-
20
- .popover-arrow {
21
- position: absolute;
22
- display: block;
23
- width: $popover-arrow-width;
24
- height: $popover-arrow-height;
25
-
26
- &::before,
27
- &::after {
28
- position: absolute;
29
- display: block;
30
- content: "";
31
- border-color: transparent;
32
- border-style: solid;
33
- }
34
- }
35
- }
36
-
37
- .bs-popover-top {
38
- > .popover-arrow {
39
- bottom: subtract(-$popover-arrow-height, $popover-border-width);
40
-
41
- &::before {
42
- bottom: 0;
43
- border-width: $popover-arrow-height ($popover-arrow-width * .5) 0;
44
- border-top-color: $popover-arrow-outer-color;
45
- }
46
-
47
- &::after {
48
- bottom: $popover-border-width;
49
- border-width: $popover-arrow-height ($popover-arrow-width * .5) 0;
50
- border-top-color: $popover-arrow-color;
51
- }
52
- }
53
- }
54
-
55
- .bs-popover-end {
56
- > .popover-arrow {
57
- left: subtract(-$popover-arrow-height, $popover-border-width);
58
- width: $popover-arrow-height;
59
- height: $popover-arrow-width;
60
-
61
- &::before {
62
- left: 0;
63
- border-width: ($popover-arrow-width * .5) $popover-arrow-height ($popover-arrow-width * .5) 0;
64
- border-right-color: $popover-arrow-outer-color;
65
- }
66
-
67
- &::after {
68
- left: $popover-border-width;
69
- border-width: ($popover-arrow-width * .5) $popover-arrow-height ($popover-arrow-width * .5) 0;
70
- border-right-color: $popover-arrow-color;
71
- }
72
- }
73
- }
74
-
75
- .bs-popover-bottom {
76
- > .popover-arrow {
77
- top: subtract(-$popover-arrow-height, $popover-border-width);
78
-
79
- &::before {
80
- top: 0;
81
- border-width: 0 ($popover-arrow-width * .5) $popover-arrow-height ($popover-arrow-width * .5);
82
- border-bottom-color: $popover-arrow-outer-color;
83
- }
84
-
85
- &::after {
86
- top: $popover-border-width;
87
- border-width: 0 ($popover-arrow-width * .5) $popover-arrow-height ($popover-arrow-width * .5);
88
- border-bottom-color: $popover-arrow-color;
89
- }
90
- }
91
-
92
- // This will remove the popover-header's border just below the arrow
93
- .popover-header::before {
94
- position: absolute;
95
- top: 0;
96
- left: 50%;
97
- display: block;
98
- width: $popover-arrow-width;
99
- margin-left: -$popover-arrow-width * .5;
100
- content: "";
101
- border-bottom: $popover-border-width solid $popover-header-bg;
102
- }
103
- }
104
-
105
- .bs-popover-start {
106
- > .popover-arrow {
107
- right: subtract(-$popover-arrow-height, $popover-border-width);
108
- width: $popover-arrow-height;
109
- height: $popover-arrow-width;
110
-
111
- &::before {
112
- right: 0;
113
- border-width: ($popover-arrow-width * .5) 0 ($popover-arrow-width * .5) $popover-arrow-height;
114
- border-left-color: $popover-arrow-outer-color;
115
- }
116
-
117
- &::after {
118
- right: $popover-border-width;
119
- border-width: ($popover-arrow-width * .5) 0 ($popover-arrow-width * .5) $popover-arrow-height;
120
- border-left-color: $popover-arrow-color;
121
- }
122
- }
123
- }
124
-
125
- .bs-popover-auto {
126
- &[data-popper-placement^="top"] {
127
- @extend .bs-popover-top;
128
- }
129
- &[data-popper-placement^="right"] {
130
- @extend .bs-popover-end;
131
- }
132
- &[data-popper-placement^="bottom"] {
133
- @extend .bs-popover-bottom;
134
- }
135
- &[data-popper-placement^="left"] {
136
- @extend .bs-popover-start;
137
- }
138
- }
139
-
140
- // Offset the popover to account for the popover arrow
141
- .popover-header {
142
- padding: $popover-header-padding-y $popover-header-padding-x;
143
- margin-bottom: 0; // Reset the default from Reboot
144
- @include font-size($font-size-base);
145
- color: $popover-header-color;
146
- background-color: $popover-header-bg;
147
- border-bottom: $popover-border-width solid $popover-border-color;
148
- @include border-top-radius($popover-inner-border-radius);
149
-
150
- &:empty {
151
- display: none;
152
- }
153
- }
154
-
155
- .popover-body {
156
- padding: $popover-body-padding-y $popover-body-padding-x;
157
- color: $popover-body-color;
158
- }
1
+ .popover {
2
+ // scss-docs-start popover-css-vars
3
+ --#{$prefix}popover-zindex: #{$zindex-popover};
4
+ --#{$prefix}popover-max-width: #{$popover-max-width};
5
+ @include rfs($popover-font-size, --#{$prefix}popover-font-size);
6
+ --#{$prefix}popover-bg: #{$popover-bg};
7
+ --#{$prefix}popover-border-width: #{$popover-border-width};
8
+ --#{$prefix}popover-border-color: #{$popover-border-color};
9
+ --#{$prefix}popover-border-radius: #{$popover-border-radius};
10
+ --#{$prefix}popover-inner-border-radius: #{$popover-inner-border-radius};
11
+ --#{$prefix}popover-box-shadow: #{$popover-box-shadow};
12
+ --#{$prefix}popover-header-padding-x: #{$popover-header-padding-x};
13
+ --#{$prefix}popover-header-padding-y: #{$popover-header-padding-y};
14
+ @include rfs($popover-header-font-size, --#{$prefix}popover-header-font-size);
15
+ --#{$prefix}popover-header-color: #{$popover-header-color};
16
+ --#{$prefix}popover-header-bg: #{$popover-header-bg};
17
+ --#{$prefix}popover-body-padding-x: #{$popover-body-padding-x};
18
+ --#{$prefix}popover-body-padding-y: #{$popover-body-padding-y};
19
+ --#{$prefix}popover-body-color: #{$popover-body-color};
20
+ --#{$prefix}popover-arrow-width: #{$popover-arrow-width};
21
+ --#{$prefix}popover-arrow-height: #{$popover-arrow-height};
22
+ --#{$prefix}popover-arrow-border: var(--#{$prefix}popover-border-color);
23
+ // scss-docs-end popover-css-vars
24
+
25
+ z-index: var(--#{$prefix}popover-zindex);
26
+ display: block;
27
+ max-width: var(--#{$prefix}popover-max-width);
28
+ // Our parent element can be arbitrary since tooltips are by default inserted as a sibling of their target element.
29
+ // So reset our font and text properties to avoid inheriting weird values.
30
+ @include reset-text();
31
+ @include font-size(var(--#{$prefix}popover-font-size));
32
+ // Allow breaking very long words so they don't overflow the popover's bounds
33
+ word-wrap: break-word;
34
+ background-color: var(--#{$prefix}popover-bg);
35
+ background-clip: padding-box;
36
+ border: var(--#{$prefix}popover-border-width) solid var(--#{$prefix}popover-border-color);
37
+ @include border-radius(var(--#{$prefix}popover-border-radius));
38
+ @include box-shadow(var(--#{$prefix}popover-box-shadow));
39
+
40
+ .popover-arrow {
41
+ display: block;
42
+ width: var(--#{$prefix}popover-arrow-width);
43
+ height: var(--#{$prefix}popover-arrow-height);
44
+
45
+ &::before,
46
+ &::after {
47
+ position: absolute;
48
+ display: block;
49
+ content: "";
50
+ border-color: transparent;
51
+ border-style: solid;
52
+ border-width: 0;
53
+ }
54
+ }
55
+ }
56
+
57
+ .bs-popover-top {
58
+ > .popover-arrow {
59
+ bottom: calc(-1 * (var(--#{$prefix}popover-arrow-height)) - var(--#{$prefix}popover-border-width)); // stylelint-disable-line function-disallowed-list
60
+
61
+ &::before,
62
+ &::after {
63
+ border-width: var(--#{$prefix}popover-arrow-height) calc(var(--#{$prefix}popover-arrow-width) * .5) 0; // stylelint-disable-line function-disallowed-list
64
+ }
65
+
66
+ &::before {
67
+ bottom: 0;
68
+ border-top-color: var(--#{$prefix}popover-arrow-border);
69
+ }
70
+
71
+ &::after {
72
+ bottom: var(--#{$prefix}popover-border-width);
73
+ border-top-color: var(--#{$prefix}popover-bg);
74
+ }
75
+ }
76
+ }
77
+
78
+ /* rtl:begin:ignore */
79
+ .bs-popover-end {
80
+ > .popover-arrow {
81
+ left: calc(-1 * (var(--#{$prefix}popover-arrow-height)) - var(--#{$prefix}popover-border-width)); // stylelint-disable-line function-disallowed-list
82
+ width: var(--#{$prefix}popover-arrow-height);
83
+ height: var(--#{$prefix}popover-arrow-width);
84
+
85
+ &::before,
86
+ &::after {
87
+ border-width: calc(var(--#{$prefix}popover-arrow-width) * .5) var(--#{$prefix}popover-arrow-height) calc(var(--#{$prefix}popover-arrow-width) * .5) 0; // stylelint-disable-line function-disallowed-list
88
+ }
89
+
90
+ &::before {
91
+ left: 0;
92
+ border-right-color: var(--#{$prefix}popover-arrow-border);
93
+ }
94
+
95
+ &::after {
96
+ left: var(--#{$prefix}popover-border-width);
97
+ border-right-color: var(--#{$prefix}popover-bg);
98
+ }
99
+ }
100
+ }
101
+
102
+ /* rtl:end:ignore */
103
+
104
+ .bs-popover-bottom {
105
+ > .popover-arrow {
106
+ top: calc(-1 * (var(--#{$prefix}popover-arrow-height)) - var(--#{$prefix}popover-border-width)); // stylelint-disable-line function-disallowed-list
107
+
108
+ &::before,
109
+ &::after {
110
+ border-width: 0 calc(var(--#{$prefix}popover-arrow-width) * .5) var(--#{$prefix}popover-arrow-height); // stylelint-disable-line function-disallowed-list
111
+ }
112
+
113
+ &::before {
114
+ top: 0;
115
+ border-bottom-color: var(--#{$prefix}popover-arrow-border);
116
+ }
117
+
118
+ &::after {
119
+ top: var(--#{$prefix}popover-border-width);
120
+ border-bottom-color: var(--#{$prefix}popover-bg);
121
+ }
122
+ }
123
+
124
+ // This will remove the popover-header's border just below the arrow
125
+ .popover-header::before {
126
+ position: absolute;
127
+ top: 0;
128
+ left: 50%;
129
+ display: block;
130
+ width: var(--#{$prefix}popover-arrow-width);
131
+ margin-left: calc(-.5 * var(--#{$prefix}popover-arrow-width)); // stylelint-disable-line function-disallowed-list
132
+ content: "";
133
+ border-bottom: var(--#{$prefix}popover-border-width) solid var(--#{$prefix}popover-header-bg);
134
+ }
135
+ }
136
+
137
+ /* rtl:begin:ignore */
138
+ .bs-popover-start {
139
+ > .popover-arrow {
140
+ right: calc(-1 * (var(--#{$prefix}popover-arrow-height)) - var(--#{$prefix}popover-border-width)); // stylelint-disable-line function-disallowed-list
141
+ width: var(--#{$prefix}popover-arrow-height);
142
+ height: var(--#{$prefix}popover-arrow-width);
143
+
144
+ &::before,
145
+ &::after {
146
+ border-width: calc(var(--#{$prefix}popover-arrow-width) * .5) 0 calc(var(--#{$prefix}popover-arrow-width) * .5) var(--#{$prefix}popover-arrow-height); // stylelint-disable-line function-disallowed-list
147
+ }
148
+
149
+ &::before {
150
+ right: 0;
151
+ border-left-color: var(--#{$prefix}popover-arrow-border);
152
+ }
153
+
154
+ &::after {
155
+ right: var(--#{$prefix}popover-border-width);
156
+ border-left-color: var(--#{$prefix}popover-bg);
157
+ }
158
+ }
159
+ }
160
+
161
+ /* rtl:end:ignore */
162
+
163
+ .bs-popover-auto {
164
+ &[data-popper-placement^="top"] {
165
+ @extend .bs-popover-top;
166
+ }
167
+ &[data-popper-placement^="right"] {
168
+ @extend .bs-popover-end;
169
+ }
170
+ &[data-popper-placement^="bottom"] {
171
+ @extend .bs-popover-bottom;
172
+ }
173
+ &[data-popper-placement^="left"] {
174
+ @extend .bs-popover-start;
175
+ }
176
+ }
177
+
178
+ // Offset the popover to account for the popover arrow
179
+ .popover-header {
180
+ padding: var(--#{$prefix}popover-header-padding-y) var(--#{$prefix}popover-header-padding-x);
181
+ margin-bottom: 0; // Reset the default from Reboot
182
+ @include font-size(var(--#{$prefix}popover-header-font-size));
183
+ color: var(--#{$prefix}popover-header-color);
184
+ background-color: var(--#{$prefix}popover-header-bg);
185
+ border-bottom: var(--#{$prefix}popover-border-width) solid var(--#{$prefix}popover-border-color);
186
+ @include border-top-radius(var(--#{$prefix}popover-inner-border-radius));
187
+
188
+ &:empty {
189
+ display: none;
190
+ }
191
+ }
192
+
193
+ .popover-body {
194
+ padding: var(--#{$prefix}popover-body-padding-y) var(--#{$prefix}popover-body-padding-x);
195
+ color: var(--#{$prefix}popover-body-color);
196
+ }
package/_progress.scss CHANGED
@@ -9,13 +9,24 @@
9
9
  // scss-docs-end progress-keyframes
10
10
 
11
11
  .progress {
12
+ // scss-docs-start progress-css-vars
13
+ --#{$prefix}progress-height: #{$progress-height};
14
+ @include rfs($progress-font-size, --#{$prefix}progress-font-size);
15
+ --#{$prefix}progress-bg: #{$progress-bg};
16
+ --#{$prefix}progress-border-radius: #{$progress-border-radius};
17
+ --#{$prefix}progress-box-shadow: #{$progress-box-shadow};
18
+ --#{$prefix}progress-bar-color: #{$progress-bar-color};
19
+ --#{$prefix}progress-bar-bg: #{$progress-bar-bg};
20
+ --#{$prefix}progress-bar-transition: #{$progress-bar-transition};
21
+ // scss-docs-end progress-css-vars
22
+
12
23
  display: flex;
13
- height: $progress-height;
24
+ height: var(--#{$prefix}progress-height);
14
25
  overflow: hidden; // force rounded corners by cropping it
15
- @include font-size($progress-font-size);
16
- background-color: $progress-bg;
17
- @include border-radius($progress-border-radius);
18
- @include box-shadow($progress-box-shadow);
26
+ @include font-size(var(--#{$prefix}progress-font-size));
27
+ background-color: var(--#{$prefix}progress-bg);
28
+ @include border-radius(var(--#{$prefix}progress-border-radius));
29
+ @include box-shadow(var(--#{$prefix}progress-box-shadow));
19
30
  }
20
31
 
21
32
  .progress-bar {
@@ -23,16 +34,16 @@
23
34
  flex-direction: column;
24
35
  justify-content: center;
25
36
  overflow: hidden;
26
- color: $progress-bar-color;
37
+ color: var(--#{$prefix}progress-bar-color);
27
38
  text-align: center;
28
39
  white-space: nowrap;
29
- background-color: $progress-bar-bg;
30
- @include transition($progress-bar-transition);
40
+ background-color: var(--#{$prefix}progress-bar-bg);
41
+ @include transition(var(--#{$prefix}progress-bar-transition));
31
42
  }
32
43
 
33
44
  .progress-bar-striped {
34
45
  @include gradient-striped();
35
- background-size: $progress-height $progress-height;
46
+ background-size: var(--#{$prefix}progress-height) var(--#{$prefix}progress-height);
36
47
  }
37
48
 
38
49
  @if $enable-transitions {
package/_reboot.scss CHANGED
@@ -27,7 +27,7 @@
27
27
 
28
28
  :root {
29
29
  @if $font-size-root != null {
30
- font-size: var(--#{$variable-prefix}root-font-size);
30
+ @include font-size(var(--#{$prefix}root-font-size));
31
31
  }
32
32
 
33
33
  @if $enable-smooth-scroll {
@@ -48,13 +48,13 @@
48
48
  // scss-docs-start reboot-body-rules
49
49
  body {
50
50
  margin: 0; // 1
51
- font-family: var(--#{$variable-prefix}body-font-family);
52
- @include font-size(var(--#{$variable-prefix}body-font-size));
53
- font-weight: var(--#{$variable-prefix}body-font-weight);
54
- line-height: var(--#{$variable-prefix}body-line-height);
55
- color: var(--#{$variable-prefix}body-color);
56
- text-align: var(--#{$variable-prefix}body-text-align);
57
- background-color: var(--#{$variable-prefix}body-bg); // 2
51
+ font-family: var(--#{$prefix}body-font-family);
52
+ @include font-size(var(--#{$prefix}body-font-size));
53
+ font-weight: var(--#{$prefix}body-font-weight);
54
+ line-height: var(--#{$prefix}body-line-height);
55
+ color: var(--#{$prefix}body-color);
56
+ text-align: var(--#{$prefix}body-text-align);
57
+ background-color: var(--#{$prefix}body-bg); // 2
58
58
  -webkit-text-size-adjust: 100%; // 3
59
59
  -webkit-tap-highlight-color: rgba($black, 0); // 4
60
60
  }
@@ -64,20 +64,15 @@ body {
64
64
  // Content grouping
65
65
  //
66
66
  // 1. Reset Firefox's gray color
67
- // 2. Set correct height and prevent the `size` attribute to make the `hr` look like an input field
68
67
 
69
68
  hr {
70
69
  margin: $hr-margin-y 0;
71
70
  color: $hr-color; // 1
72
- background-color: currentColor;
73
71
  border: 0;
72
+ border-top: $hr-border-width solid $hr-border-color;
74
73
  opacity: $hr-opacity;
75
74
  }
76
75
 
77
- hr:not([size]) {
78
- height: $hr-height; // 2
79
- }
80
-
81
76
 
82
77
  // Typography
83
78
  //
@@ -139,16 +134,14 @@ p {
139
134
 
140
135
  // Abbreviations
141
136
  //
142
- // 1. Duplicate behavior to the data-bs-* attribute for our tooltip plugin
143
- // 2. Add the correct text decoration in Chrome, Edge, Opera, and Safari.
144
- // 3. Add explicit cursor to indicate changed behavior.
145
- // 4. Prevent the text-decoration to be skipped.
137
+ // 1. Add the correct text decoration in Chrome, Edge, Opera, and Safari.
138
+ // 2. Add explicit cursor to indicate changed behavior.
139
+ // 3. Prevent the text-decoration to be skipped.
146
140
 
147
- abbr[title],
148
- abbr[data-bs-original-title] { // 1
149
- text-decoration: underline dotted; // 2
150
- cursor: help; // 3
151
- text-decoration-skip-ink: none; // 4
141
+ abbr[title] {
142
+ text-decoration: underline dotted; // 1
143
+ cursor: help; // 2
144
+ text-decoration-skip-ink: none; // 3
152
145
  }
153
146
 
154
147
 
@@ -224,7 +217,7 @@ small {
224
217
 
225
218
  mark {
226
219
  padding: $mark-padding;
227
- background-color: $mark-bg;
220
+ background-color: var(--#{$prefix}highlight-bg);
228
221
  }
229
222
 
230
223
 
@@ -248,11 +241,11 @@ sup { top: -.5em; }
248
241
  // Links
249
242
 
250
243
  a {
251
- color: $link-color;
244
+ color: var(--#{$prefix}link-color);
252
245
  text-decoration: $link-decoration;
253
246
 
254
247
  &:hover {
255
- color: $link-hover-color;
248
+ color: var(--#{$prefix}link-hover-color);
256
249
  text-decoration: $link-hover-decoration;
257
250
  }
258
251
  }
@@ -279,8 +272,6 @@ kbd,
279
272
  samp {
280
273
  font-family: $font-family-code;
281
274
  @include font-size(1em); // Correct the odd `em` font sizing in all browsers.
282
- direction: ltr #{"/* rtl:ignore */"};
283
- unicode-bidi: bidi-override;
284
275
  }
285
276
 
286
277
  // 1. Remove browser default top margin
@@ -305,7 +296,7 @@ pre {
305
296
 
306
297
  code {
307
298
  @include font-size($code-font-size);
308
- color: $code-color;
299
+ color: var(--#{$prefix}code-color);
309
300
  word-wrap: break-word;
310
301
 
311
302
  // Streamline the style when inside anchors to avoid broken underline and more
@@ -445,11 +436,11 @@ select {
445
436
  }
446
437
  }
447
438
 
448
- // Remove the dropdown arrow in Chrome from inputs built with datalists.
439
+ // Remove the dropdown arrow only from text type inputs built with datalists in Chrome.
449
440
  // See https://stackoverflow.com/a/54997118
450
441
 
451
- [list]::-webkit-calendar-picker-indicator {
452
- display: none;
442
+ [list]:not([type="date"]):not([type="datetime-local"]):not([type="month"]):not([type="week"]):not([type="time"])::-webkit-calendar-picker-indicator {
443
+ display: none !important;
453
444
  }
454
445
 
455
446
  // 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
@@ -571,16 +562,10 @@ legend {
571
562
  }
572
563
 
573
564
 
574
- // Inherit font family and line height for file input buttons
575
-
576
- ::file-selector-button {
577
- font: inherit;
578
- }
579
-
580
- // 1. Change font properties to `inherit`
565
+ // 1. Inherit font family and line height for file input buttons
581
566
  // 2. Correct the inability to style clickable types in iOS and Safari.
582
567
 
583
- ::-webkit-file-upload-button {
568
+ ::file-selector-button {
584
569
  font: inherit; // 1
585
570
  -webkit-appearance: button; // 2
586
571
  }
package/_root.scss CHANGED
@@ -6,49 +6,68 @@
6
6
  // Generate palettes for full colors, grays, and theme colors.
7
7
 
8
8
  @each $color, $value in $colors {
9
- --#{$variable-prefix}#{$color}: #{$value};
9
+ --#{$prefix}#{$color}: #{$value};
10
10
  }
11
11
 
12
12
  @each $color, $value in $grays {
13
- --#{$variable-prefix}gray-#{$color}: #{$value};
13
+ --#{$prefix}gray-#{$color}: #{$value};
14
14
  }
15
15
 
16
16
  @each $color, $value in $theme-colors {
17
- --#{$variable-prefix}#{$color}: #{$value};
17
+ --#{$prefix}#{$color}: #{$value};
18
18
  }
19
19
 
20
20
  @each $color, $value in $theme-colors-rgb {
21
- --#{$variable-prefix}#{$color}-rgb: #{$value};
21
+ --#{$prefix}#{$color}-rgb: #{$value};
22
22
  }
23
23
 
24
- --#{$variable-prefix}white-rgb: #{to-rgb($white)};
25
- --#{$variable-prefix}black-rgb: #{to-rgb($black)};
26
- --#{$variable-prefix}body-color-rgb: #{to-rgb($body-color)};
27
- --#{$variable-prefix}body-bg-rgb: #{to-rgb($body-bg)};
24
+ --#{$prefix}white-rgb: #{to-rgb($white)};
25
+ --#{$prefix}black-rgb: #{to-rgb($black)};
26
+ --#{$prefix}body-color-rgb: #{to-rgb($body-color)};
27
+ --#{$prefix}body-bg-rgb: #{to-rgb($body-bg)};
28
28
 
29
29
  // Fonts
30
30
 
31
31
  // Note: Use `inspect` for lists so that quoted items keep the quotes.
32
32
  // See https://github.com/sass/sass/issues/2383#issuecomment-336349172
33
- --#{$variable-prefix}font-sans-serif: #{inspect($font-family-sans-serif)};
34
- --#{$variable-prefix}font-monospace: #{inspect($font-family-monospace)};
35
- --#{$variable-prefix}gradient: #{$gradient};
33
+ --#{$prefix}font-sans-serif: #{inspect($font-family-sans-serif)};
34
+ --#{$prefix}font-monospace: #{inspect($font-family-monospace)};
35
+ --#{$prefix}gradient: #{$gradient};
36
36
 
37
37
  // Root and body
38
- // stylelint-disable custom-property-empty-line-before
39
38
  // scss-docs-start root-body-variables
40
39
  @if $font-size-root != null {
41
- --#{$variable-prefix}root-font-size: #{$font-size-root};
40
+ --#{$prefix}root-font-size: #{$font-size-root};
42
41
  }
43
- --#{$variable-prefix}body-font-family: #{$font-family-base};
44
- --#{$variable-prefix}body-font-size: #{$font-size-base};
45
- --#{$variable-prefix}body-font-weight: #{$font-weight-base};
46
- --#{$variable-prefix}body-line-height: #{$line-height-base};
47
- --#{$variable-prefix}body-color: #{$body-color};
42
+ --#{$prefix}body-font-family: #{$font-family-base};
43
+ @include rfs($font-size-base, --#{$prefix}body-font-size);
44
+ --#{$prefix}body-font-weight: #{$font-weight-base};
45
+ --#{$prefix}body-line-height: #{$line-height-base};
46
+ --#{$prefix}body-color: #{$body-color};
48
47
  @if $body-text-align != null {
49
- --#{$variable-prefix}body-text-align: #{$body-text-align};
48
+ --#{$prefix}body-text-align: #{$body-text-align};
50
49
  }
51
- --#{$variable-prefix}body-bg: #{$body-bg};
50
+ --#{$prefix}body-bg: #{$body-bg};
52
51
  // scss-docs-end root-body-variables
53
- // stylelint-enable custom-property-empty-line-before
52
+
53
+ // scss-docs-start root-border-var
54
+ --#{$prefix}border-width: #{$border-width};
55
+ --#{$prefix}border-style: #{$border-style};
56
+ --#{$prefix}border-color: #{$border-color};
57
+ --#{$prefix}border-color-translucent: #{$border-color-translucent};
58
+
59
+ --#{$prefix}border-radius: #{$border-radius};
60
+ --#{$prefix}border-radius-sm: #{$border-radius-sm};
61
+ --#{$prefix}border-radius-lg: #{$border-radius-lg};
62
+ --#{$prefix}border-radius-xl: #{$border-radius-xl};
63
+ --#{$prefix}border-radius-2xl: #{$border-radius-2xl};
64
+ --#{$prefix}border-radius-pill: #{$border-radius-pill};
65
+ // scss-docs-end root-border-var
66
+
67
+ --#{$prefix}link-color: #{$link-color};
68
+ --#{$prefix}link-hover-color: #{$link-hover-color};
69
+
70
+ --#{$prefix}code-color: #{$code-color};
71
+
72
+ --#{$prefix}highlight-bg: #{$mark-bg};
54
73
  }