naive-ui/styles/Dropdown.scss
2020-02-13 20:24:09 +08:00

91 lines
2.4 KiB
SCSS

@import "./mixins/mixins.scss";
@include themes-mixin {
@include b(popover-content) {
@include b(dropdown-submenu-activator) {
@include e(arrow) {
fill: $--dropdown-item-suffix-fill;
}
}
@include once {
position: relative;
@include b(dropdown-submenu-activator) {
display: inline-block;
display: flex;
align-items: center;
justify-content: space-between;
@include e(arrow) {
position: relative;
right: -8px;
}
}
@include b(dropdown-menu) {
outline: none;
@include b(base-select-menu) {
margin-top: 0;
margin-bottom: 0;
@include m(small-size) {
padding-top: 4px;
padding-bottom: 4px;
@include b(dropdown-divider) {
margin: 0 0;
}
@include b(dropdown-submenu-activator) {
@include e(arrow) {
font-size: 16px;
margin-left: 12px;
}
}
}
@include m(medium-size) {
padding-top: 4px;
padding-bottom: 4px;
@include b(dropdown-divider) {
margin: 0 0;
}
@include b(dropdown-submenu-activator) {
@include e(arrow) {
font-size: 16px;
margin-left: 16px;
}
}
}
@include m(large-size) {
padding-top: 6px;
padding-bottom: 6px;
@include b(dropdown-divider) {
margin: 2px 0;
}
@include b(dropdown-submenu-activator) {
@include e(arrow) {
font-size: 16px;
margin-left: 20px;
}
}
}
@include m(huge-size) {
padding-top: 8px;
padding-bottom: 8px;
@include b(dropdown-submenu-activator) {
@include e(arrow) {
font-size: 16px;
margin-left: 20px;
}
}
}
}
}
@include b(dropdown-divider) {
margin: 2px 0;
}
@include b(dropdown-submenu) {
@include fade-in-scale-up-transition(dropdown-menu);
margin-top: 0;
position: absolute !important;
margin-left: 6px;
margin-right: 6px;
}
}
}
}