diff options
Diffstat (limited to 'src/styles/components/_site-nav.scss')
| -rw-r--r-- | src/styles/components/_site-nav.scss | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/styles/components/_site-nav.scss b/src/styles/components/_site-nav.scss new file mode 100644 index 0000000..99a8afc --- /dev/null +++ b/src/styles/components/_site-nav.scss | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | @use "sass:math"; | ||
| 2 | @use "sass:meta"; | ||
| 3 | |||
| 4 | @use "pkg:iro-design" as iro; | ||
| 5 | @use "pkg:iro-sass/bem"; | ||
| 6 | @use "pkg:iro-sass/props"; | ||
| 7 | |||
| 8 | @mixin styles { | ||
| 9 | @include bem.component("site-nav-placeholder") { | ||
| 10 | block-size: props.get(iro.$o-navbar--block-size); | ||
| 11 | |||
| 12 | @include iro.media--media(">sm") { | ||
| 13 | display: none; | ||
| 14 | } | ||
| 15 | } | ||
| 16 | |||
| 17 | @include bem.component("site-nav") { | ||
| 18 | position: fixed; | ||
| 19 | inset-block-end: 0; | ||
| 20 | inset-inline: 0; | ||
| 21 | z-index: calc(props.get(iro.$o-backdrop--z-index) - 10); | ||
| 22 | background-color: props.get(iro.$core--transparent-colors, --black, --900); | ||
| 23 | //border-block-start: 1px solid props.get(iro.$core--theme, --border-mute); | ||
| 24 | overflow-x: auto; | ||
| 25 | |||
| 26 | @include iro.media--media(">sm") { | ||
| 27 | display: none; | ||
| 28 | } | ||
| 29 | } | ||
| 30 | } | ||
