Skip to content

Commit

Permalink
Merge pull request #2910 from uswds/dw-print-mqs
Browse files Browse the repository at this point in the history
Use `all` for media queries instead of screen only
  • Loading branch information
saracope committed Feb 15, 2019
2 parents 00c0404 + bb97178 commit 5bf8f92
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/stylesheets/core/mixins/_at-media.scss
@@ -1,4 +1,5 @@
// Mobile-first media query helper

@mixin at-media($bp) {
$quoted-bp: smart-quote($bp);
$our-breakpoints: map-deep-get($system-properties, breakpoints, standard);
Expand All @@ -13,7 +14,7 @@
@else {
@warn '`#{$bp}` is not a valid USWDS project breakpoint. Valid values: #{map-keys($our-breakpoints)}';
}
@media screen and (min-width: #{$bp}) {
@media all and (min-width: #{$bp}) {
@content;
}
}
Expand All @@ -33,7 +34,7 @@
@else {
@warn '`#{$bp}` is not a valid USWDS project breakpoint. Valid values: #{map-keys($our-breakpoints)}';
}
@media screen and (max-width: #{$bp}) {
@media all and (max-width: #{$bp}) {
@content;
}
}

0 comments on commit 5bf8f92

Please sign in to comment.