We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Neat's media mixin supports: variables, min-width, max-width, etc... basically any media query can be passed through.
By default, @include media() uses min-width so:
@include media()
min-width
This would be the normal WDS workflow
Sass
.foo { @include media($tablet-landscape) { color: $color-black; } }
CSS
@media screen and (min-width: 64rem) { .foo { color: #000; } }
Plain 'ol pixels
.foo { @include media(768px) { color: $color-black; } }
@media screen and (min-width: 768px) { .foo { color: #000; } }
Use max-width
.foo { @include media(max-width 768px) { color: $color-black; } }
@media screen and (max-width: 768px) { .foo { color: #000; } }
Combine both min and max widths using variables
.foo { @include media(min-width $phone-portrait max-width $phone-landscape) { color: $color-black; } }
@media screen and (min-width: 22.5rem) and (max-width: 40rem) { .foo { color: #000; } }
See it in action here: http://neat.bourbon.io/examples/
The text was updated successfully, but these errors were encountered:
+1 Also would fix #117 as the sizes would be a variable.
Sorry, something went wrong.
+1
+1 on this!
FO. SHO. Let's do iiiiitttt
+1 here!
b1f6cba
No branches or pull requests
Neat's media mixin supports: variables, min-width, max-width, etc... basically any media query can be passed through.
By default,
@include media()
usesmin-width
so:This would be the normal WDS workflow
Sass
CSS
Plain 'ol pixels
Sass
CSS
Use max-width
Sass
CSS
Combine both min and max widths using variables
Sass
CSS
See it in action here: http://neat.bourbon.io/examples/
The text was updated successfully, but these errors were encountered: