@carbon/styles 1.37.0 → 1.38.0-rc.0
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/css/styles.css +2588 -2403
- package/css/styles.min.css +1 -1
- package/package.json +5 -5
- package/scss/components/accordion/_accordion.scss +47 -35
- package/scss/components/aspect-ratio/_aspect-ratio.scss +7 -4
- package/scss/components/breadcrumb/_breadcrumb.scss +26 -20
- package/scss/components/button/_button.scss +16 -11
- package/scss/components/button/_mixins.scss +12 -12
- package/scss/components/checkbox/_checkbox.scss +55 -40
- package/scss/components/code-snippet/_code-snippet.scss +74 -59
- package/scss/components/code-snippet/_mixins.scss +2 -2
- package/scss/components/combo-box/_combo-box.scss +2 -2
- package/scss/components/combo-button/_combo-button.scss +2 -2
- package/scss/components/contained-list/_contained-list.scss +41 -22
- package/scss/components/content-switcher/_content-switcher.scss +32 -32
- package/scss/components/data-table/_data-table.scss +150 -144
- package/scss/components/data-table/_mixins.scss +3 -3
- package/scss/components/data-table/action/_data-table-action.scss +83 -81
- package/scss/components/data-table/expandable/_data-table-expandable.scss +60 -60
- package/scss/components/data-table/skeleton/_data-table-skeleton.scss +10 -8
- package/scss/components/data-table/sort/_data-table-sort.scss +38 -38
- package/scss/components/date-picker/_date-picker.scss +21 -20
- package/scss/components/date-picker/_flatpickr.scss +51 -51
- package/scss/components/dropdown/_dropdown.scss +49 -49
- package/scss/components/file-uploader/_file-uploader.scss +37 -37
- package/scss/components/fluid-combo-box/_fluid-combo-box.scss +4 -4
- package/scss/components/fluid-date-picker/_fluid-date-picker.scss +54 -54
- package/scss/components/fluid-list-box/_fluid-list-box.scss +33 -33
- package/scss/components/fluid-multiselect/_fluid-multiselect.scss +2 -2
- package/scss/components/fluid-number-input/_fluid-number-input.scss +30 -30
- package/scss/components/fluid-search/_fluid-search.scss +17 -17
- package/scss/components/fluid-select/_fluid-select.scss +17 -17
- package/scss/components/fluid-text-area/_fluid-text-area.scss +21 -21
- package/scss/components/fluid-text-input/_fluid-text-input.scss +26 -26
- package/scss/components/fluid-time-picker/_fluid-time-picker.scss +23 -23
- package/scss/components/form/_form.scss +16 -15
- package/scss/components/inline-loading/_inline-loading.scss +9 -9
- package/scss/components/link/_link.scss +1 -1
- package/scss/components/list/_list.scss +7 -7
- package/scss/components/list-box/_list-box.scss +109 -107
- package/scss/components/loading/_loading.scss +10 -9
- package/scss/components/menu/_menu.scss +7 -7
- package/scss/components/menu-button/_menu-button.scss +1 -1
- package/scss/components/modal/_modal.scss +72 -72
- package/scss/components/multiselect/_multiselect.scss +11 -11
- package/scss/components/notification/_actionable-notification.scss +37 -39
- package/scss/components/notification/_inline-notification.scss +26 -26
- package/scss/components/notification/_mixins.scss +3 -3
- package/scss/components/notification/_toast-notification.scss +16 -18
- package/scss/components/number-input/_number-input.scss +70 -70
- package/scss/components/overflow-menu/_overflow-menu.scss +50 -50
- package/scss/components/pagination/_pagination.scss +46 -34
- package/scss/components/pagination/_unstable_pagination.scss +26 -24
- package/scss/components/pagination-nav/_mixins.scss +6 -6
- package/scss/components/pagination-nav/_pagination-nav.scss +16 -11
- package/scss/components/popover/_popover.scss +201 -63
- package/scss/components/progress-bar/_progress-bar.scss +33 -11
- package/scss/components/progress-indicator/_progress-indicator.scss +46 -42
- package/scss/components/radio-button/_radio-button.scss +24 -23
- package/scss/components/search/_search.scss +35 -34
- package/scss/components/select/_select.scss +31 -29
- package/scss/components/skeleton-styles/_skeleton-styles.scss +10 -8
- package/scss/components/slider/_slider.scss +28 -28
- package/scss/components/structured-list/_mixins.scss +4 -4
- package/scss/components/structured-list/_structured-list.scss +16 -16
- package/scss/components/tabs/_tabs.scss +50 -50
- package/scss/components/tag/_tag.scss +22 -20
- package/scss/components/text-area/_text-area.scss +17 -15
- package/scss/components/text-input/_text-input.scss +43 -41
- package/scss/components/tile/_tile.scss +11 -11
- package/scss/components/time-picker/_time-picker.scss +17 -17
- package/scss/components/toggle/_toggle.scss +37 -24
- package/scss/components/toggletip/_toggletip.scss +3 -2
- package/scss/components/tooltip/_tooltip.scss +7 -5
- package/scss/components/treeview/_treeview.scss +27 -27
- package/scss/components/ui-shell/content/_content.scss +3 -3
- package/scss/components/ui-shell/header/_header.scss +47 -47
- package/scss/components/ui-shell/header-panel/_header-panel.scss +7 -7
- package/scss/components/ui-shell/side-nav/_side-nav.scss +65 -65
- package/scss/components/ui-shell/switcher/_switcher.scss +6 -6
- package/scss/utilities/_button-reset.scss +1 -1
- package/scss/utilities/_skeleton.scss +4 -4
- package/scss/utilities/_text-overflow.scss +1 -1
- package/scss/utilities/_text-truncate.scss +2 -2
- package/scss/utilities/_tooltip.scss +44 -46
- package/scss/utilities/_visually-hidden.scss +4 -4
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
.#{$prefix}--tree-node {
|
|
30
|
-
padding-left: $spacing-05;
|
|
31
30
|
background-color: $layer-01;
|
|
32
31
|
color: $text-secondary;
|
|
32
|
+
padding-inline-start: $spacing-05;
|
|
33
33
|
|
|
34
34
|
&:focus {
|
|
35
35
|
outline: none;
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
.#{$prefix}--tree-node--with-icon .#{$prefix}--tree-node {
|
|
50
|
-
margin-
|
|
50
|
+
margin-inline-start: $spacing-03;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
.#{$prefix}--tree-node:focus > .#{$prefix}--tree-node__label {
|
|
@@ -88,9 +88,9 @@
|
|
|
88
88
|
@include type-style('body-compact-01');
|
|
89
89
|
|
|
90
90
|
display: flex;
|
|
91
|
-
min-height: convert.to-rem(32px);
|
|
92
91
|
flex: 1;
|
|
93
92
|
align-items: center;
|
|
93
|
+
min-block-size: convert.to-rem(32px);
|
|
94
94
|
|
|
95
95
|
&:hover {
|
|
96
96
|
background-color: $layer-hover-01;
|
|
@@ -100,9 +100,9 @@
|
|
|
100
100
|
|
|
101
101
|
.#{$prefix}--tree-node:not(.#{$prefix}--tree-parent-node)
|
|
102
102
|
.#{$prefix}--tree-node__label {
|
|
103
|
+
padding-block-end: convert.to-rem(7px);
|
|
103
104
|
// (min-height 32px - single line text height 18px) / 2 = 7px
|
|
104
|
-
padding-
|
|
105
|
-
padding-bottom: convert.to-rem(7px);
|
|
105
|
+
padding-block-start: convert.to-rem(7px);
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
.#{$prefix}--tree-node__label:hover .#{$prefix}--tree-node__label__details {
|
|
@@ -117,16 +117,16 @@
|
|
|
117
117
|
|
|
118
118
|
.#{$prefix}--tree-leaf-node {
|
|
119
119
|
display: flex;
|
|
120
|
-
padding-
|
|
120
|
+
padding-inline-start: $spacing-08;
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
.#{$prefix}--tree-leaf-node.#{$prefix}--tree-node--with-icon {
|
|
124
|
-
padding-
|
|
124
|
+
padding-inline-start: $spacing-07;
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
.#{$prefix}--tree-leaf-node.#{$prefix}--tree-node--with-icon
|
|
128
128
|
.#{$prefix}--tree-leaf-node {
|
|
129
|
-
padding-
|
|
129
|
+
padding-inline-start: $spacing-06;
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
.#{$prefix}--tree-node__label__details {
|
|
@@ -135,20 +135,20 @@
|
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
.#{$prefix}--tree-node--with-icon .#{$prefix}--tree-parent-node__toggle {
|
|
138
|
-
margin-
|
|
138
|
+
margin-inline-end: 0;
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
.#{$prefix}--tree-parent-node__toggle {
|
|
142
142
|
display: flex;
|
|
143
|
-
width: convert.to-rem(24px);
|
|
144
|
-
height: convert.to-rem(24px);
|
|
145
143
|
align-items: center;
|
|
146
144
|
align-self: flex-start;
|
|
147
|
-
padding-left: $spacing-02;
|
|
148
145
|
border: 0;
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
margin-
|
|
146
|
+
block-size: convert.to-rem(24px);
|
|
147
|
+
inline-size: convert.to-rem(24px);
|
|
148
|
+
margin-block-start: $spacing-02;
|
|
149
|
+
margin-inline-end: $spacing-02;
|
|
150
|
+
margin-inline-start: -$spacing-02;
|
|
151
|
+
padding-inline-start: $spacing-02;
|
|
152
152
|
|
|
153
153
|
&:hover {
|
|
154
154
|
cursor: pointer;
|
|
@@ -170,19 +170,19 @@
|
|
|
170
170
|
}
|
|
171
171
|
|
|
172
172
|
.#{$prefix}--tree-node__icon {
|
|
173
|
-
min-width: 1rem;
|
|
174
|
-
min-height: 1rem;
|
|
175
173
|
align-self: flex-start;
|
|
176
|
-
margin-top: convert.to-rem(1px);
|
|
177
|
-
margin-right: $spacing-03;
|
|
178
|
-
margin-left: $spacing-03;
|
|
179
174
|
fill: $icon-secondary;
|
|
175
|
+
margin-block-start: convert.to-rem(1px);
|
|
176
|
+
margin-inline-end: $spacing-03;
|
|
177
|
+
margin-inline-start: $spacing-03;
|
|
178
|
+
min-block-size: 1rem;
|
|
179
|
+
min-inline-size: 1rem;
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
.#{$prefix}--tree-parent-node__toggle
|
|
183
183
|
+ .#{$prefix}--tree-node__label__details
|
|
184
184
|
.#{$prefix}--tree-node__icon {
|
|
185
|
-
margin-
|
|
185
|
+
margin-inline-start: $spacing-02;
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
.#{$prefix}--tree-node--selected > .#{$prefix}--tree-node__label {
|
|
@@ -208,18 +208,18 @@
|
|
|
208
208
|
|
|
209
209
|
&::before {
|
|
210
210
|
position: absolute;
|
|
211
|
-
top: 0;
|
|
212
|
-
left: 0;
|
|
213
|
-
width: convert.to-rem(4px);
|
|
214
|
-
height: 100%;
|
|
215
211
|
background-color: $interactive;
|
|
212
|
+
block-size: 100%;
|
|
216
213
|
content: '';
|
|
214
|
+
inline-size: convert.to-rem(4px);
|
|
215
|
+
inset-block-start: 0;
|
|
216
|
+
inset-inline-start: 0;
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
219
|
|
|
220
220
|
// xs size variant
|
|
221
221
|
.#{$prefix}--tree--xs .#{$prefix}--tree-node__label {
|
|
222
|
-
min-
|
|
222
|
+
min-block-size: convert.to-rem(24px);
|
|
223
223
|
}
|
|
224
224
|
|
|
225
225
|
.#{$prefix}--tree--xs
|
|
@@ -229,6 +229,6 @@
|
|
|
229
229
|
}
|
|
230
230
|
|
|
231
231
|
.#{$prefix}--tree--xs .#{$prefix}--tree-parent-node__toggle {
|
|
232
|
-
margin-
|
|
232
|
+
margin-block-start: 0;
|
|
233
233
|
}
|
|
234
234
|
}
|
|
@@ -20,14 +20,14 @@
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
.#{$prefix}--header ~ .#{$prefix}--content {
|
|
23
|
-
margin-
|
|
23
|
+
margin-block-start: mini-units(6);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
.#{$prefix}--side-nav ~ .#{$prefix}--content {
|
|
27
|
-
margin-
|
|
27
|
+
margin-inline-start: mini-units(6);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
.#{$prefix}--side-nav.#{$prefix}--side-nav--expanded ~ .#{$prefix}--content {
|
|
31
|
-
margin-
|
|
31
|
+
margin-inline-start: mini-units(32);
|
|
32
32
|
}
|
|
33
33
|
}
|
|
@@ -29,27 +29,27 @@
|
|
|
29
29
|
|
|
30
30
|
position: fixed;
|
|
31
31
|
z-index: z('header');
|
|
32
|
-
top: 0;
|
|
33
|
-
right: 0;
|
|
34
|
-
left: 0;
|
|
35
32
|
display: flex;
|
|
36
|
-
height: mini-units(6);
|
|
37
33
|
align-items: center;
|
|
38
|
-
border-bottom: 1px solid $border-subtle;
|
|
39
34
|
background-color: $background;
|
|
35
|
+
block-size: mini-units(6);
|
|
36
|
+
border-block-end: 1px solid $border-subtle;
|
|
37
|
+
inset-block-start: 0;
|
|
38
|
+
inset-inline-end: 0;
|
|
39
|
+
inset-inline-start: 0;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
.#{$prefix}--header__action {
|
|
43
43
|
@include button-reset.reset();
|
|
44
44
|
|
|
45
45
|
display: inline-flex;
|
|
46
|
-
width: mini-units(6);
|
|
47
|
-
height: mini-units(6);
|
|
48
46
|
border: convert.to-rem(1px) solid transparent;
|
|
47
|
+
block-size: mini-units(6);
|
|
48
|
+
inline-size: mini-units(6);
|
|
49
49
|
transition: background-color $duration-fast-02,
|
|
50
50
|
border-color $duration-fast-02;
|
|
51
51
|
@include breakpoint-down('md') {
|
|
52
|
-
min-
|
|
52
|
+
min-inline-size: $spacing-09;
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
|
|
@@ -78,10 +78,10 @@
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
.#{$prefix}--header__action--active {
|
|
81
|
-
border-right: 1px solid $border-subtle;
|
|
82
|
-
border-bottom: 1px solid transparent;
|
|
83
|
-
border-left: 1px solid $border-subtle;
|
|
84
81
|
background: $layer;
|
|
82
|
+
border-block-end: 1px solid transparent;
|
|
83
|
+
border-inline-end: 1px solid $border-subtle;
|
|
84
|
+
border-inline-start: 1px solid $border-subtle;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
.#{$prefix}--header__action--active > svg {
|
|
@@ -143,10 +143,10 @@
|
|
|
143
143
|
@include type-style('body-compact-01');
|
|
144
144
|
|
|
145
145
|
display: flex;
|
|
146
|
-
height: 100%;
|
|
147
146
|
align-items: center;
|
|
148
147
|
padding: 0 mini-units(4) 0 mini-units(2);
|
|
149
148
|
border: convert.to-rem(2px) solid transparent;
|
|
149
|
+
block-size: 100%;
|
|
150
150
|
font-weight: 600;
|
|
151
151
|
letter-spacing: 0.1px;
|
|
152
152
|
line-height: 1.25rem;
|
|
@@ -175,7 +175,7 @@
|
|
|
175
175
|
|
|
176
176
|
.#{$prefix}--header__menu-toggle:not(.#{$prefix}--header__menu-toggle__hidden)
|
|
177
177
|
~ .#{$prefix}--header__name {
|
|
178
|
-
padding-
|
|
178
|
+
padding-inline-start: convert.to-rem(8px);
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
//--------------------------------------------------------------------------
|
|
@@ -184,8 +184,8 @@
|
|
|
184
184
|
.#{$prefix}--header__nav {
|
|
185
185
|
position: relative;
|
|
186
186
|
display: none;
|
|
187
|
-
|
|
188
|
-
padding-
|
|
187
|
+
block-size: 100%;
|
|
188
|
+
padding-inline-start: mini-units(2);
|
|
189
189
|
|
|
190
190
|
@include breakpoint('lg') {
|
|
191
191
|
display: block;
|
|
@@ -194,13 +194,13 @@
|
|
|
194
194
|
// header nav divider
|
|
195
195
|
&::before {
|
|
196
196
|
position: absolute;
|
|
197
|
-
top: 50%;
|
|
198
|
-
left: 0;
|
|
199
197
|
display: block;
|
|
200
|
-
width: convert.to-rem(1px);
|
|
201
|
-
height: convert.to-rem(24px);
|
|
202
198
|
background-color: $border-subtle;
|
|
199
|
+
block-size: convert.to-rem(24px);
|
|
203
200
|
content: '';
|
|
201
|
+
inline-size: convert.to-rem(1px);
|
|
202
|
+
inset-block-start: 50%;
|
|
203
|
+
inset-inline-start: 0;
|
|
204
204
|
transform: translateY(-50%);
|
|
205
205
|
}
|
|
206
206
|
}
|
|
@@ -209,22 +209,22 @@
|
|
|
209
209
|
@include component-reset.reset;
|
|
210
210
|
|
|
211
211
|
display: flex;
|
|
212
|
-
height: 100%;
|
|
213
212
|
padding: 0;
|
|
214
213
|
margin: 0;
|
|
214
|
+
block-size: 100%;
|
|
215
215
|
list-style: none;
|
|
216
216
|
}
|
|
217
217
|
|
|
218
218
|
a.#{$prefix}--header__menu-item {
|
|
219
219
|
position: relative;
|
|
220
220
|
display: flex;
|
|
221
|
-
// Used for links that are directly in the menubar to span the full height
|
|
222
|
-
height: 100%;
|
|
223
221
|
align-items: center;
|
|
224
222
|
padding: 0 mini-units(2);
|
|
225
223
|
// Used for focus styles
|
|
226
224
|
border: 2px solid transparent;
|
|
227
225
|
background-color: $background;
|
|
226
|
+
// Used for links that are directly in the menubar to span the full height
|
|
227
|
+
block-size: 100%;
|
|
228
228
|
color: $text-secondary;
|
|
229
229
|
// Text styles
|
|
230
230
|
font-size: convert.to-rem(14px);
|
|
@@ -269,12 +269,12 @@
|
|
|
269
269
|
a.#{$prefix}--header__menu-item[aria-current='page']::after,
|
|
270
270
|
.#{$prefix}--header__menu-item--current::after {
|
|
271
271
|
position: absolute;
|
|
272
|
-
bottom: -2px;
|
|
273
|
-
left: -2px;
|
|
274
|
-
width: calc(100% + 4px);
|
|
275
|
-
height: 3px;
|
|
276
272
|
background-color: $border-interactive;
|
|
273
|
+
block-size: 3px;
|
|
277
274
|
content: '';
|
|
275
|
+
inline-size: calc(100% + 4px);
|
|
276
|
+
inset-block-end: -2px;
|
|
277
|
+
inset-inline-start: -2px;
|
|
278
278
|
}
|
|
279
279
|
|
|
280
280
|
a.#{$prefix}--header__menu-item[aria-current='page']:focus::after,
|
|
@@ -285,21 +285,21 @@
|
|
|
285
285
|
.#{$prefix}--header__submenu .#{$prefix}--header__menu {
|
|
286
286
|
a.#{$prefix}--header__menu-item[aria-current='page']::after,
|
|
287
287
|
.#{$prefix}--header__menu-item--current::after {
|
|
288
|
-
top: -2px;
|
|
289
|
-
left: -2px;
|
|
290
|
-
width: 3px;
|
|
291
|
-
height: calc(100% + 4px);
|
|
292
288
|
background-color: $border-interactive;
|
|
289
|
+
block-size: calc(100% + 4px);
|
|
290
|
+
inline-size: 3px;
|
|
291
|
+
inset-block-start: -2px;
|
|
292
|
+
inset-inline-start: -2px;
|
|
293
293
|
}
|
|
294
294
|
|
|
295
295
|
a.#{$prefix}--header__menu-item[aria-current='page']:focus::after,
|
|
296
296
|
.#{$prefix}--header__menu-item--current:focus::after {
|
|
297
|
-
top: -2px;
|
|
298
|
-
left: -2px;
|
|
299
|
-
// extra, hidden width prevents flickering on focus change
|
|
300
|
-
width: 5px;
|
|
301
|
-
height: calc(100% + 4px);
|
|
302
297
|
background-color: $border-interactive;
|
|
298
|
+
block-size: calc(100% + 4px);
|
|
299
|
+
// extra, hidden width prevents flickering on focus change
|
|
300
|
+
inline-size: 5px;
|
|
301
|
+
inset-block-start: -2px;
|
|
302
|
+
inset-inline-start: -2px;
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
305
|
|
|
@@ -340,13 +340,13 @@
|
|
|
340
340
|
+ .#{$prefix}--header__menu {
|
|
341
341
|
position: absolute;
|
|
342
342
|
z-index: #{z('header') + 1};
|
|
343
|
-
bottom: 0;
|
|
344
|
-
left: 0;
|
|
345
343
|
display: flex;
|
|
346
|
-
width: mini-units(25);
|
|
347
344
|
flex-direction: column;
|
|
348
345
|
background-color: $layer;
|
|
349
346
|
box-shadow: 0 4px 8px 0 rgb(0 0 0 / 50%);
|
|
347
|
+
inline-size: mini-units(25);
|
|
348
|
+
inset-block-end: 0;
|
|
349
|
+
inset-inline-start: 0;
|
|
350
350
|
transform: translateY(100%);
|
|
351
351
|
}
|
|
352
352
|
|
|
@@ -382,12 +382,12 @@
|
|
|
382
382
|
}
|
|
383
383
|
|
|
384
384
|
.#{$prefix}--header__menu .#{$prefix}--header__menu-item {
|
|
385
|
-
|
|
385
|
+
block-size: mini-units(6);
|
|
386
386
|
}
|
|
387
387
|
|
|
388
388
|
.#{$prefix}--header__menu-arrow {
|
|
389
|
-
margin-left: mini-units(1);
|
|
390
389
|
fill: $icon-secondary;
|
|
390
|
+
margin-inline-start: mini-units(1);
|
|
391
391
|
transition: transform $duration-fast-02, fill $duration-fast-02;
|
|
392
392
|
}
|
|
393
393
|
|
|
@@ -396,9 +396,9 @@
|
|
|
396
396
|
//--------------------------------------------------------------------------
|
|
397
397
|
.#{$prefix}--header__global {
|
|
398
398
|
display: flex;
|
|
399
|
-
height: 100%;
|
|
400
399
|
flex: 1 1 0%;
|
|
401
400
|
justify-content: flex-end;
|
|
401
|
+
block-size: 100%;
|
|
402
402
|
}
|
|
403
403
|
|
|
404
404
|
//--------------------------------------------------------------------------
|
|
@@ -407,29 +407,29 @@
|
|
|
407
407
|
.#{$prefix}--skip-to-content {
|
|
408
408
|
position: absolute;
|
|
409
409
|
overflow: hidden;
|
|
410
|
-
width: 1px;
|
|
411
|
-
height: 1px;
|
|
412
410
|
padding: 0;
|
|
413
411
|
border: 0;
|
|
414
412
|
margin: -1px;
|
|
413
|
+
block-size: 1px;
|
|
415
414
|
clip: rect(0, 0, 0, 0);
|
|
415
|
+
inline-size: 1px;
|
|
416
416
|
visibility: inherit;
|
|
417
417
|
white-space: nowrap;
|
|
418
418
|
}
|
|
419
419
|
|
|
420
420
|
.#{$prefix}--skip-to-content:focus {
|
|
421
421
|
z-index: 9999;
|
|
422
|
-
top: 0;
|
|
423
|
-
left: 0;
|
|
424
422
|
display: flex;
|
|
425
|
-
width: auto;
|
|
426
|
-
height: 3rem;
|
|
427
423
|
align-items: center;
|
|
428
424
|
padding: 0 1rem;
|
|
429
425
|
border: 4px solid $focus;
|
|
430
426
|
background-color: $background;
|
|
427
|
+
block-size: 3rem;
|
|
431
428
|
clip: auto;
|
|
432
429
|
color: $text-secondary;
|
|
430
|
+
inline-size: auto;
|
|
431
|
+
inset-block-start: 0;
|
|
432
|
+
inset-inline-start: 0;
|
|
433
433
|
//TO-DO: double check with design that these tokens are correct, missing spec for it
|
|
434
434
|
outline: none;
|
|
435
435
|
}
|
|
@@ -22,21 +22,21 @@
|
|
|
22
22
|
.#{$prefix}--header-panel {
|
|
23
23
|
position: fixed;
|
|
24
24
|
z-index: z('header');
|
|
25
|
-
top: mini-units(6);
|
|
26
|
-
right: 0;
|
|
27
|
-
bottom: 0;
|
|
28
25
|
overflow: hidden;
|
|
29
|
-
width: 0;
|
|
30
26
|
border: none;
|
|
31
27
|
background-color: $layer;
|
|
32
28
|
color: $text-secondary;
|
|
29
|
+
inline-size: 0;
|
|
30
|
+
inset-block-end: 0;
|
|
31
|
+
inset-block-start: mini-units(6);
|
|
32
|
+
inset-inline-end: 0;
|
|
33
33
|
transition: width $duration-fast-02 motion(exit, productive);
|
|
34
34
|
will-change: width;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
.#{$prefix}--header-panel--expanded {
|
|
38
|
-
|
|
39
|
-
border-
|
|
40
|
-
|
|
38
|
+
border-inline-end: 1px solid $border-subtle;
|
|
39
|
+
border-inline-start: 1px solid $border-subtle;
|
|
40
|
+
inline-size: mini-units(32);
|
|
41
41
|
}
|
|
42
42
|
}
|