Files
vant/src/calendar/index.less
T

77 lines
1.2 KiB
Plaintext

@import '../style/var';
.van-calendar {
display: flex;
flex-direction: column;
height: 80vh;
&-header__title,
&-header__month,
&__month-title {
height: 44px;
font-weight: @font-weight-bold;
line-height: 44px;
text-align: center;
}
&-header {
flex-shrink: 0;
box-shadow: 0 2px 10px rgba(125, 126, 128, 0.16);
&__title {
font-size: @font-size-lg;
}
&__month {
font-size: @font-size-md;
}
&__weekdays {
display: flex;
}
&__weekday {
flex: 1;
font-size: @font-size-sm;
line-height: 30px;
text-align: center;
}
}
&__month-title {
font-size: @font-size-md;
}
&__body {
flex: 1;
overflow: auto;
-webkit-overflow-scrolling: touch;
}
&__days {
position: relative;
display: flex;
flex-wrap: wrap;
}
&__month-mark {
position: absolute;
top: 50%;
left: 50%;
z-index: -1;
color: @gray-2;
font-size: 160px;
transform: translate(-50%, -50%);
pointer-events: none;
}
&__day {
display: flex;
align-items: center;
justify-content: center;
width: 14.285%;
height: 64px;
font-size: @font-size-lg;
}
}