2017-08-23 10:07:14 +00:00
|
|
|
@import "mixins/mixins";
|
|
|
|
@import "common/var";
|
|
|
|
@import "button";
|
2017-10-28 07:54:12 +00:00
|
|
|
@import "./popper";
|
2017-08-23 10:07:14 +00:00
|
|
|
|
|
|
|
@include b(dropdown) {
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
2017-09-19 04:47:13 +00:00
|
|
|
color: $--color-text-regular;
|
2017-08-23 10:07:14 +00:00
|
|
|
font-size: $--font-size-base;
|
|
|
|
|
|
|
|
.el-button-group {
|
|
|
|
display: block;
|
|
|
|
.el-button {
|
|
|
|
float: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
& .el-dropdown__caret-button {
|
|
|
|
padding-left: 5px;
|
|
|
|
padding-right: 5px;
|
2017-09-22 09:46:34 +00:00
|
|
|
position: relative;
|
|
|
|
border-left: none;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
$gap: 5px;
|
|
|
|
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
display: block;
|
|
|
|
width: 1px;
|
|
|
|
top: $gap;
|
|
|
|
bottom: $gap;
|
|
|
|
left: 0;
|
|
|
|
background: mix(white, transparent, 50%);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
2017-10-12 09:50:06 +00:00
|
|
|
&::before {
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
}
|
2017-09-22 09:46:34 +00:00
|
|
|
}
|
2017-08-23 10:07:14 +00:00
|
|
|
|
|
|
|
& .el-dropdown__icon {
|
|
|
|
padding-left: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@include e(icon) {
|
|
|
|
font-size: 12px;
|
|
|
|
margin: 0 3px;
|
|
|
|
}
|
|
|
|
}
|
2017-09-19 04:47:13 +00:00
|
|
|
|
2017-08-23 10:07:14 +00:00
|
|
|
@include b(dropdown-menu) {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
2017-09-19 04:47:13 +00:00
|
|
|
z-index: 10;
|
|
|
|
padding: 10px 0;
|
|
|
|
margin: 5px 0;
|
|
|
|
background-color: $--color-white;
|
|
|
|
border: 1px solid $--border-color-lighter;
|
2017-10-23 12:01:49 +00:00
|
|
|
border-radius: $--border-radius-base;
|
2017-09-19 04:47:13 +00:00
|
|
|
box-shadow: $--dropdown-menu-box-shadow;
|
2017-08-23 10:07:14 +00:00
|
|
|
|
|
|
|
@include e(item) {
|
|
|
|
list-style: none;
|
|
|
|
line-height: 36px;
|
2017-09-19 04:47:13 +00:00
|
|
|
padding: 0 20px;
|
2017-08-23 10:07:14 +00:00
|
|
|
margin: 0;
|
2017-09-19 04:47:13 +00:00
|
|
|
font-size: $--font-size-base;
|
2017-10-11 10:00:58 +00:00
|
|
|
color: $--color-text-regular;
|
2017-08-23 10:07:14 +00:00
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
&:not(.is-disabled):hover {
|
|
|
|
background-color: $--dropdown-menuItem-hover-fill;
|
|
|
|
color: $--dropdown-menuItem-hover-color;
|
|
|
|
}
|
2017-09-19 04:47:13 +00:00
|
|
|
|
2017-08-23 10:07:14 +00:00
|
|
|
@include m(divided) {
|
2017-09-19 04:47:13 +00:00
|
|
|
$divided-offset: 6px;
|
|
|
|
|
2017-08-23 10:07:14 +00:00
|
|
|
position: relative;
|
2017-09-19 04:47:13 +00:00
|
|
|
margin-top: $divided-offset;
|
|
|
|
border-top: 1px solid $--border-color-lighter;
|
2017-08-23 10:07:14 +00:00
|
|
|
|
|
|
|
&:before {
|
|
|
|
content: '';
|
2017-09-19 04:47:13 +00:00
|
|
|
height: $divided-offset;
|
2017-08-23 10:07:14 +00:00
|
|
|
display: block;
|
2017-09-19 04:47:13 +00:00
|
|
|
margin: 0 -20px;
|
2017-08-23 10:07:14 +00:00
|
|
|
background-color: $--color-white;
|
|
|
|
}
|
|
|
|
}
|
2017-09-19 04:47:13 +00:00
|
|
|
|
2017-08-23 10:07:14 +00:00
|
|
|
@include when(disabled) {
|
|
|
|
cursor: default;
|
2017-09-19 04:47:13 +00:00
|
|
|
color: $--font-color-disabled-base;
|
2017-08-23 10:07:14 +00:00
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
}
|
2017-09-19 04:47:13 +00:00
|
|
|
|
|
|
|
@include m(medium) {
|
|
|
|
padding: 6px 0;
|
|
|
|
|
|
|
|
@include e(item) {
|
|
|
|
line-height: 30px;
|
|
|
|
padding: 0 17px;
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
|
|
&.el-dropdown-menu__item--divided {
|
|
|
|
$divided-offset: 6px;
|
|
|
|
margin-top: $divided-offset;
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
height: $divided-offset;
|
|
|
|
margin: 0 -17px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include m(small) {
|
|
|
|
padding: 6px 0;
|
|
|
|
|
|
|
|
@include e(item) {
|
|
|
|
line-height: 27px;
|
|
|
|
padding: 0 15px;
|
|
|
|
font-size: 13px;
|
|
|
|
|
|
|
|
&.el-dropdown-menu__item--divided {
|
|
|
|
$divided-offset: 4px;
|
|
|
|
margin-top: $divided-offset;
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
height: $divided-offset;
|
|
|
|
margin: 0 -15px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include m(mini) {
|
|
|
|
padding: 3px 0;
|
|
|
|
|
|
|
|
@include e(item) {
|
|
|
|
line-height: 24px;
|
|
|
|
padding: 0 10px;
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
|
|
&.el-dropdown-menu__item--divided {
|
|
|
|
$divided-offset: 3px;
|
|
|
|
margin-top: $divided-offset;
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
height: $divided-offset;
|
|
|
|
margin: 0 -10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-08-23 10:07:14 +00:00
|
|
|
}
|