123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160 |
- .month-index {
- display: block;
- height: initial;
- }
- @import "../../../common/index.acss";
- .month-index .van-calendar {
- display: -webkit-flex;
- display: flex;
- -webkit-flex-direction: column;
- flex-direction: column;
- height: 100%;
- background-color: #fff;
- background-color: var(--calendar-background-color, #fff);
- }
- .month-index .van-calendar__month-title {
- text-align: center;
- height: 44px;
- height: var(--calendar-header-title-height, 44px);
- font-weight: 500;
- font-weight: var(--font-weight-bold, 500);
- font-size: 14px;
- font-size: var(--calendar-month-title-font-size, 14px);
- line-height: 44px;
- line-height: var(--calendar-header-title-height, 44px);
- }
- .month-index .van-calendar__days {
- position: relative;
- display: -webkit-flex;
- display: flex;
- -webkit-flex-wrap: wrap;
- flex-wrap: wrap;
- -webkit-user-select: none;
- user-select: none;
- }
- .month-index .van-calendar__month-mark {
- position: absolute;
- top: 50%;
- left: 50%;
- z-index: 0;
- -webkit-transform: translate(-50%, -50%);
- transform: translate(-50%, -50%);
- pointer-events: none;
- color: rgba(242, 243, 245, 0.8);
- color: var(--calendar-month-mark-color, rgba(242, 243, 245, 0.8));
- font-size: 160px;
- font-size: var(--calendar-month-mark-font-size, 160px);
- }
- .month-index .van-calendar__day,
- .month-index .van-calendar__selected-day {
- display: -webkit-flex;
- display: flex;
- -webkit-align-items: center;
- align-items: center;
- -webkit-justify-content: center;
- justify-content: center;
- text-align: center;
- }
- .month-index .van-calendar__day {
- position: relative;
- width: 14.285%;
- height: 64px;
- height: var(--calendar-day-height, 64px);
- font-size: 16px;
- font-size: var(--calendar-day-font-size, 16px);
- }
- .month-index .van-calendar__day--end,
- .month-index .van-calendar__day--multiple-middle,
- .month-index .van-calendar__day--multiple-selected,
- .month-index .van-calendar__day--start,
- .month-index .van-calendar__day--start-end {
- color: #fff;
- color: var(--calendar-range-edge-color, #fff);
- background-color: #ee0a24;
- background-color: var(--calendar-range-edge-background-color, #ee0a24);
- }
- .month-index .van-calendar__day--start {
- border-radius: 4px 0 0 4px;
- border-radius: var(--border-radius-md, 4px) 0 0 var(--border-radius-md, 4px);
- }
- .month-index .van-calendar__day--end {
- border-radius: 0 4px 4px 0;
- border-radius: 0 var(--border-radius-md, 4px) var(--border-radius-md, 4px) 0;
- }
- .month-index .van-calendar__day--multiple-selected,
- .month-index .van-calendar__day--start-end {
- border-radius: 4px;
- border-radius: var(--border-radius-md, 4px);
- }
- .month-index .van-calendar__day--middle {
- color: #ee0a24;
- color: var(--calendar-range-middle-color, #ee0a24);
- }
- .month-index .van-calendar__day--middle:after {
- position: absolute;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- background-color: currentColor;
- content: "";
- opacity: 0.1;
- opacity: var(--calendar-range-middle-background-opacity, 0.1);
- }
- .month-index .van-calendar__day--disabled {
- cursor: default;
- color: #c8c9cc;
- color: var(--calendar-day-disabled-color, #c8c9cc);
- }
- .month-index .van-calendar__bottom-info,
- .month-index .van-calendar__top-info {
- position: absolute;
- right: 0;
- left: 0;
- font-size: 10px;
- font-size: var(--calendar-info-font-size, 10px);
- line-height: 14px;
- line-height: var(--calendar-info-line-height, 14px);
- }
- @media (max-width: 350px) {
- .van-calendar__bottom-info,
- .van-calendar__top-info {
- font-size: 9px;
- }
- }
- .month-index .van-calendar__top-info {
- top: 6px;
- }
- .month-index .van-calendar__bottom-info {
- bottom: 6px;
- }
- .month-index .van-calendar__selected-day {
- width: 54px;
- width: var(--calendar-selected-day-size, 54px);
- height: 54px;
- height: var(--calendar-selected-day-size, 54px);
- color: #fff;
- color: var(--calendar-selected-day-color, #fff);
- background-color: #ee0a24;
- background-color: var(--calendar-selected-day-background-color, #ee0a24);
- border-radius: 4px;
- border-radius: var(--border-radius-md, 4px);
- }
|