2018-12-07 20:02:01 +08:00
|
|
|
@import '../../style/themes/default';
|
|
|
|
@import '../../style/mixins/index';
|
|
|
|
@import '../../input/style/mixin';
|
2016-04-27 20:44:36 +08:00
|
|
|
|
2018-12-07 20:02:01 +08:00
|
|
|
@timepicker-prefix-cls: ~'@{ant-prefix}-time-picker';
|
2017-10-16 21:52:15 +08:00
|
|
|
@timepicker-item-height: 32px;
|
2016-04-27 20:44:36 +08:00
|
|
|
|
|
|
|
.@{timepicker-prefix-cls}-panel {
|
2017-09-22 18:33:29 +08:00
|
|
|
.reset-component;
|
2018-08-02 01:41:46 +08:00
|
|
|
font-family: @font-family;
|
2016-04-27 20:44:36 +08:00
|
|
|
z-index: @zindex-picker;
|
|
|
|
position: absolute;
|
|
|
|
|
|
|
|
&-inner {
|
|
|
|
position: relative;
|
|
|
|
outline: none;
|
|
|
|
list-style: none;
|
2016-11-08 20:57:07 +08:00
|
|
|
font-size: @font-size-base;
|
2016-04-27 20:44:36 +08:00
|
|
|
text-align: left;
|
2016-11-29 11:56:10 +08:00
|
|
|
background-color: @component-background;
|
2016-04-27 20:44:36 +08:00
|
|
|
border-radius: @border-radius-base;
|
|
|
|
box-shadow: @box-shadow-base;
|
|
|
|
background-clip: padding-box;
|
2016-10-14 15:40:39 +08:00
|
|
|
left: -2px;
|
2016-04-27 20:44:36 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-input {
|
2018-11-20 11:00:53 +08:00
|
|
|
width: 100%;
|
2016-04-27 20:44:36 +08:00
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
border: 0;
|
2018-08-05 20:15:54 +08:00
|
|
|
max-width: @time-picker-panel-column-width * 3 - @control-padding-horizontal - 2px;
|
2016-04-27 20:44:36 +08:00
|
|
|
cursor: auto;
|
|
|
|
outline: 0;
|
2018-10-18 15:53:54 +08:00
|
|
|
line-height: normal;
|
2016-04-27 20:44:36 +08:00
|
|
|
|
2017-08-03 21:56:43 +08:00
|
|
|
.placeholder;
|
|
|
|
|
2016-04-27 20:44:36 +08:00
|
|
|
&-wrap {
|
|
|
|
box-sizing: border-box;
|
|
|
|
position: relative;
|
2017-10-19 20:58:16 +08:00
|
|
|
padding: 7px 2px 7px @control-padding-horizontal;
|
2017-01-31 16:05:10 +08:00
|
|
|
border-bottom: @border-width-base @border-style-base @border-color-split;
|
2016-04-27 20:44:36 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-invalid {
|
2018-11-28 17:12:37 +08:00
|
|
|
border-color: @error-color;
|
2016-04-27 20:44:36 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-narrow &-input-wrap {
|
2017-01-10 22:10:37 +08:00
|
|
|
max-width: @time-picker-panel-column-width * 2;
|
2016-04-27 20:44:36 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-select {
|
|
|
|
float: left;
|
2016-11-08 20:57:07 +08:00
|
|
|
font-size: @font-size-base;
|
2017-01-31 16:05:10 +08:00
|
|
|
border-left: @border-width-base @border-style-base @border-color-split;
|
2016-04-27 20:44:36 +08:00
|
|
|
box-sizing: border-box;
|
2017-01-10 22:10:37 +08:00
|
|
|
width: @time-picker-panel-column-width;
|
2016-04-27 20:44:36 +08:00
|
|
|
overflow: hidden;
|
|
|
|
position: relative; // Fix chrome weird render bug
|
2017-10-16 21:52:15 +08:00
|
|
|
max-height: @timepicker-item-height * 6;
|
2016-04-27 20:44:36 +08:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
overflow-y: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
border-left: 0;
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
border-right: 0;
|
|
|
|
}
|
|
|
|
|
2016-11-11 14:44:37 +08:00
|
|
|
&:only-child {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2016-04-27 20:44:36 +08:00
|
|
|
ul {
|
|
|
|
list-style: none;
|
|
|
|
box-sizing: border-box;
|
|
|
|
margin: 0;
|
2017-10-16 21:52:15 +08:00
|
|
|
padding: 0 0 @timepicker-item-height * 5;
|
2016-04-27 20:44:36 +08:00
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
li {
|
|
|
|
list-style: none;
|
|
|
|
box-sizing: content-box;
|
|
|
|
margin: 0;
|
2017-09-27 22:32:49 +08:00
|
|
|
padding: 0 0 0 @control-padding-horizontal;
|
2016-04-27 20:44:36 +08:00
|
|
|
width: 100%;
|
2017-10-16 21:52:15 +08:00
|
|
|
height: @timepicker-item-height;
|
|
|
|
line-height: @timepicker-item-height;
|
2016-04-27 20:44:36 +08:00
|
|
|
text-align: left;
|
|
|
|
cursor: pointer;
|
|
|
|
user-select: none;
|
2017-05-02 16:07:16 +08:00
|
|
|
transition: background 0.3s;
|
2016-04-27 20:44:36 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
li:hover {
|
2017-05-03 22:57:14 +08:00
|
|
|
background: @item-hover-bg;
|
2016-04-27 20:44:36 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
li&-option-selected {
|
2017-05-03 23:06:07 +08:00
|
|
|
background: @time-picker-selected-bg;
|
2016-04-27 20:44:36 +08:00
|
|
|
font-weight: bold;
|
2017-05-04 12:05:57 +08:00
|
|
|
&:hover {
|
|
|
|
background: @time-picker-selected-bg;
|
|
|
|
}
|
2016-04-27 20:44:36 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
li&-option-disabled {
|
|
|
|
color: @btn-disable-color;
|
|
|
|
&:hover {
|
|
|
|
background: transparent;
|
2016-11-08 20:45:56 +08:00
|
|
|
cursor: not-allowed;
|
2016-04-27 20:44:36 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-11-06 14:53:29 +08:00
|
|
|
&-combobox {
|
|
|
|
.clearfix;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-addon {
|
|
|
|
padding: 8px;
|
2017-01-31 16:05:10 +08:00
|
|
|
border-top: @border-width-base @border-style-base @border-color-split;
|
2016-11-06 14:53:29 +08:00
|
|
|
}
|
|
|
|
|
2016-04-27 20:44:36 +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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{timepicker-prefix-cls} {
|
2017-09-22 18:33:29 +08:00
|
|
|
.reset-component;
|
2016-04-27 20:44:36 +08:00
|
|
|
position: relative;
|
|
|
|
display: inline-block;
|
|
|
|
outline: none;
|
2018-12-07 20:02:01 +08:00
|
|
|
transition: opacity 0.3s;
|
2017-09-27 22:32:49 +08:00
|
|
|
width: 128px;
|
2016-04-27 20:44:36 +08:00
|
|
|
|
|
|
|
&-input {
|
|
|
|
.input;
|
2017-07-22 14:59:55 +08:00
|
|
|
&[disabled] {
|
|
|
|
.disabled;
|
|
|
|
}
|
2016-04-27 20:44:36 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-open {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
2019-01-25 10:31:09 +08:00
|
|
|
&-icon,
|
|
|
|
&-clear {
|
2016-04-27 20:44:36 +08:00
|
|
|
position: absolute;
|
2019-01-06 13:25:59 +08:00
|
|
|
z-index: 1;
|
2016-04-27 20:44:36 +08:00
|
|
|
user-select: none;
|
2018-12-07 20:02:01 +08:00
|
|
|
transition: all 0.3s @ease-in-out;
|
2017-09-06 20:17:20 +08:00
|
|
|
width: 14px;
|
2017-09-27 22:32:49 +08:00
|
|
|
height: 14px;
|
|
|
|
line-height: 14px;
|
|
|
|
right: @control-padding-horizontal - 1px;
|
2017-10-16 21:12:49 +08:00
|
|
|
color: @disabled-color;
|
2016-04-27 20:44:36 +08:00
|
|
|
top: 50%;
|
2017-09-27 22:32:49 +08:00
|
|
|
margin-top: -7px;
|
2018-08-14 14:45:04 +08:00
|
|
|
.@{timepicker-prefix-cls}-clock-icon {
|
2017-10-16 21:12:49 +08:00
|
|
|
color: @disabled-color;
|
2017-08-03 21:56:43 +08:00
|
|
|
display: block;
|
2016-04-27 20:44:36 +08:00
|
|
|
line-height: 1;
|
|
|
|
}
|
|
|
|
}
|
2017-09-27 22:32:49 +08:00
|
|
|
|
2019-01-25 10:31:09 +08:00
|
|
|
&-clear {
|
|
|
|
opacity: 0;
|
|
|
|
z-index: 2;
|
|
|
|
background: @input-bg;
|
|
|
|
pointer-events: none;
|
|
|
|
&:hover {
|
|
|
|
color: @text-color-secondary;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&:hover &-clear {
|
|
|
|
opacity: 1;
|
|
|
|
pointer-events: auto;
|
|
|
|
}
|
|
|
|
|
2017-09-27 22:32:49 +08:00
|
|
|
&-large &-input {
|
|
|
|
.input-lg;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-small &-input {
|
|
|
|
.input-sm;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-small &-icon {
|
|
|
|
right: @control-padding-horizontal-sm - 1px;
|
|
|
|
}
|
2016-04-27 20:44:36 +08:00
|
|
|
}
|