@siemens/element-theme 51.0.0-rc.1 → 51.0.0-rc.10
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 +13 -0
- package/package.json +3 -2
- package/src/styles/_accessibility.scss +8 -2
- package/src/styles/_density.scss +144 -0
- package/src/styles/_reboot-shadow-dom.scss +5 -0
- package/src/styles/_root-font-size.scss +4 -2
- package/src/styles/_selectors.scss +3 -0
- package/src/styles/_themes.scss +15 -3
- package/src/styles/_utilities.scss +5 -0
- package/src/styles/_variables.scss +2 -0
- package/src/styles/bootstrap/_alert.scss +19 -19
- package/src/styles/bootstrap/_badges.scss +41 -41
- package/src/styles/bootstrap/_button-group.scss +12 -11
- package/src/styles/bootstrap/_buttons.scss +85 -85
- package/src/styles/bootstrap/_card.scss +23 -17
- package/src/styles/bootstrap/_dropdowns.scss +18 -18
- package/src/styles/bootstrap/_forms.scss +1 -0
- package/src/styles/bootstrap/_images.scss +4 -2
- package/src/styles/bootstrap/_list-group.scss +52 -14
- package/src/styles/bootstrap/_mixins.scss +1 -0
- package/src/styles/bootstrap/_modals.scss +11 -10
- package/src/styles/bootstrap/_nav.scss +17 -8
- package/src/styles/bootstrap/_pagination.scss +6 -5
- package/src/styles/bootstrap/_popovers.scss +3 -2
- package/src/styles/bootstrap/_reboot.scss +9 -3
- package/src/styles/bootstrap/_root.scss +2 -1
- package/src/styles/bootstrap/_tables.scss +8 -6
- package/src/styles/bootstrap/_type.scss +144 -36
- package/src/styles/bootstrap/_utilities.scss +41 -45
- package/src/styles/bootstrap/_variables.scss +154 -140
- package/src/styles/bootstrap/forms/_form-check.scss +43 -73
- package/src/styles/bootstrap/forms/_form-control.scss +35 -29
- package/src/styles/bootstrap/forms/_form-file.scss +9 -9
- package/src/styles/bootstrap/forms/_form-label.scss +1 -1
- package/src/styles/bootstrap/forms/_form-layout.scss +46 -0
- package/src/styles/bootstrap/forms/_form-range.scss +13 -14
- package/src/styles/bootstrap/forms/_validation.scss +3 -6
- package/src/styles/bootstrap/mixins/_badge-text.scss +3 -3
- package/src/styles/bootstrap/mixins/_form-layout.scss +62 -0
- package/src/styles/bootstrap/mixins/_grid.scss +3 -3
- package/src/styles/bootstrap/mixins/_utilities.scss +14 -3
- package/src/styles/components/_application-header.scss +30 -30
- package/src/styles/components/_datatable.scss +57 -48
- package/src/styles/components/_drag_drop.scss +7 -6
- package/src/styles/components/_elevation.scss +11 -6
- package/src/styles/components/_layout.scss +26 -13
- package/src/styles/components/_links.scss +2 -2
- package/src/styles/components/_list-item.scss +69 -30
- package/src/styles/components/_markdown.scss +33 -19
- package/src/styles/components/_pills.scss +6 -6
- package/src/styles/components/_scrollbar.scss +6 -5
- package/src/styles/components/_search-bar.scss +67 -0
- package/src/styles/components/_skeleton.scss +4 -3
- package/src/styles/components/_switch.scss +16 -18
- package/src/styles/components/_widgets.scss +12 -10
- package/src/styles/mixins/_utilities.scss +271 -0
- package/src/styles/variables/_elevation.scss +14 -12
- package/src/styles/variables/_focus.scss +4 -3
- package/src/styles/variables/_si-vars.scss +13 -7
- package/src/styles/variables/_sizing.scss +22 -0
- package/src/styles/variables/_spacers.scss +53 -25
- package/src/styles/variables/_system-tokens.scss +190 -0
- package/src/styles/variables/_typography.scss +112 -99
- package/src/styles/variables/_utilities.scss +64 -51
- package/src/theme/_theme-element.scss +386 -2
- package/src/theme-shadow-dom.scss +17 -0
- package/src/theme.scss +14 -3
- /package/{LICENSE.md → LICENSE} +0 -0
|
@@ -1,11 +1,38 @@
|
|
|
1
|
+
// @deprecated The Bootstrap list group is deprecated in favor of the Element list
|
|
2
|
+
// (`.list` / `.list-item`, see `../components/_list-item.scss`).
|
|
3
|
+
|
|
4
|
+
// The list group predates the Element list and is only a thin container with
|
|
5
|
+
// borders. It has no notion of the Element list anatomy (indicator, title,
|
|
6
|
+
// description, metadata, quick actions) and therefore cannot express the current
|
|
7
|
+
// design. Do not use it for new code.
|
|
8
|
+
|
|
9
|
+
// Rough mapping, the markup has to be restructured, this is not a class rename:
|
|
10
|
+
// `.list-group` -> `.list`, optionally with `.list-divider`, `.list-filled` or `.list-outline`
|
|
11
|
+
// `.list-group-item` -> `.list-item`, children need explicit slot classes
|
|
12
|
+
// (`.list-item-title`, `.list-item-description`, ...)
|
|
13
|
+
// `.list-group-item-action` -> `.list-item.list-item-action`
|
|
14
|
+
// `.list-group-flush` -> `.list.list-divider` to preserve dividers; otherwise
|
|
15
|
+
// `.list`, which has no outer border
|
|
16
|
+
// `.list-group-md` / `.list-group-lg` -> no replacement, the item height follows its content
|
|
17
|
+
// `.list-group-horizontal*` -> no replacement, use flex or grid utilities
|
|
18
|
+
// `.list-group-numbered` -> no replacement, use an ordered list with a custom counter
|
|
19
|
+
// because `.list-item` removes list markers
|
|
20
|
+
// `.list-group-item-*` -> no replacement, use background and text utilities
|
|
21
|
+
// `.list-header` -> no replacement, use a heading element
|
|
22
|
+
|
|
23
|
+
// These styles remain available for existing applications and there is no removal
|
|
24
|
+
// planned at this point. They will not receive further design updates and may be
|
|
25
|
+
// removed in a future major version.
|
|
26
|
+
|
|
1
27
|
@use 'sass:map';
|
|
2
28
|
|
|
3
29
|
@use '../variables/focus';
|
|
4
|
-
@use '../variables/
|
|
30
|
+
@use '../variables/system-tokens';
|
|
5
31
|
@use '../variables/typography';
|
|
6
32
|
@use 'mixins/breakpoints';
|
|
7
33
|
@use 'variables';
|
|
8
34
|
|
|
35
|
+
// @deprecated Use `.list` instead.
|
|
9
36
|
.list-group {
|
|
10
37
|
display: flex;
|
|
11
38
|
flex-direction: column;
|
|
@@ -13,6 +40,8 @@
|
|
|
13
40
|
border-radius: variables.$list-group-border-radius;
|
|
14
41
|
}
|
|
15
42
|
|
|
43
|
+
// @deprecated No replacement, use an ordered list with a custom counter because
|
|
44
|
+
// `.list-item` removes list markers.
|
|
16
45
|
.list-group-numbered {
|
|
17
46
|
list-style-type: none;
|
|
18
47
|
counter-reset: section;
|
|
@@ -24,6 +53,7 @@
|
|
|
24
53
|
}
|
|
25
54
|
}
|
|
26
55
|
|
|
56
|
+
// @deprecated Use `.list-item.list-item-action` instead.
|
|
27
57
|
.list-group-item-action {
|
|
28
58
|
inline-size: 100%; // For `<button>`s (anchors become 100% by default though)
|
|
29
59
|
color: variables.$list-group-action-color;
|
|
@@ -47,6 +77,7 @@
|
|
|
47
77
|
}
|
|
48
78
|
}
|
|
49
79
|
|
|
80
|
+
// @deprecated Use `.list-item` instead.
|
|
50
81
|
.list-group-item {
|
|
51
82
|
position: relative;
|
|
52
83
|
display: block;
|
|
@@ -100,16 +131,19 @@
|
|
|
100
131
|
}
|
|
101
132
|
}
|
|
102
133
|
|
|
134
|
+
// @deprecated No replacement, the height of a `.list-item` follows its content.
|
|
103
135
|
.list-group-lg .list-group-item {
|
|
104
136
|
min-block-size: calc(3rem + 2 * variables.$list-group-item-padding-y);
|
|
105
137
|
}
|
|
106
138
|
|
|
139
|
+
// @deprecated No replacement, the height of a `.list-item` follows its content.
|
|
107
140
|
.list-group-md .list-group-item {
|
|
108
141
|
min-block-size: calc(2rem + 2 * variables.$list-group-item-padding-y);
|
|
109
142
|
}
|
|
110
143
|
|
|
144
|
+
// @deprecated No replacement, use a heading element.
|
|
111
145
|
.list-header {
|
|
112
|
-
font-size: typography.$si-font-size-
|
|
146
|
+
font-size: typography.$si-font-size-body-sm;
|
|
113
147
|
padding-block: variables.$list-group-item-padding-y;
|
|
114
148
|
padding-inline: variables.$list-group-item-padding-x;
|
|
115
149
|
color: variables.$headings-color;
|
|
@@ -117,6 +151,7 @@
|
|
|
117
151
|
border: 1px solid variables.$list-group-border-color;
|
|
118
152
|
}
|
|
119
153
|
|
|
154
|
+
// @deprecated No replacement, use flex or grid utilities.
|
|
120
155
|
@each $breakpoint in map.keys(variables.$grid-breakpoints) {
|
|
121
156
|
@include breakpoints.media-breakpoint-up($breakpoint) {
|
|
122
157
|
$infix: breakpoints.breakpoint-infix($breakpoint, variables.$grid-breakpoints);
|
|
@@ -154,6 +189,7 @@
|
|
|
154
189
|
}
|
|
155
190
|
}
|
|
156
191
|
|
|
192
|
+
// @deprecated Use `.list` instead, the Element list has no outer border.
|
|
157
193
|
.list-group-flush {
|
|
158
194
|
border-radius: 0;
|
|
159
195
|
|
|
@@ -167,32 +203,34 @@
|
|
|
167
203
|
}
|
|
168
204
|
}
|
|
169
205
|
|
|
206
|
+
// @deprecated No replacement for the `.list-group-item-*` variants below,
|
|
207
|
+
// use the background and text utilities on a `.list-item` instead.
|
|
170
208
|
.list-group-item-secondary {
|
|
171
|
-
background-color:
|
|
172
|
-
color:
|
|
209
|
+
background-color: system-tokens.$si-sys-background-neutral;
|
|
210
|
+
color: system-tokens.$si-sys-text-on-neutral;
|
|
173
211
|
}
|
|
174
212
|
|
|
175
213
|
.list-group-item-success {
|
|
176
|
-
color:
|
|
177
|
-
background:
|
|
214
|
+
color: system-tokens.$si-sys-text-success;
|
|
215
|
+
background: system-tokens.$si-sys-background-success-subtle;
|
|
178
216
|
}
|
|
179
217
|
|
|
180
218
|
.list-group-item-warning {
|
|
181
|
-
color:
|
|
182
|
-
background:
|
|
219
|
+
color: system-tokens.$si-sys-text-warning;
|
|
220
|
+
background: system-tokens.$si-sys-background-warning-subtle;
|
|
183
221
|
}
|
|
184
222
|
|
|
185
223
|
.list-group-item-caution {
|
|
186
|
-
background-color:
|
|
187
|
-
color:
|
|
224
|
+
background-color: system-tokens.$si-sys-background-caution-subtle;
|
|
225
|
+
color: system-tokens.$si-sys-text-caution;
|
|
188
226
|
}
|
|
189
227
|
|
|
190
228
|
.list-group-item-danger {
|
|
191
|
-
color:
|
|
192
|
-
background:
|
|
229
|
+
color: system-tokens.$si-sys-text-danger;
|
|
230
|
+
background: system-tokens.$si-sys-background-danger-subtle;
|
|
193
231
|
}
|
|
194
232
|
|
|
195
233
|
.list-group-item-info {
|
|
196
|
-
color:
|
|
197
|
-
background:
|
|
234
|
+
color: system-tokens.$si-sys-text-information;
|
|
235
|
+
background: system-tokens.$si-sys-background-information-subtle;
|
|
198
236
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@use '../variables/spacers';
|
|
2
|
+
@use '../variables/system-tokens';
|
|
2
3
|
@use '../variables/typography';
|
|
3
4
|
@use '../variables/zindex';
|
|
4
5
|
@use '../variables/si-vars';
|
|
@@ -67,7 +68,7 @@
|
|
|
67
68
|
}
|
|
68
69
|
|
|
69
70
|
.modal-dialog-scrollable {
|
|
70
|
-
block-size:
|
|
71
|
+
block-size: calc(100% - (variables.$modal-dialog-margin * 2));
|
|
71
72
|
|
|
72
73
|
.modal-content {
|
|
73
74
|
max-block-size: 100%;
|
|
@@ -82,7 +83,7 @@
|
|
|
82
83
|
.modal-dialog-centered {
|
|
83
84
|
display: flex;
|
|
84
85
|
align-items: center;
|
|
85
|
-
min-block-size:
|
|
86
|
+
min-block-size: calc(100% - (variables.$modal-dialog-margin * 2));
|
|
86
87
|
}
|
|
87
88
|
|
|
88
89
|
.modal-header {
|
|
@@ -97,7 +98,7 @@
|
|
|
97
98
|
|
|
98
99
|
.icon {
|
|
99
100
|
font-size: si-vars.$si-icon-font-size-lg;
|
|
100
|
-
margin-inline-end: map.get(spacers.$spacers, 4);
|
|
101
|
+
margin-inline-end: map.get(spacers.$spacers-inline, 4);
|
|
101
102
|
}
|
|
102
103
|
|
|
103
104
|
.modal-title {
|
|
@@ -131,7 +132,7 @@
|
|
|
131
132
|
background-color: variables.$modal-content-bg;
|
|
132
133
|
background-clip: padding-box;
|
|
133
134
|
border-radius: variables.$modal-content-border-radius;
|
|
134
|
-
box-shadow:
|
|
135
|
+
box-shadow: system-tokens.$si-sys-effects-shadow-3;
|
|
135
136
|
// Remove focus outline from opened modal
|
|
136
137
|
outline: 0;
|
|
137
138
|
}
|
|
@@ -141,7 +142,7 @@
|
|
|
141
142
|
// Enable `flex-grow: 1` so that the body take up as much space as possible
|
|
142
143
|
// when there should be a fixed height on `.modal-dialog`.
|
|
143
144
|
flex: 1 1 auto;
|
|
144
|
-
padding-block: map.get(spacers.$spacers, 5) variables.$modal-inner-padding;
|
|
145
|
+
padding-block: map.get(spacers.$spacers-block, 5) variables.$modal-inner-padding;
|
|
145
146
|
// use margin instead of padding so that the scrollbar isn't on the edge of the dialog
|
|
146
147
|
margin-inline: variables.$modal-inner-padding;
|
|
147
148
|
padding-inline: 0;
|
|
@@ -157,7 +158,7 @@
|
|
|
157
158
|
flex-shrink: 0;
|
|
158
159
|
align-items: center; // vertically center
|
|
159
160
|
justify-content: flex-end; // Right align buttons with flex property because text-align doesn't work on flex items
|
|
160
|
-
padding: (variables.$modal-inner-padding - variables.$modal-footer-margin-between * 0.5);
|
|
161
|
+
padding: calc(variables.$modal-inner-padding - variables.$modal-footer-margin-between * 0.5);
|
|
161
162
|
border-end-start-radius: variables.$modal-content-inner-border-radius;
|
|
162
163
|
border-end-end-radius: variables.$modal-content-inner-border-radius;
|
|
163
164
|
|
|
@@ -165,7 +166,7 @@
|
|
|
165
166
|
// This solution is far from ideal because of the universal selector usage,
|
|
166
167
|
// but is needed to fix https://github.com/twbs/bootstrap/issues/24800
|
|
167
168
|
> * {
|
|
168
|
-
margin: (variables.$modal-footer-margin-between * 0.5);
|
|
169
|
+
margin: calc(variables.$modal-footer-margin-between * 0.5);
|
|
169
170
|
}
|
|
170
171
|
}
|
|
171
172
|
|
|
@@ -186,15 +187,15 @@
|
|
|
186
187
|
}
|
|
187
188
|
|
|
188
189
|
.modal-dialog-scrollable {
|
|
189
|
-
block-size:
|
|
190
|
+
block-size: calc(100% - (variables.$modal-dialog-margin-y-sm-up * 2));
|
|
190
191
|
}
|
|
191
192
|
|
|
192
193
|
.modal-dialog-centered {
|
|
193
|
-
min-block-size:
|
|
194
|
+
min-block-size: calc(100% - (variables.$modal-dialog-margin-y-sm-up * 2));
|
|
194
195
|
}
|
|
195
196
|
|
|
196
197
|
.modal-content {
|
|
197
|
-
box-shadow:
|
|
198
|
+
box-shadow: system-tokens.$si-sys-effects-shadow-2;
|
|
198
199
|
}
|
|
199
200
|
|
|
200
201
|
.modal-sm {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
@use '../variables/
|
|
1
|
+
@use '../variables/system-tokens';
|
|
2
2
|
@use '../variables/spacers';
|
|
3
|
+
@use '../variables/typography';
|
|
3
4
|
@use './variables';
|
|
4
5
|
|
|
5
6
|
@use 'sass:map';
|
|
@@ -16,9 +17,9 @@ $nav-tabs-min-width: 100px;
|
|
|
16
17
|
|
|
17
18
|
.nav-link {
|
|
18
19
|
&:hover {
|
|
19
|
-
color:
|
|
20
|
-
background:
|
|
21
|
-
border-color:
|
|
20
|
+
color: system-tokens.$si-sys-text-on-accent-secondary-hover;
|
|
21
|
+
background: system-tokens.$si-sys-background-accent-secondary-hover;
|
|
22
|
+
border-color: system-tokens.$si-sys-border-accent-hover;
|
|
22
23
|
}
|
|
23
24
|
}
|
|
24
25
|
}
|
|
@@ -56,13 +57,13 @@ $nav-tabs-min-width: 100px;
|
|
|
56
57
|
position: absolute;
|
|
57
58
|
inset-inline: 0;
|
|
58
59
|
inset-block-end: 0;
|
|
59
|
-
block-size:
|
|
60
|
-
background:
|
|
60
|
+
block-size: 1px;
|
|
61
|
+
background: system-tokens.$si-sys-border-4;
|
|
61
62
|
}
|
|
62
63
|
|
|
63
64
|
&:focus-visible::before {
|
|
64
65
|
// because otherwise the focus is cut off
|
|
65
|
-
background:
|
|
66
|
+
background: system-tokens.$si-sys-effects-focus;
|
|
66
67
|
}
|
|
67
68
|
|
|
68
69
|
.nav-link {
|
|
@@ -78,19 +79,27 @@ $nav-tabs-min-width: 100px;
|
|
|
78
79
|
border-start-start-radius: variables.$btn-border-radius;
|
|
79
80
|
border-start-end-radius: variables.$btn-border-radius;
|
|
80
81
|
cursor: pointer;
|
|
82
|
+
font-weight: typography.$si-font-weight-body-lg;
|
|
81
83
|
|
|
82
84
|
.badge {
|
|
83
85
|
margin-inline-end: 0;
|
|
84
86
|
}
|
|
85
87
|
|
|
86
88
|
&.active {
|
|
87
|
-
border-color:
|
|
89
|
+
border-color: system-tokens.$si-sys-border-accent-hover;
|
|
90
|
+
font-size: typography.$si-font-size-body-lg-sbold;
|
|
91
|
+
font-weight: typography.$si-font-weight-body-lg-sbold;
|
|
92
|
+
line-height: typography.$si-line-height-body-lg-sbold;
|
|
88
93
|
}
|
|
89
94
|
|
|
90
95
|
&:hover {
|
|
91
96
|
isolation: isolate;
|
|
92
97
|
}
|
|
93
98
|
|
|
99
|
+
&:not(.active):hover {
|
|
100
|
+
color: variables.$nav-link-color;
|
|
101
|
+
}
|
|
102
|
+
|
|
94
103
|
&.disabled {
|
|
95
104
|
color: variables.$nav-link-disabled-color;
|
|
96
105
|
background-color: transparent;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use '../variables/system-tokens';
|
|
1
2
|
@use '../variables/semantic-tokens';
|
|
2
3
|
@use '../variables/spacers';
|
|
3
4
|
@use '../variables/typography';
|
|
@@ -10,7 +11,7 @@ $page-button-size: 1.5rem;
|
|
|
10
11
|
.pagination {
|
|
11
12
|
display: flex;
|
|
12
13
|
margin: 0;
|
|
13
|
-
padding-block: map.get(spacers.$spacers, 4);
|
|
14
|
+
padding-block: map.get(spacers.$spacers-block, 4);
|
|
14
15
|
@include lists.list-unstyled();
|
|
15
16
|
}
|
|
16
17
|
|
|
@@ -22,16 +23,16 @@ $page-button-size: 1.5rem;
|
|
|
22
23
|
min-inline-size: $page-button-size;
|
|
23
24
|
block-size: $page-button-size;
|
|
24
25
|
padding-block: 0;
|
|
25
|
-
padding-inline: map.get(spacers.$spacers, 2);
|
|
26
|
-
margin-inline: map.get(spacers.$spacers, 1);
|
|
26
|
+
padding-inline: map.get(spacers.$spacers-inline, 2);
|
|
27
|
+
margin-inline: map.get(spacers.$spacers-inline, 1);
|
|
27
28
|
background: transparent;
|
|
28
29
|
font-size: typography.$si-font-size-h5;
|
|
29
30
|
font-weight: typography.$si-font-weight-h5;
|
|
30
|
-
color:
|
|
31
|
+
color: system-tokens.$si-sys-text-primary;
|
|
31
32
|
border: 0;
|
|
32
33
|
|
|
33
34
|
&:is(.active, :hover:not(:disabled)):not(.separator) {
|
|
34
|
-
background:
|
|
35
|
+
background: system-tokens.$si-sys-background-active;
|
|
35
36
|
}
|
|
36
37
|
|
|
37
38
|
&:has(.icon) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
@use '../variables/semantic-tokens';
|
|
2
2
|
@use '../variables/spacers';
|
|
3
|
+
@use '../variables/system-tokens';
|
|
3
4
|
@use '../variables/zindex';
|
|
4
5
|
@use './mixins/reset-text';
|
|
5
6
|
@use './variables';
|
|
@@ -27,7 +28,7 @@ $si-popover-bg: var(--popover-bg-color, variables.$popover-bg);
|
|
|
27
28
|
word-wrap: break-word;
|
|
28
29
|
background-color: $si-popover-bg;
|
|
29
30
|
background-clip: padding-box;
|
|
30
|
-
box-shadow:
|
|
31
|
+
box-shadow: system-tokens.$si-sys-effects-shadow-3;
|
|
31
32
|
border-radius: semantic-tokens.$element-radius-2;
|
|
32
33
|
|
|
33
34
|
&.auto-width {
|
|
@@ -74,7 +75,7 @@ $si-popover-bg: var(--popover-bg-color, variables.$popover-bg);
|
|
|
74
75
|
}
|
|
75
76
|
|
|
76
77
|
+ .popover-body {
|
|
77
|
-
padding-block-start: map.get(spacers.$spacers, 4);
|
|
78
|
+
padding-block-start: map.get(spacers.$spacers-block, 4);
|
|
78
79
|
}
|
|
79
80
|
|
|
80
81
|
&:has(> .icon) {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@use '../variables/typography';
|
|
2
|
+
@use '../selectors';
|
|
2
3
|
@use './variables';
|
|
3
4
|
|
|
4
5
|
// stylelint-disable declaration-no-important, selector-no-qualifying-type, property-no-vendor-prefix
|
|
@@ -25,7 +26,7 @@
|
|
|
25
26
|
// Ability to the value of the root font sizes, affecting the value of `rem`.
|
|
26
27
|
// null by default, thus nothing is generated.
|
|
27
28
|
|
|
28
|
-
|
|
29
|
+
#{selectors.$root} {
|
|
29
30
|
@if variables.$enable-smooth-scroll {
|
|
30
31
|
@media (prefers-reduced-motion: no-preference) {
|
|
31
32
|
scroll-behavior: smooth;
|
|
@@ -41,7 +42,7 @@
|
|
|
41
42
|
// 4. Change the default tap highlight to be completely transparent in iOS.
|
|
42
43
|
|
|
43
44
|
// scss-docs-start reboot-body-rules
|
|
44
|
-
body {
|
|
45
|
+
#{selectors.$body} {
|
|
45
46
|
margin: 0; // 1
|
|
46
47
|
font-family: var(--#{variables.$variable-prefix}body-font-family);
|
|
47
48
|
font-size: var(--#{variables.$variable-prefix}body-font-size);
|
|
@@ -341,6 +342,11 @@ table {
|
|
|
341
342
|
}
|
|
342
343
|
|
|
343
344
|
caption {
|
|
345
|
+
@include typography.si-font(
|
|
346
|
+
typography.$si-font-size-body-sm,
|
|
347
|
+
typography.$si-line-height-body-sm,
|
|
348
|
+
typography.$si-font-weight-body-sm
|
|
349
|
+
);
|
|
344
350
|
padding-block: variables.$table-cell-padding-y;
|
|
345
351
|
color: variables.$table-caption-color;
|
|
346
352
|
text-align: start;
|
|
@@ -408,7 +414,7 @@ textarea {
|
|
|
408
414
|
input,
|
|
409
415
|
textarea {
|
|
410
416
|
&:disabled {
|
|
411
|
-
color: variables.$text-
|
|
417
|
+
color: variables.$text-disabled;
|
|
412
418
|
|
|
413
419
|
&::placeholder {
|
|
414
420
|
color: variables.$input-placeholder-disabled-color;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
@use './variables';
|
|
2
|
+
@use '../selectors';
|
|
2
3
|
|
|
3
4
|
@use 'sass:meta';
|
|
4
5
|
|
|
5
6
|
// this is _root.scss without the automatic `to-rgb` brain damage
|
|
6
|
-
|
|
7
|
+
#{selectors.$root} {
|
|
7
8
|
// Note: Use `inspect` for lists so that quoted items keep the quotes.
|
|
8
9
|
// See https://github.com/sass/sass/issues/2383#issuecomment-336349172
|
|
9
10
|
--#{variables.$variable-prefix}font-sans-serif: #{meta.inspect(variables.$font-family-sans-serif)};
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
--#{variables.$variable-prefix}table-hover-bg: #{variables.$table-hover-bg};
|
|
19
19
|
|
|
20
20
|
inline-size: 100%;
|
|
21
|
-
margin-block-end: spacers.$
|
|
21
|
+
margin-block-end: map.get(spacers.$spacers-block, 6);
|
|
22
22
|
color: variables.$table-color;
|
|
23
23
|
vertical-align: variables.$table-cell-vertical-align;
|
|
24
24
|
border-color: variables.$table-border-color;
|
|
@@ -55,17 +55,17 @@
|
|
|
55
55
|
vertical-align: middle;
|
|
56
56
|
|
|
57
57
|
&:first-child {
|
|
58
|
-
padding-inline-start: map.get(spacers.$spacers, 6);
|
|
58
|
+
padding-inline-start: map.get(spacers.$spacers-inline, 6);
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
&:last-child {
|
|
62
|
-
padding-inline-end: map.get(spacers.$spacers, 6);
|
|
62
|
+
padding-inline-end: map.get(spacers.$spacers-inline, 6);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
thead {
|
|
67
67
|
border-width: 0;
|
|
68
|
-
border-block-end: map.get(spacers.$spacers, 2) solid variables.$table-border-color;
|
|
68
|
+
border-block-end: map.get(spacers.$spacers-block, 2) solid variables.$table-border-color;
|
|
69
69
|
|
|
70
70
|
th {
|
|
71
71
|
vertical-align: baseline;
|
|
@@ -96,7 +96,9 @@
|
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
:is(th, td) {
|
|
99
|
-
block-size:
|
|
99
|
+
block-size: calc(
|
|
100
|
+
2lh + 2 * map.get(spacers.$spacers-block, 2) + 2 * map.get(spacers.$spacers-block, 5)
|
|
101
|
+
);
|
|
100
102
|
}
|
|
101
103
|
}
|
|
102
104
|
}
|
|
@@ -118,7 +120,7 @@
|
|
|
118
120
|
|
|
119
121
|
tbody {
|
|
120
122
|
:is(th, td) {
|
|
121
|
-
block-size:
|
|
123
|
+
block-size: calc(2lh + 2 * map.get(spacers.$spacers-block, 4));
|
|
122
124
|
}
|
|
123
125
|
}
|
|
124
126
|
}
|