Created
January 7, 2013 21:45
-
-
Save sirkitree/4478794 to your computer and use it in GitHub Desktop.
breakpoint mixins
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
| /** | |
| * This file contains breakpoints used for all browsers except IE7/8. | |
| */ | |
| @mixin breakpoint($point) { | |
| @if $point == tall { | |
| @media only screen and (min-width: 480px) { | |
| $zen-column-count: 1; | |
| $zen-gutter-width: 0; | |
| @content; | |
| } | |
| } | |
| @if $point == grande { | |
| @media only screen and (min-width: 768px) { | |
| $zen-column-count: 12; | |
| $zen-gutter-width: 60px; | |
| $baseFont: 14; | |
| @content; | |
| } | |
| } | |
| @if $point == grandeonly { | |
| @media only screen and (min-width: 768px) and (max-width: 959px) { | |
| $zen-column-count: 12; | |
| $zen-gutter-width: 60px; | |
| @content; | |
| } | |
| } | |
| @if $point == venti { | |
| @media only screen and (min-width: 960px) { | |
| $zen-column-count: 12; | |
| $zen-gutter-width: 60px; | |
| @content; | |
| } | |
| } | |
| @else if $point == trenta { | |
| @media only screen and (min-width: 1080px) { | |
| $zen-column-count: 12; | |
| $zen-gutter-width: 60px; | |
| @content; | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment