@carbon/styles 0.17.0 → 1.0.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/package.json +23 -10
- package/scss/__tests__/__snapshots__/colors-test.js.snap +404 -0
- package/scss/__tests__/__snapshots__/config-test.js.snap +44 -0
- package/scss/__tests__/__snapshots__/motion-test.js.snap +39 -0
- package/scss/__tests__/breakpoint-test.js +42 -0
- package/scss/__tests__/colors-test.js +28 -0
- package/scss/__tests__/config-test.js +53 -0
- package/scss/__tests__/grid-test.js +48 -0
- package/scss/__tests__/layer-test.js +82 -0
- package/scss/__tests__/motion-test.js +37 -0
- package/scss/__tests__/reset-test.js +28 -0
- package/scss/__tests__/theme-test.js +151 -0
- package/scss/__tests__/themes-test.js +36 -0
- package/scss/__tests__/type-test.js +77 -0
- package/scss/_breakpoint.scss +2 -1
- package/scss/_config.scss +9 -2
- package/scss/_reset.scss +5 -1
- package/scss/_spacing.scss +1 -1
- package/scss/_theme.scss +4 -4
- package/scss/_themes.scss +2 -1
- package/scss/components/__tests__/accordion-test.js +47 -0
- package/scss/components/__tests__/breadcrumb-test.js +27 -0
- package/scss/components/__tests__/button-test.js +71 -0
- package/scss/components/__tests__/checkbox-test.js +27 -0
- package/scss/components/__tests__/code-snippet-test.js +44 -0
- package/scss/components/__tests__/combo-box-test.js +27 -0
- package/scss/components/__tests__/content-switcher-test.js +27 -0
- package/scss/components/__tests__/copy-button-test.js +27 -0
- package/scss/components/__tests__/data-table-test.js +85 -0
- package/scss/components/__tests__/date-picker-test.js +26 -0
- package/scss/components/__tests__/dropdown-test.js +27 -0
- package/scss/components/__tests__/file-uploader.js +27 -0
- package/scss/components/__tests__/form-test.js +43 -0
- package/scss/components/__tests__/inline-loading-test.js +26 -0
- package/scss/components/__tests__/link-test.js +26 -0
- package/scss/components/__tests__/list-box-test.js +36 -0
- package/scss/components/__tests__/list-test.js +26 -0
- package/scss/components/__tests__/loading-test.js +26 -0
- package/scss/components/__tests__/menu-test.js +27 -0
- package/scss/components/__tests__/modal-test.js +27 -0
- package/scss/components/__tests__/multiselect-test.js +27 -0
- package/scss/components/__tests__/notification-test.js +49 -0
- package/scss/components/__tests__/number-input-test.js +27 -0
- package/scss/components/__tests__/overflow-menu-test.js +27 -0
- package/scss/components/__tests__/pagination-nav-test.js +26 -0
- package/scss/components/__tests__/pagination-test.js +26 -0
- package/scss/components/__tests__/progress-bar-test.js +26 -0
- package/scss/components/__tests__/progress-indicator-test.js +26 -0
- package/scss/components/__tests__/radio-button-test.js +25 -0
- package/scss/components/__tests__/search-test.js +25 -0
- package/scss/components/__tests__/select-test.js +26 -0
- package/scss/components/__tests__/skeleton-test.js +26 -0
- package/scss/components/__tests__/slider-test.js +26 -0
- package/scss/components/__tests__/structured-list-test.js +27 -0
- package/scss/components/__tests__/tabs-test.js +27 -0
- package/scss/components/__tests__/tag-test.js +25 -0
- package/scss/components/__tests__/text-area-test.js +26 -0
- package/scss/components/__tests__/text-input-test.js +26 -0
- package/scss/components/__tests__/tile-test.js +26 -0
- package/scss/components/__tests__/time-picker-test.js +26 -0
- package/scss/components/__tests__/toggle-test.js +27 -0
- package/scss/components/__tests__/tooltip-test.js +25 -0
- package/scss/components/__tests__/treeview-test.js +25 -0
- package/scss/components/__tests__/ui-shell-test.js +27 -0
- package/scss/components/accordion/_accordion.scss +1 -1
- package/scss/components/aspect-ratio/_aspect-ratio.scss +2 -2
- package/scss/components/breadcrumb/_breadcrumb.scss +1 -1
- package/scss/components/button/_button.scss +3 -9
- package/scss/components/button/_tokens.scss +1 -0
- package/scss/components/code-snippet/_code-snippet.scss +32 -47
- package/scss/components/content-switcher/_content-switcher.scss +0 -2
- package/scss/components/copy-button/_copy-button.scss +0 -59
- package/scss/components/dropdown/_dropdown.scss +0 -1
- package/scss/components/modal/_modal.scss +1 -1
- package/scss/components/notification/_actionable-notification.scss +58 -19
- package/scss/components/notification/_inline-notification.scss +9 -21
- package/scss/components/notification/_toast-notification.scss +29 -58
- package/scss/components/notification/_tokens.scss +2 -1
- package/scss/components/pagination/_unstable_pagination.scss +1 -1
- package/scss/components/progress-indicator/_progress-indicator.scss +5 -5
- package/scss/components/radio-button/_radio-button.scss +2 -10
- package/scss/components/tabs/_tabs.scss +1 -1
- package/scss/components/tag/_tokens.scss +1 -0
- package/scss/components/text-input/_text-input.scss +7 -22
- package/scss/components/tile/_tile.scss +60 -29
- package/scss/components/toggletip/_toggletip.scss +1 -2
- package/scss/fonts/__tests__/__snapshots__/fonts-test.js.snap +269 -0
- package/scss/fonts/__tests__/fonts-test.js +197 -0
- package/scss/fonts/_src.scss +42 -31
- package/scss/grid/_css-grid.scss +11 -0
- package/scss/grid/_flexbox.scss +1 -1
- package/scss/grid/_index.scss +7 -2
- package/scss/grid/_mixins.scss +9 -0
- package/scss/type/_reset.scss +1 -1
- package/scss/utilities/__tests__/custom-property-test.js +50 -0
- package/scss/utilities/_component-tokens.scss +2 -1
- package/scss/utilities/_convert.scss +2 -4
- package/scss/utilities/_high-contrast-mode.scss +2 -4
- package/docs/sass.md +0 -462
- package/scss/grid/_config.scss +0 -18
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
// LICENSE file in the root directory of this source tree.
|
|
6
6
|
//
|
|
7
7
|
|
|
8
|
+
@use '../../config' as *;
|
|
8
9
|
@use 'vars' as *;
|
|
9
10
|
@use 'mixins' as *;
|
|
10
|
-
@use '../../config' as *;
|
|
11
11
|
@use '../../spacing' as *;
|
|
12
12
|
@use '../../theme' as *;
|
|
13
13
|
@use '../../type' as *;
|
|
@@ -219,8 +219,6 @@
|
|
|
219
219
|
color: $text-on-color;
|
|
220
220
|
}
|
|
221
221
|
|
|
222
|
-
// TODO: deprecate single dash tertiary
|
|
223
|
-
&-tertiary,
|
|
224
222
|
&--tertiary {
|
|
225
223
|
@include button-theme(
|
|
226
224
|
transparent,
|
|
@@ -259,8 +257,6 @@
|
|
|
259
257
|
}
|
|
260
258
|
}
|
|
261
259
|
|
|
262
|
-
// TODO: deprecate single dash ghost
|
|
263
|
-
&-ghost,
|
|
264
260
|
&--ghost {
|
|
265
261
|
@include button-theme(
|
|
266
262
|
transparent,
|
|
@@ -312,15 +308,13 @@
|
|
|
312
308
|
padding: $button-padding-sm;
|
|
313
309
|
}
|
|
314
310
|
|
|
315
|
-
|
|
316
|
-
.#{$prefix}--btn--xl:not(.#{$prefix}--btn--icon-only) {
|
|
311
|
+
.#{$prefix}--btn--2xl:not(.#{$prefix}--btn--icon-only) {
|
|
317
312
|
@include button-padding-large;
|
|
318
313
|
|
|
319
314
|
min-height: rem(80px);
|
|
320
315
|
}
|
|
321
316
|
|
|
322
|
-
|
|
323
|
-
.#{$prefix}--btn--lg:not(.#{$prefix}--btn--icon-only) {
|
|
317
|
+
.#{$prefix}--btn--xl:not(.#{$prefix}--btn--icon-only) {
|
|
324
318
|
@include button-padding-large;
|
|
325
319
|
|
|
326
320
|
min-height: rem(64px);
|
|
@@ -67,7 +67,7 @@ $copy-btn-feedback: $background-inverse !default;
|
|
|
67
67
|
position: relative;
|
|
68
68
|
display: inline;
|
|
69
69
|
padding: 0;
|
|
70
|
-
border:
|
|
70
|
+
border: 1px solid transparent;
|
|
71
71
|
background-color: $layer;
|
|
72
72
|
border-radius: 4px;
|
|
73
73
|
color: $text-primary;
|
|
@@ -82,7 +82,7 @@ $copy-btn-feedback: $background-inverse !default;
|
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
&:focus {
|
|
85
|
-
border:
|
|
85
|
+
border: 1px solid $focus;
|
|
86
86
|
outline: none;
|
|
87
87
|
}
|
|
88
88
|
|
|
@@ -90,6 +90,8 @@ $copy-btn-feedback: $background-inverse !default;
|
|
|
90
90
|
@include tooltip--caret;
|
|
91
91
|
|
|
92
92
|
display: none;
|
|
93
|
+
|
|
94
|
+
border: none;
|
|
93
95
|
}
|
|
94
96
|
|
|
95
97
|
.#{$prefix}--copy-btn__feedback {
|
|
@@ -101,8 +103,6 @@ $copy-btn-feedback: $background-inverse !default;
|
|
|
101
103
|
margin: auto;
|
|
102
104
|
clip: auto;
|
|
103
105
|
}
|
|
104
|
-
|
|
105
|
-
@include tooltip--placement('icon', 'bottom', 'center');
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
.#{$prefix}--snippet--inline.#{$prefix}--copy-btn--animating::before,
|
|
@@ -257,12 +257,9 @@ $copy-btn-feedback: $background-inverse !default;
|
|
|
257
257
|
transition: all $duration-fast-01 motion(standard, productive);
|
|
258
258
|
}
|
|
259
259
|
|
|
260
|
-
.#{$prefix}--
|
|
260
|
+
.#{$prefix}--copy-btn {
|
|
261
261
|
@include reset;
|
|
262
262
|
|
|
263
|
-
position: absolute;
|
|
264
|
-
top: 0;
|
|
265
|
-
right: 0;
|
|
266
263
|
display: flex;
|
|
267
264
|
overflow: visible;
|
|
268
265
|
width: $spacing-08;
|
|
@@ -282,48 +279,44 @@ $copy-btn-feedback: $background-inverse !default;
|
|
|
282
279
|
}
|
|
283
280
|
}
|
|
284
281
|
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
width: $spacing-07;
|
|
289
|
-
height: $spacing-07;
|
|
290
|
-
}
|
|
282
|
+
// TODO: remove copy button styles above
|
|
283
|
+
.#{$prefix}--snippet .#{$prefix}--popover-container {
|
|
284
|
+
@include font-family('sans');
|
|
291
285
|
|
|
292
|
-
|
|
293
|
-
|
|
286
|
+
position: absolute;
|
|
287
|
+
top: 0;
|
|
288
|
+
right: 0;
|
|
294
289
|
}
|
|
295
290
|
|
|
296
|
-
|
|
297
|
-
|
|
291
|
+
// Overrides for codesnippet copy btn
|
|
292
|
+
// TLDR: Copy/CopyButton now uses IconButton, which uses Carbon buttons under the hood
|
|
293
|
+
// v10 opy just used native html button so it didn't have extra carbon styles that needed overriding
|
|
294
|
+
.#{$prefix}--snippet--inline.#{$prefix}--btn--md.#{$prefix}--btn--icon-only {
|
|
295
|
+
padding-right: 0;
|
|
296
|
+
padding-left: 0;
|
|
298
297
|
}
|
|
299
298
|
|
|
300
|
-
.#{$prefix}--btn--
|
|
301
|
-
|
|
302
|
-
@include font-family('sans');
|
|
303
|
-
|
|
304
|
-
z-index: z('overlay');
|
|
305
|
-
top: 0.75rem;
|
|
306
|
-
right: 1.25rem;
|
|
307
|
-
left: inherit;
|
|
308
|
-
font-weight: 400;
|
|
299
|
+
.#{$prefix}--snippet--inline.#{$prefix}--btn--md {
|
|
300
|
+
min-height: 1.25rem;
|
|
309
301
|
}
|
|
310
302
|
|
|
311
|
-
.#{$prefix}--btn--
|
|
312
|
-
|
|
313
|
-
background: $copy-btn-feedback;
|
|
303
|
+
.#{$prefix}--snippet--inline.#{$prefix}--btn--primary:hover {
|
|
304
|
+
color: $text-primary;
|
|
314
305
|
}
|
|
315
306
|
|
|
316
|
-
|
|
317
|
-
|
|
307
|
+
// override multi copy btn styles
|
|
308
|
+
.#{$prefix}--snippet.#{$prefix}--snippet--multi
|
|
309
|
+
.#{$prefix}--popover-container {
|
|
310
|
+
top: 0.5rem;
|
|
311
|
+
right: 0.5rem;
|
|
318
312
|
}
|
|
319
313
|
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
right: 0;
|
|
314
|
+
.#{$prefix}--snippet--multi .#{$prefix}--copy-btn.#{$prefix}--btn--md {
|
|
315
|
+
z-index: 10;
|
|
316
|
+
width: $spacing-07;
|
|
317
|
+
height: $spacing-07;
|
|
318
|
+
min-height: $spacing-07;
|
|
319
|
+
padding: 0;
|
|
327
320
|
}
|
|
328
321
|
|
|
329
322
|
// Show more / less button
|
|
@@ -435,14 +428,6 @@ $copy-btn-feedback: $background-inverse !default;
|
|
|
435
428
|
}
|
|
436
429
|
}
|
|
437
430
|
|
|
438
|
-
.#{$prefix}--snippet--multi .#{$prefix}--copy-btn {
|
|
439
|
-
z-index: 10;
|
|
440
|
-
top: $spacing-03;
|
|
441
|
-
right: $spacing-03;
|
|
442
|
-
width: $spacing-07;
|
|
443
|
-
height: $spacing-07;
|
|
444
|
-
}
|
|
445
|
-
|
|
446
431
|
.#{$prefix}--snippet--multi
|
|
447
432
|
.#{$prefix}--snippet-button
|
|
448
433
|
.#{$prefix}--btn--copy__feedback {
|
|
@@ -18,63 +18,6 @@
|
|
|
18
18
|
@use '../../utilities/visually-hidden' as *;
|
|
19
19
|
|
|
20
20
|
@mixin copy-button {
|
|
21
|
-
.#{$prefix}--btn--copy {
|
|
22
|
-
position: relative;
|
|
23
|
-
overflow: visible;
|
|
24
|
-
|
|
25
|
-
.#{$prefix}--btn__icon {
|
|
26
|
-
margin-left: rem(5px);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.#{$prefix}--btn--copy__feedback {
|
|
31
|
-
position: absolute;
|
|
32
|
-
top: 1.2rem;
|
|
33
|
-
left: 50%;
|
|
34
|
-
display: none;
|
|
35
|
-
|
|
36
|
-
&::before {
|
|
37
|
-
@include box-shadow;
|
|
38
|
-
@include type-style('body-compact-01');
|
|
39
|
-
|
|
40
|
-
z-index: 2;
|
|
41
|
-
top: 1.1rem;
|
|
42
|
-
padding: $spacing-02;
|
|
43
|
-
border-radius: 4px;
|
|
44
|
-
color: $text-inverse;
|
|
45
|
-
content: attr(data-feedback);
|
|
46
|
-
font-weight: 400;
|
|
47
|
-
pointer-events: none;
|
|
48
|
-
transform: translateX(-50%);
|
|
49
|
-
white-space: nowrap;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
&::after {
|
|
53
|
-
z-index: 1;
|
|
54
|
-
top: 0.85rem;
|
|
55
|
-
left: -0.3rem;
|
|
56
|
-
width: 0.6rem;
|
|
57
|
-
height: 0.6rem;
|
|
58
|
-
border-right: 1px solid $background-inverse;
|
|
59
|
-
border-bottom: 1px solid $background-inverse;
|
|
60
|
-
content: '';
|
|
61
|
-
transform: rotate(-135deg);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
&::before,
|
|
65
|
-
&::after {
|
|
66
|
-
position: absolute;
|
|
67
|
-
display: block;
|
|
68
|
-
background: $background-inverse;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
&--displayed {
|
|
72
|
-
display: inline-flex;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
// TODO: deprecate above styles
|
|
77
|
-
|
|
78
21
|
.#{$prefix}--copy-btn {
|
|
79
22
|
@include reset;
|
|
80
23
|
|
|
@@ -113,8 +56,6 @@
|
|
|
113
56
|
clip: auto;
|
|
114
57
|
}
|
|
115
58
|
|
|
116
|
-
@include tooltip--placement('icon', 'bottom', 'center');
|
|
117
|
-
|
|
118
59
|
&:focus {
|
|
119
60
|
@include focus-outline('outline');
|
|
120
61
|
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
.#{$prefix}--actionable-notification a:focus {
|
|
81
|
-
outline: 1px solid $
|
|
81
|
+
outline: 1px solid $focus-inverse;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
.#{$prefix}--actionable-notification.#{$prefix}--actionable-notification--low-contrast
|
|
@@ -88,20 +88,20 @@
|
|
|
88
88
|
|
|
89
89
|
.#{$prefix}--actionable-notification--low-contrast {
|
|
90
90
|
color: $text-primary;
|
|
91
|
+
}
|
|
91
92
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}
|
|
93
|
+
.#{$prefix}--actionable-notification--low-contrast:not(.#{$prefix}--actionable-notification--toast)::before {
|
|
94
|
+
position: absolute;
|
|
95
|
+
top: 0;
|
|
96
|
+
left: 0;
|
|
97
|
+
width: 100%;
|
|
98
|
+
height: 100%;
|
|
99
|
+
box-sizing: border-box;
|
|
100
|
+
border-width: 1px 1px 1px 0;
|
|
101
|
+
border-style: solid;
|
|
102
|
+
content: '';
|
|
103
|
+
filter: opacity(0.4);
|
|
104
|
+
pointer-events: none;
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
.#{$prefix}--actionable-notification--error {
|
|
@@ -192,13 +192,13 @@
|
|
|
192
192
|
.#{$prefix}--actionable-notification__details {
|
|
193
193
|
display: flex;
|
|
194
194
|
flex-grow: 1;
|
|
195
|
-
margin: 0 $spacing-09 0
|
|
195
|
+
margin: 0 $spacing-09 0 rem(13px);
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
.#{$prefix}--actionable-notification:not(.#{$prefix}--actionable-notification--toast)
|
|
199
199
|
.#{$prefix}--actionable-notification__details {
|
|
200
200
|
@include breakpoint(md) {
|
|
201
|
-
margin: 0
|
|
201
|
+
margin: 0 rem(13px);
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
204
|
|
|
@@ -220,12 +220,48 @@
|
|
|
220
220
|
padding: rem(15px) 0;
|
|
221
221
|
}
|
|
222
222
|
|
|
223
|
+
.#{$prefix}--actionable-notification--toast
|
|
224
|
+
.#{$prefix}--actionable-notification__text-wrapper {
|
|
225
|
+
padding: rem(15px) 0 rem(23px) 0;
|
|
226
|
+
}
|
|
227
|
+
|
|
223
228
|
.#{$prefix}--actionable-notification__content {
|
|
224
229
|
@include type-style('body-compact-01');
|
|
225
230
|
|
|
231
|
+
display: flex;
|
|
226
232
|
word-break: break-word;
|
|
227
233
|
}
|
|
228
234
|
|
|
235
|
+
.#{$prefix}--actionable-notification--toast
|
|
236
|
+
.#{$prefix}--actionable-notification__content {
|
|
237
|
+
display: block;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.#{$prefix}--actionable-notification__title {
|
|
241
|
+
@include type-style('heading-compact-01');
|
|
242
|
+
|
|
243
|
+
margin-right: $spacing-02;
|
|
244
|
+
font-weight: 600;
|
|
245
|
+
word-break: break-word;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.#{$prefix}--actionable-notification--toast
|
|
249
|
+
.#{$prefix}--actionable-notification__title {
|
|
250
|
+
margin-right: 0;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.#{$prefix}--actionable-notification__subtitle {
|
|
254
|
+
@include type-style('body-compact-01');
|
|
255
|
+
|
|
256
|
+
margin-top: 0;
|
|
257
|
+
color: $text-inverse;
|
|
258
|
+
word-break: break-word;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.#{$prefix}--actionable-notification--low-contrast
|
|
262
|
+
.#{$prefix}--actionable-notification__subtitle {
|
|
263
|
+
color: $text-primary;
|
|
264
|
+
}
|
|
229
265
|
/* Ghost action button when inline */
|
|
230
266
|
.#{$prefix}--actionable-notification__action-button.#{$prefix}--btn--ghost {
|
|
231
267
|
height: rem(32px);
|
|
@@ -273,10 +309,13 @@
|
|
|
273
309
|
|
|
274
310
|
/* Tertiary action button when not inline (toast) */
|
|
275
311
|
.#{$prefix}--actionable-notification__action-button.#{$prefix}--btn--tertiary {
|
|
276
|
-
|
|
312
|
+
padding: 0 $spacing-05;
|
|
313
|
+
margin-bottom: $spacing-05;
|
|
277
314
|
|
|
278
|
-
// Button should be left aligned with text.
|
|
279
|
-
|
|
315
|
+
// Button should be left aligned with text.
|
|
316
|
+
// 20px is the width of the notification icon
|
|
317
|
+
// 2px is the width of the left border that should be negated
|
|
318
|
+
margin-left: calc(#{$spacing-07} + #{rem(20px)} - #{rem(2px)});
|
|
280
319
|
}
|
|
281
320
|
|
|
282
321
|
// Tertiary button styles by default use mostly "inverse" tokens. Since the non-low-contrast notification
|
|
@@ -34,10 +34,6 @@
|
|
|
34
34
|
height: auto;
|
|
35
35
|
min-height: rem(48px);
|
|
36
36
|
flex-wrap: wrap;
|
|
37
|
-
@if not enabled('enable-v11-release') {
|
|
38
|
-
margin-top: $spacing-05;
|
|
39
|
-
margin-bottom: $spacing-05;
|
|
40
|
-
}
|
|
41
37
|
|
|
42
38
|
color: $text-inverse;
|
|
43
39
|
|
|
@@ -181,10 +177,10 @@
|
|
|
181
177
|
.#{$prefix}--inline-notification__details {
|
|
182
178
|
display: flex;
|
|
183
179
|
flex-grow: 1;
|
|
184
|
-
margin: 0 $spacing-09 0
|
|
180
|
+
margin: 0 $spacing-09 0 rem(13px);
|
|
185
181
|
|
|
186
182
|
@include breakpoint(md) {
|
|
187
|
-
margin: 0
|
|
183
|
+
margin: 0 rem(13px);
|
|
188
184
|
}
|
|
189
185
|
}
|
|
190
186
|
|
|
@@ -200,24 +196,16 @@
|
|
|
200
196
|
padding: rem(15px) 0;
|
|
201
197
|
}
|
|
202
198
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
@include type-style('body-compact-01');
|
|
206
|
-
|
|
207
|
-
word-break: break-word;
|
|
208
|
-
}
|
|
209
|
-
} @else {
|
|
210
|
-
.#{$prefix}--inline-notification__title {
|
|
211
|
-
@include type-style('heading-compact-01');
|
|
199
|
+
.#{$prefix}--inline-notification__title {
|
|
200
|
+
@include type-style('heading-compact-01');
|
|
212
201
|
|
|
213
|
-
|
|
214
|
-
|
|
202
|
+
margin: 0 $spacing-02 0 0;
|
|
203
|
+
}
|
|
215
204
|
|
|
216
|
-
|
|
217
|
-
|
|
205
|
+
.#{$prefix}--inline-notification__subtitle {
|
|
206
|
+
@include type-style('body-compact-01');
|
|
218
207
|
|
|
219
|
-
|
|
220
|
-
}
|
|
208
|
+
word-break: break-word;
|
|
221
209
|
}
|
|
222
210
|
|
|
223
211
|
.#{$prefix}--inline-notification__action-button.#{$prefix}--btn--ghost {
|
|
@@ -31,22 +31,11 @@
|
|
|
31
31
|
display: flex;
|
|
32
32
|
width: rem(288px);
|
|
33
33
|
height: auto;
|
|
34
|
-
padding-left:
|
|
35
|
-
@if not enabled('enable-v11-release') {
|
|
36
|
-
margin-top: $spacing-03;
|
|
37
|
-
margin-right: $spacing-05;
|
|
38
|
-
margin-bottom: $spacing-03;
|
|
39
|
-
}
|
|
34
|
+
padding-left: rem(13px);
|
|
40
35
|
|
|
41
36
|
box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.2);
|
|
42
37
|
color: $text-inverse;
|
|
43
38
|
|
|
44
|
-
@if not enabled('enable-v11-release') {
|
|
45
|
-
&:first-child {
|
|
46
|
-
margin-top: $spacing-05;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
39
|
@include breakpoint(max) {
|
|
51
40
|
width: rem(352px);
|
|
52
41
|
}
|
|
@@ -151,24 +140,8 @@
|
|
|
151
140
|
margin-right: $spacing-05;
|
|
152
141
|
}
|
|
153
142
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
@include type-style('body-compact-01');
|
|
157
|
-
|
|
158
|
-
margin-top: $spacing-05;
|
|
159
|
-
margin-right: $spacing-05;
|
|
160
|
-
margin-bottom: $spacing-05;
|
|
161
|
-
word-break: break-word;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.#{$prefix}--toast-notification--low-contrast
|
|
165
|
-
.#{$prefix}--toast-notification__content {
|
|
166
|
-
color: $text-primary;
|
|
167
|
-
}
|
|
168
|
-
} @else {
|
|
169
|
-
.#{$prefix}--toast-notification__details {
|
|
170
|
-
margin-right: $spacing-05;
|
|
171
|
-
}
|
|
143
|
+
.#{$prefix}--toast-notification__details {
|
|
144
|
+
margin-right: $spacing-05;
|
|
172
145
|
}
|
|
173
146
|
|
|
174
147
|
.#{$prefix}--toast-notification__close-button {
|
|
@@ -210,41 +183,39 @@
|
|
|
210
183
|
fill: $icon-primary;
|
|
211
184
|
}
|
|
212
185
|
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
@include type-style('heading-compact-01');
|
|
186
|
+
.#{$prefix}--toast-notification__title {
|
|
187
|
+
@include type-style('heading-compact-01');
|
|
216
188
|
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
189
|
+
margin-top: $spacing-05;
|
|
190
|
+
font-weight: 600;
|
|
191
|
+
word-break: break-word;
|
|
192
|
+
}
|
|
221
193
|
|
|
222
|
-
|
|
223
|
-
|
|
194
|
+
.#{$prefix}--toast-notification__subtitle {
|
|
195
|
+
@include type-style('body-compact-01');
|
|
224
196
|
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
197
|
+
margin-top: 0;
|
|
198
|
+
margin-bottom: $spacing-05;
|
|
199
|
+
color: $text-inverse;
|
|
200
|
+
word-break: break-word;
|
|
201
|
+
}
|
|
230
202
|
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
203
|
+
.#{$prefix}--toast-notification--low-contrast
|
|
204
|
+
.#{$prefix}--toast-notification__subtitle {
|
|
205
|
+
color: $text-primary;
|
|
206
|
+
}
|
|
235
207
|
|
|
236
|
-
|
|
237
|
-
|
|
208
|
+
.#{$prefix}--toast-notification__caption {
|
|
209
|
+
@include type-style('body-compact-01');
|
|
238
210
|
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
211
|
+
padding-top: $spacing-03;
|
|
212
|
+
margin-bottom: $spacing-05;
|
|
213
|
+
color: $text-inverse;
|
|
214
|
+
}
|
|
243
215
|
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
}
|
|
216
|
+
.#{$prefix}--toast-notification--low-contrast
|
|
217
|
+
.#{$prefix}--toast-notification__caption {
|
|
218
|
+
color: $text-primary;
|
|
248
219
|
}
|
|
249
220
|
|
|
250
221
|
// Windows HCM fix
|
|
@@ -57,7 +57,7 @@ $progress-indicator-bar-width: 1px inset transparent !default;
|
|
|
57
57
|
position: absolute;
|
|
58
58
|
left: 0;
|
|
59
59
|
width: rem(128px);
|
|
60
|
-
height:
|
|
60
|
+
height: 2px;
|
|
61
61
|
border: $progress-indicator-bar-width;
|
|
62
62
|
}
|
|
63
63
|
|
|
@@ -97,8 +97,8 @@ $progress-indicator-bar-width: 1px inset transparent !default;
|
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
.#{$prefix}--progress-label:hover {
|
|
100
|
-
box-shadow: 0 rem(1px) $link-primary;
|
|
101
|
-
color: $link-primary;
|
|
100
|
+
box-shadow: 0 rem(1px) $link-primary-hover;
|
|
101
|
+
color: $link-primary-hover;
|
|
102
102
|
cursor: pointer;
|
|
103
103
|
}
|
|
104
104
|
|
|
@@ -115,8 +115,8 @@ $progress-indicator-bar-width: 1px inset transparent !default;
|
|
|
115
115
|
|
|
116
116
|
.#{$prefix}--progress-step-button:not(.#{$prefix}--progress-step-button--unclickable)
|
|
117
117
|
.#{$prefix}--progress-label:active {
|
|
118
|
-
box-shadow: 0 rem(3px) 0 0 $
|
|
119
|
-
color: $
|
|
118
|
+
box-shadow: 0 rem(3px) 0 0 $text-primary;
|
|
119
|
+
color: $text-primary;
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
//OVERFLOW STYLING
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
@use '../../utilities/focus-outline' as *;
|
|
16
16
|
@use '../../utilities/component-reset' as *;
|
|
17
17
|
@use '../../utilities/visually-hidden' as *;
|
|
18
|
+
@use '../../utilities/high-contrast-mode' as *;
|
|
18
19
|
@use '../../utilities/skeleton' as *;
|
|
19
20
|
@use '../../utilities/convert' as *;
|
|
20
21
|
@use '../../config' as *;
|
|
@@ -109,16 +110,7 @@ $radio-border-width: 1px !default;
|
|
|
109
110
|
transform: scale(0.5);
|
|
110
111
|
|
|
111
112
|
// Allow the selected button to be seen in Windows HCM for IE/Edge
|
|
112
|
-
@
|
|
113
|
-
// Utilize a system color variable to accommodate any user HCM theme
|
|
114
|
-
background-color: WindowText;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
// Firefox only HCM solution
|
|
118
|
-
@media screen and (prefers-contrast) {
|
|
119
|
-
// Utilize a system color variable to accommodate any user HCM theme
|
|
120
|
-
border: 2px solid WindowText;
|
|
121
|
-
}
|
|
113
|
+
@include high-contrast-mode('icon-fill');
|
|
122
114
|
}
|
|
123
115
|
}
|
|
124
116
|
|