Skip to content

Instantly share code, notes, and snippets.

@konami99
Last active March 7, 2024 10:33
Show Gist options
  • Save konami99/2b16f4ac9b19e52ce1c751364e3f3065 to your computer and use it in GitHub Desktop.
Save konami99/2b16f4ac9b19e52ce1c751364e3f3065 to your computer and use it in GitHub Desktop.
.dashboard-event-tile {
display: grid;
// small screen
grid-template-areas: "image content"
"image content"
". meta";
// medium screen
@media screen and (min-width: 45rem) {
grid-template-areas: "image ."
"content content"
". meta";
}
// large screen
@media screen and (min-width: 75rem) {
grid-template-areas: "image content"
"meta meta";
}
.image {
grid-area: image;
}
.content {
grid-area: content;
}
.meta {
grid-area: meta;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment