generated from IgnacioNMiranda/vite-component-library-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: some navbar styling issues and CSS organization
- Loading branch information
Sasha
committed
May 6, 2024
1 parent
264a4a6
commit 0c73252
Showing
3 changed files
with
49 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,81 @@ | ||
$md: 768px; | ||
$lg: 1024px; | ||
$sm: 640px; | ||
$xs: 320px; | ||
|
||
.md_or_larger { | ||
display: none; | ||
@media screen and (min-width: 768px) { | ||
@media screen and (min-width: $md) { | ||
display: block; | ||
} | ||
} | ||
|
||
.md_or_smaller { | ||
display: block; | ||
@media screen and (min-width: 768px) { | ||
@media screen and (min-width: $md) { | ||
display: none; | ||
} | ||
} | ||
|
||
.lg_or_larger { | ||
display: none; | ||
@media screen and (min-width: 1024px) { | ||
@media screen and (min-width: $lg) { | ||
display: block; | ||
} | ||
} | ||
|
||
.lg_or_smaller { | ||
display: block; | ||
@media screen and (min-width: 1024px) { | ||
@media screen and (min-width: $lg) { | ||
display: none !important; | ||
} | ||
} | ||
|
||
.sm_or_larger { | ||
display: none; | ||
@media screen and (min-width: 640px) { | ||
@media screen and (min-width: $sm) { | ||
display: block; | ||
} | ||
} | ||
|
||
.sm_or_smaller { | ||
display: block; | ||
@media screen and (min-width: 640px) { | ||
@media screen and (min-width: $sm) { | ||
display: none; | ||
} | ||
} | ||
|
||
.xs_or_larger { | ||
display: none; | ||
@media screen and (min-width: 320px) { | ||
@media screen and (min-width: $xs) { | ||
display: block; | ||
} | ||
} | ||
|
||
.xs_or_smaller { | ||
display: block; | ||
@media screen and (min-width: 320px) { | ||
@media screen and (min-width: $xs) { | ||
display: none; | ||
} | ||
} | ||
|
||
@mixin size_or_larger($size) { | ||
display: none; | ||
@media screen and (min-width: $size) { | ||
display: block; | ||
} | ||
} | ||
|
||
@mixin size_or_smaller($size) { | ||
@content; | ||
@media screen and (min-width: $size) { | ||
display: none; | ||
} | ||
} | ||
|
||
@mixin size_or_larger($size) { | ||
display: none; | ||
@media screen and (min-width: $size) { | ||
@content; | ||
} | ||
} |