index.module.less 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. .calendar {
  2. border-radius: 10px;
  3. .subtitle {
  4. display: flex;
  5. align-items: center;
  6. justify-content: space-between;
  7. font-size: 18px;
  8. font-weight: 500;
  9. color: #333333;
  10. line-height: 25px;
  11. height: var(--van-calendar-header-title-height);
  12. padding: 0 22px;
  13. .right {
  14. transform: rotateZ(180deg);
  15. }
  16. .disabled {
  17. opacity: 0.6;
  18. }
  19. }
  20. :global {
  21. .van-calendar__header {
  22. box-shadow: none;
  23. }
  24. .van-calendar__selected-day {
  25. width: 38px !important;
  26. height: 45px !important;
  27. border-radius: 5px;
  28. overflow: hidden;
  29. .van-calendar__bottom-info {
  30. color: #fff !important;
  31. }
  32. }
  33. .van-calendar__weekday {
  34. color: #777;
  35. font-size: 14px;
  36. }
  37. .van-calendar__day {
  38. font-size: 15px;
  39. &::after {
  40. position: absolute;
  41. top: 50%;
  42. right: 0;
  43. bottom: 0;
  44. left: 50%;
  45. width: 38px;
  46. height: 45px;
  47. background: #2dc7aa;
  48. content: ' ';
  49. opacity: 0.12;
  50. transform: translate(-50%, -50%);
  51. border-radius: 2px;
  52. }
  53. }
  54. .van-calendar__days {
  55. padding: 12px 0;
  56. }
  57. .van-calendar__bottom-info {
  58. bottom: 3px;
  59. }
  60. .full {
  61. .van-calendar__bottom-info {
  62. color: #ff6363;
  63. }
  64. }
  65. .van-calendar__day.full::after,
  66. .van-calendar__day--disabled.full::after {
  67. display: inline-block !important;
  68. background-color: #ffd7a6;
  69. }
  70. // 禁用不显示背景
  71. .van-calendar__day--disabled::after {
  72. display: none !important;
  73. }
  74. }
  75. }
  76. .calenderPopup {
  77. border-radius: 8px;
  78. overflow: hidden;
  79. padding: 18px 12px 28px;
  80. .popup {
  81. width: 312px;
  82. background: #ffffff;
  83. }
  84. .title {
  85. display: flex;
  86. align-items: center;
  87. justify-content: space-around;
  88. font-size: 18px;
  89. font-weight: 500;
  90. color: #333333;
  91. line-height: 25px;
  92. padding: 0 20px 25px;
  93. }
  94. .container {
  95. display: flex;
  96. align-items: center;
  97. flex-wrap: wrap;
  98. padding-bottom: 14px;
  99. & > div {
  100. flex-basis: 33.33%;
  101. text-align: center;
  102. }
  103. }
  104. .noDay {
  105. display: flex;
  106. align-items: center;
  107. justify-content: center;
  108. flex: 1;
  109. padding: 25px 0 35px;
  110. .clock {
  111. width: 30px;
  112. }
  113. span {
  114. padding-left: 10px;
  115. font-size: 14px;
  116. font-weight: 500;
  117. color: #999;
  118. }
  119. }
  120. .tag {
  121. padding: 8px 10px;
  122. margin-bottom: 10px;
  123. font-size: 12px;
  124. color: #333333 !important;
  125. border-color: #d8d8d8 !important;
  126. &.active {
  127. color: var(--van-primary) !important;
  128. background: #e0f7f3;
  129. border-color: var(--van-primary) !important;
  130. }
  131. }
  132. .dayBtn {
  133. display: flex;
  134. align-items: center;
  135. }
  136. }