|
1 | | -.str-chat__channel-preview { |
2 | | - button { |
3 | | - position: relative; |
4 | | - border: none; |
5 | | - background: none; |
6 | | - display: flex; |
7 | | - flex-direction: row; |
8 | | - align-items: center; |
9 | | - width: 100%; |
10 | | - padding: 8px 40px 8px 8px; |
11 | | - font-size: var(--sm-font); |
12 | | - border-bottom: 1px solid var(--black10); |
13 | | - outline: 0; |
14 | | - overflow: hidden; |
15 | | - white-space: nowrap; |
16 | | - text-overflow: ellipsis; |
17 | | - |
18 | | - &:focus { |
19 | | - background: var(--white); |
20 | | - box-shadow: inset 0 0 0 1px var(--primary-color), inset 0 0 0 2px var(--primary-color-faded); |
21 | | - } |
22 | | - } |
23 | | - |
24 | | - &-info { |
25 | | - display: flex; |
26 | | - flex-direction: column; |
27 | | - text-align: left; |
28 | | - padding: 0 8px; |
29 | | - max-width: 250px; |
30 | | - } |
31 | | - |
32 | | - &-avatar { |
33 | | - width: 32px; |
34 | | - height: 32px; |
35 | | - flex: 0 0 32px; |
36 | | - border-radius: var(--border-radius); |
37 | | - } |
38 | | - |
39 | | - &-title { |
40 | | - color: var(--black); |
41 | | - display: block; |
42 | | - overflow: hidden; |
43 | | - white-space: nowrap; |
44 | | - text-overflow: ellipsis; |
45 | | - } |
46 | | - |
47 | | - &-unread-count { |
48 | | - position: absolute; |
49 | | - right: 10px; |
50 | | - width: 22px; |
51 | | - height: 22px; |
52 | | - color: var(--black); |
53 | | - font-size: var(--sm-font); |
54 | | - background: var(--grey-whisper); |
55 | | - border-radius: var(--border-radius); |
56 | | - display: flex; |
57 | | - align-items: center; |
58 | | - justify-content: center; |
59 | | - align-self: center; |
60 | | - } |
61 | | - |
62 | | - &-last-message { |
63 | | - color: var(--lighten-black); |
64 | | - white-space: nowrap; |
65 | | - overflow: hidden; |
66 | | - text-overflow: ellipsis; |
67 | | - max-width: 150px; |
68 | | - } |
69 | | - |
70 | | - &--active { |
71 | | - background: var(--primary-color); |
72 | | - color: white; |
73 | | - |
74 | | - .str-chat__channel-preview-title { |
75 | | - color: var(--white); |
76 | | - } |
77 | | - |
78 | | - .str-chat__channel-preview-last-message { |
79 | | - color: var(--white70); |
80 | | - } |
81 | | - } |
82 | | - |
83 | | - &--unread { |
84 | | - position: relative; |
85 | | - |
86 | | - .str-chat__channel-preview-last-message { |
87 | | - font-weight: var(--font-weight-bold); |
88 | | - color: var(--black); |
89 | | - } |
90 | | - } |
91 | | - |
92 | | - &--dot { |
93 | | - width: 5px; |
94 | | - height: 5px; |
95 | | - position: absolute; |
96 | | - border-radius: var(--border-radius-round); |
97 | | - left: 2px; |
98 | | - background-color: var(--primary-color); |
99 | | - } |
100 | | -} |
101 | | - |
102 | | -.str-chat__channel-preview-compact { |
103 | | - font-family: var(--second-font); |
104 | | - display: flex; |
105 | | - font-size: var(--md-font); |
106 | | - letter-spacing: 0; |
107 | | - line-height: 40px; |
108 | | - color: var(--black); |
109 | | - position: relative; |
110 | | - border: none; |
111 | | - background: none; |
112 | | - flex-direction: row; |
113 | | - align-items: center; |
114 | | - width: 100%; |
115 | | - padding: 0 40px 0 8px; |
116 | | - border-bottom: 1px solid var(--black10); |
117 | | - text-align: left; |
118 | | - outline: 0; |
119 | | - |
120 | | - &:focus { |
121 | | - background: var(--white); |
122 | | - box-shadow: inset 0 0 0 1px var(--primary-color), inset 0 0 0 2px var(--primary-color-faded); |
123 | | - } |
124 | | - |
125 | | - &--left { |
126 | | - width: 22px; |
127 | | - height: 22px; |
128 | | - } |
129 | | - |
130 | | - &--right { |
131 | | - flex: 1; |
132 | | - margin-left: var(--sm-m); |
133 | | - } |
134 | | - |
135 | | - &--unread { |
136 | | - font-weight: var(--font-weight-bold); |
137 | | - } |
138 | | -} |
139 | | - |
140 | | -.str-chat__channel-preview-compact--active { |
141 | | - color: var(--white); |
142 | | - background: var(--primary-color); |
143 | | -} |
144 | | - |
145 | 1 | .str-chat__channel-preview-messenger { |
146 | 2 | display: flex; |
147 | 3 | width: 100%; |
|
168 | 24 |
|
169 | 25 | &--last-message p { |
170 | 26 | font-size: var(--sm-font); |
| 27 | + margin: 0; |
171 | 28 | line-height: 14px; |
172 | 29 | max-width: 150px; |
173 | 30 | text-overflow: ellipsis; |
|
191 | 48 | font-weight: var(--font-weight-semi-bold); |
192 | 49 | margin-bottom: calc(var(--xxs-m) / 2); |
193 | 50 | max-width: 250px; |
| 51 | + |
194 | 52 | span { |
195 | 53 | display: block; |
196 | 54 | overflow: hidden; |
|
221 | 79 | } |
222 | 80 |
|
223 | 81 | .dark.str-chat { |
224 | | - .str-chat__channel-preview { |
225 | | - &--active { |
226 | | - background: var(--black80); |
227 | | - } |
228 | | - &-title { |
229 | | - color: var(--white); |
230 | | - } |
231 | | - button { |
232 | | - &:focus { |
233 | | - background: var(--black80); |
234 | | - box-shadow: inset 0 0 0 1px var(--primary-color), inset 0 0 0 2px var(--primary-color-faded); |
235 | | - } |
236 | | - } |
237 | | - } |
238 | 82 | .str-chat__channel-preview-messenger { |
239 | 83 | &--active { |
240 | 84 | background: var(--white5); |
241 | 85 | box-shadow: 0 1px 5px 0 var(--black10); |
242 | 86 | } |
| 87 | + |
243 | 88 | &--last-message p { |
244 | 89 | color: var(--white); |
| 90 | + margin: 0; |
245 | 91 | max-width: 150px; |
246 | 92 | text-overflow: ellipsis; |
247 | 93 | overflow: hidden; |
248 | 94 | white-space: nowrap; |
249 | 95 | } |
| 96 | + |
250 | 97 | &--last-message { |
251 | 98 | color: var(--white); |
252 | 99 | max-width: 150px; |
253 | 100 | text-overflow: ellipsis; |
254 | 101 | overflow: hidden; |
255 | 102 | white-space: nowrap; |
256 | 103 | } |
| 104 | + |
257 | 105 | &--name { |
258 | 106 | color: var(--white); |
259 | 107 | } |
|
0 commit comments