|
141 | 141 | /* Box shadow applied to file attachments */ |
142 | 142 | --str-chat__file-attachment-box-shadow: none; |
143 | 143 |
|
| 144 | + /* The border radius used for the borders of file attachments */ |
| 145 | + --str-chat__geolocation-attachment-border-radius: calc( |
| 146 | + var(--str-chat__message-bubble-border-radius) - var(--str-chat__attachment-margin) |
| 147 | + ); |
| 148 | + |
| 149 | + /* The text/icon color of geolocation attachments */ |
| 150 | + --str-chat__geolocation-attachment-color: var(--str-chat__text-color); |
| 151 | + |
| 152 | + /* The text/icon color of geolocation attachments for low emphasis texts (for example file size) */ |
| 153 | + --str-chat__geolocation-attachment-secondary-color: var(--str-chat__text-low-emphasis-color); |
| 154 | + |
| 155 | + /* The background color of geolocation attachments */ |
| 156 | + --str-chat__geolocation-attachment-background-color: var(--str-chat__secondary-background-color); |
| 157 | + |
| 158 | + /* Top border of geolocation attachments */ |
| 159 | + --str-chat__geolocation-attachment-border-block-start: none; |
| 160 | + |
| 161 | + /* Bottom border of geolocation attachments */ |
| 162 | + --str-chat__geolocation-attachment-border-block-end: none; |
| 163 | + |
| 164 | + /* Left (right in RTL layout) border of geolocation attachments */ |
| 165 | + --str-chat__geolocation-attachment-border-inline-start: none; |
| 166 | + |
| 167 | + /* Right (left in RTL layout) border of geolocation attachments */ |
| 168 | + --str-chat__geolocation-attachment-border-inline-end: none; |
| 169 | + |
| 170 | + /* Box shadow applied to geolocation attachments */ |
| 171 | + --str-chat__geolocation-attachment-box-shadow: none; |
| 172 | + |
144 | 173 | /* Border radius applied audio widget */ |
145 | 174 | --str-chat__audio-attachment-widget-border-radius: calc( |
146 | 175 | var(--str-chat__message-bubble-border-radius) - var(--str-chat__attachment-margin) |
|
325 | 354 | @include utils.component-layer-overrides('file-attachment'); |
326 | 355 | } |
327 | 356 |
|
| 357 | + .str-chat__message-attachment-geolocation { |
| 358 | + @include utils.component-layer-overrides('geolocation-attachment'); |
| 359 | + overflow: hidden; |
| 360 | + |
| 361 | + .str-chat__message-attachment-geolocation__placeholder { |
| 362 | + .str-chat__message-attachment-geolocation__placeholder-link { |
| 363 | + color: currentColor; |
| 364 | + } |
| 365 | + } |
| 366 | + |
| 367 | + .str-chat__message-attachment-geolocation__status { |
| 368 | + background-color: var(--str-chat__tertiary-surface-color); |
| 369 | + |
| 370 | + .str-chat__message-attachment-geolocation__status--active { |
| 371 | + .str-chat__message-attachment-geolocation__stop-sharing-button { |
| 372 | + @include utils.button-reset; |
| 373 | + font: var(--str-chat__subtitle-medium-text); |
| 374 | + cursor: pointer; |
| 375 | + } |
| 376 | + |
| 377 | + .str-chat__message-attachment-geolocation__status--active-until { |
| 378 | + font: var(--str-chat__caption-text); |
| 379 | + } |
| 380 | + } |
| 381 | + } |
| 382 | + } |
| 383 | + |
328 | 384 | .str-chat__message-attachment-unsupported { |
329 | 385 | .str-chat__message-attachment-unsupported__title { |
330 | 386 | font: var(--str-chat__subtitle-medium-text); |
|
0 commit comments