Forked from davidgilbertson/css-breakpoint-mixins.scss
Created
November 19, 2016 21:48
-
-
Save JoniWeiss/e3407c32f092b7319a79aaf6a6fa0545 to your computer and use it in GitHub Desktop.
This file contains 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
@mixin for-phone-only { | |
@media (max-width: 599px) { @content; } | |
} | |
@mixin for-tablet-portrait-up { | |
@media (min-width: 600px) { @content; } | |
} | |
@mixin for-tablet-portait-only { | |
@media (min-width: 600px) and (max-width: 899px) { @content; } | |
} | |
@mixin for-tablet-landscape-up { | |
@media (min-width: 900px) { @content; } | |
} | |
@mixin for-tablet-landscape-only { | |
@media (min-width: 900px) and (max-width: 1199px) { @content; } | |
} | |
@mixin for-desktop-up { | |
@media (min-width: 1200px) { @content; } | |
} | |
@mixin for-desktop-only { | |
@media (min-width: 1200px) and (max-width: 1799px) { @content; } | |
} | |
@mixin for-big-desktop-up { | |
@media (min-width: 1800px) { @content; } | |
} | |
// usage | |
.my-box { | |
padding: 10px; | |
@include for-desktop-up { | |
padding: 20px; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment