Created
September 20, 2013 12:37
-
-
Save jtomasek/6636825 to your computer and use it in GitHub Desktop.
media.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
/* | |
CSS media groups | |
*/ | |
@media screen, projection { | |
html { | |
background: #fffef0; | |
color: #300; | |
} | |
body { | |
max-width: 35em; | |
margin: 0 auto; | |
} | |
} | |
/* | |
Variables | |
*/ | |
@media print { | |
@var: 42; | |
.class { | |
color: blue; | |
.sub { | |
width: @var; | |
} | |
} | |
.top, header > h1 { | |
color: #222 * 2; | |
} | |
} | |
@media screen { | |
@base: 8; | |
body { max-width: @base * 60; } | |
} | |
/* | |
pseudo | |
*/ | |
@media all and (orientation:portrait) { | |
aside { float: none; } | |
} | |
/* | |
*/ | |
@variable: 768px; | |
@media (min-width: @variable) and (max-width: 979px) { | |
.hidden-desktop { display: none !important; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment