import { styled } from "../../utils/Theme"; import { MenuProps } from "."; export const MenuWrapper = styled.aside` cursor: pointer; `; export const StyledMenu = styled.nav< Omit< MenuProps, "showMenu" | "rightAsLeft" | "rightSpace" | "menuItems" | "topSpace" > & { top?: number; right?: number; left?: number; } >` ${({ theme, top, right, left }) => `border-radius: 13px; position: absolute; ${top ? `top: ${top}px` : ""} ${right ? `right: ${right}px` : ""} ${left ? `left: ${left}px` : ""} width: max-content; z-index: 2; box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.3); background-color: #fff; ul { list-style-type: none; margin: 0; padding: 20px 20px 16px 20px; } li { align-items: center; display: flex; flex-wrap: wrap; margin: -12px -20px 12px -20px; padding: 12px 20px 0px 20px; cursor: pointer; transition: .2s; &:hover { background-color: ${theme.color.white3}; } span { border-bottom: 1px solid rgba(0, 0, 0, 0.3); display: block; margin-left: 16px; padding-bottom: 8px; text-decoration: none; width: calc(100% - 50px); transition: .2s; } } li:last-child { margin-bottom: 0; span { border: 0; margin-bottom: 0; padding-bottom: 0; } } .section { border-bottom: 1px solid ${theme.color.primaryBlack}; padding-bottom: 8px; span { border: 0; padding-bottom: 0; } } .withArrow span { align-items: center; display: flex; svg { max-width: 15px; max-height: 15px; } } .title { margin-bottom: 16px; span { border: 0; } svg { height: 20px; transform: rotateY(180deg); width: 12px; } } `} `; export const TitleWrapper = styled.div<{ direction: "column" | "row" }>` display: flex; direction: ${({ direction }) => direction}; width: calc(100% - 32px); `;