|
7 | 7 | --str-chat__attachment-list-border-radius: 0; |
8 | 8 |
|
9 | 9 | /* The text/icon color of the component */ |
10 | | - --str-chat__attachment-list-color: var(--str-chat__text-color); |
| 10 | + --str-chat__attachment-list-color: var(--text-primary); |
11 | 11 |
|
12 | 12 | /* The background color of the component */ |
13 | 13 | --str-chat__attachment-list-background-color: transparent; |
|
33 | 33 | ); |
34 | 34 |
|
35 | 35 | /* The text/icon color of image/video attachments (images/videos uploaded from files, scraped media, GIFs) */ |
36 | | - --str-chat__image-attachment-color: var(--str-chat__text-color); |
| 36 | + --str-chat__image-attachment-color: var(--text-primary); |
37 | 37 |
|
38 | 38 | /* The background color of image/video attachments (images/videos uploaded from files, scraped media, GIFs) */ |
39 | 39 | --str-chat__image-attachment-background-color: transparent; |
|
59 | 59 | ); |
60 | 60 |
|
61 | 61 | /* The text/icon color of image gallery attachments */ |
62 | | - --str-chat__image-gallery-attachment-color: var(--str-chat__text-color); |
| 62 | + --str-chat__image-gallery-attachment-color: var(--text-primary); |
63 | 63 |
|
64 | 64 | /* The background color of image gallery attachments */ |
65 | 65 | --str-chat__image-gallery-attachment-background-color: transparent; |
|
79 | 79 | /* Box shadow applied to image gallery attachments */ |
80 | 80 | --str-chat__image-gallery-attachment-box-shadow: none; |
81 | 81 |
|
82 | | - /* Overlay color applied to image gallery attachments */ |
83 | | - --str-chat__image-gallery-attachment-overlay: var(--str-chat__secondary-overlay-color); |
84 | | - |
85 | | - /* Text colors used on overlay applied to image gallery attachments */ |
86 | | - --str-chat__image-gallery-attachment-overlay-text-color: var( |
87 | | - --str-chat__secondary-overlay-text-color |
88 | | - ); |
89 | | - |
90 | | - /* The border radius used for the borders of card attachments */ |
91 | | - --str-chat__card-attachment-border-radius: 0; |
92 | | - |
93 | | - /* The text/icon color of card attachments */ |
94 | | - --str-chat__card-attachment-color: var(--str-chat__text-color); |
95 | | - |
96 | | - /* The text color of links inside card attachments */ |
97 | | - --str-chat__card-attachment-link-color: var(--str-chat__primary-color); |
98 | | - |
99 | | - /* The background color of card attachments */ |
100 | | - --str-chat__card-attachment-background-color: transparent; |
101 | | - |
102 | | - /* Top border of card attachments */ |
103 | | - --str-chat__card-attachment-border-block-start: none; |
104 | | - |
105 | | - /* Bottom border of card attachments */ |
106 | | - --str-chat__card-attachment-border-block-end: none; |
107 | | - |
108 | | - /* Left (right in RTL layout) border of card attachments */ |
109 | | - --str-chat__card-attachment-border-inline-start: none; |
110 | | - |
111 | | - /* Right (left in RTL layout) border of card attachments */ |
112 | | - --str-chat__card-attachment-border-inline-end: none; |
113 | | - |
114 | | - /* Box shadow applied to card attachments */ |
115 | | - --str-chat__card-attachment-box-shadow: none; |
116 | | - |
117 | 82 | /* The border radius used for the borders of file attachments */ |
118 | 83 | --str-chat__file-attachment-border-radius: calc( |
119 | 84 | var(--str-chat__message-bubble-border-radius) - var(--str-chat__attachment-margin) |
120 | 85 | ); |
121 | 86 |
|
122 | 87 | /* The text/icon color of file attachments */ |
123 | | - --str-chat__file-attachment-color: var(--str-chat__text-color); |
124 | | - |
125 | | - /* The text/icon color of file attachments for low emphasis texts (for example file size) */ |
126 | | - --str-chat__file-attachment-secondary-color: var(--str-chat__text-low-emphasis-color); |
| 88 | + --str-chat__file-attachment-color: var(--text-primary); |
127 | 89 |
|
128 | 90 | /* The background color of file attachments */ |
129 | 91 | --str-chat__file-attachment-background-color: transparent; |
|
142 | 104 |
|
143 | 105 | /* Box shadow applied to file attachments */ |
144 | 106 | --str-chat__file-attachment-box-shadow: none; |
145 | | - |
146 | | - /* Border radius applied to the play / pause button of audio widget */ |
147 | | - --str-chat__audio-attachment-controls-button-border-radius: var( |
148 | | - --str-chat__border-radius-circle |
149 | | - ); |
150 | | - |
151 | | - /* Text color applied to audio widget's play / pause button */ |
152 | | - --str-chat__audio-attachment-controls-button-color: var(--str-chat__text-color); |
153 | | - |
154 | | - /* Background color applied to audio widget's play / pause button */ |
155 | | - --str-chat__audio-attachment-controls-button-background-color: var( |
156 | | - --str-chat__secondary-background-color |
157 | | - ); |
158 | | - |
159 | | - /* Background color applied to audio widget's play / pause button when in pressed (active) state */ |
160 | | - --str-chat__audio-attachment-controls-button-pressed-background-color: var( |
161 | | - --str-chat__surface-color |
162 | | - ); |
163 | | - |
164 | | - /* Top border of audio widget's play / pause button */ |
165 | | - --str-chat__audio-attachment-controls-button-border-block-start: none; |
166 | | - |
167 | | - /* Bottom border of audio widget's play / pause button */ |
168 | | - --str-chat__audio-attachment-controls-button-border-block-end: none; |
169 | | - |
170 | | - /* Left (right in RTL layout) border of audio widget's play / pause button */ |
171 | | - --str-chat__audio-attachment-controls-button-border-inline-start: none; |
172 | | - |
173 | | - /* Right (left in RTL layout) border of audio widget's play / pause button */ |
174 | | - --str-chat__audio-attachment-controls-button-border-inline-end: none; |
175 | | - |
176 | | - // todo: we need to solve whether we want to keep the CSS variables. E.g. --str-chat__circle-fab-box-shadow is not declared. |
177 | | - /* Box shadow applied to audio widget's play / pause button */ |
178 | | - --str-chat__audio-attachment-controls-button-box-shadow: var( |
179 | | - --str-chat__circle-fab-box-shadow |
180 | | - ); |
181 | 107 | } |
182 | 108 |
|
183 | 109 | .str-chat__attachment-list { |
|
204 | 130 |
|
205 | 131 | .str-chat__message-attachment { |
206 | 132 | overflow: hidden; |
207 | | - background-color: var(--chat-bg-attachment-incoming); |
| 133 | + background-color: var(--chat-bg-attachment); |
208 | 134 | border-radius: var(--message-bubble-radius-attachment); |
209 | 135 |
|
210 | 136 | // Many classes to increase selector specificity |
211 | 137 | .str-chat__button-play.str-chat__button--secondary.str-chat__button--outline { |
212 | | - border-color: var(--chat-border-on-chat-incoming); |
| 138 | + border-color: var(--chat-border-on-chat); |
213 | 139 | background-color: transparent; |
214 | 140 | } |
215 | 141 | } |
|
365 | 291 | } |
366 | 292 |
|
367 | 293 | .str-chat__message-attachment-download-icon { |
368 | | - --str-chat-icon-height: calc(var(--str-chat__spacing-px) * 16); |
| 294 | + --str-chat-icon-height: var(--size-16); |
369 | 295 | } |
370 | 296 | } |
371 | 297 |
|
|
383 | 309 | } |
384 | 310 |
|
385 | 311 | .str-chat__message-bubble { |
386 | | - border: 1px solid var(--chat-border-incoming); |
| 312 | + border: 1px solid var(--chat-border); |
387 | 313 | box-shadow: var(--background-core-elevation-0); |
388 | 314 | } |
389 | 315 |
|
390 | 316 | .str-chat__message-attachment { |
391 | | - background-color: var(--chat-bg-incoming); |
| 317 | + background-color: var(--chat-bg); |
392 | 318 | } |
393 | 319 | } |
394 | 320 |
|
395 | 321 | .str-chat__message--me { |
396 | 322 | .str-chat__attachment-list { |
397 | 323 | align-items: flex-end; |
398 | 324 | } |
399 | | - |
400 | | - .str-chat__message-attachment { |
401 | | - background-color: var(--chat-bg-attachment-outgoing); |
402 | | - border-radius: var(--message-bubble-radius-attachment); |
403 | | - |
404 | | - .str-chat__button-play.str-chat__button--secondary.str-chat__button--outline { |
405 | | - border-color: var(--chat-border-on-chat-outgoing); |
406 | | - } |
407 | | - } |
408 | | - |
409 | | - &.str-chat__message--has-single-attachment.str-chat__message--has-no-text { |
410 | | - .str-chat__message-bubble { |
411 | | - border: 1px solid var(--chat-border-outgoing); |
412 | | - box-shadow: var(--background-core-elevation-0); |
413 | | - } |
414 | | - |
415 | | - .str-chat__message-attachment { |
416 | | - background-color: var(--chat-bg-outgoing); |
417 | | - } |
418 | | - } |
419 | 325 | } |
420 | 326 |
|
421 | 327 | .str-chat__li--single, |
|
0 commit comments