Use prettier for SCSS (#3895)
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / style / ui / messageGroup.scss
1 .messageGroupList {
2 .tabularList {
3 .columnSubject {
4 flex: 1 1 auto;
5 }
6
7 .columnStats {
8 flex: 0 0 150px;
9 text-align: center;
10 }
11
12 .columnLastPost {
13 flex: 0 0 200px;
14 }
15
16 .tabularListRow:not(.tabularListRowHead) {
17 .columnStats {
18 position: relative;
19
20 > dl {
21 visibility: hidden;
22 }
23 }
24
25 @include screen-lg {
26 &:hover .columnStats {
27 > dl {
28 visibility: visible;
29 }
30
31 .messageGroupListStatsSimple {
32 display: none;
33 }
34 }
35 }
36 }
37 }
38
39 .columnMark > label {
40 cursor: pointer;
41 display: block;
42 height: 24px;
43 width: 24px;
44
45 @extend .messageCheckboxLabel;
46
47 &::before {
48 font-size: 24px;
49 top: -6px;
50 }
51 }
52
53 .jsMarked .columnMark > label::after {
54 display: block;
55 font-size: 13px;
56 left: 3px;
57 top: 1px;
58 }
59
60 .tabularListRowHead {
61 .columnMark > label::before {
62 top: -3px;
63 }
64
65 .jsMarked .columnMark > label::after {
66 top: 4px;
67 }
68 }
69
70 .messageDeleted .columnAvatar,
71 .messageDisabled .columnAvatar {
72 position: relative;
73
74 &::before {
75 display: block;
76 font-family: FontAwesome;
77 position: absolute;
78
79 @include screen-md-up {
80 font-size: 42px;
81 }
82
83 @include screen-sm-down {
84 font-size: 28px;
85 }
86 }
87
88 > div img,
89 > div .icon:first-child {
90 visibility: hidden;
91 }
92 }
93
94 .messageDisabled .columnAvatar::before {
95 color: rgb(0, 140, 0);
96 content: $fa-var-eye-slash;
97
98 @include screen-md-up {
99 left: 13px;
100 top: -2px;
101 }
102
103 @include screen-sm-down {
104 left: 3px;
105 top: -4px;
106 }
107 }
108
109 .messageDeleted .columnAvatar::before {
110 color: rgb(180, 0, 0);
111 content: $fa-var-trash-o;
112 left: 17px;
113 top: -2px;
114
115 @include screen-md-up {
116 left: 17px;
117 top: -2px;
118 }
119
120 @include screen-sm-down {
121 left: 7px;
122 top: -4px;
123 }
124 }
125
126 .columnAvatar {
127 div {
128 position: relative;
129 width: 48px;
130 height: 48px;
131 }
132
133 .myAvatar {
134 position: absolute;
135 width: 24px;
136 height: 24px;
137 bottom: -2px;
138 right: -6px;
139
140 > img {
141 border: 1px solid $wcfContentBackground;
142 box-sizing: content-box;
143 }
144 }
145 }
146
147 .columnSubject {
148 overflow: hidden;
149
150 > h3 {
151 > .messageGroupLink {
152 @include wcfFontHeadline;
153 }
154
155 > .badge.label {
156 top: -2px;
157 }
158 }
159
160 > small {
161 display: block;
162 }
163
164 > .statusDisplay {
165 display: flex;
166 float: right;
167 opacity: 0.75;
168 transition: opacity 0.12s;
169
170 > .statusIcons {
171 align-items: center;
172 flex: 0 0 auto;
173
174 > li {
175 align-items: center;
176 display: flex;
177 }
178 }
179 }
180
181 > .labelList {
182 float: right;
183 padding-left: 7px;
184 }
185 }
186
187 .columnLastPost {
188 > .box32 {
189 align-items: center;
190 }
191
192 time {
193 color: $wcfContentDimmedText;
194 }
195
196 a {
197 display: block;
198 overflow: hidden;
199 text-overflow: ellipsis;
200 white-space: nowrap;
201 }
202 }
203
204 // hover
205 .tabularListRow:hover,
206 tr:hover {
207 // deprecated
208 .columnSubject > .statusDisplay {
209 opacity: 1;
210
211 > .pagination {
212 opacity: 1;
213 }
214 }
215 }
216
217 // new status
218 .tabularListColumns.new,
219 tr.new {
220 // deprecated
221 .columnSubject > h3 > .messageGroupLink {
222 font-weight: 600;
223 }
224 }
225
226 .pagination {
227 flex: 0 0 auto;
228 opacity: 0;
229 transition: opacity 0.12s;
230
231 @include wcfFontSmall;
232
233 &:not(:last-child) {
234 margin-right: 5px;
235 }
236 }
237
238 @include screen-md-up {
239 .messageGroupCounterMobile,
240 .messageGroupInfoMobile {
241 display: none;
242 }
243 }
244
245 @include screen-sm-down {
246 .tabularListColumns > .columnMark {
247 display: none;
248 }
249
250 .tabularListRowHead {
251 .columnMark,
252 .columnStats {
253 display: none;
254 }
255
256 .columnSubject {
257 padding: 0;
258 }
259
260 .columnLastPost {
261 flex-basis: auto;
262 padding: 0;
263 }
264 }
265
266 .tabularListRow:not(.tabularListRowHead) > .tabularListColumns {
267 flex-wrap: wrap;
268 justify-content: flex-end;
269 padding: 5px 0;
270
271 > li {
272 padding: 0;
273 }
274
275 .columnAvatar {
276 margin-right: 10px;
277 padding: 0;
278
279 div {
280 height: 32px;
281 width: 32px;
282 }
283
284 img {
285 max-height: 32px;
286 max-width: 32px;
287 }
288
289 .myAvatar {
290 display: none;
291 }
292 }
293
294 .columnSubject {
295 /* 37px = avatar width + margin-right */
296 flex-basis: calc(100% - 42px);
297 max-width: calc(100% - 42px);
298
299 > h3 {
300 align-items: flex-start;
301 display: flex;
302
303 > .messageGroupLink {
304 flex: 1 1 auto;
305 line-height: 1.48;
306 overflow: hidden;
307 text-overflow: ellipsis;
308
309 @include wcfFontDefault;
310 }
311
312 > .messageGroupCounterMobile {
313 flex: 0 0 auto;
314 margin-left: 10px;
315 }
316 }
317
318 .messageGroupInfoMobile {
319 color: $wcfContentDimmedText;
320 display: flex;
321
322 @include wcfFontSmall;
323
324 > .messageGroupAuthorMobile {
325 flex: 1 1 auto;
326 }
327
328 > .messageGroupLastPostTimeMobile {
329 flex: 0 0 auto;
330 margin-left: 10px;
331 }
332 }
333
334 .statusDisplay,
335 .messageGroupInfo,
336 .messageGroupTime,
337 .messageGroupEditLink {
338 display: none;
339 }
340
341 .labelList {
342 float: none;
343 padding-bottom: 2px;
344 padding-left: 0;
345 }
346 }
347
348 .columnStats,
349 .columnLastPost {
350 display: none;
351 }
352 }
353 }
354
355 .tabularListRowHead {
356 .columnSort {
357 flex: 1;
358
359 @include wcfFontDefault;
360 }
361
362 .columnFilter {
363 flex: 0 1 auto;
364 padding-left: 40px;
365
366 @include wcfFontDefault;
367
368 @include screen-xs {
369 display: none;
370 }
371 }
372
373 .columnSort,
374 .columnFilter {
375 .inlineList > li:not(:last-child) {
376 margin-right: 10px;
377 }
378 }
379
380 .columnApplyFilter {
381 flex: 0 1 auto;
382 padding-right: 0;
383 }
384 }
385 }
386
387 .messageGroupListStatsSimple {
388 color: $wcfContentDimmedText;
389 font-size: 1rem;
390 left: 50%;
391 position: absolute;
392 top: 50%;
393 transform: translateX(-50%) translateY(-50%);
394
395 > .icon {
396 color: inherit;
397 }
398 }
399
400 @include screen-md-down {
401 .mobileLinkShadowContainer {
402 position: relative;
403
404 > .mobileLinkShadow {
405 bottom: 0;
406 left: 0;
407 position: absolute;
408 right: 0;
409 top: 0;
410 }
411 }
412 }
413
414 .contentHeader.messageGroupContentHeader {
415 > .contentHeaderIcon {
416 @include screen-lg {
417 position: relative;
418 }
419 }
420
421 &.messageDeleted > .contentHeaderIcon,
422 &.messageDisabled > .contentHeaderIcon {
423 &::before {
424 display: block;
425 font-family: FontAwesome;
426 font-size: 56px;
427 position: absolute;
428 }
429
430 > img,
431 > .icon:first-child {
432 visibility: hidden;
433 }
434 }
435
436 &.messageDisabled > .contentHeaderIcon::before {
437 color: rgb(0, 140, 0);
438 content: $fa-var-eye-slash;
439 left: 4px;
440 top: -12px;
441 }
442
443 &.messageDeleted > .contentHeaderIcon::before {
444 color: rgb(180, 0, 0);
445 content: $fa-var-trash-o;
446 left: 11px;
447 top: -12px;
448 }
449 }