|
|
@@ -109,6 +109,7 @@ export default {
|
|
109
|
109
|
list-style: none
|
|
110
|
110
|
li.post
|
|
111
|
111
|
background-color: white
|
|
|
112
|
+ margin: 0 0 0.65em 0
|
|
112
|
113
|
.featured-or-hero-image img
|
|
113
|
114
|
max-height: $max-card-img-height
|
|
114
|
115
|
p.excerpt
|
|
|
@@ -121,40 +122,42 @@ export default {
|
|
121
|
122
|
auto
|
|
122
|
123
|
/* min-width 768px */
|
|
123
|
124
|
@media (min-width: $medium)
|
|
124
|
|
- .page--index > article > section
|
|
125
|
|
- ul
|
|
126
|
|
- display: grid
|
|
127
|
|
- grid-template-columns:
|
|
128
|
|
- 49.5% 24.25% 24.25%
|
|
129
|
|
- grid-template-rows:
|
|
130
|
|
- 48% 48%
|
|
131
|
|
- gap: 2% 1%
|
|
132
|
|
- li
|
|
133
|
|
- margin: 0
|
|
134
|
|
- min-height: 10em
|
|
135
|
|
- &:nth-of-type(2), &:nth-of-type(3), &:nth-of-type(4), &:nth-of-type(5)
|
|
136
|
|
- p.excerpt
|
|
137
|
|
- -webkit-line-clamp: $card-line-clamp
|
|
138
|
|
- .featured-or-hero-image img
|
|
139
|
|
- max-height: calc($max-card-img-height / 2)
|
|
140
|
|
- /* n1 episode */
|
|
141
|
|
- &:nth-of-type(1)
|
|
142
|
|
- grid-column-start: 1
|
|
143
|
|
- grid-row-start: 1
|
|
144
|
|
- grid-row-end: 3
|
|
145
|
|
- /* n2 exhibition, n3 events */
|
|
146
|
|
- &:nth-of-type(2), &:nth-of-type(3)
|
|
147
|
|
- grid-column-start: 2
|
|
148
|
|
- grid-row-start: 1
|
|
149
|
|
- &:nth-of-type(3)
|
|
150
|
|
- grid-column-start: 3
|
|
|
125
|
+ .page--index
|
|
|
126
|
+ > article
|
|
|
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
|
|
151
|
154
|
|
|
152
|
|
- /* n4 artists, n5 posts */
|
|
153
|
|
- &:nth-of-type(4), &:nth-of-type(5)
|
|
154
|
|
- grid-column-start: 2
|
|
155
|
|
- grid-row-start: 2
|
|
156
|
|
- &:nth-of-type(5)
|
|
157
|
|
- grid-column-start: 3
|
|
|
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
|
|
158
|
161
|
&.max
|
|
159
|
162
|
/* Need some extra gap on wide pages */
|
|
160
|
163
|
padding: $ms--2 0
|