calendar.wxss 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. .t-float-left {
  2. float: left;
  3. }
  4. .t-float-right {
  5. float: right;
  6. }
  7. @keyframes tdesign-fade-out {
  8. from {
  9. opacity: 1;
  10. }
  11. to {
  12. opacity: 0;
  13. }
  14. }
  15. .hotspot-expanded.relative {
  16. position: relative;
  17. }
  18. .hotspot-expanded::after {
  19. content: '';
  20. display: block;
  21. position: absolute;
  22. left: 0;
  23. top: 0;
  24. right: 0;
  25. bottom: 0;
  26. transform: scale(1.5);
  27. }
  28. .t-calendar {
  29. position: relative;
  30. z-index: 9999;
  31. background: #fff;
  32. overflow-x: hidden;
  33. border-top-left-radius: 12px;
  34. border-top-right-radius: 12px;
  35. }
  36. .t-calendar__title {
  37. display: flex;
  38. align-items: center;
  39. justify-content: center;
  40. font-size: 18px;
  41. font-weight: 600;
  42. color: #000000;
  43. height: 26px;
  44. padding: 16px;
  45. }
  46. .t-calendar__close-btn {
  47. position: absolute;
  48. top: 16px;
  49. right: 16px;
  50. }
  51. .t-calendar__days {
  52. display: flex;
  53. justify-content: space-around;
  54. align-items: center;
  55. padding: 0 16px;
  56. text-align: center;
  57. line-height: 46px;
  58. }
  59. .t-calendar__days-item {
  60. width: 44px;
  61. height: 46px;
  62. font-size: 14px;
  63. color: #444444;
  64. }
  65. .t-calendar__value {
  66. display: flex;
  67. align-items: center;
  68. justify-content: center;
  69. margin: 6px 0;
  70. color: #909399;
  71. font-size: 14px;
  72. }
  73. .t-calendar__content {
  74. min-height: 200px;
  75. display: flex;
  76. flex-direction: column;
  77. }
  78. .t-calendar__month {
  79. font-size: 14px;
  80. color: #000000;
  81. font-weight: 600;
  82. padding: 16px 0 0;
  83. }
  84. .t-calendar__months {
  85. max-height: 456px;
  86. overflow-y: scroll;
  87. padding: 0 16px 16px;
  88. }
  89. .t-calendar__months::-webkit-scrollbar {
  90. display: none;
  91. }
  92. .t-calendar__dates {
  93. flex: 1;
  94. display: flex;
  95. align-items: center;
  96. flex-wrap: wrap;
  97. }
  98. .t-calendar__dates-item {
  99. position: relative;
  100. display: flex;
  101. align-items: center;
  102. justify-content: center;
  103. font-size: 16px;
  104. border-radius: 8px;
  105. width: 49px;
  106. height: 60px;
  107. line-height: 24px;
  108. font-weight: 600;
  109. cursor: pointer;
  110. margin-top: 8px;
  111. }
  112. .t-calendar__dates-item-prefix,
  113. .t-calendar__dates-item-suffix {
  114. position: absolute;
  115. font-size: 10px;
  116. line-height: 16px;
  117. width: 100%;
  118. text-align: center;
  119. font-weight: 400;
  120. }
  121. .t-calendar__dates-item-prefix {
  122. top: 4px;
  123. }
  124. .t-calendar__dates-item-suffix {
  125. bottom: 4px;
  126. color: #888888;
  127. }
  128. .t-calendar__dates-item-suffix--selected,
  129. .t-calendar__dates-item-suffix--start,
  130. .t-calendar__dates-item-suffix--end {
  131. color: #fff;
  132. }
  133. .t-calendar__dates-item-suffix--disabled {
  134. color: #bbbbbb;
  135. }
  136. .t-calendar__dates-item--selected,
  137. .t-calendar__dates-item--start,
  138. .t-calendar__dates-item--end {
  139. background: #0053db;
  140. color: #fff;
  141. border-radius: 4px;
  142. }
  143. .t-calendar__dates-item--start {
  144. border-radius: 4px 0 0 4px;
  145. }
  146. .t-calendar__dates-item--end {
  147. border-radius: 0 4px 4px 0;
  148. }
  149. .t-calendar__dates-item--centre {
  150. border-radius: 0;
  151. background-color: #ecf2fe;
  152. }
  153. .t-calendar__dates-item--disabled {
  154. color: #bbbbbb;
  155. cursor: default;
  156. }
  157. .t-calendar__footer {
  158. border-top: 1px solid #e7e7e7;
  159. padding: 16px;
  160. }