ff2dd41aa63cb45b263146e8335e959da1a827d9
[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: .75;
168 transition: opacity .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
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 }
204
205 // hover
206 .tabularListRow:hover,
207 tr:hover { // 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 { // deprecated
220 .columnSubject > h3 > .messageGroupLink {
221 font-weight: 600;
222 }
223 }
224
225 .pagination {
226 flex: 0 0 auto;
227 opacity: 0;
228 transition: opacity .12s;
229
230 @include wcfFontSmall;
231
232 &:not(:last-child) {
233 margin-right: 5px;
234 }
235 }
236
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
302 > .messageGroupLink {
303 flex: 1 1 auto;
304 line-height: 1.48;
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 }
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 }
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%);
393
394 > .icon {
395 color: inherit;
396 }
397 }
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 }
411 }
412
413 .contentHeader.messageGroupContentHeader {
414 > .contentHeaderIcon {
415 @include screen-lg {
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
429 > img,
430 > .icon:first-child {
431 visibility: hidden;
432 }
433 }
434
435 &.messageDisabled > .contentHeaderIcon::before {
436 color: rgb(0, 140, 0);
437 content: $fa-var-eye-slash;
438 left: 4px;
439 top: -12px;
440 }
441
442 &.messageDeleted > .contentHeaderIcon::before {
443 color: rgb(180, 0, 0);
444 content: $fa-var-trash-o;
445 left: 11px;
446 top: -12px;
447 }
448 }