index.wxss 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. @import './theme/iconfont.wxss';
  2. @import './theme/theme-default.wxss';
  3. @import './theme/theme-elegant.wxss';
  4. .b {
  5. display: flex;
  6. }
  7. .lr {
  8. flex-direction: row;
  9. }
  10. .tb {
  11. flex-direction: column;
  12. }
  13. .pc {
  14. justify-content: center;
  15. }
  16. .ac {
  17. align-items: center;
  18. }
  19. .cc {
  20. align-items: center;
  21. justify-content: center;
  22. }
  23. .wrap {
  24. flex-wrap: wrap;
  25. }
  26. .flex {
  27. flex-grow: 1;
  28. }
  29. .bg {
  30. background-image: linear-gradient(to bottom, #faefe7, #ffcbd7);
  31. overflow: hidden;
  32. }
  33. .white-color {
  34. color: #fff;
  35. }
  36. .fs24 {
  37. font-size: 24rpx;
  38. }
  39. .fs28 {
  40. font-size: 28rpx;
  41. }
  42. .fs32 {
  43. font-size: 32rpx;
  44. }
  45. .fs36 {
  46. font-size: 36rpx;
  47. }
  48. .calendar {
  49. width: 100%;
  50. box-sizing: border-box;
  51. }
  52. /* 日历操作栏 */
  53. .handle {
  54. height: 80rpx;
  55. }
  56. .prev-handle,
  57. .next-handle {
  58. padding: 20rpx;
  59. }
  60. .date-in-handle {
  61. height: 80rpx;
  62. }
  63. /* 星期栏 */
  64. .weeks {
  65. height: 50rpx;
  66. line-height: 50rpx;
  67. opacity: 0.5;
  68. }
  69. .week {
  70. text-align: center;
  71. }
  72. .grid,
  73. .week {
  74. width: 14.286014285714286%;
  75. }
  76. .date-wrap {
  77. height: 72rpx;
  78. position: relative;
  79. left: 0;
  80. top: 0;
  81. }
  82. .date {
  83. position: relative;
  84. left: 0;
  85. top: 0;
  86. width: 55rpx;
  87. height: 55rpx;
  88. text-align: center;
  89. line-height: 55rpx;
  90. font-size: 26rpx;
  91. font-weight: 200;
  92. border-radius: 50%;
  93. transition: all 0.3s;
  94. animation-name: choosed;
  95. animation-duration: 0.5s;
  96. animation-timing-function: linear;
  97. animation-iteration-count: 1;
  98. }
  99. .date-desc {
  100. width: 150%;
  101. height: 32rpx;
  102. font-size: 20rpx;
  103. line-height: 32rpx;
  104. position: absolute;
  105. left: 50%;
  106. transform: translateX(-50%);
  107. overflow: hidden;
  108. word-break: break-all;
  109. text-overflow: ellipsis;
  110. white-space: nowrap;
  111. -webkit-line-clamp: 1;
  112. text-align: center;
  113. }
  114. @keyframes choosed {
  115. from {
  116. transform: scale(1);
  117. }
  118. 50% {
  119. transform: scale(0.9);
  120. }
  121. to {
  122. transform: scale(1);
  123. }
  124. }
  125. /* 日期圆圈标记 */
  126. .todo-circle {
  127. border-width: 1rpx;
  128. border-style: solid;
  129. box-sizing: border-box;
  130. }
  131. /* 待办点标记相关样式 */
  132. .todo-dot {
  133. width: 10rpx;
  134. height: 10rpx;
  135. border-radius: 50%;
  136. position: absolute;
  137. left: 50%;
  138. transform: translateX(-50%);
  139. }
  140. .todo-dot-top {
  141. top: 3rpx;
  142. }
  143. .todo-dot.todo-dot-top-always {
  144. top: -8rpx;
  145. }
  146. .todo-dot.todo-dot-bottom {
  147. bottom: 0;
  148. }
  149. .todo-dot.todo-dot-bottom-always {
  150. bottom: -10rpx;
  151. }
  152. /* 日期描述文字(待办文字/农历)相关样式 */
  153. .date-desc.date-desc-top {
  154. top: -6rpx;
  155. }
  156. .date-desc.date-desc-top-always {
  157. top: -20rpx;
  158. }
  159. .date-desc.date-desc-bottom {
  160. bottom: -14rpx;
  161. }
  162. .date-desc.date-desc-bottom-always {
  163. bottom: -28rpx;
  164. }