|
10 | 10 | .Section:not(:first-child) { |
11 | 11 | border-top: var(--p-border-divider); |
12 | 12 |
|
13 | | - // stylelint-disable-next-line selector-max-class, selector-max-combinators, selector-max-specificity |
| 13 | + // stylelint-disable-next-line selector-max-class, selector-max-combinators, selector-max-specificity -- generated by polaris-migrator DO NOT COPY |
14 | 14 | > .Section-withoutTitle .Actions { |
15 | 15 | padding-top: var(--p-space-2); |
16 | 16 | } |
|
25 | 25 |
|
26 | 26 | .ActionList, |
27 | 27 | .Section:first-child { |
28 | | - // stylelint-disable-next-line selector-max-class, selector-max-combinators, selector-max-specificity |
| 28 | + // stylelint-disable-next-line selector-max-class, selector-max-combinators, selector-max-specificity -- generated by polaris-migrator DO NOT COPY |
29 | 29 | > .Section-withoutTitle .Actions { |
30 | 30 | border-top: none; |
31 | 31 | padding-top: var(--p-space-2); |
32 | 32 | } |
33 | 33 | } |
34 | 34 |
|
35 | 35 | .ActionList .Section { |
36 | | - // stylelint-disable-next-line selector-max-class, selector-max-combinators |
| 36 | + // stylelint-disable-next-line selector-max-class, selector-max-combinators -- generated by polaris-migrator DO NOT COPY |
37 | 37 | .Actions { |
38 | 38 | padding-top: 0; |
39 | 39 | } |
40 | 40 | } |
41 | 41 |
|
42 | 42 | .Item { |
| 43 | + // stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY |
43 | 44 | --pc-action-list-image-size: 20px; |
| 45 | + // stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY |
44 | 46 | --pc-action-list-item-min-height: var(--p-space-10); |
| 47 | + // stylelint-disable -- generated by polaris-migrator DO NOT COPY |
45 | 48 | --pc-action-list-item-vertical-padding: calc( |
46 | 49 | (var(--pc-action-list-item-min-height) - var(--p-font-line-height-2)) / 2 |
47 | 50 | ); |
| 51 | + // stylelint-enable |
| 52 | + // stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY |
48 | 53 | @include unstyled-button; |
| 54 | + // stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY |
49 | 55 | @include focus-ring; |
| 56 | + // stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY |
50 | 57 | display: block; |
| 58 | + // stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY |
51 | 59 | width: 100%; |
| 60 | + // stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY |
52 | 61 | min-height: var(--pc-action-list-item-min-height); |
53 | 62 | text-align: left; |
54 | 63 | text-decoration: none; |
55 | 64 | cursor: pointer; |
| 65 | + // stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY |
56 | 66 | padding: var(--pc-action-list-item-vertical-padding) var(--p-space-2); |
57 | 67 | border-radius: var(--p-border-radius-1); |
58 | 68 | border-top: var(--p-border-width-1) solid transparent; |
59 | 69 | color: inherit; |
| 70 | + // stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY |
60 | 71 | @media (forced-colors: active) { |
61 | 72 | border: var(--p-border-width-1) solid transparent; |
62 | 73 | } |
|
68 | 79 | } |
69 | 80 |
|
70 | 81 | &:active { |
| 82 | + // stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY |
71 | 83 | @include recolor-icon(var(--p-interactive)); |
72 | 84 | background-color: var(--p-surface-pressed); |
73 | 85 | } |
74 | 86 |
|
75 | 87 | &:focus:not(:active) { |
| 88 | + // stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY |
76 | 89 | @include focus-ring($style: 'focused'); |
77 | 90 | outline: var(--p-border-width-3) solid transparent; |
78 | 91 | } |
|
82 | 95 | } |
83 | 96 |
|
84 | 97 | &.active { |
| 98 | + // stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY |
85 | 99 | @include recolor-icon(var(--p-interactive)); |
86 | 100 | background-color: var(--p-surface-selected); |
87 | 101 |
|
88 | 102 | &::before { |
| 103 | + // stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY |
89 | 104 | @include list-selected-indicator; |
90 | 105 | } |
91 | 106 | } |
92 | 107 |
|
93 | 108 | &.destructive { |
| 109 | + // stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY |
94 | 110 | @include recolor-icon(var(--p-icon-critical)); |
95 | 111 | color: var(--p-interactive-critical); |
96 | 112 |
|
97 | 113 | &:hover { |
98 | 114 | background-color: var(--p-surface-critical-subdued-hovered); |
99 | 115 | } |
100 | 116 |
|
101 | | - // stylelint-disable-next-line selector-max-class |
| 117 | + // stylelint-disable-next-line selector-max-class -- generated by polaris-migrator DO NOT COPY |
102 | 118 | &:active, |
103 | 119 | &.active { |
104 | 120 | background-color: var(--p-surface-critical-subdued-pressed); |
|
109 | 125 | background-image: none; |
110 | 126 | color: var(--p-text-disabled); |
111 | 127 |
|
112 | | - // stylelint-disable-next-line selector-max-class |
| 128 | + // stylelint-disable-next-line selector-max-class -- generated by polaris-migrator DO NOT COPY |
113 | 129 | .Prefix, |
114 | 130 | .Suffix { |
| 131 | + // stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY |
115 | 132 | @include recolor-icon(var(--p-icon-disabled)); |
116 | 133 | } |
117 | 134 | } |
118 | 135 | } |
119 | 136 |
|
120 | 137 | .Content { |
| 138 | + // stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY |
121 | 139 | display: flex; |
| 140 | + // stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY |
122 | 141 | align-items: center; |
123 | 142 | } |
124 | 143 |
|
125 | 144 | .Prefix { |
| 145 | + // stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY |
126 | 146 | @include recolor-icon(var(--p-icon)); |
| 147 | + // stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY |
127 | 148 | display: flex; |
| 149 | + // stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY |
128 | 150 | flex: 0 0 auto; |
| 151 | + // stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY |
129 | 152 | justify-content: center; |
| 153 | + // stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY |
130 | 154 | align-items: center; |
| 155 | + // stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY |
131 | 156 | height: var(--pc-action-list-image-size); |
| 157 | + // stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY |
132 | 158 | width: var(--pc-action-list-image-size); |
| 159 | + // stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY |
133 | 160 | border-radius: var(--p-border-radius-base); |
134 | 161 |
|
135 | 162 | // We need the negative margin to ensure that the image does not set |
136 | 163 | // the minimum height of the action item. |
| 164 | + // stylelint-disable -- generated by polaris-migrator DO NOT COPY |
137 | 165 | margin: calc(-0.5 * var(--pc-action-list-image-size)) var(--p-space-4) |
138 | 166 | calc(-0.5 * var(--pc-action-list-image-size)) 0; |
| 167 | + // stylelint-enable |
139 | 168 | background-size: cover; |
140 | 169 | background-position: center center; |
141 | 170 | } |
142 | 171 |
|
143 | 172 | .Suffix { |
| 173 | + // stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY |
144 | 174 | @include recolor-icon(var(--p-icon)); |
145 | 175 | margin-left: var(--p-space-4); |
146 | 176 | } |
147 | 177 |
|
148 | 178 | .ContentBlock, |
149 | 179 | .ContentBlockInner { |
| 180 | + // stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY |
150 | 181 | display: block; |
151 | 182 | } |
152 | 183 |
|
153 | 184 | .Text { |
| 185 | + // stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY |
154 | 186 | @include layout-flex-fix; |
| 187 | + // stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY |
155 | 188 | flex: 1 1 auto; |
156 | 189 | } |
0 commit comments