|
2 | 2 |
|
3 | 3 | .str-chat { |
4 | 4 | /* The margin applied to every attachment in the attachment list */ |
5 | | - --str-chat__attachment-margin: var(--spacing-xs); |
6 | | - /* The border radius used for the borders of the component */ |
7 | | - --str-chat__attachment-list-border-radius: 0; |
8 | | - |
9 | | - /* The text/icon color of the component */ |
10 | | - --str-chat__attachment-list-color: var(--text-primary); |
11 | | - |
12 | | - /* The background color of the component */ |
13 | | - --str-chat__attachment-list-background-color: transparent; |
14 | | - |
15 | | - /* Top border of the component */ |
16 | | - --str-chat__attachment-list-border-block-start: none; |
17 | | - |
18 | | - /* Bottom border of the component */ |
19 | | - --str-chat__attachment-list-border-block-end: none; |
20 | | - |
21 | | - /* Left (right in RTL layout) border of the component */ |
22 | | - --str-chat__attachment-list-border-inline-start: none; |
23 | | - |
24 | | - /* Right (left in RTL layout) border of the component */ |
25 | | - --str-chat__attachment-list-border-inline-end: none; |
26 | | - |
27 | | - /* Box shadow applied to the component */ |
28 | | - --str-chat__attachment-list-box-shadow: none; |
29 | | - |
30 | | - /* The border radius used for the borders of image/video attachments (images/videos uploaded from files, scraped media, GIFs) */ |
31 | | - --str-chat__image-attachment-border-radius: calc( |
32 | | - var(--str-chat__message-bubble-border-radius) - var(--str-chat__attachment-margin) |
33 | | - ); |
34 | | - |
35 | | - /* The text/icon color of image/video attachments (images/videos uploaded from files, scraped media, GIFs) */ |
36 | | - --str-chat__image-attachment-color: var(--text-primary); |
37 | | - |
38 | | - /* The background color of image/video attachments (images/videos uploaded from files, scraped media, GIFs) */ |
39 | | - --str-chat__image-attachment-background-color: transparent; |
40 | | - |
41 | | - /* Top border of image/video attachments (images/videos uploaded from files, scraped media, GIFs) */ |
42 | | - --str-chat__image-attachment-border-block-start: none; |
43 | | - |
44 | | - /* Bottom border of image/video attachments (images/videos uploaded from files, scraped media, GIFs) */ |
45 | | - --str-chat__image-attachment-border-block-end: none; |
46 | | - |
47 | | - /* Left (right in RTL layout) border of image/video attachments (images/videos uploaded from files, scraped media, GIFs) */ |
48 | | - --str-chat__image-attachment-border-inline-start: none; |
49 | | - |
50 | | - /* Right (left in RTL layout) border of image/video attachments (images/videos uploaded from files, scraped media, GIFs) */ |
51 | | - --str-chat__image-attachment-border-inline-end: none; |
52 | | - |
53 | | - /* Box shadow applied to image/video attachments (images/videos uploaded from files, scraped media, GIFs) */ |
54 | | - --str-chat__image-attachment-box-shadow: none; |
55 | | - |
56 | | - /* The border radius used for the borders of image gallery attachments */ |
57 | | - --str-chat__image-gallery-attachment-border-radius: calc( |
58 | | - var(--str-chat__message-bubble-border-radius) - var(--str-chat__attachment-margin) |
59 | | - ); |
60 | | - |
61 | | - /* The text/icon color of image gallery attachments */ |
62 | | - --str-chat__image-gallery-attachment-color: var(--text-primary); |
63 | | - |
64 | | - /* The background color of image gallery attachments */ |
65 | | - --str-chat__image-gallery-attachment-background-color: transparent; |
66 | | - |
67 | | - /* Top border of image gallery attachments */ |
68 | | - --str-chat__image-gallery-attachment-border-block-start: none; |
69 | | - |
70 | | - /* Bottom border of image gallery attachments */ |
71 | | - --str-chat__image-gallery-attachment-border-block-end: none; |
72 | | - |
73 | | - /* Left (right in RTL layout) border of image gallery attachments */ |
74 | | - --str-chat__image-gallery-attachment-border-inline-start: none; |
75 | | - |
76 | | - /* Right (left in RTL layout) border of image gallery attachments */ |
77 | | - --str-chat__image-gallery-attachment-border-inline-end: none; |
78 | | - |
79 | | - /* Box shadow applied to image gallery attachments */ |
80 | | - --str-chat__image-gallery-attachment-box-shadow: none; |
81 | | - |
82 | | - /* The border radius used for the borders of file attachments */ |
83 | | - --str-chat__file-attachment-border-radius: calc( |
84 | | - var(--str-chat__message-bubble-border-radius) - var(--str-chat__attachment-margin) |
85 | | - ); |
86 | | - |
87 | | - /* The text/icon color of file attachments */ |
88 | | - --str-chat__file-attachment-color: var(--text-primary); |
89 | | - |
90 | | - /* The background color of file attachments */ |
91 | | - --str-chat__file-attachment-background-color: transparent; |
92 | | - |
93 | | - /* Top border of file attachments */ |
94 | | - --str-chat__file-attachment-border-block-start: none; |
95 | | - |
96 | | - /* Bottom border of file attachments */ |
97 | | - --str-chat__file-attachment-border-block-end: none; |
98 | | - |
99 | | - /* Left (right in RTL layout) border of file attachments */ |
100 | | - --str-chat__file-attachment-border-inline-start: none; |
101 | | - |
102 | | - /* Right (left in RTL layout) border of file attachments */ |
103 | | - --str-chat__file-attachment-border-inline-end: none; |
104 | | - |
105 | | - /* Box shadow applied to file attachments */ |
106 | | - --str-chat__file-attachment-box-shadow: none; |
| 5 | + --str-chat__attachment-margin: var(--str-chat__spacing-xs); |
107 | 6 | } |
108 | 7 |
|
109 | 8 | .str-chat__attachment-list { |
|
118 | 17 | display: flex; |
119 | 18 | flex-direction: column; |
120 | 19 | align-items: flex-start; |
121 | | - gap: var(--spacing-xs); |
| 20 | + gap: var(--str-chat__spacing-xs); |
122 | 21 | min-width: 0; |
123 | 22 |
|
124 | | - @include utils.component-layer-overrides('attachment-list'); |
| 23 | + background: transparent; |
| 24 | + color: var(--str-chat__text-primary); |
125 | 25 |
|
126 | 26 | .str-chat__message-attachment--image, |
127 | 27 | .str-chat__message-attachment--video { |
128 | | - @include utils.component-layer-overrides('image-attachment'); |
| 28 | + background: transparent; |
| 29 | + color: var(--str-chat__text-primary); |
| 30 | + border-radius: calc( |
| 31 | + var(--str-chat__message-bubble-radius-group-bottom) - var( |
| 32 | + --str-chat__attachment-margin |
| 33 | + ) |
| 34 | + ); |
129 | 35 | } |
130 | 36 |
|
131 | 37 | .str-chat__message-attachment { |
132 | 38 | overflow: hidden; |
133 | 39 | background-color: var(--chat-bg-attachment); |
134 | | - border-radius: var(--message-bubble-radius-attachment); |
| 40 | + border-radius: var(--str-chat__message-bubble-radius-attachment); |
135 | 41 |
|
136 | 42 | // Many classes to increase selector specificity |
137 | 43 | .str-chat__button-play.str-chat__button--secondary.str-chat__button--outline { |
|
232 | 138 |
|
233 | 139 | .str-chat__gallery .str-chat__message-attachment--svg-image, |
234 | 140 | .str-chat__message-attachment--image.str-chat__message-attachment--svg-image { |
235 | | - $padding: var(--space-24); |
| 141 | + $padding: var(--str-chat__space-24); |
236 | 142 | padding: $padding; |
237 | 143 |
|
238 | 144 | img { |
|
246 | 152 | .str-chat__message-attachment-file--item, |
247 | 153 | .str-chat__message-attachment-audio-widget { |
248 | 154 | @include utils.flex-row-center; |
249 | | - padding: var(--spacing-sm); |
250 | | - column-gap: var(--spacing-sm); |
| 155 | + padding: var(--str-chat__spacing-sm); |
| 156 | + column-gap: var(--str-chat__spacing-sm); |
251 | 157 |
|
252 | 158 | .str-chat__message-attachment-file--item__info, |
253 | 159 | .str-chat__message-attachment-audio-widget--text { |
|
256 | 162 | flex-direction: column; |
257 | 163 | align-items: flex-start; |
258 | 164 | justify-content: center; |
259 | | - row-gap: var(--space-2); |
| 165 | + row-gap: var(--str-chat__space-2); |
260 | 166 | min-width: 0; |
261 | | - line-height: var(--typography-line-height-tight); |
| 167 | + line-height: var(--str-chat__typography-line-height-tight); |
262 | 168 |
|
263 | 169 | .str-chat__message-attachment-file--item__first-row, |
264 | 170 | .str-chat__message-attachment-audio-widget--text-first-row { |
265 | 171 | width: 100%; |
266 | 172 | display: flex; |
267 | 173 | align-items: center; |
268 | 174 | justify-content: space-between; |
269 | | - column-gap: var(--space-8); |
270 | | - font-weight: var(--typography-font-weight-semi-bold); |
271 | | - font-size: var(--typography-font-size-sm); |
| 175 | + column-gap: var(--str-chat__space-8); |
| 176 | + font-weight: var(--str-chat__typography-font-weight-semi-bold); |
| 177 | + font-size: var(--str-chat__typography-font-size-sm); |
272 | 178 |
|
273 | 179 | .str-chat__message-attachment-file--item__name, |
274 | 180 | .str-chat__message-attachment-audio-widget--title { |
|
278 | 184 | } |
279 | 185 |
|
280 | 186 | .str-chat__message-attachment-file--item__data { |
281 | | - font-size: var(--typography-font-size-xs); |
| 187 | + font-size: var(--str-chat__typography-font-size-xs); |
282 | 188 | } |
283 | 189 | } |
284 | 190 | } |
285 | 191 |
|
286 | 192 | .str-chat__message-attachment-file--item { |
287 | | - @include utils.component-layer-overrides('file-attachment'); |
| 193 | + background: transparent; |
| 194 | + color: var(--str-chat__text-primary); |
| 195 | + border-radius: calc( |
| 196 | + var(--str-chat__message-bubble-radius-group-bottom) - var( |
| 197 | + --str-chat__attachment-margin |
| 198 | + ) |
| 199 | + ); |
288 | 200 | } |
289 | 201 |
|
290 | 202 | .str-chat__message-attachment-with-actions.str-chat__message-attachment--giphy { |
291 | 203 | } |
292 | 204 |
|
293 | 205 | .str-chat__message-attachment-download-icon { |
294 | | - --str-chat-icon-height: var(--size-16); |
| 206 | + --str-chat-icon-height: var(--str-chat__size-16); |
295 | 207 | } |
296 | 208 | } |
297 | 209 |
|
|
310 | 222 |
|
311 | 223 | .str-chat__message-bubble { |
312 | 224 | border: 1px solid var(--chat-border); |
313 | | - box-shadow: var(--background-core-elevation-0); |
| 225 | + box-shadow: var(--str-chat__background-core-elevation-0); |
314 | 226 | } |
315 | 227 |
|
316 | 228 | .str-chat__message-attachment { |
|
329 | 241 | .str-chat__message--other { |
330 | 242 | &.str-chat__message--has-single-attachment.str-chat__message--has-no-text |
331 | 243 | .str-chat__message-attachment { |
332 | | - border-end-start-radius: var(--message-bubble-radius-tail); |
| 244 | + border-end-start-radius: var(--str-chat__message-bubble-radius-tail); |
333 | 245 | } |
334 | 246 | } |
335 | 247 |
|
336 | 248 | .str-chat__message--me { |
337 | 249 | &.str-chat__message--has-single-attachment.str-chat__message--has-no-text |
338 | 250 | .str-chat__message-attachment { |
339 | | - border-end-end-radius: var(--message-bubble-radius-tail); |
| 251 | + border-end-end-radius: var(--str-chat__message-bubble-radius-tail); |
340 | 252 | } |
341 | 253 | } |
342 | 254 | } |
|
345 | 257 | .str-chat__li--middle { |
346 | 258 | &.str-chat__message--has-single-attachment.str-chat__message--has-no-text |
347 | 259 | .str-chat__message-attachment { |
348 | | - border-radius: var(--message-bubble-radius-group-middle); |
| 260 | + border-radius: var(--str-chat__message-bubble-radius-group-middle); |
349 | 261 | } |
350 | 262 | } |
351 | 263 |
|
|
0 commit comments