Added missing phrase
[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 {
186 overflow: hidden;
187 padding-right: 15px;
188
189 .containerBoxContent {
190 overflow: hidden;
191
192 h3 {
193 overflow: hidden;
194 text-overflow: ellipsis;
195 white-space: nowrap;
929f7e47
MW
196 }
197 }
4db4751b
JR
198
199 &:first-child {
200 border-top: none;
201 }
202
203 &:last-child {
204 border-bottom: none;
205 }
929f7e47 206 }
4db4751b
JR
207
208 border-top: 1px solid $wcfContentBorder;
209 border-bottom: 1px solid $wcfContentBorder;
210 }
211
212 &.doubleColumned > li {
213 flex: 0 0 50%;
214 max-width: 50%;
929f7e47 215 }
f5ba6d2c 216
4db4751b
JR
217 &.tripleColumned > li {
218 flex: 0 0 calc(100% / 3);
219 /* work-around for IE10 */
220 width: calc(100% / 3);
f5ba6d2c 221 }
929f7e47 222 }
b8eab696
AE
223}
224
225.containerBoxList {
f216765b
AE
226 @include screen-sm-down {
227 &.doubleColumned,
228 &.tripleColumned {
229 > li + li {
230 margin-top: 10px;
231 }
232 }
233 }
234
235 @include screen-md-up {
63e2f52f
AE
236 &.doubleColumned,
237 &.tripleColumned {
238 display: flex;
239 flex-wrap: wrap;
240 margin-bottom: -15px;
95961bdf 241
63e2f52f 242 > li {
95961bdf 243 overflow: hidden;
63e2f52f
AE
244 padding-right: 15px;
245 margin-bottom: 15px;
95961bdf 246
63e2f52f 247 .containerBoxContent {
95961bdf 248 overflow: hidden;
63e2f52f
AE
249
250 h3 {
251 overflow: hidden;
252 text-overflow: ellipsis;
253 white-space: nowrap;
254 }
95961bdf
MW
255 }
256 }
b8eab696 257 }
63e2f52f
AE
258
259 &.doubleColumned > li {
260 flex: 0 0 50%;
ce280017 261 max-width: 50%;
63e2f52f
AE
262 }
263
264 &.tripleColumned > li {
265 flex: 0 0 calc(100% / 3);
266 /* work-around for IE10 */
267 width: calc(100% / 3);
268 }
b8eab696 269 }
b8eab696 270}
5d8f8836
MW
271
272.recentActivityList {
273 .box48 {
274 max-height: 500px;
275 overflow: hidden;
276 }
277}
f32b3ddd
G
278
279.flexibleCategoryList {
280 position: relative;
281
282 > li {
283 margin-bottom: 14px;
284
285 > ol {
286 margin-left: 21px;
287 }
288
289 > ol > li > ol {
290 margin-bottom: 7px;
291 margin-left: 21px;
292
293 > li {
294 font-size: $wcfFontSizeSmall;
295 }
296 }
297 }
298}
299
300@include screen-md-up {
301 .flexibleCategoryList:not(.flexibleCategoryListDisabled) {
302 /* WebKit */
303 -webkit-column-count: 2;
304
305 /* Firefox */
306 -moz-column-count: 2;
307
308 /* CSS 3 / Internet Explorer */
309 column-count: 2;
310
311 > li {
312 /* WebKit */
313 -webkit-column-break-inside: avoid;
314
315 /* CSS 3 / Internet Explorer */
316 break-inside: avoid;
317
318 > ol > li > ol {
319 font-size: 0;
320
321 > li {
322 display: inline-block;
323 }
324 }
325 }
326 }
327
328 /* Firefox */
329 @-moz-document url-prefix() {
330 .flexibleCategoryList:not(.flexibleCategoryListDisabled) > li {
331 display: block;
332 overflow: hidden;
333 }
334 }
335}
b03aa025
MW
336
337@include screen-md-down {
338 .styleList > li {
339 padding: 10px;
340 }
341}