Skip to content

Commit

Permalink
fix media queires
Browse files Browse the repository at this point in the history
  • Loading branch information
hsteuernagel committed Dec 3, 2024
1 parent 65a2d18 commit 6efb4a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions public/css/common/_media.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "sass:map";

$mqs: ();
@mixin mq($breakpoint) {
@if map-has-key($mqs, $breakpoint) {
Expand Down
4 changes: 2 additions & 2 deletions public/css/user/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ $header-menu-items: (
@each $name, $mq-width in $header-menu-items {
.header-nav_item-#{$name} {
@apply hidden;
@include mq($mq-width * 1px) {
@include media.mq($mq-width * 1px) {
@apply block;
}
}
Expand All @@ -46,7 +46,7 @@ $header-menu-items: (
}

// this should match the largest menu item mq size
@include mq(640px) {
@include media.mq(640px) {
.header-nav_item-toggle {
@apply hidden;
}
Expand Down

0 comments on commit 6efb4a4

Please sign in to comment.