|
3 | 3 | .str-chat { |
4 | 4 | /* The margin applied to every attachment in the attachment list */ |
5 | 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; |
107 | 6 | } |
108 | 7 |
|
109 | 8 | .str-chat__attachment-list { |
|
121 | 20 | gap: var(--spacing-xs); |
122 | 21 | min-width: 0; |
123 | 22 |
|
124 | | - @include utils.component-layer-overrides('attachment-list'); |
| 23 | + background: transparent; |
| 24 | + color: var(--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(--text-primary); |
| 30 | + border-radius: calc(var(--message-bubble-radius-group-bottom) - var(--str-chat__attachment-margin)); |
129 | 31 | } |
130 | 32 |
|
131 | 33 | .str-chat__message-attachment { |
|
284 | 186 | } |
285 | 187 |
|
286 | 188 | .str-chat__message-attachment-file--item { |
287 | | - @include utils.component-layer-overrides('file-attachment'); |
| 189 | + background: transparent; |
| 190 | + color: var(--text-primary); |
| 191 | + border-radius: calc(var(--message-bubble-radius-group-bottom) - var(--str-chat__attachment-margin)); |
288 | 192 | } |
289 | 193 |
|
290 | 194 | .str-chat__message-attachment-with-actions.str-chat__message-attachment--giphy { |
|
0 commit comments