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

156 lines
2.7 KiB
Plaintext
Raw Normal View History

2016-10-07 15:41:11 +08:00
.@{calendar-timepicker-prefix-cls} {
position: absolute;
width: 100%;
top: 34px;
2016-10-07 16:04:11 +08:00
background-color: #fff;
height: 206px;
&-panel {
z-index: @zindex-picker;
position: absolute;
width: 100%;
}
&-inner {
display: inline-block;
position: relative;
outline: none;
list-style: none;
font-size: 12px;
text-align: left;
background-color: #fff;
background-clip: padding-box;
line-height: 1.5;
overflow: hidden;
}
&-1-column,
&-1-column &-select {
width: 100%;
}
&-2-columns &-select {
width: 115px;
}
&-1-column &-select,
&-2-columns &-select {
li {
padding: 0;
text-align: center;
}
}
2016-10-07 16:04:11 +08:00
&-input-wrap {
display: none;
}
&-select {
float: left;
font-size: 12px;
border: 1px solid @border-color-split;
border-width: 0 1px;
margin-left: -1px;
box-sizing: border-box;
width: 77px;
overflow: hidden;
position: relative; // Fix chrome weird render bug
&:hover {
overflow-y: auto;
}
&:first-child {
border-left: 0;
margin-left: 0;
}
&:last-child {
border-right: 0;
}
ul {
list-style: none;
box-sizing: border-box;
margin: 0;
padding: 0;
width: 100%;
max-height: 206px;
}
li {
padding: 0 0 0 28px;
list-style: none;
box-sizing: content-box;
margin: 0;
width: 100%;
height: 24px;
line-height: 24px;
cursor: pointer;
user-select: none;
transition: background 0.3s ease;
}
li:last-child:after {
content: '';
2016-07-21 15:20:01 +08:00
height: 182px;
display: block;
}
li:hover {
background: tint(@primary-color, 90%);
}
li&-option-selected {
2016-07-21 15:02:24 +08:00
background: @background-color-base;
font-weight: bold;
}
li&-option-disabled {
color: @btn-disable-color;
&:hover {
background: transparent;
cursor: @cursor-disabled;
}
}
}
}
2016-10-07 16:04:11 +08:00
.@{calendar-prefix-cls}-time {
.@{calendar-prefix-cls}-day-select {
padding: 0 2px;
font-weight: bold;
display: inline-block;
color: #666;
line-height: 34px;
}
2016-10-07 16:04:11 +08:00
.@{calendar-prefix-cls}-footer {
border-top: 1px solid @border-color-split;
padding: 10px 0;
text-align: right;
position: relative;
height: auto;
line-height: auto;
2016-10-07 16:04:11 +08:00
&-btn {
line-height: 1.5;
text-align: right;
}
2016-10-07 16:04:11 +08:00
.@{calendar-prefix-cls}-today-btn {
float: left;
margin: 0;
padding-left: 12px;
}
2016-10-07 16:04:11 +08:00
.@{calendar-prefix-cls}-time-picker-btn {
display: inline-block;
text-align: center;
margin-right: 60px;
2016-10-07 16:04:11 +08:00
&-disabled {
color: #ccc;
}
}
}
2016-07-21 15:20:01 +08:00
}