|
|
@@ -14,9 +14,9 @@
|
|
14
|
14
|
v-html="allPages[type].content"
|
|
15
|
15
|
)
|
|
16
|
16
|
|
|
17
|
|
- ul.posts(v-if="posts && loaded" :class="{ 'is-grid': grid }")
|
|
18
|
|
- li(v-for="(post, i) in posts" :key="post.slug").post
|
|
19
|
|
- card(:content="post" :type="type" :wide="type == 'exhibition' && i > 1 || type == 'event' && i > 1 ")
|
|
|
17
|
+ ul.posts.f-col(v-if="posts && loaded" :class="{ 'is-grid': grid }")
|
|
|
18
|
+ li(v-for="(post, i) in posts" :key="post.slug").post.w-max
|
|
|
19
|
+ card(:content="post" :type="type" :wide="isWide")
|
|
20
|
20
|
|
|
21
|
21
|
//- Important: Do NOT remove this! Required for intersection observer
|
|
22
|
22
|
footer
|
|
|
@@ -73,6 +73,9 @@ export default {
|
|
73
|
73
|
if (!this.pType) return
|
|
74
|
74
|
return this[`all${this.pType}`]
|
|
75
|
75
|
},
|
|
|
76
|
+ isWide() {
|
|
|
77
|
+ return this.type == 'exhibition' && i > 1 || this.type == 'event' && i > 1
|
|
|
78
|
+ }
|
|
76
|
79
|
},
|
|
77
|
80
|
methods: {
|
|
78
|
81
|
clearAllPosts() {
|
|
|
@@ -227,10 +230,8 @@ export default {
|
|
227
|
230
|
@import '../sss/variables.sss'
|
|
228
|
231
|
@import '../sss/theme.sss'
|
|
229
|
232
|
.page--list
|
|
230
|
|
- /* background-color: white */
|
|
231
|
233
|
article
|
|
232
|
234
|
> header
|
|
233
|
|
- /* padding: 1em 0 1em 0 */
|
|
234
|
235
|
padding: 1em
|
|
235
|
236
|
> h1
|
|
236
|
237
|
margin: 0
|
|
|
@@ -238,24 +239,21 @@ export default {
|
|
238
|
239
|
padding: 0
|
|
239
|
240
|
width: 100%
|
|
240
|
241
|
> footer
|
|
241
|
|
- background-color: white
|
|
242
|
242
|
padding: $ms-0
|
|
243
|
243
|
/* posts not grid list */
|
|
244
|
|
- ul img
|
|
245
|
|
- max-width: 50%
|
|
246
|
|
-
|
|
247
|
|
- .is-grid
|
|
248
|
|
- display: flex
|
|
249
|
|
- flex-direction: row
|
|
250
|
|
- flex-wrap: wrap
|
|
251
|
|
- justify-content: space-between
|
|
252
|
|
- section
|
|
253
|
|
- width: 32.5%
|
|
254
|
|
- ul
|
|
|
244
|
+ .posts
|
|
|
245
|
+ list-style: none
|
|
|
246
|
+ grid-gap: $ms-0
|
|
|
247
|
+ &.is-grid
|
|
|
248
|
+ flex-direction: row
|
|
255
|
249
|
flex-wrap: wrap
|
|
256
|
|
- list-style: none
|
|
257
|
|
- img
|
|
258
|
|
- max-width: 100%
|
|
|
250
|
+ justify-content: space-between
|
|
|
251
|
+ section
|
|
|
252
|
+ width: 32.5%
|
|
|
253
|
+ ul
|
|
|
254
|
+ flex-wrap: wrap
|
|
|
255
|
+ img
|
|
|
256
|
+ max-width: 100%
|
|
259
|
257
|
|
|
260
|
258
|
@media (min-width: $medium)
|
|
261
|
259
|
.page--list.f-col
|