position menu toggler in small header bar

This commit is contained in:
elisejakob
2024-06-27 10:24:49 +02:00
parent 0c4b11381e
commit fb4eec2c5b
2 changed files with 34 additions and 20 deletions

View File

@ -100,7 +100,9 @@ export const Header = () => {
<MenuIcon showMenu={showMenu} />
</button>
<div className={styles.fullMenu}>
<LogoIcon face="right" />
<div className={styles.logoIcon}>
<LogoIcon face="right" />
</div>
<ul>
<li className={styles.menuItemLarge}>
<Link

View File

@ -12,6 +12,37 @@
text-decoration: none;
}
&[data-show=true] {
.mainMenu {
animation: slideOutRight .3s ease-out forwards;
}
.fullMenu {
right: 0;
}
.toggleMenu {
position: fixed;
right: var(--spacing-sitepadding-inline);
}
.menuIcon {
color: var(--color-betongGray);
}
&[data-small=true] {
.fullMenu {
.logoIcon {
display: none;
}
}
.toggleMenu {
top: .75rem;
}
}
}
&[data-small=true] {
.headerBar {
animation: slideDown .6s ease forwards;
@ -137,25 +168,6 @@
margin-top: var(--spacing-m);
}
.header[data-show=true] {
.mainMenu {
animation: slideOutRight .3s ease-out forwards;
}
.fullMenu {
right: 0;
}
.toggleMenu {
position: fixed;
right: var(--spacing-sitepadding-inline);
}
.menuIcon {
color: var(--color-betongGray);
}
}
@media (max-width: 1200px) {
.mainMenu {
display: none;