|
|
@@ -83,7 +83,7 @@ export default {
|
|
83
|
83
|
await this.$store.dispatch('getAllPages', { sortType: null, params: null })
|
|
84
|
84
|
}
|
|
85
|
85
|
await this.$store.dispatch('getRandomPosts', ['episode', 'exhibition', 'event', 'artist', 'post'])
|
|
86
|
|
- },
|
|
|
86
|
+ },
|
|
87
|
87
|
methods: {
|
|
88
|
88
|
firstPostOfType(type) {
|
|
89
|
89
|
return Object.values(this[`all${convertTitleCase(type)}s`])[0]
|
|
|
@@ -125,89 +125,89 @@ export default {
|
|
125
|
125
|
.page--index
|
|
126
|
126
|
> article
|
|
127
|
127
|
grid-gap: $ms--2 0
|
|
128
|
|
- > section ul
|
|
129
|
|
- display: grid
|
|
130
|
|
- grid-template-columns:
|
|
131
|
|
- 49.5% 24.25% 24.25%
|
|
132
|
|
- grid-template-rows:
|
|
133
|
|
- 48% 48%
|
|
134
|
|
- gap: 2% 1%
|
|
135
|
|
- li
|
|
136
|
|
- margin: 0
|
|
137
|
|
- min-height: 10em
|
|
138
|
|
- &:nth-of-type(2), &:nth-of-type(3), &:nth-of-type(4), &:nth-of-type(5)
|
|
139
|
|
- p.excerpt
|
|
140
|
|
- -webkit-line-clamp: $card-line-clamp
|
|
141
|
|
- .featured-or-hero-image img
|
|
142
|
|
- max-height: calc($max-card-img-height / 2)
|
|
143
|
|
- /* n1 episode */
|
|
144
|
|
- &:nth-of-type(1)
|
|
145
|
|
- grid-column-start: 1
|
|
146
|
|
- grid-row-start: 1
|
|
147
|
|
- grid-row-end: 3
|
|
148
|
|
- /* n2 exhibition, n3 events */
|
|
149
|
|
- &:nth-of-type(2), &:nth-of-type(3)
|
|
150
|
|
- grid-column-start: 2
|
|
151
|
|
- grid-row-start: 1
|
|
152
|
|
- &:nth-of-type(3)
|
|
153
|
|
- grid-column-start: 3
|
|
154
|
|
-
|
|
155
|
|
- /* n4 artists, n5 posts */
|
|
156
|
|
- &:nth-of-type(4), &:nth-of-type(5)
|
|
157
|
|
- grid-column-start: 2
|
|
158
|
|
- grid-row-start: 2
|
|
159
|
|
- &:nth-of-type(5)
|
|
160
|
|
- grid-column-start: 3
|
|
161
|
|
- &.max
|
|
162
|
|
- /* Need some extra gap on wide pages */
|
|
163
|
|
- padding: $ms--2 0
|
|
164
|
|
- li .featured-or-hero-image img
|
|
165
|
|
- max-height: $max-card-img-height
|
|
166
|
|
- &.stickies
|
|
167
|
|
- .post
|
|
168
|
|
- min-width: 24.25%
|
|
169
|
|
- ul
|
|
170
|
|
- &.flipped
|
|
|
128
|
+ > section
|
|
|
129
|
+ ul
|
|
|
130
|
+ display: grid
|
|
171
|
131
|
grid-template-columns:
|
|
172
|
|
- 24.25% 24.25% 49.5%
|
|
|
132
|
+ 49.5% 24.25% 24.25%
|
|
|
133
|
+ grid-template-rows: repeat(2, 1fr)
|
|
|
134
|
+ gap: 0 $ms--2
|
|
173
|
135
|
li
|
|
|
136
|
+ margin: 0
|
|
|
137
|
+ min-height: 10em
|
|
|
138
|
+ &:nth-of-type(2), &:nth-of-type(3), &:nth-of-type(4), &:nth-of-type(5)
|
|
|
139
|
+ p.excerpt
|
|
|
140
|
+ -webkit-line-clamp: $card-line-clamp
|
|
|
141
|
+ .featured-or-hero-image img
|
|
|
142
|
+ max-height: calc($max-card-img-height / 2)
|
|
|
143
|
+ /* n1 episode */
|
|
174
|
144
|
&:nth-of-type(1)
|
|
175
|
|
- grid-row-end: 2
|
|
176
|
|
- &:nth-of-type(3)
|
|
177
|
145
|
grid-column-start: 1
|
|
178
|
|
- grid-row-start: 2
|
|
179
|
|
- &:nth-of-type(5)
|
|
180
|
146
|
grid-row-start: 1
|
|
181
|
147
|
grid-row-end: 3
|
|
182
|
|
- &[class^="sticky-"]
|
|
183
|
|
- display: flex
|
|
184
|
|
- &.sticky-1
|
|
185
|
|
- > li .card--info
|
|
186
|
|
- display: flex
|
|
187
|
|
- > a:first-of-type
|
|
188
|
|
- width: 100%
|
|
189
|
|
- &.sticky-5
|
|
190
|
|
- grid-template-columns:
|
|
191
|
|
- 24.25% 24.25% 49.5%
|
|
192
|
|
- grid-template-rows:
|
|
193
|
|
- 48% 48%
|
|
194
|
|
- gap: 3% 1%
|
|
195
|
|
- > li
|
|
196
|
|
- &:nth-of-type(1)
|
|
197
|
|
- grid-row-end: 2
|
|
198
|
|
- &:nth-of-type(2)
|
|
|
148
|
+ /* n2 exhibition, n3 events */
|
|
|
149
|
+ &:nth-of-type(2), &:nth-of-type(3)
|
|
199
|
150
|
grid-column-start: 2
|
|
200
|
151
|
grid-row-start: 1
|
|
201
|
|
- grid-row-end: 2
|
|
202
|
152
|
&:nth-of-type(3)
|
|
203
|
|
- grid-column-start: 1
|
|
204
|
|
- grid-row-start: 2
|
|
205
|
|
- margin: 0 0 8% 0
|
|
206
|
|
- &:nth-of-type(4)
|
|
|
153
|
+ grid-column-start: 3
|
|
|
154
|
+
|
|
|
155
|
+ /* n4 artists, n5 posts */
|
|
|
156
|
+ &:nth-of-type(4), &:nth-of-type(5)
|
|
207
|
157
|
grid-column-start: 2
|
|
208
|
158
|
grid-row-start: 2
|
|
209
|
|
- margin: 0 0 8% 0
|
|
210
|
159
|
&:nth-of-type(5)
|
|
211
|
160
|
grid-column-start: 3
|
|
212
|
|
- margin: 0 0 4% 0
|
|
|
161
|
+ &.max
|
|
|
162
|
+ /* Need some extra gap on wide pages */
|
|
|
163
|
+ padding: $ms--2 0
|
|
|
164
|
+ li .featured-or-hero-image img
|
|
|
165
|
+ max-height: $max-card-img-height
|
|
|
166
|
+ &.stickies
|
|
|
167
|
+ .post
|
|
|
168
|
+ min-width: 24.25%
|
|
|
169
|
+ ul
|
|
|
170
|
+ &.flipped
|
|
|
171
|
+ grid-template-columns:
|
|
|
172
|
+ 24.25% 24.25% 49.5%
|
|
|
173
|
+ li
|
|
|
174
|
+ &:nth-of-type(1)
|
|
|
175
|
+ grid-row-end: 2
|
|
|
176
|
+ &:nth-of-type(3)
|
|
|
177
|
+ grid-column-start: 1
|
|
|
178
|
+ grid-row-start: 2
|
|
|
179
|
+ &:nth-of-type(5)
|
|
|
180
|
+ grid-row-start: 1
|
|
|
181
|
+ grid-row-end: 3
|
|
|
182
|
+ &[class^="sticky-"]
|
|
|
183
|
+ display: flex
|
|
|
184
|
+ &.sticky-1
|
|
|
185
|
+ > li .card--info
|
|
|
186
|
+ display: flex
|
|
|
187
|
+ > a:first-of-type
|
|
|
188
|
+ width: 100%
|
|
|
189
|
+ &.sticky-5
|
|
|
190
|
+ grid-template-columns:
|
|
|
191
|
+ 24.25% 24.25% 49.5%
|
|
|
192
|
+ grid-template-rows:
|
|
|
193
|
+ repeat(2, 1fr)
|
|
|
194
|
+ gap: 3% 1%
|
|
|
195
|
+ > li
|
|
|
196
|
+ &:nth-of-type(1)
|
|
|
197
|
+ grid-row-end: 2
|
|
|
198
|
+ &:nth-of-type(2)
|
|
|
199
|
+ grid-column-start: 2
|
|
|
200
|
+ grid-row-start: 1
|
|
|
201
|
+ grid-row-end: 2
|
|
|
202
|
+ &:nth-of-type(3)
|
|
|
203
|
+ grid-column-start: 1
|
|
|
204
|
+ grid-row-start: 2
|
|
|
205
|
+ margin: 0 0 8% 0
|
|
|
206
|
+ &:nth-of-type(4)
|
|
|
207
|
+ grid-column-start: 2
|
|
|
208
|
+ grid-row-start: 2
|
|
|
209
|
+ margin: 0 0 8% 0
|
|
|
210
|
+ &:nth-of-type(5)
|
|
|
211
|
+ grid-column-start: 3
|
|
|
212
|
+ margin: 0 0 4% 0
|
|
213
|
213
|
</style>
|