|
1 | 1 | .chat-item { |
2 | 2 |
|
3 | 3 | &__container { |
4 | | - grid-row: 1; |
5 | | - grid-column: 1 / 2; |
6 | | - display: flex; |
7 | | - position: relative; |
| 4 | + grid-row: var(--chotto-chatitem-container-grid-row, 1); |
| 5 | + grid-column: var(--chotto-chatitem-container-grid-column, 1 / 2); |
| 6 | + display: var(--chotto-chatitem-container-display, flex); |
| 7 | + position: var(--chotto-chatitem-container-position, relative); |
8 | 8 | padding: var(--chotto-chatitem-padding-container); |
9 | | - cursor: pointer; |
| 9 | + cursor: var(--chotto-chatitem-container-cursor, pointer); |
10 | 10 |
|
11 | 11 | &::after { |
12 | | - content: ''; |
13 | | - position: absolute; |
14 | | - bottom: 0; |
| 12 | + content: var(--chotto-chatitem-divider-content, ''); |
| 13 | + position: var(--chotto-chatitem-divider-position, absolute); |
| 14 | + bottom: var(--chotto-chatitem-divider-bottom, 0); |
15 | 15 | transform: translateX(var(--chotto-chatitem-divider-translate-x, 15%)); |
16 | 16 | width: var(--chotto-chatitem-divider-width, 416px); |
17 | 17 | height: var(--chotto-chatitem-divider-height, 1px); |
|
25 | 25 |
|
26 | 26 |
|
27 | 27 | &__selected { |
28 | | - cursor: pointer; |
| 28 | + cursor: var(--chotto-chatitem-selected-cursor, pointer); |
29 | 29 | border-radius: var(--chotto-chatitem-border-radius); |
30 | 30 | background: var(--chotto-theme-item-background-color-focus); |
31 | 31 |
|
|
35 | 35 | } |
36 | 36 |
|
37 | 37 | &__avatar-container { |
38 | | - position: relative; |
39 | | - display: flex; |
40 | | - justify-content: center; |
41 | | - align-items: center; |
42 | | - align-self: center; |
43 | | - object-fit: cover; |
| 38 | + position: var(--chotto-chatitem-avatar-container-position, relative); |
| 39 | + display: var(--chotto-chatitem-avatar-container-display, flex); |
| 40 | + justify-content: var(--chotto-chatitem-avatar-container-justify, center); |
| 41 | + align-items: var(--chotto-chatitem-avatar-container-align, center); |
| 42 | + align-self: var(--chotto-chatitem-avatar-container-align-self, center); |
| 43 | + object-fit: var(--chotto-chatitem-avatar-container-object-fit, cover); |
44 | 44 | margin-right: var(--chotto-chatitem-avatar-margin-right, 15px); |
45 | 45 | /* background-color: var(--chotto-avatar-background-color); */ |
46 | | - min-width: 50px; |
47 | | - min-height: 50px; |
48 | | - border-radius: 50%; |
| 46 | + min-width: var(--chotto-chatitem-avatar-min-width, 50px); |
| 47 | + min-height: var(--chotto-chatitem-avatar-min-height, 50px); |
| 48 | + border-radius: var(--chotto-chatitem-avatar-border-radius, 50%); |
49 | 49 |
|
50 | 50 | span { |
51 | | - font-size: 21px; |
| 51 | + font-size: var(--chotto-chatitem-avatar-text-font-size, 21px); |
52 | 52 | color: var(--neutral-500); |
53 | 53 | } |
54 | 54 |
|
55 | 55 | img { |
56 | | - border-radius: 50%; |
57 | | - object-fit: cover; |
| 56 | + border-radius: var(--chotto-chatitem-avatar-img-border-radius, 50%); |
| 57 | + object-fit: var(--chotto-chatitem-avatar-img-object-fit, cover); |
58 | 58 | } |
59 | 59 | } |
60 | 60 |
|
|
64 | 64 | } |
65 | 65 |
|
66 | 66 | &__status-user { |
67 | | - position: absolute; |
68 | | - bottom: 0; |
| 67 | + position: var(--chotto-chatitem-status-user-position, absolute); |
| 68 | + bottom: var(--chotto-chatitem-status-user-bottom, 0); |
69 | 69 | right: var(--chotto-chatitem-status-user-right, 5px); |
70 | | - display: block; |
| 70 | + display: var(--chotto-chatitem-status-user-display, block); |
71 | 71 | width: var(--chotto-chatitem-status-user-size, 10px); |
72 | 72 | height: var(--chotto-chatitem-status-user-size, 10px); |
73 | | - border-radius: 50%; |
74 | | - background-color: transparent; |
75 | | - z-index: 1; |
| 73 | + border-radius: var(--chotto-chatitem-status-user-border-radius, 50%); |
| 74 | + background-color: var(--chotto-chatitem-status-user-bg, transparent); |
| 75 | + z-index: var(--chotto-chatitem-status-user-z-index, 1); |
76 | 76 | } |
77 | 77 |
|
78 | 78 | &__info-container { |
79 | | - flex-grow: 1; |
80 | | - align-self: flex-start; |
| 79 | + flex-grow: var(--chotto-chatitem-info-container-flex-grow, 1); |
| 80 | + align-self: var(--chotto-chatitem-info-container-align-self, flex-start); |
81 | 81 | margin-right: var(--chotto-chatitem-info-margin-right, 15px); |
82 | | - overflow: hidden; |
| 82 | + overflow: var(--chotto-chatitem-info-container-overflow, hidden); |
83 | 83 | } |
84 | 84 |
|
85 | 85 | &__name { |
86 | 86 | margin-top: var(--chotto-chatitem-name-margin-top, 0); |
87 | 87 | margin-bottom: var(--chotto-chatitem-name-margin-bottom, 8px); |
88 | 88 | font-size: var(--chotto-theme-title-font-size); |
89 | 89 | font-weight: var(--chotto-theme-title-font-weight); |
90 | | - overflow: hidden; |
91 | | - text-overflow: ellipsis; |
92 | | - display: -webkit-box; |
93 | | - -webkit-line-clamp: 1; |
94 | | - line-clamp: 1; |
95 | | - -webkit-box-orient: vertical; |
| 90 | + overflow: var(--chotto-chatitem-name-overflow, hidden); |
| 91 | + text-overflow: var(--chotto-chatitem-name-text-overflow, ellipsis); |
| 92 | + display: var(--chotto-chatitem-name-display, -webkit-box); |
| 93 | + -webkit-line-clamp: var(--chotto-chatitem-name-line-clamp, 1); |
| 94 | + line-clamp: var(--chotto-chatitem-name-line-clamp, 1); |
| 95 | + -webkit-box-orient: var(--chotto-chatitem-name-box-orient, vertical); |
96 | 96 | } |
97 | 97 |
|
98 | 98 | &__last-message { |
99 | 99 | font-size: var(--chotto-theme-text-font-size); |
100 | 100 | color: var(--chotto-theme-secondary-text-color); |
101 | | - overflow: hidden; |
102 | | - text-overflow: ellipsis; |
103 | | - display: -webkit-box; |
104 | | - -webkit-line-clamp: 1; |
105 | | - line-clamp: 1; |
106 | | - -webkit-box-orient: vertical; |
| 101 | + overflow: var(--chotto-chatitem-last-message-overflow, hidden); |
| 102 | + text-overflow: var(--chotto-chatitem-last-message-text-overflow, ellipsis); |
| 103 | + display: var(--chotto-chatitem-last-message-display, -webkit-box); |
| 104 | + -webkit-line-clamp: var(--chotto-chatitem-last-message-line-clamp, 1); |
| 105 | + line-clamp: var(--chotto-chatitem-last-message-line-clamp, 1); |
| 106 | + -webkit-box-orient: var(--chotto-chatitem-last-message-box-orient, vertical); |
107 | 107 |
|
108 | 108 | } |
109 | 109 |
|
110 | 110 | &__details-container { |
111 | | - position: relative; |
112 | | - display: flex; |
113 | | - flex-direction: column; |
114 | | - justify-content: space-between; |
115 | | - align-items: end; |
| 111 | + position: var(--chotto-chatitem-details-container-position, relative); |
| 112 | + display: var(--chotto-chatitem-details-container-display, flex); |
| 113 | + flex-direction: var(--chotto-chatitem-details-container-flex-direction, column); |
| 114 | + justify-content: var(--chotto-chatitem-details-container-justify, space-between); |
| 115 | + align-items: var(--chotto-chatitem-details-container-align, end); |
116 | 116 |
|
117 | 117 | span { |
118 | 118 | color: var(--chotto-theme-button-color-active); |
119 | 119 | } |
120 | 120 | } |
121 | 121 |
|
122 | 122 | &__actions-trigger{ |
123 | | - display: block; |
124 | | - cursor: pointer; |
| 123 | + display: var(--chotto-chatitem-actions-trigger-display, block); |
| 124 | + cursor: var(--chotto-chatitem-actions-trigger-cursor, pointer); |
125 | 125 | font-size: var(--chotto-theme-button-icon-size); |
126 | 126 | color: var(--chotto-theme-button-color-active); |
127 | 127 | } |
|
131 | 131 | } |
132 | 132 |
|
133 | 133 | &__menu-button { |
134 | | - order: 0; |
135 | | - width: 100%; |
136 | | - border: none; |
137 | | - background-color: transparent; |
138 | | - cursor: pointer; |
139 | | - padding: 0; |
| 134 | + order: var(--chotto-chatitem-menu-button-order, 0); |
| 135 | + width: var(--chotto-chatitem-menu-button-width, 100%); |
| 136 | + border: var(--chotto-chatitem-menu-button-border, none); |
| 137 | + background-color: var(--chotto-chatitem-menu-button-bg, transparent); |
| 138 | + cursor: var(--chotto-chatitem-menu-button-cursor, pointer); |
| 139 | + padding: var(--chotto-chatitem-menu-button-padding, 0); |
140 | 140 |
|
141 | 141 | span { |
142 | | - display: block; |
143 | | - width: fit-content; |
144 | | - margin-left: auto; |
| 142 | + display: var(--chotto-chatitem-menu-button-span-display, block); |
| 143 | + width: var(--chotto-chatitem-menu-button-span-width, fit-content); |
| 144 | + margin-left: var(--chotto-chatitem-menu-button-span-margin-left, auto); |
145 | 145 | font-size: var(--chotto-chatitem-menu-button-font-size, 18px); |
146 | | - transition: 0.2s; |
| 146 | + transition: var(--chotto-chatitem-menu-button-transition, 0.2s); |
147 | 147 | } |
148 | 148 |
|
149 | 149 | &:hover span { |
150 | 150 | color: var(--chotto-theme-button-color-hover); |
151 | | - transition: 0.2s; |
| 151 | + transition: var(--chotto-chatitem-menu-button-hover-transition, 0.2s); |
152 | 152 | } |
153 | 153 | } |
154 | 154 |
|
155 | 155 | &__unread { |
156 | | - order: 1; |
157 | | - display: flex; |
158 | | - justify-content: center; |
159 | | - align-items: center; |
| 156 | + order: var(--chotto-chatitem-unread-order, 1); |
| 157 | + display: var(--chotto-chatitem-unread-display, flex); |
| 158 | + justify-content: var(--chotto-chatitem-unread-justify, center); |
| 159 | + align-items: var(--chotto-chatitem-unread-align, center); |
160 | 160 | border-radius: var(--chotto-unread-border-radius, 50%); |
161 | | - margin-left: auto; |
162 | | - margin-top: auto; |
| 161 | + margin-left: var(--chotto-chatitem-unread-margin-left, auto); |
| 162 | + margin-top: var(--chotto-chatitem-unread-margin-top, auto); |
163 | 163 | min-width: var(--chotto-unread-min-width, 25px); |
164 | 164 | min-height: var(--chotto-unread-min-height, 25px); |
165 | 165 | max-height: var(--chotto-chatitem-unread-max-height, 20px); |
|
173 | 173 | &__time { |
174 | 174 | font-size: var(--chotto-theme-additional-text-font-size); |
175 | 175 | color: var(--chotto-theme-secondary-text-color); |
176 | | - white-space: nowrap; |
| 176 | + white-space: var(--chotto-chatitem-time-white-space, nowrap); |
177 | 177 | } |
178 | 178 |
|
179 | 179 | &__context-menu { |
180 | | - position: absolute; |
| 180 | + position: var(--chotto-chatitem-context-menu-position, absolute); |
181 | 181 | top: var(--chotto-chatitem-context-menu-top, 40%); |
182 | | - right: 0; |
| 182 | + right: var(--chotto-chatitem-context-menu-right, 0); |
183 | 183 | } |
184 | 184 |
|
185 | 185 | &__status-chat-container { |
186 | | - display: flex; |
187 | | - align-items: center; |
| 186 | + display: var(--chotto-chatitem-status-chat-container-display, flex); |
| 187 | + align-items: var(--chotto-chatitem-status-chat-container-align, center); |
188 | 188 | column-gap: var(--chotto-chatitem-status-gap, 4px); |
189 | | - margin-top: auto; |
| 189 | + margin-top: var(--chotto-chatitem-status-chat-container-margin-top, auto); |
190 | 190 | } |
191 | 191 |
|
192 | 192 | &__status-message { |
193 | | - display: flex; |
| 193 | + display: var(--chotto-chatitem-status-message-display, flex); |
194 | 194 |
|
195 | 195 | span { |
196 | 196 | color: var(--chotto-theme-status-color-received); |
|
199 | 199 | } |
200 | 200 |
|
201 | 201 | &__dialog-buttons{ |
202 | | - display: flex; |
203 | | - margin-left: 8px; |
| 202 | + display: var(--chotto-chatitem-dialog-buttons-display, flex); |
| 203 | + margin-left: var(--chotto-chatitem-dialog-buttons-margin-left, 8px); |
204 | 204 | } |
205 | 205 | } |
206 | 206 |
|
207 | 207 | .dialog{ |
208 | 208 | &__container { |
209 | | - display: flex; |
210 | | - flex-direction: column; |
211 | | - position: relative; |
212 | | - cursor: pointer; |
| 209 | + display: var(--chotto-chatitem-dialog-container-display, flex); |
| 210 | + flex-direction: var(--chotto-chatitem-dialog-container-flex-direction, column); |
| 211 | + position: var(--chotto-chatitem-dialog-container-position, relative); |
| 212 | + cursor: var(--chotto-chatitem-dialog-container-cursor, pointer); |
213 | 213 | gap: var(--chotto-chatitem-dialog-gap, 5px); |
214 | 214 | padding: var(--chotto-chatitem-dialog-padding); |
215 | 215 | } |
216 | 216 |
|
217 | 217 | &__icon{ |
218 | | - margin: auto; |
| 218 | + margin: var(--chotto-chatitem-dialog-icon-margin, auto); |
219 | 219 | } |
220 | 220 |
|
221 | 221 | &__item{ |
222 | | - display: flex; |
| 222 | + display: var(--chotto-chatitem-dialog-item-display, flex); |
223 | 223 | padding: var(--chotto-chatitem-dialog-item-padding, 3px); |
224 | 224 | } |
225 | 225 |
|
226 | 226 | &__selected { |
227 | | - cursor: pointer; |
| 227 | + cursor: var(--chotto-chatitem-dialog-selected-cursor, pointer); |
228 | 228 | border-radius: var(--chotto-chatitem-border-radius); |
229 | 229 | background: var(--chotto-theme-item-background-color-focus); |
230 | 230 | } |
231 | 231 |
|
232 | 232 | &__text-container { |
233 | | - display: flex; |
234 | | - justify-content: space-between; |
| 233 | + display: var(--chotto-chatitem-dialog-text-container-display, flex); |
| 234 | + justify-content: var(--chotto-chatitem-dialog-text-container-justify, space-between); |
235 | 235 | font-size: var(--chotto-theme-text-font-size); |
236 | 236 | color: var(--chotto-theme-primary-text-color); |
237 | | - overflow: hidden; |
238 | | - text-overflow: ellipsis; |
239 | | - width: 100%; |
| 237 | + overflow: var(--chotto-chatitem-dialog-text-container-overflow, hidden); |
| 238 | + text-overflow: var(--chotto-chatitem-dialog-text-container-text-overflow, ellipsis); |
| 239 | + width: var(--chotto-chatitem-dialog-text-container-width, 100%); |
240 | 240 | padding: var(--chotto-chatitem-text-container-padding, 0 5px); |
241 | | - margin: auto; |
| 241 | + margin: var(--chotto-chatitem-dialog-text-container-margin, auto); |
242 | 242 | } |
243 | 243 |
|
244 | 244 | &__name{ |
245 | | - display: -webkit-box; |
246 | | - -webkit-line-clamp: 1; |
247 | | - line-clamp: 1; |
248 | | - -webkit-box-orient: vertical; |
| 245 | + display: var(--chotto-chatitem-dialog-name-display, -webkit-box); |
| 246 | + -webkit-line-clamp: var(--chotto-chatitem-dialog-name-line-clamp, 1); |
| 247 | + line-clamp: var(--chotto-chatitem-dialog-name-line-clamp, 1); |
| 248 | + -webkit-box-orient: var(--chotto-chatitem-dialog-name-box-orient, vertical); |
249 | 249 | } |
250 | 250 |
|
251 | 251 | &__time{ |
252 | | - display: -webkit-box; |
253 | | - -webkit-line-clamp: 1; |
254 | | - line-clamp: 1; |
255 | | - -webkit-box-orient: vertical; |
| 252 | + display: var(--chotto-chatitem-dialog-time-display, -webkit-box); |
| 253 | + -webkit-line-clamp: var(--chotto-chatitem-dialog-time-line-clamp, 1); |
| 254 | + line-clamp: var(--chotto-chatitem-dialog-time-line-clamp, 1); |
| 255 | + -webkit-box-orient: var(--chotto-chatitem-dialog-time-box-orient, vertical); |
256 | 256 | color: var(--chotto-theme-secondary-text-color); |
257 | 257 | font-size: var(--chotto-theme-additional-text-font-size) |
258 | 258 | } |
|
273 | 273 |
|
274 | 274 | .text-enter-active, |
275 | 275 | .text-leave-active { |
276 | | - transition: opacity 0.2s ease; |
| 276 | + transition: var(--chotto-chatitem-text-transition, opacity 0.2s ease); |
277 | 277 | } |
278 | 278 |
|
279 | 279 | .text-enter-from, |
280 | 280 | .text-leave-to { |
281 | | - opacity: 0; |
| 281 | + opacity: var(--chotto-chatitem-text-opacity, 0); |
282 | 282 | } |
283 | 283 |
|
284 | 284 | .menu-leave-active { |
285 | | - transition: all 0.2s cubic-bezier(1, 0.5, 0.8, 1); |
| 285 | + transition: var(--chotto-chatitem-menu-leave-transition, all 0.2s cubic-bezier(1, 0.5, 0.8, 1)); |
286 | 286 | } |
287 | 287 |
|
288 | 288 | .menu-enter-from, |
289 | 289 | .menu-leave-to { |
290 | 290 | transform: translateY(var(--chotto-chatitem-menu-enter-translate-y, 20px)); |
291 | | - opacity: 0; |
| 291 | + opacity: var(--chotto-chatitem-menu-opacity, 0); |
292 | 292 | } |
0 commit comments