|
1 | 1 | @import '../../styles/common'; |
2 | 2 |
|
3 | 3 | @mixin banner-variants($in-page) { |
4 | | - // stylelint-disable -- Polaris component custom properties |
5 | | - --pc-banner-background: var(--p-background); |
6 | | - --pc-banner-border: var(--p-banner-border-default); |
7 | | - // stylelint-enable |
8 | | - transition: box-shadow var(--p-duration-200) var(--p-ease); |
9 | | - transition-delay: var(--p-duration-100); |
10 | | - // stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY |
11 | | - box-shadow: var(--pc-banner-border); |
12 | | - outline: var(--p-border-width-1) solid transparent; |
| 4 | + border: var(--p-border-width-1) solid var(--p-border-neutral-subdued); |
| 5 | + background-color: var(--p-background); |
13 | 6 |
|
14 | 7 | @if $in-page { |
15 | 8 | // stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY |
16 | 9 | @include focus-ring('wide'); |
17 | 10 | border-radius: var(--p-border-radius-2); |
18 | | - // stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY |
19 | | - background-color: var(--pc-banner-background); |
| 11 | + |
| 12 | + @media #{$p-breakpoints-sm-down} { |
| 13 | + border-radius: 0; |
| 14 | + border-width: var(--p-border-width-1) 0; |
| 15 | + } |
20 | 16 | } @else { |
21 | 17 | // stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY |
22 | 18 | @include focus-ring('base'); |
23 | 19 | border-radius: var(--p-border-radius-1); |
24 | | - // stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY |
25 | | - background-color: var(--pc-banner-background); |
26 | 20 | } |
27 | 21 |
|
28 | 22 | &:focus { |
29 | 23 | outline: none; |
30 | 24 | } |
31 | 25 |
|
32 | 26 | &.keyFocused { |
33 | | - // stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY |
34 | | - box-shadow: var(--pc-banner-border); |
35 | 27 | // stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY |
36 | 28 | @include focus-ring('wide', $style: 'focused'); |
37 | 29 | } |
38 | 30 |
|
39 | 31 | &.statusSuccess { |
40 | | - // stylelint-disable -- Polaris component custom properties |
41 | | - --pc-banner-background: var(--p-surface-success-subdued); |
42 | | - --pc-banner-border: var(--p-banner-border-success); |
43 | | - // stylelint-enable |
| 32 | + border-color: var(--p-border-success-subdued); |
| 33 | + background-color: var(--p-surface-success-subdued); |
44 | 34 | } |
45 | 35 |
|
46 | 36 | &.statusInfo { |
47 | | - // stylelint-disable -- Polaris component custom properties |
48 | | - --pc-banner-background: var(--p-surface-highlight-subdued); |
49 | | - --pc-banner-border: var(--p-banner-border-highlight); |
50 | | - // stylelint-enable |
| 37 | + border-color: var(--p-border-highlight-subdued); |
| 38 | + background-color: var(--p-surface-highlight-subdued); |
51 | 39 | } |
52 | 40 |
|
53 | 41 | &.statusWarning { |
54 | | - // stylelint-disable -- Polaris component custom properties |
55 | | - --pc-banner-background: var(--p-surface-warning-subdued); |
56 | | - --pc-banner-border: var(--p-banner-border-warning); |
57 | | - // stylelint-enable |
| 42 | + border-color: var(--p-border-warning-subdued); |
| 43 | + background-color: var(--p-surface-warning-subdued); |
58 | 44 | } |
59 | 45 |
|
60 | 46 | &.statusCritical { |
61 | | - // stylelint-disable -- Polaris component custom properties |
62 | | - --pc-banner-background: var(--p-surface-critical-subdued); |
63 | | - --pc-banner-border: var(--p-banner-border-critical); |
64 | | - // stylelint-enable |
| 47 | + border-color: var(--p-border-critical-subdued); |
| 48 | + background-color: var(--p-surface-critical-subdued); |
65 | 49 | } |
66 | 50 | } |
67 | 51 |
|
|
0 commit comments