index.wxss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. .ant-calendar {
  2. color: #333333;
  3. position: relative;
  4. display: flex;
  5. flex-direction: column;
  6. height: 100%;
  7. }
  8. .ant-calendar-body {
  9. flex: 1;
  10. overflow: hidden;
  11. }
  12. .ant-calendar-sticky {
  13. position: absolute;
  14. top: 0px;
  15. left: 0px;
  16. max-height: 41px;
  17. width: 100%;
  18. overflow: hidden;
  19. top: 44px;
  20. z-index: 1000;
  21. }
  22. .ant-calendar-mark {
  23. height: 44px;
  24. display: flex;
  25. flex-direction: row;
  26. justify-content: flex-start;
  27. align-items: center;
  28. box-sizing: border-box;
  29. font-size: 14px;
  30. padding: 0 8px;
  31. }
  32. .ant-calendar-mark .ant-calendar-mark-cell {
  33. flex: 1;
  34. text-align: center;
  35. width: calc((100% - 6 * 5px) / 7);
  36. margin-right: 5px;
  37. }
  38. .ant-calendar-mark .ant-calendar-mark-cell-last {
  39. margin-right: 0;
  40. }
  41. .ant-calendar-title {
  42. color: #333333;
  43. font-size: 18px;
  44. height: 41px;
  45. line-height: 41px;
  46. padding-left: 20px;
  47. margin-bottom: 4px;
  48. background: #f8f8f8;
  49. }
  50. .ant-calendar-cells {
  51. display: flex;
  52. flex-direction: row;
  53. flex-wrap: wrap;
  54. justify-content: flex-start;
  55. align-items: stretch;
  56. padding: 0 8px;
  57. }
  58. .ant-calendar-cell-space {
  59. width: 5px;
  60. height: 55px;
  61. }
  62. .ant-calendar-cell-space-active {
  63. background: rgba(22, 119, 255, 0.1);
  64. }
  65. .ant-calendar-cell {
  66. box-sizing: border-box;
  67. width: calc((100% - 6 * 5px) / 7);
  68. height: 55px;
  69. margin-bottom: 4px;
  70. position: relative;
  71. }
  72. .ant-calendar-cell-container {
  73. box-sizing: border-box;
  74. padding-top: 3.5px;
  75. height: 100%;
  76. }
  77. .ant-calendar-cell-top {
  78. color: #999999;
  79. text-align: center;
  80. font-size: 9px;
  81. height: 12.5px;
  82. }
  83. .ant-calendar-cell-top-text {
  84. white-space: nowrap;
  85. }
  86. .ant-calendar-cell-center {
  87. text-align: center;
  88. height: 22.5px;
  89. font-size: 16px;
  90. }
  91. .ant-calendar-cell-bottom {
  92. color: #999999;
  93. text-align: center;
  94. font-size: 9px;
  95. height: 12.5px;
  96. }
  97. .ant-calendar-cell-selected {
  98. background: rgba(22, 119, 255, 0.1);
  99. }
  100. .ant-calendar-cell-selected-begin {
  101. border-top-left-radius: 4px;
  102. border-bottom-left-radius: 4px;
  103. background: rgba(22, 119, 255, 0.1);
  104. }
  105. .ant-calendar-cell-selected-end {
  106. border-top-right-radius: 4px;
  107. border-bottom-right-radius: 4px;
  108. color: #ffffff;
  109. }
  110. .ant-calendar-cell-selected-row-end {
  111. border-top-right-radius: 4px;
  112. border-bottom-right-radius: 4px;
  113. }
  114. .ant-calendar-cell-selected-row-begin {
  115. border-top-left-radius: 4px;
  116. border-bottom-left-radius: 4px;
  117. }
  118. .ant-calendar-cell-selected-begin .ant-calendar-cell-container {
  119. background: #1677ff;
  120. border-radius: 4px;
  121. color: #ffffff;
  122. }
  123. .ant-calendar-cell-selected-end .ant-calendar-cell-container {
  124. background: #1677ff;
  125. border-radius: 4px;
  126. color: #ffffff;
  127. }
  128. .ant-calendar-cell-selected-end .ant-calendar-cell-top {
  129. color: #ffffff;
  130. }
  131. .ant-calendar-cell-selected-begin .ant-calendar-cell-top {
  132. color: #ffffff;
  133. }
  134. .ant-calendar-cell-selected-end .ant-calendar-cell-bottom {
  135. color: #ffffff;
  136. }
  137. .ant-calendar-cell-selected-begin .ant-calendar-cell-bottom {
  138. color: #ffffff;
  139. }
  140. .ant-calendar-cell-disabled {
  141. opacity: 0.4;
  142. }
  143. .ant-calendar-cell-hidden {
  144. opacity: 0;
  145. }