qm-bus
Version:
千米公有云业务组件库
100 lines (97 loc) • 2.21 kB
text/less
@title-border-color: #5491de;
.week-pick-box {
position: relative;
display: inline-block;
outline: none;
font-size: 12px;
-webkit-transition: opacity 0.3s;
transition: opacity 0.3s;
vertical-align: top;
.ant-input {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
.picker-suffix {
position: absolute;
right: 5px;
top: 8px;
}
.week-picker {
position: absolute;
left: 0;
top: 0;
width: 280px;
background-color: #fff;
border-radius: 4px;
-webkit-box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
background-clip: padding-box;
line-height: 1.5;
z-index: 99999;
.picker-header {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
height: 34px;
line-height: 34px;
text-align: center;
border-bottom: 1px solid #e9e9e9;
.pre-month,
.next-month {
width: 50px;
cursor: pointer;
}
.current-month {
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
font-size: 14px;
font-weight: 400;
color: #000;
}
}
.picker-body {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
padding: 5px;
.picker-item {
width: 80px;
text-align: center;
margin: 5px 0;
cursor: pointer;
&:nth-of-type(3n -1) {
margin: 5px 15px;
}
.text {
font-size: 14px;
color: #000;
&:hover {
background-color: #d9d9d9;
border-radius: 3px;
color: @title-border-color;
}
&.current {
background-color: @title-border-color;
border-radius: 3px;
color: #fff;
}
&.disabled {
cursor: not-allowed;
color: #bcbcbc;
background: #f7f7f7;
border-radius: 0;
width: auto;
border: 1px solid transparent;
}
}
.range {
font-size: 12px;
color: #ccc;
}
}
}
}
}