Overhauled message templates/styling
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / style / ui / messageGroup.scss
CommitLineData
3321b9c6
MW
1.messageGroupList {
2 .tabularList {
3 .tabularListColumns {
4 > .columnSubject {
5 flex: 1 1 auto;
6 }
7
8 > .columnStats {
9 flex: 0 0 140px;
10 text-align: center;
11 }
12
13 > .columnLastPost {
14 flex: 0 0 200px;
15 }
16 }
17
18 .tabularListRow:not(.tabularListRowHead) {
19 .columnStats {
20 position: relative;
21
22 > dl {
23 visibility: hidden;
24 }
25 }
26
27 &:hover .columnStats {
28 > dl {
29 visibility: visible;
30 }
31
32 .messageGroupListStatsSimple {
33 display: none;
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 .columnMark > label::before {
61 top: -3px;
62 }
63
64
65 .messageDeleted .columnAvatar,
66 .messageDisabled .columnAvatar {
67 position: relative;
68
69 &::before {
70 display: block;
71 font-family: FontAwesome;
72 font-size: 42px;
73 position: absolute;
74 }
75
76 > div {
77 visibility: hidden;
78 }
79 }
80
81 .messageDeleted .columnAvatar::before {
82 color: rgb(180, 0, 0);
83 content: $fa-var-trash-o;
84 left: 17px;
85 top: -2px;
86 }
87
88 .messageDisabled .columnAvatar::before {
89 color: rgb(0, 140, 0);
90 content: $fa-var-eye-slash;
91 left: 13px;
92 top: -2px;
93 }
94
95 .columnAvatar {
96 div {
97 position: relative;
98 width: 48px;
99 height: 48px;
100
101 > p > img {
102 opacity: .6;
103 transition: opacity .2s;
104 }
105 }
106
107 .myAvatar {
108 position: absolute;
109 width: 24px;
110 height: 24px;
111 bottom: -2px;
112 right: -6px;
113
114 > img {
115 border: 1px solid $wcfContentBackground;
116 box-sizing: content-box;
117 }
118 }
119 }
120
121 .columnSubject {
122 overflow: hidden;
123
124 > h3 {
125 overflow: hidden;
126 text-overflow: ellipsis;
127 white-space: nowrap;
128
129 > .messageGroupLink {
130 @extend .wcfFontHeadline;
131 }
132
133 > .badge.label {
134 top: -2px;
135 }
136 }
137
138 > small {
139 display: block;
140 }
141
142 > .statusDisplay {
143 display: flex;
144 float: right;
145 opacity: .6;
146 transition: opacity .2s;
147
148 > .statusIcons {
149 align-items: center;
150 flex: 0 0 auto;
151
152 > li {
153 align-items: center;
154 display: flex;
155 }
156 }
157 }
158
159 > .labelList {
160 float: right;
161 padding-left: 7px;
162 }
163 }
164
165 .columnLastPost {
166 > .box32 {
167 align-items: center;
168 }
169
170
171 time {
172 color: $wcfContentDimmedText;
173 }
174
175 a {
176 display: block;
177 overflow: hidden;
178 text-overflow: ellipsis;
179 white-space: nowrap;
180 }
181 }
182 /*todo
183 .messageGroupInfo {
184 @extend .inlineList;
185 @extend .wcfFontSmall;
186
187 > li:not(:last-child) {
188 margin-right: 5px;
189
190 &:after {
191 content: "\00b7";
192 margin-left: 5px;
193 }
194 }
195 }*/
196
197 // hover
198 .tabularListRow:hover,
199 tr:hover { // deprecated
200 .columnSubject > .statusDisplay {
201 opacity: 1;
202
203 > .pagination {
204 opacity: 1;
205 }
206 }
207
208 .columnAvatar div > p > img {
209 opacity: 1;
210 }
211 }
212
213 // new status
214 .tabularListRow.new,
215 tr.new { // deprecated
216 .columnSubject > h3 > .messageGroupLink {
217 font-weight: bold;
218 }
219
220 .columnAvatar div > p > img {
221 opacity: 1;
222 }
223
224 // new message icon
225 .columnAvatar > div {
226 &::after {
227 color: $wcfContentLink;
228 content: "\f069";
229 font-family: FontAwesome;
230 font-weight: normal !important;
231 font-style: normal !important;
232 font-size: 14px;
233 position: absolute;
234 text-decoration: none !important;
235 top: -4px;
236 right: -2px;
237
238 @include textShadow($wcfContentLink);
239 }
240 }
241 }
242
243 .pagination {
244 flex: 0 0 auto;
245 opacity: 0;
246 transition: opacity .2s;
247
248 @extend .wcfFontSmall;
249
250 &:not(:last-child) {
251 margin-right: 5px;
252 }
253 }
254
255
256}
257
258.messageGroupListStatsSimple {
259 color: $wcfContentDimmedText;
260 font-size: 1rem;
261 left: 50%;
262 position: absolute;
263 top: 50%;
264 transform: translateX(-50%) translateY(-50%);
265}
266
267/*
268.messageGroupList {
269 .columnSubject {
270
271
272
273 }
274
275 tr {
276 /*
277 TODO
278 &.messageDisabled {
279 color: $wcfDisabledColor;
280
281 > td {
282 background-color: $wcfDisabledBackgroundColor !important;
283 }
284
285 a:not(.badge) {
286 color: $wcfDisabledColor;
287 }
288 }
289 */
290
291 /*
292 TODO
293 &.messageDeleted {
294 color: $wcfDeletedColor;
295
296 > td {
297 background-color: $wcfDeletedBackgroundColor !important;
298 }
299
300 a:not(.badge) {
301 color: $wcfDeletedColor;
302 }
303 }
304 */
305 /*
306 }
307}
308*/