@carbon/styles 1.82.0 → 1.83.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 +384 -283
- package/css/styles.min.css +1 -1
- package/package.json +9 -9
- package/scss/_reset.scss +2 -1
- package/scss/_theme.scss +49 -0
- package/scss/components/accordion/_accordion.scss +0 -7
- package/scss/components/breadcrumb/_breadcrumb.scss +1 -1
- package/scss/components/button/_button.scss +0 -9
- package/scss/components/checkbox/_checkbox.scss +17 -0
- package/scss/components/code-snippet/_code-snippet.scss +0 -5
- package/scss/components/data-table/_data-table.scss +2 -1
- package/scss/components/data-table/expandable/_data-table-expandable.scss +0 -4
- package/scss/components/data-table/sort/_data-table-sort.scss +0 -7
- package/scss/components/date-picker/_date-picker.scss +0 -7
- package/scss/components/date-picker/_flatpickr.scss +0 -2
- package/scss/components/dialog/_dialog.scss +160 -13
- package/scss/components/dropdown/_dropdown.scss +0 -4
- package/scss/components/file-uploader/_file-uploader.scss +1 -5
- package/scss/components/fluid-number-input/_fluid-number-input.scss +103 -5
- package/scss/components/form/_form.scss +3 -1
- package/scss/components/list-box/_list-box.scss +0 -6
- package/scss/components/modal/_modal.scss +0 -5
- package/scss/components/notification/_actionable-notification.scss +0 -7
- package/scss/components/notification/_inline-notification.scss +0 -8
- package/scss/components/notification/_toast-notification.scss +0 -6
- package/scss/components/number-input/_number-input.scss +87 -18
- package/scss/components/overflow-menu/_overflow-menu.scss +0 -4
- package/scss/components/page-header/_page-header.scss +73 -17
- package/scss/components/pagination-nav/_pagination-nav.scss +0 -1
- package/scss/components/popover/_popover.scss +0 -1
- package/scss/components/radio-button/_radio-button.scss +1 -1
- package/scss/components/search/_search.scss +0 -7
- package/scss/components/select/_select.scss +0 -7
- package/scss/components/structured-list/_structured-list.scss +0 -8
- package/scss/components/tabs/_tabs.scss +6 -4
- package/scss/components/tag/_tag.scss +0 -5
- package/scss/components/text-input/_text-input.scss +0 -18
- package/scss/components/tile/_tile.scss +0 -22
- package/scss/components/ui-shell/side-nav/_side-nav.scss +0 -13
- package/scss/utilities/_high-contrast-mode.scss +0 -4
- package/scss/utilities/_layout.scss +2 -1
- package/scss/utilities/_update_fields_on_layer.scss +1 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/styles",
|
|
3
3
|
"description": "Styles for the Carbon Design System",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.83.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -40,13 +40,13 @@
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@carbon/colors": "^11.
|
|
44
|
-
"@carbon/feature-flags": "^0.
|
|
45
|
-
"@carbon/grid": "^11.
|
|
46
|
-
"@carbon/layout": "^11.
|
|
47
|
-
"@carbon/motion": "^11.
|
|
48
|
-
"@carbon/themes": "^11.
|
|
49
|
-
"@carbon/type": "^11.
|
|
43
|
+
"@carbon/colors": "^11.34.0",
|
|
44
|
+
"@carbon/feature-flags": "^0.27.0",
|
|
45
|
+
"@carbon/grid": "^11.37.0",
|
|
46
|
+
"@carbon/layout": "^11.35.0",
|
|
47
|
+
"@carbon/motion": "^11.29.0",
|
|
48
|
+
"@carbon/themes": "^11.54.0",
|
|
49
|
+
"@carbon/type": "^11.41.0",
|
|
50
50
|
"@ibm/plex": "6.0.0-next.6",
|
|
51
51
|
"@ibm/plex-mono": "0.0.3-alpha.0",
|
|
52
52
|
"@ibm/plex-sans": "0.0.3-alpha.0",
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"scss/**/*.css",
|
|
76
76
|
"css/**/*.css"
|
|
77
77
|
],
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "f6debacbfe06fa5c31f70809e15762dc30096d70"
|
|
79
79
|
}
|
package/scss/_reset.scss
CHANGED
|
@@ -172,7 +172,8 @@
|
|
|
172
172
|
|
|
173
173
|
@include type.reset();
|
|
174
174
|
|
|
175
|
-
/// Makes SVGs accessible in high contrast mode
|
|
175
|
+
/// Makes SVGs accessible in high contrast mode, although it only works sporadically as other CSS selectors
|
|
176
|
+
/// routinely override this one.
|
|
176
177
|
/// @link https://github.com/IBM/carbon-elements/issues/345#issuecomment-466577293 Carbon-elements #345
|
|
177
178
|
@media screen and (-ms-high-contrast: active) {
|
|
178
179
|
svg {
|
package/scss/_theme.scss
CHANGED
|
@@ -8,12 +8,61 @@
|
|
|
8
8
|
@forward './theme/theme' hide theme;
|
|
9
9
|
@use './theme/theme';
|
|
10
10
|
@use './layer/layer-tokens';
|
|
11
|
+
@use './utilities/custom-property';
|
|
11
12
|
|
|
12
13
|
/// Include the CSS Custom Properties for the active theme or a given theme on
|
|
13
14
|
/// a selector
|
|
14
15
|
@mixin theme($args...) {
|
|
15
16
|
@include theme.theme($args...);
|
|
16
17
|
|
|
18
|
+
// If the system is in high-contrast mode, use the system defined colors. This mostly happens automatically, but
|
|
19
|
+
// we need to do it manually for icons and selected backgrounds. Importantly, the custom properties we set here
|
|
20
|
+
// need to override the CSS custom properties set above. See:
|
|
21
|
+
// - https://github.com/carbon-design-system/carbon/issues/19015
|
|
22
|
+
// - https://developer.mozilla.org/en-US/docs/Web/CSS/system-color.
|
|
23
|
+
// - https://carbondesignsystem.com/elements/color/tokens/#icon
|
|
24
|
+
@media screen and (-ms-high-contrast: active), (forced-colors: active) {
|
|
25
|
+
// Icon colors specified by "fill".
|
|
26
|
+
@include custom-property.declaration('icon-primary', ButtonText);
|
|
27
|
+
@include custom-property.declaration('icon-secondary', ButtonText);
|
|
28
|
+
@include custom-property.declaration('icon-interactive', ButtonText);
|
|
29
|
+
@include custom-property.declaration('icon-disabled', GrayText);
|
|
30
|
+
@include custom-property.declaration('icon-on-color-disabled', GrayText);
|
|
31
|
+
|
|
32
|
+
// Since icon-inverse and icon-on-color are generally used to indicated selected icons, use SelectedItemText.
|
|
33
|
+
@include custom-property.declaration('icon-inverse', SelectedItemText);
|
|
34
|
+
@include custom-property.declaration('icon-on-color', SelectedItemText);
|
|
35
|
+
|
|
36
|
+
// Some components currently set these values for fill, although unclear if that's valid.
|
|
37
|
+
@include custom-property.declaration('button-disabled', GrayText);
|
|
38
|
+
@include custom-property.declaration('interactive', ButtonText);
|
|
39
|
+
@include custom-property.declaration('link-primary', LinkText);
|
|
40
|
+
@include custom-property.declaration('link-primary-hover', LinkText);
|
|
41
|
+
@include custom-property.declaration('link-secondary', LinkText);
|
|
42
|
+
@include custom-property.declaration('link-inverse', SelectedItemText);
|
|
43
|
+
@include custom-property.declaration(
|
|
44
|
+
'link-inverse-hover',
|
|
45
|
+
SelectedItemText
|
|
46
|
+
);
|
|
47
|
+
@include custom-property.declaration(
|
|
48
|
+
'link-inverse-visited',
|
|
49
|
+
SelectedItemText
|
|
50
|
+
);
|
|
51
|
+
@include custom-property.declaration('link-visited', VisitedText);
|
|
52
|
+
|
|
53
|
+
// Force a background-color for selected buttons etc., otherwise the user won't know they are selected.
|
|
54
|
+
@include custom-property.declaration('background-selected', SelectedItem);
|
|
55
|
+
@include custom-property.declaration(
|
|
56
|
+
'background-selected-hover',
|
|
57
|
+
SelectedItem
|
|
58
|
+
);
|
|
59
|
+
@include custom-property.declaration('background-inverse', SelectedItem);
|
|
60
|
+
@include custom-property.declaration(
|
|
61
|
+
'layer-selected-inverse',
|
|
62
|
+
SelectedItem
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
|
|
17
66
|
// Note: we need to re-emit the contextual layer tokens as part of the theme
|
|
18
67
|
// mixin. Otherwise, the layer tokens are defined at the :root level and will
|
|
19
68
|
// not pick up the theme-specific, or zone-specific, value from the first
|
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
@use '../../utilities/convert';
|
|
18
18
|
@use '../../utilities/layout';
|
|
19
19
|
@use '../../utilities/focus-outline' as *;
|
|
20
|
-
@use '../../utilities/high-contrast-mode' as *;
|
|
21
20
|
|
|
22
21
|
/// @type Value
|
|
23
22
|
/// @access public
|
|
@@ -385,12 +384,6 @@ $content-padding: 0 0 0 $spacing-05 !default;
|
|
|
385
384
|
margin-inline-start: $spacing-05;
|
|
386
385
|
}
|
|
387
386
|
|
|
388
|
-
// Windows HCM fix
|
|
389
|
-
.#{$prefix}--accordion__arrow,
|
|
390
|
-
.#{$prefix}--accordion__item--active .#{$prefix}--accordion__arrow {
|
|
391
|
-
@include high-contrast-mode('icon-fill');
|
|
392
|
-
}
|
|
393
|
-
|
|
394
387
|
// RTL overrides
|
|
395
388
|
[dir='rtl'] .#{$prefix}--accordion--start .#{$prefix}--accordion__heading {
|
|
396
389
|
padding-inline: layout.density('padding-inline') 0;
|
|
@@ -421,15 +421,6 @@
|
|
|
421
421
|
@include high-contrast-mode('focus');
|
|
422
422
|
}
|
|
423
423
|
|
|
424
|
-
// Windows HCM fix
|
|
425
|
-
|
|
426
|
-
.#{$prefix}--btn--ghost.#{$prefix}--btn--icon-only
|
|
427
|
-
.#{$prefix}--btn__icon
|
|
428
|
-
path:not([data-icon-path]):not([fill='none']),
|
|
429
|
-
.#{$prefix}--btn--ghost.#{$prefix}--btn--icon-only .#{$prefix}--btn__icon {
|
|
430
|
-
@include high-contrast-mode('icon-fill');
|
|
431
|
-
}
|
|
432
|
-
|
|
433
424
|
// RTL overrides
|
|
434
425
|
[dir='rtl'] .#{$prefix}--btn-set .#{$prefix}--btn:not(:focus) {
|
|
435
426
|
box-shadow: convert.to-rem(1px) 0 0 0 $button-separator;
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
@use '../../type' as *;
|
|
13
13
|
@use '../../utilities/component-reset';
|
|
14
14
|
@use '../../utilities/convert';
|
|
15
|
+
@use '../../utilities/high-contrast-mode' as *;
|
|
15
16
|
@use '../../utilities/skeleton' as *;
|
|
16
17
|
@use '../../utilities/visually-hidden' as *;
|
|
17
18
|
|
|
@@ -91,6 +92,9 @@
|
|
|
91
92
|
position: absolute;
|
|
92
93
|
border: 1px solid $icon-primary;
|
|
93
94
|
border-radius: 2px;
|
|
95
|
+
@include high-contrast-mode {
|
|
96
|
+
border: 1px solid ButtonBorder;
|
|
97
|
+
}
|
|
94
98
|
|
|
95
99
|
// Checkboxes with a background color look visually off against a parent container.
|
|
96
100
|
background-color: transparent;
|
|
@@ -136,6 +140,13 @@
|
|
|
136
140
|
border: none;
|
|
137
141
|
border-width: 1px;
|
|
138
142
|
background-color: $icon-primary;
|
|
143
|
+
|
|
144
|
+
// According to https://developer.mozilla.org/en-US/docs/Web/CSS/system-color, in high contrast mode, the
|
|
145
|
+
// checkbox should be displayed using SelectedItem and SelectedItemText.
|
|
146
|
+
@include high-contrast-mode {
|
|
147
|
+
border: 1px solid ButtonBorder;
|
|
148
|
+
background-color: SelectedItem;
|
|
149
|
+
}
|
|
139
150
|
}
|
|
140
151
|
|
|
141
152
|
// Display the check
|
|
@@ -326,6 +337,12 @@
|
|
|
326
337
|
.#{$prefix}--checkbox:checked
|
|
327
338
|
+ .#{$prefix}--checkbox-label::after {
|
|
328
339
|
border-color: $text-primary;
|
|
340
|
+
|
|
341
|
+
// According to https://developer.mozilla.org/en-US/docs/Web/CSS/system-color, in high contrast mode, the
|
|
342
|
+
// checkbox should be displayed using SelectedItem and SelectedItemText.
|
|
343
|
+
@include high-contrast-mode {
|
|
344
|
+
fill: SelectedItemText;
|
|
345
|
+
}
|
|
329
346
|
}
|
|
330
347
|
|
|
331
348
|
//-----------------------------------------------
|
|
@@ -555,11 +555,6 @@ $copy-btn-feedback: $background-inverse !default;
|
|
|
555
555
|
}
|
|
556
556
|
|
|
557
557
|
// Windows HCM fix
|
|
558
|
-
|
|
559
|
-
.#{$prefix}--snippet__icon {
|
|
560
|
-
@include high-contrast-mode('icon-fill');
|
|
561
|
-
}
|
|
562
|
-
|
|
563
558
|
.#{$prefix}--snippet--inline:focus {
|
|
564
559
|
@include high-contrast-mode('focus');
|
|
565
560
|
}
|
|
@@ -239,6 +239,7 @@
|
|
|
239
239
|
.#{$prefix}--data-table .#{$prefix}--dropdown,
|
|
240
240
|
.#{$prefix}--data-table .#{$prefix}--list-box,
|
|
241
241
|
.#{$prefix}--data-table .#{$prefix}--number input[type='number'],
|
|
242
|
+
.#{$prefix}--data-table .#{$prefix}--number input[type='text'],
|
|
242
243
|
.#{$prefix}--data-table .#{$prefix}--number__control-btn::before,
|
|
243
244
|
.#{$prefix}--data-table .#{$prefix}--number__control-btn::after,
|
|
244
245
|
.#{$prefix}--data-table .#{$prefix}--text-input,
|
|
@@ -1133,7 +1134,7 @@
|
|
|
1133
1134
|
td.#{$prefix}--table-cell--column-slug,
|
|
1134
1135
|
|
|
1135
1136
|
// Windows HCM fix
|
|
1136
|
-
|
|
1137
|
+
|
|
1137
1138
|
.#{$prefix}--data-table-content {
|
|
1138
1139
|
@include high-contrast-mode('outline');
|
|
1139
1140
|
}
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
@use '../../../utilities/button-reset';
|
|
13
13
|
@use '../../../utilities/convert';
|
|
14
14
|
@use '../../../utilities/focus-outline' as *;
|
|
15
|
-
@use '../../../utilities/high-contrast-mode' as *;
|
|
16
15
|
|
|
17
16
|
/// Data table sort styles
|
|
18
17
|
/// @access public
|
|
@@ -270,10 +269,4 @@
|
|
|
270
269
|
display: block;
|
|
271
270
|
margin-inline-end: convert.to-rem(8px);
|
|
272
271
|
}
|
|
273
|
-
|
|
274
|
-
// Windows HCM fix
|
|
275
|
-
.#{$prefix}--table-sort__icon,
|
|
276
|
-
.#{$prefix}--table-sort__icon-unsorted {
|
|
277
|
-
@include high-contrast-mode('icon-fill');
|
|
278
|
-
}
|
|
279
272
|
}
|
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
@use '../../utilities/component-reset';
|
|
18
18
|
@use '../../utilities/convert';
|
|
19
19
|
@use '../../utilities/focus-outline' as *;
|
|
20
|
-
@use '../../utilities/high-contrast-mode' as *;
|
|
21
20
|
@use '../../utilities/placeholder-colors' as *;
|
|
22
21
|
@use '../../utilities/skeleton' as *;
|
|
23
22
|
|
|
@@ -262,10 +261,4 @@
|
|
|
262
261
|
block-size: convert.to-rem(14px);
|
|
263
262
|
inline-size: convert.to-rem(75px);
|
|
264
263
|
}
|
|
265
|
-
|
|
266
|
-
// Windows HCM fix
|
|
267
|
-
|
|
268
|
-
.#{$prefix}--date-picker__icon {
|
|
269
|
-
@include high-contrast-mode('icon-fill');
|
|
270
|
-
}
|
|
271
264
|
}
|
|
@@ -231,8 +231,6 @@
|
|
|
231
231
|
transform: scale(1, 1) #{'/*rtl: scale(-1,1)*/'};
|
|
232
232
|
transition: background-color $duration-fast-01 motion(standard, productive);
|
|
233
233
|
user-select: none;
|
|
234
|
-
// Windows HCM fix
|
|
235
|
-
@include high-contrast-mode('icon-fill');
|
|
236
234
|
|
|
237
235
|
@media screen and (prefers-reduced-motion: reduce) {
|
|
238
236
|
transition: none;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//
|
|
2
|
-
// Copyright IBM Corp. 2014,
|
|
2
|
+
// Copyright IBM Corp. 2014, 2025
|
|
3
3
|
//
|
|
4
4
|
// This source code is licensed under the Apache-2.0 license found in the
|
|
5
5
|
// LICENSE file in the root directory of this source tree.
|
|
@@ -17,24 +17,23 @@
|
|
|
17
17
|
@use '../../utilities/convert';
|
|
18
18
|
@use '../../utilities/component-reset';
|
|
19
19
|
@use '../../utilities/focus-outline' as *;
|
|
20
|
-
@use '../../utilities/high-contrast-mode' as *;
|
|
21
20
|
|
|
22
21
|
/// Dialog styles
|
|
23
22
|
/// @access public
|
|
24
23
|
/// @group dialog
|
|
25
24
|
@mixin dialog {
|
|
26
25
|
.#{$prefix}--dialog {
|
|
26
|
+
position: fixed;
|
|
27
27
|
padding: 0;
|
|
28
28
|
border: none;
|
|
29
|
+
margin: auto;
|
|
29
30
|
background-color: $layer;
|
|
30
|
-
block-size: fit-content;
|
|
31
31
|
color: $text-primary;
|
|
32
32
|
inline-size: 48rem;
|
|
33
|
-
|
|
34
|
-
max-
|
|
33
|
+
inset: 0;
|
|
34
|
+
max-block-size: 100%;
|
|
35
35
|
opacity: 0;
|
|
36
36
|
transform: translateY(calc(-1 * #{$spacing-06}));
|
|
37
|
-
|
|
38
37
|
/** opening and closing is used in as allow-discrete is not currently supported wide enough
|
|
39
38
|
* https://caniuse.com/mdn-css_properties_display_is_transitionable
|
|
40
39
|
*/
|
|
@@ -52,13 +51,10 @@
|
|
|
52
51
|
max-inline-size: 84%;
|
|
53
52
|
}
|
|
54
53
|
@include breakpoint(lg) {
|
|
55
|
-
max-inline-size:
|
|
56
|
-
}
|
|
57
|
-
@include breakpoint(xlg) {
|
|
58
|
-
max-inline-size: 64%;
|
|
54
|
+
max-inline-size: 60%;
|
|
59
55
|
}
|
|
60
56
|
@include breakpoint(xlg) {
|
|
61
|
-
max-inline-size:
|
|
57
|
+
max-inline-size: 48%;
|
|
62
58
|
}
|
|
63
59
|
|
|
64
60
|
&[open] {
|
|
@@ -95,9 +91,12 @@
|
|
|
95
91
|
|
|
96
92
|
.#{$prefix}--dialog__header {
|
|
97
93
|
position: relative;
|
|
98
|
-
|
|
94
|
+
grid-area: header;
|
|
99
95
|
inline-size: 100%;
|
|
96
|
+
margin-block-end: $spacing-03;
|
|
100
97
|
min-block-size: $spacing-09;
|
|
98
|
+
padding-block-start: $spacing-05;
|
|
99
|
+
padding-inline: $spacing-05 $spacing-09;
|
|
101
100
|
}
|
|
102
101
|
|
|
103
102
|
/* Transition the :backdrop when the dialog modal is promoted to the top layer */
|
|
@@ -118,7 +117,6 @@
|
|
|
118
117
|
|
|
119
118
|
.#{$prefix}--dialog[open]::backdrop {
|
|
120
119
|
opacity: 1;
|
|
121
|
-
|
|
122
120
|
transition:
|
|
123
121
|
background-color $duration-moderate-02 motion(exit, expressive),
|
|
124
122
|
opacity $duration-moderate-02 motion(exit, expressive);
|
|
@@ -145,4 +143,153 @@ because the nesting selector cannot represent pseudo-elements. */
|
|
|
145
143
|
inset-block-start: 0;
|
|
146
144
|
inset-inline-end: 0;
|
|
147
145
|
}
|
|
146
|
+
|
|
147
|
+
.#{$prefix}--dialog-header__label {
|
|
148
|
+
@include component-reset.reset;
|
|
149
|
+
|
|
150
|
+
@include type-style('label-01');
|
|
151
|
+
|
|
152
|
+
color: $text-secondary;
|
|
153
|
+
margin-block-end: $spacing-02;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.#{$prefix}--dialog-header__heading {
|
|
157
|
+
@include component-reset.reset;
|
|
158
|
+
|
|
159
|
+
@include type-style('heading-03');
|
|
160
|
+
|
|
161
|
+
margin: 0;
|
|
162
|
+
color: $text-primary;
|
|
163
|
+
|
|
164
|
+
padding-inline-end: calc(20% - $spacing-09);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.#{$prefix}--dialog-container {
|
|
168
|
+
display: grid;
|
|
169
|
+
background-color: $layer;
|
|
170
|
+
grid-template-areas:
|
|
171
|
+
'header'
|
|
172
|
+
'content'
|
|
173
|
+
'footer';
|
|
174
|
+
grid-template-columns: 100%;
|
|
175
|
+
grid-template-rows: auto minmax(0, 1fr) auto;
|
|
176
|
+
inline-size: 100%;
|
|
177
|
+
|
|
178
|
+
@include breakpoint(md) {
|
|
179
|
+
max-block-size: 90vh;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
@include breakpoint(lg) {
|
|
183
|
+
max-block-size: 84vh;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.#{$prefix}--dialog-content {
|
|
188
|
+
position: relative;
|
|
189
|
+
grid-area: content;
|
|
190
|
+
overflow-y: auto;
|
|
191
|
+
padding-block: $spacing-03 $spacing-09;
|
|
192
|
+
padding-inline: $spacing-05 $spacing-05;
|
|
193
|
+
|
|
194
|
+
&:focus {
|
|
195
|
+
@include focus-outline('outline');
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.#{$prefix}--dialog-scroll-content {
|
|
200
|
+
border-block-end: $spacing-01 solid transparent;
|
|
201
|
+
mask-image: linear-gradient(
|
|
202
|
+
to bottom,
|
|
203
|
+
$layer calc(100% - $spacing-11),
|
|
204
|
+
transparent calc(100% - $spacing-09),
|
|
205
|
+
transparent 100%
|
|
206
|
+
),
|
|
207
|
+
linear-gradient(to left, $layer 0, $spacing-05, transparent $spacing-05),
|
|
208
|
+
linear-gradient(to right, $layer 0, $spacing-01, transparent $spacing-01),
|
|
209
|
+
linear-gradient(to top, $layer 0, $spacing-01, transparent $spacing-01);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.#{$prefix}--dialog-scroll-content > *:last-child {
|
|
213
|
+
margin-block-end: $spacing-06;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.#{$prefix}--dialog-scroll-content:has(.#{$prefix}--autoalign) {
|
|
217
|
+
mask-image: none;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.#{$prefix}--dialog-footer {
|
|
221
|
+
display: flex;
|
|
222
|
+
align-items: center;
|
|
223
|
+
justify-content: flex-end;
|
|
224
|
+
block-size: $spacing-10;
|
|
225
|
+
grid-area: footer;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.#{$prefix}--dialog-footer .#{$prefix}--btn {
|
|
229
|
+
flex: 0 1 50%;
|
|
230
|
+
align-items: baseline;
|
|
231
|
+
margin: 0;
|
|
232
|
+
block-size: $spacing-10;
|
|
233
|
+
max-inline-size: none;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.#{$prefix}--dialog-footer--three-button .#{$prefix}--btn {
|
|
237
|
+
flex: 0 1 25%;
|
|
238
|
+
align-items: flex-start;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.#{$prefix}--dialog--danger {
|
|
242
|
+
background-color: $ai-overlay;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.#{$prefix}--dialog--danger .#{$prefix}--dialog-container {
|
|
246
|
+
@include ai-popover-gradient('default', 0, 'layer');
|
|
247
|
+
|
|
248
|
+
border: 1px solid transparent;
|
|
249
|
+
background-color: $layer;
|
|
250
|
+
box-shadow:
|
|
251
|
+
inset 0 -80px 70px -65px $ai-inner-shadow,
|
|
252
|
+
0 24px 40px -24px $ai-drop-shadow;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.#{$prefix}--dialog--danger
|
|
256
|
+
.#{$prefix}--dialog-container:has(.#{$prefix}--dialog-footer) {
|
|
257
|
+
@include ai-popover-gradient('default', $spacing-10, 'layer');
|
|
258
|
+
|
|
259
|
+
box-shadow:
|
|
260
|
+
inset 0 -80px 0 -16px $layer,
|
|
261
|
+
inset 0 -160px 70px -65px $ai-inner-shadow,
|
|
262
|
+
0 24px 40px -24px $ai-drop-shadow;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.#{$prefix}--dialog--danger
|
|
266
|
+
.#{$prefix}--dialog-content.#{$prefix}--dialog-scroll-content {
|
|
267
|
+
mask-image: linear-gradient(
|
|
268
|
+
to bottom,
|
|
269
|
+
$layer calc(100% - $spacing-11),
|
|
270
|
+
transparent calc(100% - $spacing-09),
|
|
271
|
+
transparent 100%
|
|
272
|
+
),
|
|
273
|
+
linear-gradient(to left, $layer 0, $spacing-05, transparent $spacing-05),
|
|
274
|
+
linear-gradient(to right, $layer 0, $spacing-01, transparent $spacing-01),
|
|
275
|
+
linear-gradient(to top, $layer 0, $spacing-01, transparent $spacing-01);
|
|
276
|
+
}
|
|
277
|
+
.#{$prefix}--dialog__close {
|
|
278
|
+
padding: convert.to-rem(12px);
|
|
279
|
+
border: 2px solid transparent;
|
|
280
|
+
background-color: transparent;
|
|
281
|
+
block-size: 3rem;
|
|
282
|
+
cursor: pointer;
|
|
283
|
+
inline-size: 3rem;
|
|
284
|
+
transition: background-color $duration-fast-02 motion(standard, productive);
|
|
285
|
+
|
|
286
|
+
&:hover {
|
|
287
|
+
background-color: $layer-hover;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
&:focus {
|
|
291
|
+
border-color: $focus;
|
|
292
|
+
outline: none;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
148
295
|
}
|
|
@@ -347,6 +347,7 @@
|
|
|
347
347
|
}
|
|
348
348
|
|
|
349
349
|
.#{$prefix}--file__state-container .#{$prefix}--file-complete {
|
|
350
|
+
// TODO: Should this be $icon-interactive instead?
|
|
350
351
|
fill: $interactive;
|
|
351
352
|
inline-size: $spacing-06;
|
|
352
353
|
|
|
@@ -412,12 +413,7 @@
|
|
|
412
413
|
}
|
|
413
414
|
|
|
414
415
|
// Windows HCM fix
|
|
415
|
-
|
|
416
416
|
.#{$prefix}--file__selected-file {
|
|
417
417
|
@include high-contrast-mode('outline');
|
|
418
418
|
}
|
|
419
|
-
|
|
420
|
-
.#{$prefix}--file__state-container .#{$prefix}--file-close svg path {
|
|
421
|
-
@include high-contrast-mode('icon-fill');
|
|
422
|
-
}
|
|
423
419
|
}
|