Last active
August 23, 2016 16:26
-
-
Save gotbahn/5a03d2248eba29aca93ae82499bf7b8a to your computer and use it in GitHub Desktop.
Combine & handle Media Queries in LESS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@break-small: 768px; | |
@break-large: 1024px; | |
.foo { | |
color: red; | |
@media only screen and (min-width: @break-small) { | |
color: green; | |
} | |
@media only screen and (min-width: @break-large) { | |
color: blue; | |
} | |
} | |
.bar { | |
background-color: red; | |
@media only screen and (min-width: @break-small) { | |
background-color: green; | |
} | |
@media only screen and (min-width: @break-large) { | |
background-color: blue; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment