Merge branch '5.2' into 5.3
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / style / ui / messageGroup.scss
CommitLineData
3321b9c6
MW
1.messageGroupList {
2 .tabularList {
e5359fe5
AE
3 .columnSubject {
4 flex: 1 1 auto;
5 }
6
7 .columnStats {
79ed1a23 8 flex: 0 0 150px;
e5359fe5
AE
9 text-align: center;
10 }
11
12 .columnLastPost {
13 flex: 0 0 200px;
3321b9c6
MW
14 }
15
16 .tabularListRow:not(.tabularListRowHead) {
17 .columnStats {
18 position: relative;
19
20 > dl {
21 visibility: hidden;
22 }
23 }
24
d0f167f3
MW
25 @include screen-lg {
26 &:hover .columnStats {
27 > dl {
28 visibility: visible;
29 }
30
31 .messageGroupListStatsSimple {
32 display: none;
33 }
3321b9c6
MW
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
b4fb1837
MW
60 .tabularListRowHead {
61 .columnMark > label::before {
62 top: -3px;
63 }
64
65 .jsMarked .columnMark > label::after {
31792913 66 top: 4px;
b4fb1837 67 }
3321b9c6
MW
68 }
69
3321b9c6
MW
70 .messageDeleted .columnAvatar,
71 .messageDisabled .columnAvatar {
72 position: relative;
73
74 &::before {
75 display: block;
76 font-family: FontAwesome;
3321b9c6 77 position: absolute;
9fe907fe
MW
78
79 @include screen-md-up {
80 font-size: 42px;
81 }
82
83 @include screen-sm-down {
84 font-size: 28px;
85 }
3321b9c6
MW
86 }
87
0713299d
TD
88 > div img,
89 > div .icon:first-child {
3321b9c6
MW
90 visibility: hidden;
91 }
92 }
93
4397454e
MS
94 .messageDisabled .columnAvatar::before {
95 color: rgb(0, 140, 0);
96 content: $fa-var-eye-slash;
9fe907fe
MW
97
98 @include screen-md-up {
4397454e 99 left: 13px;
9fe907fe
MW
100 top: -2px;
101 }
102
103 @include screen-sm-down {
4397454e 104 left: 3px;
9fe907fe
MW
105 top: -4px;
106 }
3321b9c6
MW
107 }
108
4397454e
MS
109 .messageDeleted .columnAvatar::before {
110 color: rgb(180, 0, 0);
111 content: $fa-var-trash-o;
112 left: 17px;
113 top: -2px;
9fe907fe
MW
114
115 @include screen-md-up {
4397454e 116 left: 17px;
9fe907fe
MW
117 top: -2px;
118 }
119
120 @include screen-sm-down {
4397454e 121 left: 7px;
9fe907fe
MW
122 top: -4px;
123 }
3321b9c6
MW
124 }
125
126 .columnAvatar {
127 div {
128 position: relative;
129 width: 48px;
130 height: 48px;
3321b9c6
MW
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 {
3321b9c6 151 > .messageGroupLink {
5908f54f 152 @include wcfFontHeadline;
3321b9c6
MW
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;
aa7158b6 167 opacity: .75;
5bcef578 168 transition: opacity .12s;
3321b9c6
MW
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
193 time {
194 color: $wcfContentDimmedText;
195 }
196
197 a {
198 display: block;
199 overflow: hidden;
200 text-overflow: ellipsis;
201 white-space: nowrap;
202 }
203 }
3321b9c6
MW
204
205 // hover
206 .tabularListRow:hover,
207 tr:hover { // deprecated
208 .columnSubject > .statusDisplay {
209 opacity: 1;
210
211 > .pagination {
212 opacity: 1;
213 }
214 }
3321b9c6
MW
215 }
216
217 // new status
1b87c0bd 218 .tabularListColumns.new,
3321b9c6
MW
219 tr.new { // deprecated
220 .columnSubject > h3 > .messageGroupLink {
c5222ca4 221 font-weight: 600;
3321b9c6 222 }
3321b9c6
MW
223 }
224
225 .pagination {
226 flex: 0 0 auto;
227 opacity: 0;
5bcef578 228 transition: opacity .12s;
3321b9c6 229
5908f54f 230 @include wcfFontSmall;
3321b9c6
MW
231
232 &:not(:last-child) {
233 margin-right: 5px;
234 }
235 }
3321b9c6 236
06cf7304
MW
237 @include screen-md-up {
238 .messageGroupCounterMobile,
239 .messageGroupInfoMobile {
240 display: none;
241 }
242 }
243
244 @include screen-sm-down {
245 .tabularListColumns > .columnMark {
246 display: none;
247 }
248
249 .tabularListRowHead {
250 .columnMark,
251 .columnStats {
252 display: none;
253 }
254
255 .columnSubject {
256 padding: 0;
257 }
258
259 .columnLastPost {
260 flex-basis: auto;
261 padding: 0;
262 }
263 }
264
265 .tabularListRow:not(.tabularListRowHead) > .tabularListColumns {
266 flex-wrap: wrap;
267 justify-content: flex-end;
268 padding: 5px 0;
269
270 > li {
271 padding: 0;
272 }
273
274 .columnAvatar {
275 margin-right: 10px;
276 padding: 0;
277
278 div {
279 height: 32px;
280 width: 32px;
281 }
282
283 img {
284 max-height: 32px;
285 max-width: 32px;
286 }
287
288 .myAvatar {
289 display: none;
290 }
291 }
292
293 .columnSubject {
294 /* 37px = avatar width + margin-right */
295 flex-basis: calc(100% - 42px);
296 max-width: calc(100% - 42px);
297
298 > h3 {
299 align-items: flex-start;
300 display: flex;
301
ab460889 302 > .messageGroupLink {
06cf7304 303 flex: 1 1 auto;
5b2a97e1 304 line-height: 1.48;
06cf7304
MW
305 overflow: hidden;
306 text-overflow: ellipsis;
307
308 @include wcfFontDefault;
309 }
310
311 > .messageGroupCounterMobile {
312 flex: 0 0 auto;
313 margin-left: 10px;
314 }
315 }
316
317 .messageGroupInfoMobile {
318 color: $wcfContentDimmedText;
319 display: flex;
320
321 @include wcfFontSmall;
322
323 > .messageGroupAuthorMobile {
324 flex: 1 1 auto;
325 }
326
327 > .messageGroupLastPostTimeMobile {
328 flex: 0 0 auto;
329 margin-left: 10px;
330 }
331 }
332
333 .statusDisplay,
334 .messageGroupInfo,
335 .messageGroupTime,
336 .messageGroupEditLink {
337 display: none;
338 }
339
340 .labelList {
341 float: none;
342 padding-bottom: 2px;
343 padding-left: 0;
344 }
345 }
346
347 .columnStats,
348 .columnLastPost {
349 display: none;
350 }
351 }
352 }
15f0fffa
AE
353
354 .tabularListRowHead {
355 .columnSort {
356 flex: 1;
357
358 @include wcfFontDefault;
359 }
360
361 .columnFilter {
362 flex: 0 1 auto;
363 padding-left: 40px;
364
365 @include wcfFontDefault;
366
367 @include screen-xs {
368 display: none;
369 }
370 }
371
372 .columnSort,
373 .columnFilter {
374 .inlineList > li:not(:last-child) {
375 margin-right: 10px;
376 }
377 }
378
379 .columnApplyFilter {
380 flex: 0 1 auto;
381 padding-right: 0;
382 }
383 }
3321b9c6
MW
384}
385
386.messageGroupListStatsSimple {
387 color: $wcfContentDimmedText;
388 font-size: 1rem;
389 left: 50%;
390 position: absolute;
391 top: 50%;
392 transform: translateX(-50%) translateY(-50%);
15f0fffa
AE
393
394 > .icon {
395 color: inherit;
396 }
3321b9c6 397}
06cf7304
MW
398
399@include screen-md-down {
400 .mobileLinkShadowContainer {
401 position: relative;
402
403 > .mobileLinkShadow {
404 bottom: 0;
405 left: 0;
406 position: absolute;
407 right: 0;
408 top: 0;
409 }
410 }
30f4c4d3
MW
411}
412
413.contentHeader.messageGroupContentHeader {
414 > .contentHeaderIcon {
370046c7 415 @include screen-md-up {
30f4c4d3
MW
416 position: relative;
417 }
418 }
419
420 &.messageDeleted > .contentHeaderIcon,
421 &.messageDisabled > .contentHeaderIcon {
422 &::before {
423 display: block;
424 font-family: FontAwesome;
425 font-size: 56px;
426 position: absolute;
427 }
428
d84f21b3
MW
429 > img,
430 > .icon:first-child {
30f4c4d3
MW
431 visibility: hidden;
432 }
433 }
434
30f4c4d3
MW
435 &.messageDisabled > .contentHeaderIcon::before {
436 color: rgb(0, 140, 0);
437 content: $fa-var-eye-slash;
438 left: 4px;
439 top: -12px;
440 }
4397454e
MS
441
442 &.messageDeleted > .contentHeaderIcon::before {
443 color: rgb(180, 0, 0);
444 content: $fa-var-trash-o;
445 left: 11px;
446 top: -12px;
447 }
30f4c4d3 448}