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