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