Skip to content

Commit 8fd9341

Browse files
committed
feat: navigation
1 parent 1cc0ffe commit 8fd9341

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

themes/fiptheme/assets/sass/navigation.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77
}
88
}
99

10+
.o-header__curtain:has(~ .o-header__nav--open) {
11+
background-color: rgba(0, 0, 0, .8);
12+
inset: 0;
13+
position: fixed;
14+
}
15+
1016
.o-header__nav {
1117
align-items: center;
1218
display: flex;
@@ -132,6 +138,8 @@
132138
align-items: flex-end;
133139
position: fixed;
134140
top: 10rem;
141+
right: 0;
142+
width: 80%;
135143
z-index: 2;
136144
background-color: white;
137145

themes/fiptheme/layouts/partials/menu.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<a href="/" aria-label="FIP-Guide Startseite" class="o-header__logo">
88
<img aria-hidden="true" src="{{ $logo.RelPermalink }}" alt="">
99
</a>
10+
<div class="o-header__curtain"></div>
1011
<div class="o-header__nav container">
1112
<button class="o-nav__menu-button" title="Menü öffnen" aria-expanded="false" aria-haspopup="true">
1213
{{ T "menu-open" }}

0 commit comments

Comments
 (0)