Skip to content

Instantly share code, notes, and snippets.

@paigen11
Created February 1, 2020 23:15
Show Gist options
  • Save paigen11/e0f08241bf1c2ac40a00e51b907c7074 to your computer and use it in GitHub Desktop.
Save paigen11/e0f08241bf1c2ac40a00e51b907c7074 to your computer and use it in GitHub Desktop.
The different CSS which gets rendered based on the React Socks component wrapped in breakpoints.
.genre-list {
display: grid;
grid-template-columns: repeat(4, 1fr);
max-width: 1200px;
grid-gap: 15px;
justify-items: center;
margin: auto;
h3 {
margin: 200px auto;
}
}
.breakpoint__medium-only {
.genre-list {
grid-template-columns: repeat(3, 1fr);
}
h3 {
font-size: 18px;
width: 80%;
}
.genre-component {
width: 170px;
height: 170px;
h3 {
font-size: 22px;
}
}
}
.breakpoint__small-down {
.genre-list {
grid-template-columns: repeat(2, 1fr);
}
h3 {
font-size: 18px;
width: 80%;
}
.genre-component {
width: 140px;
height: 140px;
font-size: 18px;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment