Merge branch '3.0' into 3.1
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / style / ui / article.scss
1 .articleImage {
2 /* work-around for IE 11 to properly align the image if overflowing */
3 display: flex;
4 flex-wrap: wrap;
5
6 .articleImageWrapper {
7 align-items: center;
8 display: flex;
9 max-height: 300px;
10 overflow: hidden;
11
12 img {
13 height: auto !important;
14 width: 100% !important;
15 }
16 }
17
18 figcaption {
19 color: $wcfContentDimmedText;
20 flex: 1 0 100%;
21 margin-top: 5px;
22 text-align: center;
23
24 @include wcfFontSmall;
25 }
26 }
27
28 .articleContent {
29 .articleTeaser {
30 @include wcfFontBold;
31
32 margin-bottom: 20px;
33 }
34
35 .articleTagList {
36 margin-top: 20px;
37 }
38
39 .articleLikeSection {
40 align-items: center;
41 }
42
43 .articleLikeButtons {
44 justify-content: flex-end;
45
46 .invisible {
47 display: inline;
48 }
49 }
50
51 .articleLikesSummery:not(:empty),
52 .articleLikeButtons:not(:empty) {
53 margin-top: 20px;
54 }
55 }
56
57 .articleAboutAuthor {
58 .articleAboutAuthorText {
59 font-style: italic;
60 }
61
62 .articleAboutAuthorUsername {
63 margin-top: 5px;
64
65 .username {
66 @include wcfFontHeadline;
67 }
68
69 .userTitleBadge {
70 top: -2px;
71 }
72 }
73 }
74
75 .articleNavigation {
76 @include screen-md-up {
77 > nav > ul {
78 display: flex;
79 }
80 }
81
82 .previousArticleButton,
83 .nextArticleButton {
84 display: flex;
85
86 @include screen-md-up {
87 flex: 0 0 50%;
88 }
89
90 > a {
91 color: $wcfContentText;
92 display: flex;
93
94 &::before {
95 align-self: center;
96 display: block;
97 flex: 0 0 auto;
98 font-family: FontAwesome;
99 font-size: 36px;
100 }
101
102 > div {
103 flex: 1 1 auto;
104 }
105
106 .articleNavigationEntityName,
107 .articleNavigationArticleTitle {
108 display: block;
109 }
110
111 .articleNavigationEntityName {
112 text-transform: uppercase;
113 }
114
115 .articleNavigationArticleTitle {
116 margin-top: 3px;
117
118 @include wcfFontHeadline;
119 }
120
121 .articleNavigationArticleImage {
122 > img {
123 border-radius: 2px;
124 opacity: .85;
125 transition: .2s ease opacity;
126 }
127 }
128
129 &:hover {
130 &::before {
131 color: $wcfContentLinkActive;
132 }
133
134 .articleNavigationArticleTitle {
135 color: $wcfContentLinkActive;
136 }
137
138 .articleNavigationArticleImage {
139 > img {
140 opacity: 1;
141 }
142 }
143 }
144 }
145 }
146
147 .previousArticleButton {
148 @include screen-md-up {
149 padding-right: 10px;
150 }
151
152 > a {
153 &::before {
154 content: $fa-var-chevron-left;
155 }
156
157 > div {
158 margin-left: 10px;
159 }
160 }
161 }
162
163 .nextArticleButton {
164 justify-content: flex-end;
165 text-align: right;
166
167 @include screen-md-up {
168 margin-left: 50%;
169 padding-left: 10px;
170 }
171
172 .articleNavigationArticleImage {
173 order: 1;
174 margin-left: 15px;
175 margin-right: 0;
176 }
177
178 > a {
179 &::before {
180 content: $fa-var-chevron-right;
181 order: 1;
182 }
183
184 > div {
185 margin-right: 10px;
186 }
187 }
188 }
189
190 .previousArticleButton + .nextArticleButton {
191 @include screen-sm-down {
192 margin-top: 20px;
193 }
194
195 @include screen-md-up {
196 margin-left: 0;
197 }
198 }
199 }
200
201 /* fix icons in rtl design */
202 html[dir="rtl"] {
203 .articleNavigation {
204 .previousArticleButton {
205 > a {
206 &::before {
207 content: $fa-var-chevron-right;
208 }
209 }
210 }
211
212 .nextArticleButton {
213 > a {
214 &::before {
215 content: $fa-var-chevron-left;
216 }
217 }
218 }
219 }
220 }
221
222 .articleList {
223 .articleListMetaData {
224 color: $wcfContentDimmedText;
225 margin-top: 2px;
226
227 .icon {
228 color: inherit;
229 }
230 }
231
232 a {
233 color: inherit;
234
235 &:hover {
236 color: inherit;
237
238 .articleListImage > img {
239 opacity: 1;
240 }
241
242 .articleListTitle {
243 color: $wcfContentLinkActive;
244 }
245 }
246 }
247
248 .articleListImage > img {
249 border-radius: 2px;
250 opacity: .85;
251 transition: .2s ease opacity;
252 }
253
254 > li:not(:first-child) {
255 margin-top: 30px;
256 }
257
258 @include screen-xs {
259 .box128 > .articleListImage {
260 margin-right: 10px;
261 }
262
263 .articleListImage > img {
264 height: 64px !important;
265 width: 64px !important;
266 }
267 }
268 }
269
270 .boxesFooterBoxes {
271 .articleList {
272 display: flex;
273 flex-wrap: wrap;
274 margin: 0 -5px -20px -5px;
275
276 > li {
277 margin: 0 5px 20px 5px;
278 }
279
280 .articleListImage > img {
281 height: auto !important;
282 max-width: 280px;
283 width: 100% !important;
284 }
285
286 .articleListImage + .articleListTitle {
287 margin-top: 5px;
288 }
289
290 .articleListMetaData {
291 display: none;
292 }
293 }
294
295 @include screen-lg {
296 .articleList {
297 > li {
298 flex: 0 0 calc(100%/3 - 10px);
299 max-width: calc(100%/3 - 10px);
300 }
301 }
302
303 .boxFullWidth {
304 .articleList {
305 > li {
306 flex: 0 0 calc(100%/6 - 10px);
307 max-width: calc(100%/6 - 10px);
308 }
309 }
310 }
311 }
312
313 @include screen-sm-up {
314 .articleList {
315 > li {
316 flex: 0 0 calc(100%/3 - 10px);
317 max-width: calc(100%/3 - 10px);
318 }
319 }
320 }
321
322 @include screen-xs {
323 .articleList {
324 justify-content: center;
325
326 > li {
327 width: 280px;
328 }
329 }
330 }
331 }