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

103 lines
2.3 KiB
Plaintext
Raw Normal View History

2019-01-02 13:01:56 +00:00
@import '../../button/style/mixin';
2018-03-15 13:40:34 +00:00
.@{calendar-prefix-cls}-picker-container {
.reset-component;
position: absolute;
z-index: @zindex-picker;
2019-03-30 08:06:06 +00:00
font-family: @font-family;
2018-03-15 13:40:34 +00: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;
}
}
.@{calendar-prefix-cls}-picker {
.reset-component;
position: relative;
display: inline-block;
outline: none;
transition: opacity 0.3s;
&-input {
outline: none;
}
2018-12-09 11:30:35 +00:00
&-input.@{ant-prefix}-input-sm {
padding-top: 0;
padding-bottom: 0;
}
2018-03-15 13:40:34 +00:00
&:hover &-input:not(.@{ant-prefix}-input-disabled) {
border-color: @primary-color;
}
&:focus &-input:not(.@{ant-prefix}-input-disabled) {
.active();
}
&-clear,
&-icon {
position: absolute;
2019-03-30 08:06:06 +00:00
top: 50%;
right: @control-padding-horizontal;
z-index: 1;
2018-03-15 13:40:34 +00:00
width: 14px;
height: 14px;
margin-top: -7px;
font-size: @font-size-sm;
2019-03-30 08:06:06 +00:00
line-height: 14px;
2019-01-02 13:01:56 +00:00
transition: all 0.3s;
2018-03-15 13:40:34 +00:00
user-select: none;
}
&-clear {
2018-11-14 13:33:56 +00:00
z-index: 2;
2018-03-15 13:40:34 +00:00
color: @disabled-color;
2019-03-30 08:06:06 +00:00
font-size: @font-size-base;
2018-03-15 13:40:34 +00:00
background: @input-bg;
cursor: pointer;
2019-03-30 08:06:06 +00:00
opacity: 0;
pointer-events: none;
2018-03-15 13:40:34 +00:00
&:hover {
color: @text-color-secondary;
}
}
&:hover &-clear {
opacity: 1;
pointer-events: auto;
}
&-icon {
2018-11-14 13:33:56 +00:00
display: inline-block;
2019-03-30 08:06:06 +00:00
color: @disabled-color;
font-size: @font-size-base;
2018-11-14 13:33:56 +00:00
line-height: 1;
2018-03-15 13:40:34 +00:00
}
&-small &-clear,
&-small &-icon {
right: @control-padding-horizontal-sm;
}
}