|
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); |
| 5 | + --str-chat__attachment-margin: var(--str-chat__spacing-xs); |
6 | 6 | } |
7 | 7 |
|
8 | 8 | .str-chat__attachment-list { |
|
17 | 17 | display: flex; |
18 | 18 | flex-direction: column; |
19 | 19 | align-items: flex-start; |
20 | | - gap: var(--spacing-xs); |
| 20 | + gap: var(--str-chat__spacing-xs); |
21 | 21 | min-width: 0; |
22 | 22 |
|
23 | 23 | background: transparent; |
24 | | - color: var(--text-primary); |
| 24 | + color: var(--str-chat__text-primary); |
25 | 25 |
|
26 | 26 | .str-chat__message-attachment--image, |
27 | 27 | .str-chat__message-attachment--video { |
28 | 28 | background: transparent; |
29 | | - color: var(--text-primary); |
| 29 | + color: var(--str-chat__text-primary); |
30 | 30 | border-radius: calc( |
31 | | - var(--message-bubble-radius-group-bottom) - var(--str-chat__attachment-margin) |
| 31 | + var(--str-chat__message-bubble-radius-group-bottom) - var( |
| 32 | + --str-chat__attachment-margin |
| 33 | + ) |
32 | 34 | ); |
33 | 35 | } |
34 | 36 |
|
35 | 37 | .str-chat__message-attachment { |
36 | 38 | overflow: hidden; |
37 | 39 | background-color: var(--chat-bg-attachment); |
38 | | - border-radius: var(--message-bubble-radius-attachment); |
| 40 | + border-radius: var(--str-chat__message-bubble-radius-attachment); |
39 | 41 |
|
40 | 42 | // Many classes to increase selector specificity |
41 | 43 | .str-chat__button-play.str-chat__button--secondary.str-chat__button--outline { |
|
136 | 138 |
|
137 | 139 | .str-chat__gallery .str-chat__message-attachment--svg-image, |
138 | 140 | .str-chat__message-attachment--image.str-chat__message-attachment--svg-image { |
139 | | - $padding: var(--space-24); |
| 141 | + $padding: var(--str-chat__space-24); |
140 | 142 | padding: $padding; |
141 | 143 |
|
142 | 144 | img { |
|
150 | 152 | .str-chat__message-attachment-file--item, |
151 | 153 | .str-chat__message-attachment-audio-widget { |
152 | 154 | @include utils.flex-row-center; |
153 | | - padding: var(--spacing-sm); |
154 | | - column-gap: var(--spacing-sm); |
| 155 | + padding: var(--str-chat__spacing-sm); |
| 156 | + column-gap: var(--str-chat__spacing-sm); |
155 | 157 |
|
156 | 158 | .str-chat__message-attachment-file--item__info, |
157 | 159 | .str-chat__message-attachment-audio-widget--text { |
|
160 | 162 | flex-direction: column; |
161 | 163 | align-items: flex-start; |
162 | 164 | justify-content: center; |
163 | | - row-gap: var(--space-2); |
| 165 | + row-gap: var(--str-chat__space-2); |
164 | 166 | min-width: 0; |
165 | | - line-height: var(--typography-line-height-tight); |
| 167 | + line-height: var(--str-chat__typography-line-height-tight); |
166 | 168 |
|
167 | 169 | .str-chat__message-attachment-file--item__first-row, |
168 | 170 | .str-chat__message-attachment-audio-widget--text-first-row { |
169 | 171 | width: 100%; |
170 | 172 | display: flex; |
171 | 173 | align-items: center; |
172 | 174 | justify-content: space-between; |
173 | | - column-gap: var(--space-8); |
174 | | - font-weight: var(--typography-font-weight-semi-bold); |
175 | | - 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); |
176 | 178 |
|
177 | 179 | .str-chat__message-attachment-file--item__name, |
178 | 180 | .str-chat__message-attachment-audio-widget--title { |
|
182 | 184 | } |
183 | 185 |
|
184 | 186 | .str-chat__message-attachment-file--item__data { |
185 | | - font-size: var(--typography-font-size-xs); |
| 187 | + font-size: var(--str-chat__typography-font-size-xs); |
186 | 188 | } |
187 | 189 | } |
188 | 190 | } |
189 | 191 |
|
190 | 192 | .str-chat__message-attachment-file--item { |
191 | 193 | background: transparent; |
192 | | - color: var(--text-primary); |
| 194 | + color: var(--str-chat__text-primary); |
193 | 195 | border-radius: calc( |
194 | | - var(--message-bubble-radius-group-bottom) - var(--str-chat__attachment-margin) |
| 196 | + var(--str-chat__message-bubble-radius-group-bottom) - var( |
| 197 | + --str-chat__attachment-margin |
| 198 | + ) |
195 | 199 | ); |
196 | 200 | } |
197 | 201 |
|
198 | 202 | .str-chat__message-attachment-with-actions.str-chat__message-attachment--giphy { |
199 | 203 | } |
200 | 204 |
|
201 | 205 | .str-chat__message-attachment-download-icon { |
202 | | - --str-chat-icon-height: var(--size-16); |
| 206 | + --str-chat-icon-height: var(--str-chat__size-16); |
203 | 207 | } |
204 | 208 | } |
205 | 209 |
|
|
218 | 222 |
|
219 | 223 | .str-chat__message-bubble { |
220 | 224 | border: 1px solid var(--chat-border); |
221 | | - box-shadow: var(--background-core-elevation-0); |
| 225 | + box-shadow: var(--str-chat__background-core-elevation-0); |
222 | 226 | } |
223 | 227 |
|
224 | 228 | .str-chat__message-attachment { |
|
237 | 241 | .str-chat__message--other { |
238 | 242 | &.str-chat__message--has-single-attachment.str-chat__message--has-no-text |
239 | 243 | .str-chat__message-attachment { |
240 | | - border-end-start-radius: var(--message-bubble-radius-tail); |
| 244 | + border-end-start-radius: var(--str-chat__message-bubble-radius-tail); |
241 | 245 | } |
242 | 246 | } |
243 | 247 |
|
244 | 248 | .str-chat__message--me { |
245 | 249 | &.str-chat__message--has-single-attachment.str-chat__message--has-no-text |
246 | 250 | .str-chat__message-attachment { |
247 | | - border-end-end-radius: var(--message-bubble-radius-tail); |
| 251 | + border-end-end-radius: var(--str-chat__message-bubble-radius-tail); |
248 | 252 | } |
249 | 253 | } |
250 | 254 | } |
|
253 | 257 | .str-chat__li--middle { |
254 | 258 | &.str-chat__message--has-single-attachment.str-chat__message--has-no-text |
255 | 259 | .str-chat__message-attachment { |
256 | | - border-radius: var(--message-bubble-radius-group-middle); |
| 260 | + border-radius: var(--str-chat__message-bubble-radius-group-middle); |
257 | 261 | } |
258 | 262 | } |
259 | 263 |
|
|
0 commit comments