Skip to content

Instantly share code, notes, and snippets.

@clintfisher
Forked from peterwilsoncc/320up.less
Created December 5, 2012 22:11
Show Gist options
  • Save clintfisher/4219970 to your computer and use it in GitHub Desktop.
Save clintfisher/4219970 to your computer and use it in GitHub Desktop.
“Mobile first” CSS and getting LESS to help with legacy IE
.320up(){
.three20 {
color: #fff;
}
} /* end 320up mixin */
/*
note: this gist relates to http://nicolasgallagher.com/mobile-first-css-sass-and-ie/
It is a LESS CSS reproduction of Nicolas's Sass method.
First created some time ago, it's possible it no longer works or there is a better way. In other words, this may or may not work.
*/
.base {
color: #000;
}
@import "subs/base.less";
@import "subs/320up.less";
.320up();
@import "subs/base.less";
@import "subs/320up.less";
@media (min-width:320px) {
.320up();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment