2022-02-04 10:21:10 +00:00
|
|
|
import styled from "styled-components";
|
|
|
|
|
2022-02-07 11:47:21 +00:00
|
|
|
import { tablet } from "../utils/device";
|
|
|
|
|
2022-02-04 10:21:10 +00:00
|
|
|
export const StyledSubmenu = styled.div`
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2022-02-17 14:01:04 +00:00
|
|
|
|
|
|
|
.scrollbar {
|
|
|
|
width: 100%;
|
|
|
|
height: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.text {
|
|
|
|
width: auto;
|
|
|
|
display: inline-block;
|
|
|
|
position: absolute;
|
|
|
|
/* position: absolute;
|
|
|
|
visibility: hidden;
|
|
|
|
height: auto;
|
|
|
|
width: auto;
|
|
|
|
white-space: nowrap; */
|
|
|
|
}
|
2022-02-04 10:21:10 +00:00
|
|
|
`;
|
|
|
|
|
|
|
|
export const StyledSubmenuBottomLine = styled.div`
|
|
|
|
height: 1px;
|
|
|
|
width: 100%;
|
|
|
|
margin: -1px 0 15px 0;
|
|
|
|
background: #eceef1;
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const StyledSubmenuContentWrapper = styled.div`
|
|
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const StyledSubmenuItems = styled.div`
|
2022-02-17 14:01:04 +00:00
|
|
|
overflow: scroll;
|
|
|
|
|
2022-02-04 10:21:10 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
gap: 4px;
|
2022-02-07 11:47:21 +00:00
|
|
|
padding: 20px;
|
|
|
|
@media ${tablet} {
|
|
|
|
padding: 16px;
|
|
|
|
}
|
2022-02-17 14:01:04 +00:00
|
|
|
|
|
|
|
&::-webkit-scrollbar {
|
|
|
|
display: none;
|
|
|
|
}
|
2022-02-04 10:21:10 +00:00
|
|
|
`;
|
|
|
|
|
2022-02-07 09:39:57 +00:00
|
|
|
export const StyledSubmenuItem = styled.div.attrs((props) => ({
|
|
|
|
id: props._key,
|
|
|
|
}))`
|
2022-02-17 22:59:46 +00:00
|
|
|
scroll-behavior: smooth;
|
2022-02-07 09:39:57 +00:00
|
|
|
cursor: pointer;
|
2022-02-04 10:21:10 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2022-02-17 22:59:46 +00:00
|
|
|
padding: 4px 14px;
|
2022-02-04 10:21:10 +00:00
|
|
|
line-height: 20px;
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const StyledSubmenuItemText = styled.div`
|
|
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const StyledSubmenuItemLabel = styled.div`
|
|
|
|
positin: absolute;
|
|
|
|
width: 100%;
|
|
|
|
height: 4px;
|
|
|
|
bottom: 0px;
|
|
|
|
border-radius: 4px 4px 0 0;
|
|
|
|
background-color: ${(props) => props.color};
|
|
|
|
`;
|