naive-ui/styles/Dropdown.scss
2019-12-03 21:35:39 +08:00

91 lines
2.4 KiB
SCSS

@import "./mixins/mixins.scss";
@import "./themes/vars.scss";
@include themes-mixin {
@include b(popover-content) {
@include b(dropdown-submenu-activator) {
@include e(arrow) {
fill: $--n-secondary-text-color;
}
}
@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) {
@include m(small-size, medium-size) {
@include b(base-select-menu-option-wrapper) {
padding-top: 4px;
padding-bottom: 4px;
}
@include b(base-select-option) {
padding: 0 20px;
}
@include b(dropdown-submenu-activator) {
@include e(arrow) {
font-size: 16px;
margin-left: 16px;
}
}
}
@include m(small-size) {
@include b(base-select-option) {
padding: 0 16px;
}
@include b(dropdown-submenu-activator) {
@include e(arrow) {
font-size: 16px;
margin-left: 12px;
}
}
}
@include m(large-size, huge-size) {
@include b(base-select-menu-option-wrapper) {
padding-top: 8px;
padding-bottom: 8px;
}
@include b(base-select-option) {
padding: 0 24px;
}
@include b(dropdown-submenu-activator) {
@include e(arrow) {
font-size: 16px;
margin-left: 20px;
}
}
}
@include m(large-size) {
@include b(base-select-menu-option-wrapper) {
padding-top: 6px;
padding-bottom: 6px;
}
}
}
}
@include b(dropdown-divider) {
margin: 4px 0;
}
@include b(dropdown-submenu) {
@include fade-in-scale-up-transition($origin: (left top));
margin-top: 0;
position: absolute !important;
margin-left: 6px;
margin-right: 6px;
}
@include b(base-select-menu) {
outline: none;
}
}
}
}