Skip to content
35 changes: 31 additions & 4 deletions static/sass/_pattern_homepage.scss
Original file line number Diff line number Diff line change
Expand Up @@ -134,21 +134,48 @@
}

.p-homepage-card {
background-color: #202020; /* dark background */
background-color: #202020;
padding: 0;
border: 1px solid rgb(255 255 255 / 10%); /* subtle border */
border: 1px solid rgb(255 255 255 / 10%);
justify-content: space-between;
align-items: center;
}

.p-homepage-blog-card {
background-color: #202020; /* dark background */
border: 1px solid rgb(255 255 255 / 10%); /* subtle border */
background-color: #202020;
border: 1px solid rgb(255 255 255 / 10%);
padding: 0;

@media screen and (width < $breakpoint-large) {
padding-bottom: 0;
}

// On small screens Vanilla collapses the image, title and excerpt into a
// single subgrid column, which overlaps (excerpt over title) on some
// iOS/Safari builds. Lay the card out with flexbox there instead — medium
// and large keep Vanilla's equal-height grid (image left / text right)
// untouched.
@media screen and (width < $breakpoint-small) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are still using important

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@petesfrench Sorry, looks like the changes were not pushed. I've just pushed them. Can you take a look again.

Thanks

display: flex !important;
flex-direction: column;
// 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.
grid-row: auto;
align-self: start;

& + & {
margin-top: 1.5rem;
}

.p-equal-height-row__item {
position: relative !important;
bottom: auto !important;
top: auto !important;
transform: none !important;
}
}

a {
color: var(--vf-color-link-default);
}
Expand Down
Loading