Skip to content

Commit

Permalink
chore(project): add correct namespaces in mixins
Browse files Browse the repository at this point in the history
  • Loading branch information
RCVZ committed Apr 29, 2021
1 parent b5cf3e2 commit 66d1897
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions src/styles/mixins/_responsive.scss
Original file line number Diff line number Diff line change
@@ -1,35 +1,37 @@
@use "../variables";

@mixin mobile-only {
@media screen and (max-width: $mobile-max-width) {
@content;
}
@media screen and (max-width: variables.$mobile-max-width) {
@content;
}
}

@mixin mobile-only-landscape {
@media screen and (max-width: $mobile-max-width) and (orientation: landscape) {
@content;
}
@media screen and (max-width: variables.$mobile-max-width) and (orientation: landscape) {
@content;
}
}

@mixin mobile-and-tablet {
@media screen and (max-width: $tablet-max-width) {
@content;
}
@media screen and (max-width: variables.$tablet-max-width) {
@content;
}
}

@mixin tablet-only {
@media screen and (min-width: $tablet-min-width) and (max-width: $tablet-max-width) {
@content;
}
@media screen and (min-width: variables.$tablet-min-width) and (max-width: variables.$tablet-max-width) {
@content;
}
}

@mixin tablet-and-larger {
@media screen and (min-width: $tablet-min-width) {
@content;
}
@media screen and (min-width: variables.$tablet-min-width) {
@content;
}
}

@mixin desktop-only {
@media screen and (min-width: $desktop-min-width) {
@content;
}
@media screen and (min-width: variables.$desktop-min-width) {
@content;
}
}

0 comments on commit 66d1897

Please sign in to comment.