Skip to content

Commit

Permalink
SDSS | tweak mega menu background and height (#481)
Browse files Browse the repository at this point in the history
  • Loading branch information
rebeccahongsf authored Aug 28, 2024
1 parent e8dfbf2 commit 81e0879
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 47 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -371,13 +371,10 @@ const MenuList = styled.ul<{ open?: boolean, level?: number }>`
display: ${props => props.open ? "grid" : "none"};
box-shadow: ${props => props.level === 0 ? "0 10px 20px rgba(0,0,0,.15),0 6px 6px rgba(0,0,0,.2)" : ""};
border-top: 2px solid #bed9db;
position: ${props => props.level === 0 ? "absolute" : "relative"};
background: #E9F7F8;
width: 100vw;
left: 0;
color: $sdss-color-white;
padding: 3.6rem 5.8rem;
top: ${headerType};
grid-template-columns: repeat(3, 1fr);
grid-template-rows: minmax(auto, 1fr) minmax(auto, 1fr) minmax(auto, 1fr);
row-gap: 1.8rem;
Expand All @@ -397,37 +394,30 @@ const NestedMenuList = styled.ul<{ open?: boolean, level?: number }>`
@media (min-width: 992px) {
display: flex;
flex-direction: column;
position: absolute;
background: #E9F7F8;
left: 8px;
margin-left: 8px;
color: $sdss-color-white;
}
`

const MenuListWrapper = styled.div<{ open?: boolean, level?: number }>`
@media (min-width: 992px) {
display: flex;
opacity: 1;
position: absolute;
visibility: visible;
background: linear-gradient(180deg,rgba(0,0,0,.08) 0,transparent 12px);
background-color: #fff;
left: ${leftZero};
width: 100%;
background: #E9F7F8;
right: 0;
width: 100vw;
z-index: 220;
top: ${props => props.open || props.level >= 1 ? "${zero}" : "${zero}"};
}
`

const NestedMenuListWrapper = styled.div<{ open?: boolean, level?: number }>`
@media (min-width: 992px) {
display: block;
position: relative;
visibility: visible;
background: linear-gradient(180deg,rgba(0,0,0,.08) 0,transparent 12px);
background-color: #fff;
height: 100%;
width: 100%;
}
`

Expand Down

0 comments on commit 81e0879

Please sign in to comment.