index.module.less 2.4 KB

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