|
2 | 2 |
|
3 | 3 | .Avatar { |
4 | 4 | // stylelint-disable -- Polaris component custom properties |
5 | | - --pc-avatar-extra-small-size: 24px; |
6 | | - --pc-avatar-small-size: 32px; |
7 | | - --pc-avatar-medium-size: 40px; |
8 | | - --pc-avatar-large-size: 60px; |
| 5 | + --pc-avatar-extra-small-size: 20px; |
| 6 | + --pc-avatar-small-size: 24px; |
| 7 | + --pc-avatar-medium-size: 28px; |
| 8 | + --pc-avatar-large-size: 32px; |
9 | 9 | --pc-avatar-xl-size-experimental: 40px; |
10 | 10 | --pc-avatar-2xl-size-experimental: 54px; |
11 | 11 | // stylelint-enable |
|
15 | 15 | // stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY |
16 | 16 | min-width: var(--pc-avatar-extra-small-size); |
17 | 17 | max-width: 100%; |
18 | | - background: var(--p-color-bg-strong); |
19 | | - color: var(--p-color-icon-subdued); |
| 18 | + background: var(--p-color-avatar-background-experimental); |
| 19 | + color: var(--p-color-avatar-color-experimental); |
20 | 20 | user-select: none; |
21 | 21 |
|
22 | | - #{$se23} & { |
23 | | - // stylelint-disable -- se23 overrides |
24 | | - --pc-avatar-extra-small-size: 20px; |
25 | | - --pc-avatar-small-size: 24px; |
26 | | - --pc-avatar-medium-size: 28px; |
27 | | - --pc-avatar-large-size: 32px; |
28 | | - // stylelint-enable |
29 | | - background: var(--p-color-avatar-background-experimental); |
30 | | - color: var(--p-color-avatar-color-experimental); |
31 | | - |
32 | | - &.imageHasLoaded { |
33 | | - background: transparent; |
34 | | - } |
| 22 | + &.imageHasLoaded { |
| 23 | + background: transparent; |
35 | 24 | } |
36 | 25 |
|
37 | 26 | @media (forced-colors: active) { |
|
56 | 45 | } |
57 | 46 |
|
58 | 47 | .shapeRound { |
59 | | - border-radius: var(--p-border-radius-full); |
60 | | - |
61 | | - #{$se23} & { |
62 | | - border-radius: var(--p-border-radius-05); |
63 | | - } |
| 48 | + border-radius: var(--p-border-radius-05); |
64 | 49 | } |
65 | 50 |
|
66 | 51 | .shapeSquare { |
67 | 52 | border-radius: var(--p-border-radius-05); |
68 | 53 |
|
69 | 54 | .Text { |
70 | 55 | font-size: var(--p-font-size-200); |
71 | | - font-weight: var(--p-font-weight-semibold); |
72 | | - |
73 | | - #{$se23} & { |
74 | | - font-weight: var(--p-font-weight-regular); |
75 | | - } |
| 56 | + font-weight: var(--p-font-weight-regular); |
76 | 57 | } |
77 | 58 |
|
78 | 59 | .long { |
|
87 | 68 | .sizeExtraSmall { |
88 | 69 | // stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY |
89 | 70 | width: var(--pc-avatar-extra-small-size); |
90 | | - |
91 | | - #{$se23} & { |
92 | | - // stylelint-disable-next-line -- se23 overrides |
93 | | - border-radius: 4px; |
94 | | - } |
| 71 | + // stylelint-disable-next-line -- se23 overrides |
| 72 | + border-radius: 4px; |
95 | 73 | } |
96 | 74 |
|
97 | 75 | .sizeSmall { |
98 | 76 | // stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY |
99 | 77 | width: var(--pc-avatar-small-size); |
100 | | - |
101 | | - #{$se23} & { |
102 | | - // stylelint-disable-next-line -- se23 overrides |
103 | | - border-radius: 6px; |
104 | | - } |
| 78 | + // stylelint-disable-next-line -- se23 overrides |
| 79 | + border-radius: 6px; |
105 | 80 | } |
106 | 81 |
|
107 | 82 | .sizeMedium { |
108 | 83 | // stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY |
109 | 84 | width: var(--pc-avatar-medium-size); |
110 | | - |
111 | | - #{$se23} & { |
112 | | - // stylelint-disable-next-line -- se23 overrides |
113 | | - border-radius: 6px; |
114 | | - } |
| 85 | + // stylelint-disable-next-line -- se23 overrides |
| 86 | + border-radius: 6px; |
115 | 87 | } |
116 | 88 |
|
117 | 89 | .sizeLarge { |
118 | 90 | // stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY |
119 | 91 | width: var(--pc-avatar-large-size); |
120 | | - |
121 | | - #{$se23} & { |
122 | | - // stylelint-disable-next-line -- se23 overrides |
123 | | - border-radius: 8px; |
124 | | - } |
| 92 | + // stylelint-disable-next-line -- se23 overrides |
| 93 | + border-radius: 8px; |
125 | 94 | } |
126 | 95 |
|
127 | 96 | .sizeXl-experimental { |
128 | 97 | // stylelint-disable-next-line -- se23 overrides |
129 | 98 | width: var(--pc-avatar-xl-size-experimental); |
130 | | - |
131 | | - #{$se23} & { |
132 | | - // stylelint-disable-next-line -- se23 overrides |
133 | | - border-radius: 8px; |
134 | | - } |
| 99 | + // stylelint-disable-next-line -- se23 overrides |
| 100 | + border-radius: 8px; |
135 | 101 | } |
136 | 102 |
|
137 | 103 | .size2xl-experimental { |
138 | 104 | // stylelint-disable-next-line -- se23 overrides |
139 | 105 | width: var(--pc-avatar-2xl-size-experimental); |
140 | | - |
141 | | - #{$se23} & { |
142 | | - // stylelint-disable-next-line -- se23 overrides |
143 | | - border-radius: 10px; |
144 | | - } |
| 106 | + // stylelint-disable-next-line -- se23 overrides |
| 107 | + border-radius: 10px; |
145 | 108 | } |
146 | 109 |
|
147 | 110 | .styleOne { |
148 | | - // stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY |
149 | | - color: rgba(61, 40, 0, 1); |
150 | | - // stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY |
151 | | - background: rgba(255, 201, 107, 1); |
152 | | - |
153 | | - #{$se23} & { |
154 | | - background: var(--p-color-avatar-style-one-background-experimental); |
155 | | - color: var(--p-color-avatar-style-one-color-experimental); |
156 | | - } |
| 111 | + background: var(--p-color-avatar-style-one-background-experimental); |
| 112 | + color: var(--p-color-avatar-style-one-color-experimental); |
157 | 113 |
|
158 | | - #{$se23} & svg, |
159 | | - #{$se23} & text { |
| 114 | + svg, |
| 115 | + text { |
160 | 116 | color: var(--p-color-avatar-style-one-color-experimental); |
161 | 117 | } |
162 | 118 | } |
163 | 119 |
|
164 | 120 | .styleTwo { |
165 | | - // stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY |
166 | | - color: rgba(73, 11, 28, 1); |
167 | | - // stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY |
168 | | - background: rgba(255, 196, 176, 1); |
| 121 | + background: var(--p-color-avatar-style-two-background-experimental); |
| 122 | + color: var(--p-color-avatar-style-two-color-experimental); |
169 | 123 |
|
170 | | - #{$se23} & { |
171 | | - background: var(--p-color-avatar-style-two-background-experimental); |
172 | | - color: var(--p-color-avatar-style-two-color-experimental); |
173 | | - } |
174 | | - |
175 | | - #{$se23} & svg, |
176 | | - #{$se23} & text { |
| 124 | + svg, |
| 125 | + text { |
177 | 126 | color: var(--p-color-avatar-style-two-color-experimental); |
178 | 127 | } |
179 | 128 | } |
180 | 129 |
|
181 | 130 | .styleThree { |
182 | | - // stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY |
183 | | - color: rgba(0, 47, 25, 1); |
184 | | - // stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY |
185 | | - background: rgba(146, 230, 181, 1); |
186 | | - |
187 | | - #{$se23} & { |
188 | | - background: var(--p-color-avatar-style-three-background-experimental); |
189 | | - color: var(--p-color-avatar-style-three-color-experimental); |
190 | | - } |
| 131 | + background: var(--p-color-avatar-style-three-background-experimental); |
| 132 | + color: var(--p-color-avatar-style-three-color-experimental); |
191 | 133 |
|
192 | | - #{$se23} & svg, |
193 | | - #{$se23} & text { |
| 134 | + svg, |
| 135 | + text { |
194 | 136 | color: var(--p-color-avatar-style-three-color-experimental); |
195 | 137 | } |
196 | 138 | } |
197 | 139 |
|
198 | 140 | .styleFour { |
199 | | - // stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY |
200 | | - color: rgba(0, 45, 45, 1); |
201 | | - // stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY |
202 | | - background: rgba(145, 224, 214, 1); |
203 | | - |
204 | | - #{$se23} & { |
205 | | - background: var(--p-color-avatar-style-four-background-experimental); |
206 | | - color: var(--p-color-avatar-style-four-color-experimental); |
207 | | - } |
| 141 | + background: var(--p-color-avatar-style-four-background-experimental); |
| 142 | + color: var(--p-color-avatar-style-four-color-experimental); |
208 | 143 |
|
209 | | - #{$se23} & svg, |
210 | | - #{$se23} & text { |
| 144 | + svg, |
| 145 | + text { |
211 | 146 | color: var(--p-color-avatar-style-four-color-experimental); |
212 | 147 | } |
213 | 148 | } |
214 | 149 |
|
215 | 150 | .styleFive { |
216 | | - // stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY |
217 | | - color: rgba(79, 14, 31, 1); |
218 | | - // stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY |
219 | | - background: rgba(253, 201, 208, 1); |
220 | | - |
221 | | - #{$se23} & { |
222 | | - background: var(--p-color-avatar-style-five-background-experimental); |
223 | | - color: var(--p-color-avatar-style-five-color-experimental); |
224 | | - } |
| 151 | + background: var(--p-color-avatar-style-five-background-experimental); |
| 152 | + color: var(--p-color-avatar-style-five-color-experimental); |
225 | 153 |
|
226 | | - #{$se23} & svg, |
227 | | - #{$se23} & text { |
| 154 | + svg, |
| 155 | + text { |
228 | 156 | color: var(--p-color-avatar-style-five-color-experimental); |
229 | 157 | } |
230 | 158 | } |
|
0 commit comments