qt-public-ui
Version:
新设计规范下业务组件库
245 lines (233 loc) • 5.91 kB
text/less
@import (reference) '../../style/common.less';
.umui-dynamicTimePicker {
.clearfix;
height: 28px;
display: inline-block;
color: @text-color-info;
font-family: PingFangSC-Regular;
.@{ant-prefix}-input-prefix .umicon-calendar-prefix{
display: inline-block;
color: #252934;
border-right: 1px solid #6B798E;
font-size: 12px;
line-height: 12px;
padding-right: 8px;
margin-right: 8px;
cursor: pointer;
}
&-input-wrap {
position: relative;
display: inline-block;
font-size: 0;
input {
cursor: pointer;
}
// .umicon-calendar-input-prefix{
// // .@{ant-prefix}-input:not(:first-child){
// // // padding-left: 75px;
// // }
// }
.umicon-calendar-input-prefix.dynamic-none-calendar-input-prefix{
.@{ant-prefix}-input:not(:first-child){
padding-left: 0px;
}
}
}
&-hidden {
position: absolute;
top: 0px;
left: 0;
}
.@{ant-prefix}-picker-range {
visibility: hidden;
}
&-calendar {
.@{ant-prefix}-picker-range-arrow {
display: none;
}
&.@{ant-prefix}-picker-dropdown{
box-shadow: none;
}
.@{ant-prefix}-picker-panel-container {
display: flex;
flex-direction: column-reverse;
}
.@{ant-prefix}-picker-date-range-wrapper {
.@{ant-prefix}-picker-footer-extra {
padding: 0;
>div{
height: 41px;
}
}
width: 564px;
// padding-left: 80px;
}
.@{ant-prefix}-picker-body {
border-top: none;
}
.@{ant-prefix}-picker-footer {
border: none;
background: none;
border-bottom: 1px solid @border-color-base;
line-height: 32px;
padding: 0;
width: 100%;
}
.@{ant-prefix}-picker-today:not(.@{ant-prefix}-picker-disabled-cell) .@{ant-prefix}-picker-date {
color: @primary-color;
border-color: @primary-color;
}
.@{ant-prefix}-picker-selected-day:not(.@{ant-prefix}-picker-disabled-cell) .@{ant-prefix}-picker-date {
color: @text-color-inverse;
background: @primary-color;
}
&-tips {
font-size: 12px;
line-height: 32px;
color: @text-color-secondary;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
height: 100%;
.calendar-checked-text{
position: absolute;
right: 20px;
top: 10px;
}
.@{ant-prefix}-tabs-nav {
padding-left: 26px ;
.@{ant-prefix}-tabs-tab.@{ant-prefix}-tabs-tab-active .@{ant-prefix}-tabs-tab-btn{
color: #3B82FE;
}
}
.calendar-shortcuts{
padding: 10px;
height:100%;
display: flex;
flex-wrap: wrap;
.shortcuts-item {
width: 20%;
height: 40px;
margin-bottom: 10px;
&.hidden {
display: none;
}
&-text{
font-family: PingFangSC-Regular;
font-size: 12px;
color: @text-color-secondary;
width: 88px;
height: 40px;
line-height: 40px;
cursor: pointer;
text-align: center;
&:hover, &.active{
background-color: @item-hover-bg;
color: @primary-color;
}
&.disabled{
color: @disabled-color;
cursor: not-allowed;
&:hover{
color: @disabled-color;
background-color: @white;
}
}
}
}
.calendar-custom-container {
// display: flex;
// margin-top: 150px;
float: left;
vertical-align: middle;
// width: 255px;
padding: 5px 32px;
background-color: @item-hover-bg;
>span {
margin-right:6px ;
line-height: 28px;
font-family: PingFangSC-Regular;
font-size: 12px;
color: @text-color-secondary;
}
.err-tip {
margin-left: 6px;
display: none;
}
&.err {
.err-tip {
display: inline;
color: #ff7474;
}
.@{ant-prefix}-input-number-input, .@{ant-prefix}-input-number:focus, .@{ant-prefix}-input-number:hover, .@{ant-prefix}-input-number-forcus {
border: 1px solid #ff7474 ;
border-color:#ff7474 ;
box-shadow: none
}
}
}
}
}
&-footer{
position: absolute;
bottom: 0;
height: 44px;
width: 100%;
background: #fff;
border-top: 1px solid #F0F1F3;
&-tip{
color: #97A1AF;
float: right;
padding-top: 4px;
}
.icon {
opacity: 0.5;
color: #3B82FE;
font-size: 16px;
padding-right: 5px;
}
&-determine{
float: right;
width: 40px;
height: 24px;
margin-top: 8px;
margin-right: 16px;
margin-left: 20px;
line-height: 23px;
text-align: center;
color: #fff;
background: #3B82FE;
border-radius: 2px;
cursor: pointer;
}
}
}
&-calendar-determine {
.@{ant-prefix}-picker-date-panel{
height: 306px;
}
}
&-custom-only {
.umui-dynamicTimePicker-calendar-tabs {
display: none;
}
.@{ant-prefix}-picker-date-range-wrapper {
padding: 0;
width: 510px;
}
}
&-calender-hidden{
.@{ant-prefix}-picker-panels, .@{ant-prefix}-picker-range-arrow{
display: none;
}
.@{ant-prefix}-picker-footer .@{ant-prefix}-picker-footer-extra {
>div {
height: auto;
padding-bottom: 40px;
}
}
.@{ant-prefix}-tabs-nav-scroll{
border-bottom: 2px solid #F0F1F3;
}
}
}