fix: display full menu on mobile
This commit is contained in:
parent
2766dafd32
commit
498d310c72
3 changed files with 8 additions and 3 deletions
|
|
@ -87,7 +87,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.groupTitle {
|
.groupTitle {
|
||||||
margin: 0;
|
margin: 10px 0;
|
||||||
color: $dark-text;
|
color: $dark-text;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -103,7 +103,7 @@
|
||||||
|
|
||||||
.item {
|
.item {
|
||||||
flex: 1 1 40%;
|
flex: 1 1 40%;
|
||||||
height: 100px;
|
height: 80px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
background-color: $shade3;
|
background-color: $shade3;
|
||||||
|
|
|
||||||
|
|
@ -71,6 +71,7 @@ const MegaMenuItem = ({text, quote, source, groups, onItemClick}: MegaMenuItemPr
|
||||||
<Link
|
<Link
|
||||||
href={""}
|
href={""}
|
||||||
className={styles.menuLink}
|
className={styles.menuLink}
|
||||||
|
onClick={() => setIsActive(!isActive)}
|
||||||
>
|
>
|
||||||
{text} <CollapsibleArrow direction={isActive ? "UP" : "DOWN"} stroke={1.5} />
|
{text} <CollapsibleArrow direction={isActive ? "UP" : "DOWN"} stroke={1.5} />
|
||||||
</Link>
|
</Link>
|
||||||
|
|
|
||||||
|
|
@ -77,7 +77,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.megaMenuActive {
|
.megaMenuActive {
|
||||||
max-height: 1000px;
|
max-height: 800px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search {
|
.search {
|
||||||
|
|
@ -131,6 +131,10 @@
|
||||||
position: inherit;
|
position: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.megaMenuActive {
|
||||||
|
max-height: 1500px;
|
||||||
|
}
|
||||||
|
|
||||||
.navMobile {
|
.navMobile {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue