Skip to content

Instantly share code, notes, and snippets.

@gotbahn
Last active August 23, 2016 20:53
Show Gist options
  • Save gotbahn/8323ab13880f99c35f57fdc37bf4702b to your computer and use it in GitHub Desktop.
Save gotbahn/8323ab13880f99c35f57fdc37bf4702b to your computer and use it in GitHub Desktop.
Combine & handle Media Queries in Less
.foo {
color: red;
}
@media only screen and (min-width: 768px) {
.foo {
color: green;
}
}
@media only screen and (min-width: 1024px) {
.foo {
color: blue;
}
}
.bar {
background-color: red;
}
@media only screen and (min-width: 768px) {
.bar {
background-color: green;
}
}
@media only screen and (min-width: 1024px) {
.bar {
background-color: blue;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment