2019-04-30 11:11:25 +08:00
|
|
|
.#{$ns}DropDown {
|
|
|
|
position: relative;
|
|
|
|
display: inline-block;
|
|
|
|
|
|
|
|
&-caret {
|
|
|
|
margin-left: $DropDown-caret-marginLeft;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--block {
|
|
|
|
display: block;
|
|
|
|
|
|
|
|
.#{$ns}Button {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-menu {
|
|
|
|
position: absolute;
|
|
|
|
z-index: $zindex-dropdown;
|
|
|
|
top: 100%;
|
|
|
|
left: 0;
|
|
|
|
margin: px2rem(1px) 0 0;
|
|
|
|
background-color: $DropDown-menu-bg;
|
|
|
|
list-style: none;
|
|
|
|
padding: $DropDown-menu-paddingY $DropDown-menu-paddingX;
|
|
|
|
border: $DropDown-menu-borderWidth solid $DropDown-menu-borderColor;
|
|
|
|
border-radius: $DropDown-menu-borderRadius;
|
|
|
|
box-shadow: $DropDown-menu-boxShadow;
|
|
|
|
min-width: $DropDown-menu-minWidth;
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--alignRight &-menu {
|
|
|
|
left: auto;
|
|
|
|
right: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-menuItem,
|
|
|
|
&-menu > li {
|
|
|
|
padding: $DropDown-menuItem-paddingY $DropDown-menuItem-paddingX;
|
|
|
|
white-space: nowrap;
|
|
|
|
box-sizing: border-box;
|
|
|
|
height: $DropDown-menu-height;
|
|
|
|
vertical-align: middle;
|
|
|
|
user-select: none;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: $DropDown-menuItem-onHover-bg;
|
|
|
|
color: $DropDown-menuItem-onHover-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:not(.is-disabled),
|
|
|
|
&:not(.disabled) {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.#{$ns}DropDown-divider {
|
|
|
|
height: px2rem(1px);
|
|
|
|
margin: px2rem(9px) 0;
|
|
|
|
overflow: hidden;
|
|
|
|
background-color: $DropDown-menu-borderColor;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-menu > li a {
|
|
|
|
display: block;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-popover {
|
|
|
|
border: none;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
}
|