index.acss 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. .month-index {
  2. display: block;
  3. height: initial;
  4. }
  5. @import "../../../common/index.acss";
  6. .month-index .van-calendar {
  7. display: -webkit-flex;
  8. display: flex;
  9. -webkit-flex-direction: column;
  10. flex-direction: column;
  11. height: 100%;
  12. background-color: #fff;
  13. background-color: var(--calendar-background-color, #fff);
  14. }
  15. .month-index .van-calendar__month-title {
  16. text-align: center;
  17. height: 44px;
  18. height: var(--calendar-header-title-height, 44px);
  19. font-weight: 500;
  20. font-weight: var(--font-weight-bold, 500);
  21. font-size: 14px;
  22. font-size: var(--calendar-month-title-font-size, 14px);
  23. line-height: 44px;
  24. line-height: var(--calendar-header-title-height, 44px);
  25. }
  26. .month-index .van-calendar__days {
  27. position: relative;
  28. display: -webkit-flex;
  29. display: flex;
  30. -webkit-flex-wrap: wrap;
  31. flex-wrap: wrap;
  32. -webkit-user-select: none;
  33. user-select: none;
  34. }
  35. .month-index .van-calendar__month-mark {
  36. position: absolute;
  37. top: 50%;
  38. left: 50%;
  39. z-index: 0;
  40. -webkit-transform: translate(-50%, -50%);
  41. transform: translate(-50%, -50%);
  42. pointer-events: none;
  43. color: rgba(242, 243, 245, 0.8);
  44. color: var(--calendar-month-mark-color, rgba(242, 243, 245, 0.8));
  45. font-size: 160px;
  46. font-size: var(--calendar-month-mark-font-size, 160px);
  47. }
  48. .month-index .van-calendar__day,
  49. .month-index .van-calendar__selected-day {
  50. display: -webkit-flex;
  51. display: flex;
  52. -webkit-align-items: center;
  53. align-items: center;
  54. -webkit-justify-content: center;
  55. justify-content: center;
  56. text-align: center;
  57. }
  58. .month-index .van-calendar__day {
  59. position: relative;
  60. width: 14.285%;
  61. height: 64px;
  62. height: var(--calendar-day-height, 64px);
  63. font-size: 16px;
  64. font-size: var(--calendar-day-font-size, 16px);
  65. }
  66. .month-index .van-calendar__day--end,
  67. .month-index .van-calendar__day--multiple-middle,
  68. .month-index .van-calendar__day--multiple-selected,
  69. .month-index .van-calendar__day--start,
  70. .month-index .van-calendar__day--start-end {
  71. color: #fff;
  72. color: var(--calendar-range-edge-color, #fff);
  73. background-color: #ee0a24;
  74. background-color: var(--calendar-range-edge-background-color, #ee0a24);
  75. }
  76. .month-index .van-calendar__day--start {
  77. border-radius: 4px 0 0 4px;
  78. border-radius: var(--border-radius-md, 4px) 0 0 var(--border-radius-md, 4px);
  79. }
  80. .month-index .van-calendar__day--end {
  81. border-radius: 0 4px 4px 0;
  82. border-radius: 0 var(--border-radius-md, 4px) var(--border-radius-md, 4px) 0;
  83. }
  84. .month-index .van-calendar__day--multiple-selected,
  85. .month-index .van-calendar__day--start-end {
  86. border-radius: 4px;
  87. border-radius: var(--border-radius-md, 4px);
  88. }
  89. .month-index .van-calendar__day--middle {
  90. color: #ee0a24;
  91. color: var(--calendar-range-middle-color, #ee0a24);
  92. }
  93. .month-index .van-calendar__day--middle:after {
  94. position: absolute;
  95. top: 0;
  96. right: 0;
  97. bottom: 0;
  98. left: 0;
  99. background-color: currentColor;
  100. content: "";
  101. opacity: 0.1;
  102. opacity: var(--calendar-range-middle-background-opacity, 0.1);
  103. }
  104. .month-index .van-calendar__day--disabled {
  105. cursor: default;
  106. color: #c8c9cc;
  107. color: var(--calendar-day-disabled-color, #c8c9cc);
  108. }
  109. .month-index .van-calendar__bottom-info,
  110. .month-index .van-calendar__top-info {
  111. position: absolute;
  112. right: 0;
  113. left: 0;
  114. font-size: 10px;
  115. font-size: var(--calendar-info-font-size, 10px);
  116. line-height: 14px;
  117. line-height: var(--calendar-info-line-height, 14px);
  118. }
  119. @media (max-width: 350px) {
  120. .van-calendar__bottom-info,
  121. .van-calendar__top-info {
  122. font-size: 9px;
  123. }
  124. }
  125. .month-index .van-calendar__top-info {
  126. top: 6px;
  127. }
  128. .month-index .van-calendar__bottom-info {
  129. bottom: 6px;
  130. }
  131. .month-index .van-calendar__selected-day {
  132. width: 54px;
  133. width: var(--calendar-selected-day-size, 54px);
  134. height: 54px;
  135. height: var(--calendar-selected-day-size, 54px);
  136. color: #fff;
  137. color: var(--calendar-selected-day-color, #fff);
  138. background-color: #ee0a24;
  139. background-color: var(--calendar-selected-day-background-color, #ee0a24);
  140. border-radius: 4px;
  141. border-radius: var(--border-radius-md, 4px);
  142. }