There was an error while loading. Please reload this page.
1 parent 419a6dc commit 2f7001aCopy full SHA for 2f7001a
1 file changed
static/sass/_pattern_homepage.scss
@@ -162,10 +162,11 @@
162
@media screen and (width < $breakpoint-small) {
163
display: flex !important;
164
flex-direction: column;
165
- height: 100%;
166
- // Opt out of the 4-row subgrid span too, otherwise the spanned grid
167
- // tracks absorb the margin that separates stacked cards.
+ // Opt out of the 4-row subgrid span, and stop the card stretching to
+ // fill its grid track — otherwise a taller card grows down into the next
+ // one and swallows the gap between them.
168
grid-row: auto;
169
+ align-self: start;
170
171
& + & {
172
margin-top: 1.5rem;
@@ -176,12 +177,6 @@
176
177
bottom: auto !important;
178
top: auto !important;
179
transform: none !important;
- flex: 0 0 auto;
180
-
181
- &:last-child {
182
- margin-top: auto;
183
- flex: 1 1 auto;
184
- }
185
}
186
187
0 commit comments