2018-12-07 16:17:45 +08:00
|
|
|
@import '../../button/style/mixin';
|
2017-11-30 09:54:31 +08:00
|
|
|
|
2015-11-18 12:14:26 +08:00
|
|
|
.@{calendar-prefix-cls}-picker-container {
|
2017-09-22 18:33:29 +08:00
|
|
|
.reset-component;
|
2015-06-09 15:21:44 +08:00
|
|
|
position: absolute;
|
2016-03-28 16:01:37 +08:00
|
|
|
z-index: @zindex-picker;
|
2019-02-15 10:48:07 +08:00
|
|
|
font-family: @font-family;
|
2015-11-11 17:08:31 +08:00
|
|
|
|
|
|
|
&.slide-up-enter.slide-up-enter-active&-placement-topLeft,
|
|
|
|
&.slide-up-enter.slide-up-enter-active&-placement-topRight,
|
|
|
|
&.slide-up-appear.slide-up-appear-active&-placement-topLeft,
|
|
|
|
&.slide-up-appear.slide-up-appear-active&-placement-topRight {
|
|
|
|
animation-name: antSlideDownIn;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.slide-up-enter.slide-up-enter-active&-placement-bottomLeft,
|
|
|
|
&.slide-up-enter.slide-up-enter-active&-placement-bottomRight,
|
|
|
|
&.slide-up-appear.slide-up-appear-active&-placement-bottomLeft,
|
|
|
|
&.slide-up-appear.slide-up-appear-active&-placement-bottomRight {
|
|
|
|
animation-name: antSlideUpIn;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.slide-up-leave.slide-up-leave-active&-placement-topLeft,
|
|
|
|
&.slide-up-leave.slide-up-leave-active&-placement-topRight {
|
|
|
|
animation-name: antSlideDownOut;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.slide-up-leave.slide-up-leave-active&-placement-bottomLeft,
|
|
|
|
&.slide-up-leave.slide-up-leave-active&-placement-bottomRight {
|
|
|
|
animation-name: antSlideUpOut;
|
|
|
|
}
|
2015-06-09 15:21:44 +08:00
|
|
|
}
|
|
|
|
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{calendar-prefix-cls}-picker {
|
2017-09-22 18:33:29 +08:00
|
|
|
.reset-component;
|
2015-06-09 15:21:44 +08:00
|
|
|
position: relative;
|
2015-06-10 16:22:59 +08:00
|
|
|
display: inline-block;
|
2015-10-23 17:57:02 +08:00
|
|
|
outline: none;
|
2019-03-06 11:01:56 +08:00
|
|
|
cursor: text;
|
2016-12-05 00:27:03 +08:00
|
|
|
transition: opacity 0.3s;
|
2015-07-08 11:42:22 +08:00
|
|
|
|
2016-12-05 00:27:03 +08:00
|
|
|
&-input {
|
2015-08-04 18:42:41 +08:00
|
|
|
outline: none;
|
|
|
|
}
|
2016-12-05 00:27:03 +08:00
|
|
|
|
2018-11-16 18:04:41 +08:00
|
|
|
&-input.@{ant-prefix}-input-sm {
|
|
|
|
padding-top: 0;
|
|
|
|
padding-bottom: 0;
|
|
|
|
}
|
|
|
|
|
2017-07-12 14:23:47 +08:00
|
|
|
&:hover &-input:not(.@{ant-prefix}-input-disabled) {
|
2016-12-05 00:27:03 +08:00
|
|
|
border-color: @primary-color;
|
|
|
|
}
|
|
|
|
|
2017-11-30 09:54:31 +08:00
|
|
|
&:focus &-input:not(.@{ant-prefix}-input-disabled) {
|
|
|
|
.active();
|
|
|
|
}
|
|
|
|
|
2017-06-29 03:09:50 +08:00
|
|
|
&-clear,
|
|
|
|
&-icon {
|
2016-05-23 15:58:10 +08:00
|
|
|
position: absolute;
|
2019-02-15 10:48:07 +08:00
|
|
|
top: 50%;
|
|
|
|
right: @control-padding-horizontal;
|
|
|
|
z-index: 1;
|
2016-06-23 15:38:55 +08:00
|
|
|
width: 14px;
|
2017-06-26 21:19:23 +08:00
|
|
|
height: 14px;
|
|
|
|
margin-top: -7px;
|
2017-09-27 22:32:49 +08:00
|
|
|
font-size: @font-size-sm;
|
2019-02-15 10:48:07 +08:00
|
|
|
line-height: 14px;
|
2018-12-07 16:17:45 +08:00
|
|
|
transition: all 0.3s;
|
2017-06-29 03:09:50 +08:00
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-clear {
|
2018-10-12 16:25:23 +08:00
|
|
|
z-index: 2;
|
2017-06-29 03:09:50 +08:00
|
|
|
color: @disabled-color;
|
2019-02-15 10:48:07 +08:00
|
|
|
font-size: @font-size-base;
|
2017-06-29 03:09:50 +08:00
|
|
|
background: @input-bg;
|
2017-08-02 21:14:51 +08:00
|
|
|
cursor: pointer;
|
2019-02-15 10:48:07 +08:00
|
|
|
opacity: 0;
|
|
|
|
pointer-events: none;
|
2016-05-23 15:58:10 +08:00
|
|
|
&:hover {
|
2016-11-08 20:45:56 +08:00
|
|
|
color: @text-color-secondary;
|
2016-05-23 15:58:10 +08:00
|
|
|
}
|
|
|
|
}
|
2015-08-04 18:42:41 +08:00
|
|
|
|
2016-05-23 15:58:10 +08:00
|
|
|
&:hover &-clear {
|
|
|
|
opacity: 1;
|
2016-12-05 00:27:03 +08:00
|
|
|
pointer-events: auto;
|
2016-05-23 15:58:10 +08:00
|
|
|
}
|
2016-12-05 00:27:03 +08:00
|
|
|
|
2015-06-09 15:21:44 +08:00
|
|
|
&-icon {
|
2018-07-23 12:06:38 +08:00
|
|
|
display: inline-block;
|
2019-02-15 10:48:07 +08:00
|
|
|
color: @disabled-color;
|
|
|
|
font-size: @font-size-base;
|
2018-07-23 12:06:38 +08:00
|
|
|
line-height: 1;
|
2015-06-09 15:21:44 +08:00
|
|
|
}
|
2017-09-27 22:32:49 +08:00
|
|
|
|
|
|
|
&-small &-clear,
|
|
|
|
&-small &-icon {
|
|
|
|
right: @control-padding-horizontal-sm;
|
|
|
|
}
|
2015-06-09 15:21:44 +08:00
|
|
|
}
|