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

149 lines
2.6 KiB
Plaintext
Raw Normal View History

2018-03-15 13:40:34 +00:00
.@{calendar-timepicker-prefix-cls} {
position: absolute;
top: 40px;
2019-03-30 08:06:06 +00:00
width: 100%;
2018-03-15 13:40:34 +00:00
background-color: @component-background;
&-panel {
position: absolute;
2019-03-30 08:06:06 +00:00
z-index: @zindex-picker;
2018-03-15 13:40:34 +00:00
width: 100%;
}
&-inner {
position: relative;
2019-03-30 08:06:06 +00:00
display: inline-block;
width: 100%;
overflow: hidden;
2018-03-15 13:40:34 +00:00
font-size: @font-size-base;
2019-03-30 08:06:06 +00:00
line-height: 1.5;
2018-03-15 13:40:34 +00:00
text-align: left;
2019-03-30 08:06:06 +00:00
list-style: none;
2018-03-15 13:40:34 +00:00
background-color: @component-background;
background-clip: padding-box;
2019-03-30 08:06:06 +00:00
outline: none;
2018-03-15 13:40:34 +00:00
}
&-combobox {
width: 100%;
}
&-column-1,
&-column-1 &-select {
width: 100%;
}
&-column-2 &-select {
width: 50%;
}
&-column-3 &-select {
width: 33.33%;
}
&-column-4 &-select {
width: 25%;
}
&-input-wrap {
display: none;
}
&-select {
2019-03-30 08:06:06 +00:00
position: relative; // Fix chrome weird render bug
2018-03-15 13:40:34 +00:00
float: left;
box-sizing: border-box;
height: 226px;
2019-03-30 08:06:06 +00:00
overflow: hidden;
font-size: @font-size-base;
border-right: @border-width-base @border-style-base @border-color-split;
2018-03-15 13:40:34 +00:00
&:hover {
overflow-y: auto;
}
&:first-child {
margin-left: 0;
2019-03-30 08:06:06 +00:00
border-left: 0;
2018-03-15 13:40:34 +00:00
}
&:last-child {
border-right: 0;
}
ul {
box-sizing: border-box;
width: 100%;
max-height: 206px;
2019-03-30 08:06:06 +00:00
margin: 0;
padding: 0;
list-style: none;
2018-03-15 13:40:34 +00:00
}
li {
box-sizing: content-box;
width: 100%;
height: 24px;
2019-03-30 08:06:06 +00:00
margin: 0;
padding-left: 32px;
2018-03-15 13:40:34 +00:00
line-height: 24px;
2019-03-30 08:06:06 +00:00
list-style: none;
2018-03-15 13:40:34 +00:00
cursor: pointer;
transition: background 0.3s ease;
2019-03-30 08:06:06 +00:00
user-select: none;
2018-03-15 13:40:34 +00:00
}
2019-03-30 08:06:06 +00:00
li:last-child::after {
2018-03-15 13:40:34 +00:00
display: block;
2019-03-30 08:06:06 +00:00
height: 202px;
content: '';
2018-03-15 13:40:34 +00:00
}
li:hover {
background: @item-hover-bg;
}
li&-option-selected {
font-weight: bold;
2019-03-30 08:06:06 +00:00
background: @time-picker-selected-bg;
2018-03-15 13:40:34 +00:00
}
li&-option-disabled {
color: @btn-disable-color;
&:hover {
background: transparent;
cursor: not-allowed;
}
}
}
}
.@{calendar-prefix-cls}-time {
.@{calendar-prefix-cls}-day-select {
display: inline-block;
2019-03-30 08:06:06 +00:00
padding: 0 2px;
2018-03-15 13:40:34 +00:00
color: @heading-color;
2019-03-30 08:06:06 +00:00
font-weight: 500;
2018-03-15 13:40:34 +00:00
line-height: 34px;
}
.@{calendar-prefix-cls}-footer {
position: relative;
height: auto;
&-btn {
text-align: right;
}
.@{calendar-prefix-cls}-today-btn {
float: left;
margin: 0;
}
.@{calendar-prefix-cls}-time-picker-btn {
display: inline-block;
margin-right: 8px;
&-disabled {
color: @disabled-color;
}
}
}
}