Last active
August 29, 2015 14:04
-
-
Save SteveBarnett/b968006c107c15c174d2 to your computer and use it in GitHub Desktop.
Respond-min for less
This file contains 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
[role="banner"] { | |
text-align: center; | |
.respond-min(50em, { | |
text-align: left; | |
}); | |
} |
This file contains 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
.respond-min(@mq; @rules) { | |
@media screen and (min-width: @mq) { | |
@rules(); | |
} | |
.lt-ie9 & { | |
@rules(); | |
} | |
} |
This file contains 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
<!--[if lt IE 9]> <html class="no-js lt-ie9"> <![endif]--> | |
<!--[if IE 9|!(IE)]><!--> <html class="no-js"> <!--<![endif]--> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment