145 lines
3.3 KiB
SCSS
145 lines
3.3 KiB
SCSS
@import '../../../styles/abstracts/variables';
|
|
|
|
.dropdown-service {
|
|
&__add-btn {
|
|
width: 100%;
|
|
max-width: 366px;
|
|
box-sizing: border-box;
|
|
border-radius: 16px;
|
|
cursor: pointer;
|
|
&.modal {
|
|
max-width: 270px;
|
|
background-color: #fff;
|
|
}
|
|
&.active {
|
|
border: none;
|
|
background: rgba(37, 127, 252, 0.05);
|
|
}
|
|
}
|
|
}
|
|
.dropdown-service__dropdown {
|
|
.ant-dropdown-menu-root {
|
|
height: auto;
|
|
}
|
|
.ant-dropdown-menu::-webkit-scrollbar-track {
|
|
border-radius: 10px;
|
|
margin-bottom: 10px;
|
|
margin-top: 10px;
|
|
}
|
|
.ant-dropdown-menu {
|
|
padding: 0;
|
|
margin: 9px 0;
|
|
border-radius: 16px;
|
|
background: $white;
|
|
box-shadow: 0 0 15px rgba(0, 0, 0, 0.18);
|
|
width: 100% !important;
|
|
max-height: 284px;
|
|
overflow-y: auto;
|
|
&::-webkit-scrollbar {
|
|
width: 8px !important;
|
|
}
|
|
.ant-dropdown-menu-submenu,
|
|
.ant-dropdown-menu-item {
|
|
padding: 16px 20px;
|
|
border-bottom: 1px solid $gray5;
|
|
font-weight: $semi-bold;
|
|
font-size: $medium1;
|
|
line-height: 24px;
|
|
&:first-child {
|
|
border-top-left-radius: 16px;
|
|
border-top-right-radius: 16px;
|
|
}
|
|
&:last-child {
|
|
border-bottom: none;
|
|
border-bottom-left-radius: 16px;
|
|
border-bottom-right-radius: 16px;
|
|
}
|
|
&.active {
|
|
background: rgba(37, 127, 252, 0.05);
|
|
}
|
|
&:hover {
|
|
background: rgba(37, 127, 252, 0.05);
|
|
}
|
|
&.ant-dropdown-menu-submenu-active {
|
|
background: rgba(37, 127, 252, 0.05);
|
|
}
|
|
.ant-dropdown-menu-submenu-expand-icon {
|
|
width: 24px;
|
|
height: 24px;
|
|
display: flex;
|
|
top: 16px;
|
|
right: 20px;
|
|
margin-top: 0;
|
|
align-items: center;
|
|
.ant-dropdown-menu-submenu-arrow-icon {
|
|
width: 24px;
|
|
height: 24px;
|
|
background: url('#{$icons-url}/dark/arrow-right.svg') no-repeat;
|
|
svg {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
.ant-dropdown-menu-submenu-title {
|
|
padding: 0;
|
|
font-weight: $semi-bold;
|
|
font-size: $medium1;
|
|
line-height: 24px;
|
|
background: transparent !important;
|
|
}
|
|
&.ant-dropdown-menu-item-disabled {
|
|
background: $gray12;
|
|
}
|
|
}
|
|
}
|
|
// &.modal {
|
|
// .ant-dropdown-menu {
|
|
// width: 100% !important;
|
|
// }
|
|
// }
|
|
}
|
|
.dropdown-service__sub-menu {
|
|
.ant-dropdown-menu {
|
|
overflow-x: hidden;
|
|
border-radius: 16px;
|
|
padding: 0;
|
|
background: $white;
|
|
box-shadow: 0 0 15px rgba(0, 0, 0, 0.18);
|
|
|
|
.ant-dropdown-menu-item {
|
|
width: 366px;
|
|
padding: 16px 20px;
|
|
border-bottom: 1px solid $gray5;
|
|
font-weight: $semi-bold;
|
|
font-size: $medium1;
|
|
line-height: 24px;
|
|
&.active {
|
|
background: rgba(37, 127, 252, 0.05);
|
|
}
|
|
&.ant-dropdown-menu-submenu-active {
|
|
background: rgba(37, 127, 252, 0.05);
|
|
}
|
|
&:hover {
|
|
background: rgba(37, 127, 252, 0.05);
|
|
}
|
|
&:first-child {
|
|
border-top-left-radius: 16px;
|
|
border-top-right-radius: 16px;
|
|
}
|
|
&:last-child {
|
|
border-bottom: none;
|
|
border-bottom-left-radius: 16px;
|
|
border-bottom-right-radius: 16px;
|
|
}
|
|
}
|
|
|
|
.ant-dropdown-menu-item-disabled {
|
|
.text {
|
|
color: #636363;
|
|
}
|
|
|
|
background-color: #f3f3f3;
|
|
}
|
|
}
|
|
}
|