Skip to content

Instantly share code, notes, and snippets.

@jtomasek
Created September 20, 2013 12:37
Show Gist options
  • Save jtomasek/6636825 to your computer and use it in GitHub Desktop.
Save jtomasek/6636825 to your computer and use it in GitHub Desktop.
media.less
/*
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