ant-design/components/date-picker/style/Picker.less

89 lines
2.0 KiB
Plaintext
Raw Normal View History

2015-11-18 12:14:26 +08:00
.@{calendar-prefix-cls}-picker-container {
2015-06-09 15:21:44 +08:00
position: absolute;
2016-03-28 16:01:37 +08:00
z-index: @zindex-picker;
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 {
2015-06-09 15:21:44 +08:00
position: relative;
2015-06-10 16:22:59 +08:00
display: inline-block;
outline: none;
2015-11-02 14:46:06 +08:00
font-size: @font-size-base;
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;
2017-08-10 10:54:02 +08:00
display: block;
2015-08-04 18:42:41 +08:00
}
2016-12-05 00:27:03 +08:00
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;
}
&-clear,
&-icon {
2016-05-23 15:58:10 +08:00
position: absolute;
width: 14px;
2017-06-26 21:19:23 +08:00
height: 14px;
right: 8px;
top: 50%;
2017-06-26 21:19:23 +08:00
margin-top: -7px;
2017-07-25 19:45:58 +08:00
line-height: 14px;
font-size: @font-size-base;
transition: all .3s;
user-select: none;
}
&-clear {
opacity: 0;
z-index: 1;
color: @disabled-color;
background: @input-bg;
pointer-events: none;
2017-08-02 21:14:51 +08:00
cursor: pointer;
2016-05-23 15:58:10 +08:00
&:hover {
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 {
color: @text-color-secondary;
2015-06-09 15:21:44 +08:00
&:after {
content: "\e6bb";
2015-07-07 16:18:14 +08:00
font-family: "anticon";
2016-11-08 20:57:07 +08:00
font-size: @font-size-base;
color: @text-color-secondary;
2015-07-09 18:17:15 +08:00
display: inline-block;
line-height: 1;
2015-06-09 15:21:44 +08:00
}
}
}