Created
May 14, 2012 10:37
-
-
Save danscotton/2693206 to your computer and use it in GitHub Desktop.
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
| // --------------------------------------- | |
| // BLQ | |
| // --------------------------------------- | |
| #blq-container { | |
| background: @site-background; | |
| // --------------------------------------- | |
| // IMPORTS | |
| // --------------------------------------- | |
| // -- CORE ONLY ------------------------------------- | |
| .i (core) when (@device = core) { | |
| a {text-transform: uppercase;} | |
| } | |
| // -- CORE ------------------------------------- | |
| .i (core) { | |
| background: blue; | |
| font-size: 30px; | |
| } | |
| // -- COMPACT ------------------------------------- | |
| .i (compact) when (@device = compact) { | |
| @media (max-width: 640px) { | |
| a {text-decoration: underline;} | |
| } | |
| } | |
| // -- COMPACT ONLY ------------------------------------- | |
| .i (compact) { | |
| .i (core); | |
| @media (max-width: 640px) { | |
| background: red; | |
| } | |
| } | |
| // -- TABLET ONLY ------------------------------------- | |
| .i (tablet) when (@device = tablet) { | |
| @media (min-width: 640px) { | |
| a {text-decoration: line-through;} | |
| } | |
| } | |
| // -- TABLET ------------------------------------- | |
| .i (tablet) { | |
| .i (compact); | |
| @media (min-width: 640px) { | |
| background: green; | |
| } | |
| } | |
| // -- WIDE ONLY ------------------------------------- | |
| .i (wide) when (@device = wide) { | |
| @media (min-width: 960px) { | |
| a {text-transform: uppercase; text-decoration: line-through;} | |
| } | |
| } | |
| // -- WIDE ------------------------------------- | |
| .i (wide) { | |
| .i (tablet); | |
| @media (min-width: 960px) { | |
| background: yellow; | |
| } | |
| } | |
| // -- CALL IT! ------------------------------------- | |
| .i (@device); | |
| } // end #blq-container |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment