Skip to content

Instantly share code, notes, and snippets.

@tomvdv
Created December 8, 2014 12:35
Show Gist options
  • Save tomvdv/7bd774c4763c6f69c40e to your computer and use it in GitHub Desktop.
Save tomvdv/7bd774c4763c6f69c40e to your computer and use it in GitHub Desktop.
@mixin mq($point) {
@if $point == xsmall-up {
@media (min-width: 420px) { @content; }
}
@else if $point == small-up {
@media (min-width: 768px) { @content; }
}
@else if $point == medium-up {
@media (min-width: 1024px) { @content; }
}
@else if $point == large-up {
@media (min-width: 1200px) { @content; }
}
@else if $point == xlarge-up {
@media (min-width: 1441px) { @content; }
}
@else if $point == xxlarge-up {
@media (min-width: 1600px) { @content; }
}
}
%clearfix {
&:after {
content: " ";
display: block;
clear: both;
}
}
%visuallyhidden {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}
@tomvdv
Copy link
Author

tomvdv commented Dec 8, 2014

e.g.

margin: 20px;
@include mq(large-up) { 
    margin: 40px;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment