bootstrap-scss 5.1.3 → 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/LICENSE +2 -2
- package/README.md +5 -5
- package/_accordion.scss +149 -118
- package/_alert.scss +18 -4
- package/_badge.scss +14 -5
- package/_breadcrumb.scss +22 -10
- package/_button-group.scss +142 -139
- package/_buttons.scss +201 -111
- package/_card.scss +55 -37
- package/_close.scss +1 -1
- package/_containers.scss +1 -1
- package/_dropdown.scss +249 -240
- package/_functions.scss +302 -302
- package/_grid.scss +3 -3
- package/_helpers.scss +1 -0
- package/_list-group.scss +192 -174
- package/_maps.scss +54 -0
- package/_modal.scss +237 -209
- package/_nav.scss +172 -139
- package/_navbar.scss +278 -335
- package/_offcanvas.scss +144 -83
- package/_pagination.scss +109 -64
- package/_placeholders.scss +1 -1
- package/_popover.scss +196 -158
- package/_progress.scss +20 -9
- package/_reboot.scss +25 -40
- package/_root.scss +40 -21
- package/_spinners.scss +38 -22
- package/_tables.scss +32 -23
- package/_toasts.scss +71 -51
- package/_tooltip.scss +61 -56
- package/_type.scss +2 -0
- package/_utilities.scss +43 -26
- package/_variables.scss +1634 -1641
- package/bootstrap-grid.scss +3 -6
- package/bootstrap-reboot.scss +3 -7
- package/bootstrap-utilities.scss +3 -6
- package/bootstrap.scss +4 -6
- package/forms/_floating-labels.scss +75 -63
- package/forms/_form-check.scss +28 -5
- package/forms/_form-control.scss +12 -37
- package/forms/_form-select.scss +0 -1
- package/forms/_input-group.scss +132 -121
- package/helpers/_color-bg.scss +10 -0
- package/helpers/_colored-links.scss +2 -2
- package/helpers/_position.scss +7 -1
- package/helpers/_ratio.scss +2 -2
- package/helpers/_vr.scss +1 -1
- package/mixins/_alert.scss +7 -3
- package/mixins/_banner.scss +9 -0
- package/mixins/_breakpoints.scss +8 -8
- package/mixins/_buttons.scss +32 -95
- package/mixins/_container.scss +4 -2
- package/mixins/_forms.scss +152 -144
- package/mixins/_gradients.scss +1 -1
- package/mixins/_grid.scss +12 -12
- package/mixins/_pagination.scss +4 -25
- package/mixins/_reset-text.scss +1 -1
- package/mixins/_table-variants.scss +12 -9
- package/mixins/_utilities.scss +97 -89
- package/package.json +1 -1
package/_popover.scss
CHANGED
@@ -1,158 +1,196 @@
|
|
1
|
-
.popover {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
}
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
border-
|
51
|
-
|
52
|
-
|
53
|
-
}
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
&::before
|
62
|
-
|
63
|
-
border-width: ($popover-arrow-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
}
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
}
|
84
|
-
|
85
|
-
&::
|
86
|
-
|
87
|
-
border-width:
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
.
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
border-
|
121
|
-
}
|
122
|
-
}
|
123
|
-
|
124
|
-
|
125
|
-
.
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
}
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
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
|
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(--#{$
|
52
|
-
@include font-size(var(--#{$
|
53
|
-
font-weight: var(--#{$
|
54
|
-
line-height: var(--#{$
|
55
|
-
color: var(--#{$
|
56
|
-
text-align: var(--#{$
|
57
|
-
background-color: var(--#{$
|
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.
|
143
|
-
// 2. Add
|
144
|
-
// 3.
|
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
|
-
|
149
|
-
|
150
|
-
|
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: $
|
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
|
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
|
-
|
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
|
-
--#{$
|
9
|
+
--#{$prefix}#{$color}: #{$value};
|
10
10
|
}
|
11
11
|
|
12
12
|
@each $color, $value in $grays {
|
13
|
-
--#{$
|
13
|
+
--#{$prefix}gray-#{$color}: #{$value};
|
14
14
|
}
|
15
15
|
|
16
16
|
@each $color, $value in $theme-colors {
|
17
|
-
--#{$
|
17
|
+
--#{$prefix}#{$color}: #{$value};
|
18
18
|
}
|
19
19
|
|
20
20
|
@each $color, $value in $theme-colors-rgb {
|
21
|
-
--#{$
|
21
|
+
--#{$prefix}#{$color}-rgb: #{$value};
|
22
22
|
}
|
23
23
|
|
24
|
-
--#{$
|
25
|
-
--#{$
|
26
|
-
--#{$
|
27
|
-
--#{$
|
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
|
-
--#{$
|
34
|
-
--#{$
|
35
|
-
--#{$
|
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
|
-
--#{$
|
40
|
+
--#{$prefix}root-font-size: #{$font-size-root};
|
42
41
|
}
|
43
|
-
--#{$
|
44
|
-
--#{$
|
45
|
-
--#{$
|
46
|
-
--#{$
|
47
|
-
--#{$
|
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
|
-
--#{$
|
48
|
+
--#{$prefix}body-text-align: #{$body-text-align};
|
50
49
|
}
|
51
|
-
--#{$
|
50
|
+
--#{$prefix}body-bg: #{$body-bg};
|
52
51
|
// scss-docs-end root-body-variables
|
53
|
-
|
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
|
}
|