72 lines
1.4 KiB
JavaScript
72 lines
1.4 KiB
JavaScript
import styled from "styled-components";
|
|
const StyledMenu = styled.ul`
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
padding: 4px;
|
|
background-color: #fff;
|
|
box-shadow: 0px 20px 25px 20px rgba(31, 41, 55, 0.1),
|
|
0px 10px 10px rgba(31, 41, 55, 0.04);
|
|
border-radius: 12px;
|
|
min-width: 200px;
|
|
.item {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 14px;
|
|
white-space: nowrap;
|
|
cursor: pointer;
|
|
border-radius: 6px;
|
|
padding: 6px;
|
|
font-style: normal;
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
line-height: 20px;
|
|
color: #616161;
|
|
|
|
.icon {
|
|
width: 20px;
|
|
height: 20px;
|
|
path {
|
|
fill: #475467;
|
|
}
|
|
}
|
|
&.sb {
|
|
justify-content: space-between;
|
|
}
|
|
&:hover {
|
|
background-color: #22ccee;
|
|
color: #fff;
|
|
.icon {
|
|
path {
|
|
fill: #fff;
|
|
}
|
|
}
|
|
}
|
|
&.underline {
|
|
margin-bottom: 9px;
|
|
&:before {
|
|
position: absolute;
|
|
content: "";
|
|
left: 6px;
|
|
bottom: -4px;
|
|
display: block;
|
|
padding: 0 6px;
|
|
box-sizing: border-box;
|
|
width: calc(100% - 12px);
|
|
height: 1px;
|
|
background-color: #f2f4f7;
|
|
}
|
|
}
|
|
&.danger {
|
|
color: #a11043;
|
|
&:hover {
|
|
background-color: #b42318;
|
|
color: #fff;
|
|
}
|
|
}
|
|
}
|
|
`;
|
|
|
|
export default StyledMenu;
|