Merge remote-tracking branch 'refs/remotes/origin/3.0'
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / style / layout / containerList.scss
CommitLineData
4db4751b
JR
1.containerList {
2 > li {
3 position: relative;
4 transition: background-color .2s;
929f7e47 5
4db4751b
JR
6 @include screen-md-down {
7 padding: 10px 0;
8 }
929f7e47 9
4db4751b
JR
10 @include screen-lg {
11 padding: 20px;
929f7e47 12 }
b8eab696 13
4db4751b
JR
14 &:not(:last-child) {
15 border-bottom: 1px solid $wcfContentBorderInner;
b8eab696 16 }
7dfd5afb 17
4db4751b
JR
18 &:first-child {
19 border-top: 1px solid $wcfContentBorder;
7dfd5afb
MW
20 }
21
4db4751b
JR
22 &:last-child {
23 border-bottom: 1px solid $wcfContentBorder;
7dfd5afb 24 }
fde578c4 25
4db4751b
JR
26 &:hover {
27 background-color: $wcfTabularBoxBackgroundActive;
fde578c4 28 }
4db4751b
JR
29
30 &.showMore {
31 text-align: center;
32
33 &:hover {
34 background-color: transparent;
35 }
f5ba6d2c 36 }
929f7e47 37
4db4751b
JR
38 .containerHeadline {
39 position: relative;
929f7e47 40
4db4751b
JR
41 > .containerContentType {
42 color: $wcfContentDimmedText;
43 position: absolute;
44 top: 5px;
45 right: 0;
0e18a1e4 46
4db4751b
JR
47 @include screen-xs {
48 display: none;
929f7e47 49 }
f5ba6d2c 50 }
4db4751b
JR
51 }
52
53 &.containerListButtonGroup {
54 text-align: right;
f5ba6d2c 55
4db4751b
JR
56 &:hover {
57 background-color: transparent;
f5ba6d2c
AE
58 }
59
4db4751b
JR
60 > .buttonGroup {
61 display: inline-flex;
f5ba6d2c 62
4db4751b
JR
63 &:not(:first-child) {
64 margin-left: 5px;
929f7e47 65 }
f5ba6d2c 66 }
f5ba6d2c 67
4db4751b
JR
68 > .recentActivityFollowedNoResults {
69 text-align: left;
70 }
71 }
72
73 @include screen-md-down {
74 .hasMobileNavigation > .containerHeadline > h3 {
75 padding-right: 30px;
3f1e37b5
AE
76 }
77
4db4751b
JR
78 .buttonGroupNavigation {
79 position: absolute;
80 right: 0;
81 top: 14px;
929f7e47 82
4db4751b
JR
83 &.open {
84 left: 0;
f5ba6d2c 85
4db4751b
JR
86 // dropdown is contained within this element, required to have it stand
87 // above any succeeding siblings
88 z-index: 10;
89
90 > .buttonList {
91 display: block;
92 visibility: visible;
f5ba6d2c 93 }
4db4751b
JR
94 }
95
96 > .dropdownLabel {
97 left: calc(100% - 24px);
98 position: relative;
99 }
100
101 > .buttonList {
102 @include dropdownMenu;
f5ba6d2c 103
4db4751b
JR
104 position: static !important;
105 top: 0;
106
107 > li {
108 .invisible {
109 display: inline;
110 padding-left: 5px;
f5ba6d2c
AE
111 }
112 }
4db4751b
JR
113 }
114 }
115 }
116
117 @include screen-lg {
118 .buttonGroupNavigation {
119 opacity: 0;
120 position: absolute;
121 right: 20px;
122 top: 15px;
123 transition: opacity .12s;
124
125 > .dropdownLabel {
126 display: none;
127 }
128
129 > ul {
130 background-color: $wcfContentBackground;
131 border: 1px solid rgba(0, 0, 0, .15);
132 border-radius: 6px;
f5ba6d2c 133
4db4751b
JR
134 > li {
135 margin-right: 0;
136
137 &:not(:last-child) {
138 border-right: 1px solid rgba(0, 0, 0, .15);
139 }
140
f5ba6d2c 141 > a {
4db4751b
JR
142 display: inline-block;
143 padding: 3px 5px;
144
d8684224
AE
145 > .icon,
146 > .invisible {
4db4751b 147 color: rgba(0, 0, 0, .5);
f5ba6d2c 148 }
929f7e47 149 }
4db4751b
JR
150
151 &.active,
152 &:hover {
153 > a {
154 > .icon,
155 > .invisible {
156 color: $wcfContentText;
157 }
158 }
159 }
160 }
161 }
162 }
163
164 &:hover .buttonGroupNavigation {
165 opacity: 1;
166 }
167 }
168 }
169
170 @include screen-sm-down {
171 &.doubleColumned,
172 &.tripleColumned {
173 > li + li {
174 margin-top: 10px;
175 }
176 }
177 }
178
179 @include screen-md-up {
180 &.doubleColumned,
181 &.tripleColumned {
182 display: flex;
183 flex-wrap: wrap;
184
185 > li {
9133f318
AE
186 // this will cause the mobile drop-down menu to be cut-off
187 // overflow: hidden;
4db4751b
JR
188 padding-right: 15px;
189
190 .containerBoxContent {
191 overflow: hidden;
192
193 h3 {
194 overflow: hidden;
195 text-overflow: ellipsis;
196 white-space: nowrap;
929f7e47
MW
197 }
198 }
4db4751b
JR
199
200 &:first-child {
201 border-top: none;
202 }
203
204 &:last-child {
205 border-bottom: none;
206 }
929f7e47 207 }
4db4751b
JR
208
209 border-top: 1px solid $wcfContentBorder;
210 border-bottom: 1px solid $wcfContentBorder;
211 }
212
213 &.doubleColumned > li {
214 flex: 0 0 50%;
215 max-width: 50%;
929f7e47 216 }
f5ba6d2c 217
4db4751b
JR
218 &.tripleColumned > li {
219 flex: 0 0 calc(100% / 3);
220 /* work-around for IE10 */
221 width: calc(100% / 3);
f5ba6d2c 222 }
929f7e47 223 }
b8eab696
AE
224}
225
226.containerBoxList {
f216765b
AE
227 @include screen-sm-down {
228 &.doubleColumned,
229 &.tripleColumned {
230 > li + li {
231 margin-top: 10px;
232 }
233 }
234 }
235
236 @include screen-md-up {
63e2f52f
AE
237 &.doubleColumned,
238 &.tripleColumned {
239 display: flex;
240 flex-wrap: wrap;
241 margin-bottom: -15px;
95961bdf 242
63e2f52f 243 > li {
95961bdf 244 overflow: hidden;
63e2f52f
AE
245 padding-right: 15px;
246 margin-bottom: 15px;
95961bdf 247
63e2f52f 248 .containerBoxContent {
95961bdf 249 overflow: hidden;
63e2f52f
AE
250
251 h3 {
252 overflow: hidden;
253 text-overflow: ellipsis;
254 white-space: nowrap;
255 }
95961bdf
MW
256 }
257 }
b8eab696 258 }
63e2f52f
AE
259
260 &.doubleColumned > li {
261 flex: 0 0 50%;
ce280017 262 max-width: 50%;
63e2f52f
AE
263 }
264
265 &.tripleColumned > li {
266 flex: 0 0 calc(100% / 3);
267 /* work-around for IE10 */
268 width: calc(100% / 3);
269 }
b8eab696 270 }
b8eab696 271}
5d8f8836
MW
272
273.recentActivityList {
274 .box48 {
275 max-height: 500px;
276 overflow: hidden;
277 }
278}
f32b3ddd
G
279
280.flexibleCategoryList {
281 position: relative;
282
283 > li {
284 margin-bottom: 14px;
285
286 > ol {
287 margin-left: 21px;
288 }
289
290 > ol > li > ol {
291 margin-bottom: 7px;
292 margin-left: 21px;
293
294 > li {
295 font-size: $wcfFontSizeSmall;
296 }
297 }
298 }
299}
300
301@include screen-md-up {
302 .flexibleCategoryList:not(.flexibleCategoryListDisabled) {
303 /* WebKit */
304 -webkit-column-count: 2;
305
306 /* Firefox */
307 -moz-column-count: 2;
308
309 /* CSS 3 / Internet Explorer */
310 column-count: 2;
311
312 > li {
313 /* WebKit */
314 -webkit-column-break-inside: avoid;
315
316 /* CSS 3 / Internet Explorer */
317 break-inside: avoid;
318
319 > ol > li > ol {
320 font-size: 0;
321
322 > li {
323 display: inline-block;
324 }
325 }
326 }
327 }
328
329 /* Firefox */
330 @-moz-document url-prefix() {
331 .flexibleCategoryList:not(.flexibleCategoryListDisabled) > li {
332 display: block;
333 overflow: hidden;
334 }
335 }
336}
b03aa025
MW
337
338@include screen-md-down {
339 .styleList > li {
340 padding: 10px;
341 }
342}