2016-12-27 12:00:45 +08:00
|
|
|
@time-picker-prefix-cls: ~"@{css-prefix}time-picker";
|
2016-12-30 11:15:13 +08:00
|
|
|
@time-picker-cells-width-base: 56px;
|
|
|
|
@time-picker-cells-width-with-date-base: 72px;
|
|
|
|
@time-picker-cells-width: @time-picker-cells-width-base * 2;
|
|
|
|
@time-picker-cells-width-with-seconds: @time-picker-cells-width-base *3;
|
|
|
|
@time-picker-cells-width-with-date: @time-picker-cells-width-with-date-base * 2;
|
|
|
|
@time-picker-cells-width-with-date-with-seconds: @time-picker-cells-width-with-date-base * 3;
|
2016-12-28 15:21:25 +08:00
|
|
|
|
2016-12-27 12:00:45 +08:00
|
|
|
.@{time-picker-prefix-cls} {
|
|
|
|
&-cells{
|
2016-12-28 15:21:25 +08:00
|
|
|
min-width: @time-picker-cells-width;
|
2016-12-27 12:00:45 +08:00
|
|
|
&-with-seconds{
|
2016-12-28 15:21:25 +08:00
|
|
|
min-width: @time-picker-cells-width-with-seconds;
|
2016-12-27 12:00:45 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-list{
|
2016-12-30 11:15:13 +08:00
|
|
|
width: @time-picker-cells-width-base;
|
2016-12-27 12:00:45 +08:00
|
|
|
max-height: 144px;
|
2017-01-03 11:52:22 +08:00
|
|
|
float: left;
|
|
|
|
overflow: hidden;
|
2016-12-27 12:00:45 +08:00
|
|
|
border-left: 1px solid @border-color-split;
|
2017-01-03 11:52:22 +08:00
|
|
|
position: relative;
|
|
|
|
&:hover{
|
|
|
|
overflow-y: auto;
|
|
|
|
}
|
|
|
|
|
2016-12-27 12:00:45 +08:00
|
|
|
&:first-child{
|
|
|
|
border-left: none;
|
2016-12-29 18:09:16 +08:00
|
|
|
border-radius: @btn-border-radius 0 0 @btn-border-radius;
|
2016-12-27 12:00:45 +08:00
|
|
|
}
|
|
|
|
&:last-child{
|
2016-12-29 18:09:16 +08:00
|
|
|
border-radius: 0 @btn-border-radius @btn-border-radius 0;
|
2016-12-27 12:00:45 +08:00
|
|
|
}
|
|
|
|
ul{
|
|
|
|
width: 100%;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0 0 120px 0;
|
|
|
|
list-style: none;
|
|
|
|
li{
|
|
|
|
width: 100%;
|
|
|
|
height: 24px;
|
|
|
|
line-height: 24px;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0 0 0 16px;
|
2017-01-03 11:52:22 +08:00
|
|
|
box-sizing: content-box;
|
2016-12-27 12:00:45 +08:00
|
|
|
text-align: left;
|
|
|
|
user-select: none;
|
|
|
|
cursor: pointer;
|
|
|
|
list-style: none;
|
|
|
|
transition: background @transition-time @ease-in-out;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&-cell{
|
|
|
|
&:hover{
|
|
|
|
background: @background-color-select-hover;
|
|
|
|
}
|
|
|
|
&-disabled {
|
|
|
|
color: @btn-disable-color;
|
|
|
|
cursor: @cursor-disabled;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: @btn-disable-color;
|
|
|
|
background-color: #fff;
|
|
|
|
cursor: @cursor-disabled;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&-selected ,&-selected:hover{
|
|
|
|
color: @primary-color;
|
|
|
|
background: @background-color-select-hover;
|
|
|
|
}
|
2018-05-18 13:06:43 +02:00
|
|
|
&-focused{
|
|
|
|
background-color: tint(@primary-color, 80%);
|
|
|
|
}
|
2016-12-27 12:00:45 +08:00
|
|
|
}
|
|
|
|
}
|
2016-12-28 15:21:25 +08:00
|
|
|
|
|
|
|
&-header{
|
|
|
|
height: 32px;
|
|
|
|
line-height: 32px;
|
|
|
|
text-align: center;
|
|
|
|
border-bottom: 1px solid @border-color-split;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-with-range{
|
|
|
|
.@{picker-prefix-cls}-panel{
|
|
|
|
&-body{
|
|
|
|
min-width: @time-picker-cells-width * 2 + 4px;
|
|
|
|
}
|
|
|
|
&-content{
|
|
|
|
float: left;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&:after{
|
|
|
|
content: '';
|
|
|
|
display: block;
|
|
|
|
width: 2px;
|
|
|
|
position: absolute;
|
|
|
|
top: 31px;
|
|
|
|
bottom: 0;
|
|
|
|
right: -2px;
|
2016-12-30 17:00:26 +08:00
|
|
|
background: @border-color-split;
|
|
|
|
z-index: 1;
|
2016-12-28 15:21:25 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-right{
|
|
|
|
float: right;
|
|
|
|
&:after{
|
|
|
|
right: auto;
|
|
|
|
left: -2px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.@{time-picker-prefix-cls}-cells{
|
|
|
|
&-list{
|
|
|
|
&:first-child{
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
&:last-child{
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&-with-range&-with-seconds{
|
|
|
|
.@{picker-prefix-cls}-panel{
|
|
|
|
&-body{
|
|
|
|
min-width: @time-picker-cells-width-with-seconds * 2 + 4px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2016-12-30 11:15:13 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.@{picker-prefix-cls}-panel-content{
|
|
|
|
.@{picker-prefix-cls}-panel-content{
|
|
|
|
.@{time-picker-prefix-cls}{
|
|
|
|
&-cells{
|
2016-12-30 12:03:24 +08:00
|
|
|
min-width: @time-picker-cells-width-with-date-with-seconds;
|
2016-12-30 11:15:13 +08:00
|
|
|
&-with-seconds{
|
|
|
|
min-width: @time-picker-cells-width-with-date-with-seconds;
|
2016-12-30 12:03:24 +08:00
|
|
|
.@{time-picker-prefix-cls}-cells-list{
|
|
|
|
width: @time-picker-cells-width-with-date-with-seconds / 3;
|
|
|
|
ul{
|
|
|
|
li{
|
|
|
|
padding: 0 0 0 28px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2016-12-30 11:15:13 +08:00
|
|
|
}
|
|
|
|
&-list {
|
2016-12-30 12:03:24 +08:00
|
|
|
width: @time-picker-cells-width-with-date-with-seconds / 2;
|
2016-12-30 11:34:01 +08:00
|
|
|
max-height: 216px;
|
|
|
|
&:first-child{
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
&:last-child{
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
2016-12-30 11:15:13 +08:00
|
|
|
ul{
|
2016-12-30 11:34:01 +08:00
|
|
|
padding: 0 0 192px 0;
|
2016-12-30 11:15:13 +08:00
|
|
|
li{
|
2016-12-30 12:03:24 +08:00
|
|
|
padding: 0 0 0 46px;
|
2016-12-30 11:15:13 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-05-18 13:06:43 +02:00
|
|
|
}
|