2016-04-27 20:44:36 +08:00
|
|
|
@import "../../style/themes/default";
|
|
|
|
@import "../../style/mixins/index";
|
|
|
|
|
2015-12-29 22:34:23 +08:00
|
|
|
@cascader-prefix-cls: ant-cascader;
|
|
|
|
|
|
|
|
.@{cascader-prefix-cls} {
|
2015-12-29 11:46:13 +08:00
|
|
|
font-size: @font-size-base;
|
2016-07-15 12:46:49 +08:00
|
|
|
&-input.ant-input {
|
2015-12-29 11:46:13 +08:00
|
|
|
display: block;
|
2015-12-29 22:34:23 +08:00
|
|
|
cursor: pointer;
|
2016-05-18 15:34:30 +08:00
|
|
|
width: 100%;
|
2016-07-06 11:34:04 +08:00
|
|
|
z-index: 1;
|
2015-12-29 11:46:13 +08:00
|
|
|
}
|
2015-12-29 21:18:27 +08:00
|
|
|
&-picker {
|
|
|
|
position: relative;
|
|
|
|
display: inline-block;
|
2015-12-29 22:34:23 +08:00
|
|
|
cursor: pointer;
|
2016-07-06 17:54:05 +08:00
|
|
|
vertical-align: middle;
|
2016-05-18 15:34:30 +08:00
|
|
|
font-size: @font-size-base;
|
2016-07-11 11:36:02 +08:00
|
|
|
background-color: #fff;
|
|
|
|
border-radius: @border-radius-base;
|
2015-12-29 22:34:23 +08:00
|
|
|
|
2016-02-25 12:07:44 +08:00
|
|
|
&-disabled {
|
|
|
|
cursor: not-allowed;
|
|
|
|
}
|
|
|
|
|
2016-05-18 15:34:30 +08:00
|
|
|
&-label {
|
|
|
|
position: absolute;
|
2016-07-27 13:37:20 +08:00
|
|
|
left: 0;
|
2016-05-18 15:34:30 +08:00
|
|
|
height: 20px;
|
|
|
|
line-height: 20px;
|
|
|
|
top: 50%;
|
|
|
|
margin-top: -10px;
|
|
|
|
white-space: nowrap;
|
2016-07-27 13:37:20 +08:00
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
|
|
|
width: 100%;
|
|
|
|
padding: 0 12px 0 8px;
|
2016-08-02 17:19:54 +08:00
|
|
|
z-index: 1;
|
2016-05-18 15:34:30 +08:00
|
|
|
}
|
|
|
|
|
2015-12-29 21:18:27 +08:00
|
|
|
&-clear {
|
|
|
|
opacity: 0;
|
|
|
|
position: absolute;
|
|
|
|
right: 8px;
|
2016-08-02 17:19:54 +08:00
|
|
|
z-index: 2;
|
2015-12-29 22:34:23 +08:00
|
|
|
background: #fff;
|
2015-12-29 21:18:27 +08:00
|
|
|
top: 50%;
|
|
|
|
font-size: 12px;
|
|
|
|
color: #ccc;
|
|
|
|
width: 12px;
|
|
|
|
height: 12px;
|
|
|
|
margin-top: -6px;
|
|
|
|
line-height: 12px;
|
|
|
|
cursor: pointer;
|
|
|
|
transition: color 0.3s ease, opacity 0.15s ease;
|
|
|
|
&:hover {
|
|
|
|
color: #999;
|
|
|
|
}
|
|
|
|
}
|
2015-12-29 22:34:23 +08:00
|
|
|
|
2015-12-29 21:18:27 +08:00
|
|
|
&:hover &-clear {
|
|
|
|
opacity: 1;
|
2015-12-29 22:34:23 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// arrow
|
|
|
|
&-arrow {
|
|
|
|
position: absolute;
|
2016-08-02 17:19:54 +08:00
|
|
|
z-index: 1;
|
2015-12-29 22:34:23 +08:00
|
|
|
top: 50%;
|
|
|
|
right: 8px;
|
|
|
|
width: 12px;
|
|
|
|
height: 12px;
|
|
|
|
margin-top: -6px;
|
|
|
|
line-height: 12px;
|
2016-01-05 11:31:22 +08:00
|
|
|
color: #999;
|
2015-12-29 22:34:23 +08:00
|
|
|
.iconfont-size-under-12px(8px);
|
|
|
|
&:before {
|
|
|
|
transition: transform 0.2s ease;
|
|
|
|
}
|
|
|
|
&&-expand {
|
|
|
|
.ie-rotate(2);
|
|
|
|
&:before {
|
2016-04-27 20:44:36 +08:00
|
|
|
transform: rotate(180deg);
|
2015-12-29 22:34:23 +08:00
|
|
|
}
|
|
|
|
}
|
2015-12-29 21:18:27 +08:00
|
|
|
}
|
|
|
|
}
|
2015-12-29 11:46:13 +08:00
|
|
|
&-menus {
|
|
|
|
font-size: 12px;
|
|
|
|
background: #fff;
|
|
|
|
position: absolute;
|
2016-04-13 16:16:26 +08:00
|
|
|
z-index: @zindex-dropdown;
|
2015-12-29 11:46:13 +08:00
|
|
|
border: 1px solid @border-color-base;
|
|
|
|
border-radius: @border-radius-base;
|
|
|
|
box-shadow: @box-shadow-base;
|
2016-01-19 18:01:21 +08:00
|
|
|
white-space: nowrap;
|
2016-01-27 15:26:39 +08:00
|
|
|
&-empty,
|
2015-12-29 11:46:13 +08:00
|
|
|
&-hidden {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
&.slide-up-enter.slide-up-enter-active&-placement-bottomLeft,
|
|
|
|
&.slide-up-appear.slide-up-appear-active&-placement-bottomLeft {
|
|
|
|
animation-name: antSlideUpIn;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.slide-up-enter.slide-up-enter-active&-placement-topLeft,
|
|
|
|
&.slide-up-appear.slide-up-appear-active&-placement-topLeft {
|
|
|
|
animation-name: antSlideDownIn;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.slide-up-leave.slide-up-leave-active&-placement-bottomLeft {
|
|
|
|
animation-name: antSlideUpOut;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.slide-up-leave.slide-up-leave-active&-placement-topLeft {
|
|
|
|
animation-name: antSlideDownOut;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&-menu {
|
2016-01-19 18:01:21 +08:00
|
|
|
display: inline-block;
|
2016-02-23 18:02:02 +08:00
|
|
|
vertical-align: top;
|
2016-01-07 20:58:13 +08:00
|
|
|
min-width: 111px;
|
2015-12-29 11:46:13 +08:00
|
|
|
height: 180px;
|
|
|
|
list-style: none;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
border-right: 1px solid @border-color-split;
|
2015-12-31 11:49:17 +08:00
|
|
|
overflow: auto;
|
2016-04-13 16:32:25 +08:00
|
|
|
&:first-child {
|
|
|
|
border-radius: @border-radius-base 0 0 @border-radius-base;
|
|
|
|
}
|
2015-12-29 11:46:13 +08:00
|
|
|
&:last-child {
|
|
|
|
border-right-color: transparent;
|
|
|
|
margin-right: -1px;
|
2016-04-13 16:32:25 +08:00
|
|
|
border-radius: 0 @border-radius-base @border-radius-base 0;
|
|
|
|
}
|
|
|
|
&:only-child {
|
|
|
|
border-radius: @border-radius-base;
|
2015-12-29 11:46:13 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
&-menu-item {
|
2016-07-27 13:37:20 +08:00
|
|
|
padding: 7px 26px 7px 16px;
|
2015-12-29 11:46:13 +08:00
|
|
|
cursor: pointer;
|
|
|
|
white-space: nowrap;
|
|
|
|
transition: all 0.3s ease;
|
|
|
|
&:hover {
|
|
|
|
background: tint(@primary-color, 90%);
|
|
|
|
}
|
2016-01-25 15:31:08 +08:00
|
|
|
&-disabled {
|
|
|
|
cursor: not-allowed;
|
|
|
|
color: #ccc;
|
|
|
|
&:hover {
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
}
|
2016-04-13 17:00:29 +08:00
|
|
|
&-active:not(&-disabled) {
|
|
|
|
&,
|
2015-12-29 11:46:13 +08:00
|
|
|
&:hover {
|
2016-07-21 15:02:24 +08:00
|
|
|
background-color: @background-color-base;
|
2016-04-13 17:00:29 +08:00
|
|
|
font-weight: bold;
|
2015-12-29 11:46:13 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
&-expand {
|
|
|
|
position: relative;
|
|
|
|
&:after {
|
2016-07-25 14:03:56 +08:00
|
|
|
.iconfont-font("\e600");
|
2015-12-29 11:46:13 +08:00
|
|
|
.iconfont-size-under-12px(8px);
|
|
|
|
color: #999;
|
|
|
|
position: absolute;
|
|
|
|
right: 15px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|