qkui-h5
Version:
Quick 框架组件
193 lines (192 loc) • 4.34 kB
CSS
.qk-calendar-header {
display: flex;
align-items: center;
padding: 0.5rem;
}
.qk-calendar-header .header-right {
margin-left: 2rem;
border: 1px solid #eee;
padding: 0.3rem 0;
border-left: 0;
border-radius: 0.25rem;
}
.qk-calendar-header .btn {
padding: 0.3rem 0.8rem;
border-left: 1px solid #eee;
cursor: pointer;
}
.qk-calendar-header .btn:hover {
box-shadow: 0 0.1rem 0.2rem rgba(0, 0, 0, 0.1), 0 -3px 0.2rem rgba(0, 0, 0, 0.1);
}
.qk-calendar-header .header-center {
text-align: center;
font-weight: bold;
font-size: 0.8rem;
cursor: pointer;
}
.qk-calendar-header .header-center .title {
margin: 0 0.5rem;
}
.qk-calendar-body .weeks {
display: flex;
border-bottom: 1px solid #e8e8e8;
padding: 0.2rem;
}
.qk-calendar-body .weeks .week {
flex: 1;
text-align: center;
}
.qk-calendar-body .weeks .week li {
font-weight: bold;
font-size: 0.7rem;
}
.qk-calendar-body .dates {
position: relative;
}
.qk-calendar-body .dates .week-row {
border-left: 1px solid #e8e8e8;
display: flex;
}
.qk-calendar-body .dates .day-cell {
flex: 1;
width: 5rem;
border-right: 1px solid #e8e8e8;
border-bottom: 1px solid #e8e8e8;
background-color: #fff;
}
.qk-calendar-body .dates .day-cell.not-cur-month {
color: #999;
background: #f2f2f2;
}
.qk-calendar-body .dates .day-cell.onday {
background-color: #fcf8e3;
}
.qk-calendar-body .dates .day-hd {
cursor: pointer;
height: 1rem;
line-height: 1rem;
padding-left: 0.5rem;
font-size: 0.7rem;
}
.qk-calendar-body .dates .day-hd .day-hd-info {
display: inline-block;
background-color: #ed4014;
font-size: 0.5rem;
padding: 0 0.2rem;
line-height: 0.7rem;
color: #fff;
border-radius: 50%;
vertical-align: top;
margin-top: 0.1rem;
}
.qk-calendar-body .dates .event-box {
height: 4rem;
overflow: auto;
}
.qk-calendar-body .dates .event-box li {
cursor: pointer;
font-size: 0.6rem;
margin-top: 0.1rem;
padding: 0.1rem 0.2rem;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.qk-calendar-body .dates .event-box li:hover {
box-shadow: 0 0.1rem 0.2rem rgba(0, 0, 0, 0.1), 0 -3px 0.2rem rgba(0, 0, 0, 0.1);
}
.qk-calendar-body .dates .event-box li.is-start {
margin-left: 0.2rem;
border-radius: 0.25rem 0 0 0.25rem;
}
.qk-calendar-body .dates .event-box li.is-end {
margin-right: 0.4rem;
border-radius: 0 0.25rem 0.25rem 0;
}
.qk-calendar-body .dates .event-box li.is-day {
margin-left: 0.2rem;
margin-right: 0.2rem;
border-radius: 0.25rem;
}
.qk-calendar-body .dates .event-box li.is-opacity {
opacity: 0;
}
.qk-calendar-body .dates .event-box .more-link {
cursor: pointer;
padding-left: 8px;
padding-right: 2px;
color: rgba(0, 0, 0, 0.38);
font-size: 14px;
}
.qk-calendar-body .dates .event-item {
background: #2b85e4;
color: #fff;
}
.qk-calendar-body .lists {
position: relative;
border-width: 1px;
border-style: solid;
border-color: #e9e9ec;
}
.qk-calendar-body .lists table {
width: 100%;
box-sizing: border-box;
table-layout: fixed;
border-collapse: collapse;
border-spacing: 0;
font-size: 1em;
}
.qk-calendar-body .lists tr {
display: table-row;
vertical-align: inherit;
border-color: inherit;
}
.qk-calendar-body .lists .list-table {
table-layout: auto;
}
.qk-calendar-body .lists .list-table .list-header {
border-bottom-width: 1px;
background: #eee;
font-size: 14px;
color: #100d1d;
}
.qk-calendar-body .lists .list-table .list-header .list-header-main {
float: left;
}
.qk-calendar-body .lists .list-table .list-header .list-header-alt {
float: right;
}
.qk-calendar-body .lists .list-table a {
color: #100d1d;
}
.qk-calendar-body .lists .list-table td {
border-width: 1px 0 0;
padding: 8px 14px;
}
.qk-calendar-body .lists .list-table tr:first-child td {
border-top-width: 0;
}
.qk-calendar-body .lists .list-item {
box-sizing: content-box;
}
.qk-calendar-body .lists .list-item:hover td {
background-color: #f5f5f5;
}
.qk-calendar-body .lists .list-item-time {
padding-right: 0;
width: 25%;
}
.qk-calendar-body .lists .list-item-marker {
padding-right: 0;
width: 10px;
}
.qk-calendar-body .lists .list-item-title {
padding-right: 0;
}
.qk-calendar-body .lists .list-event-dot {
display: inline-block;
width: 10px;
height: 10px;
border-radius: 5px;
background-color: #3a87ad;
}