index.wxss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  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. width: 100%;
  78. height: 80rpx;
  79. position: relative;
  80. left: 0;
  81. top: 0;
  82. }
  83. .date {
  84. position: relative;
  85. left: 0;
  86. top: 0;
  87. width: 55rpx;
  88. height: 55rpx;
  89. text-align: center;
  90. line-height: 55rpx;
  91. font-size: 38rpx;
  92. padding: 10rpx;
  93. font-weight: 200;
  94. border-radius: 50%;
  95. transition: all 0.3s;
  96. animation-name: choosed;
  97. animation-duration: 0.5s;
  98. animation-timing-function: linear;
  99. animation-iteration-count: 1;
  100. }
  101. .date-area-mode {
  102. width: 100%;
  103. border-radius: 0;
  104. }
  105. .date-desc {
  106. width: 150%;
  107. height: 32rpx;
  108. font-size: 20rpx;
  109. line-height: 32rpx;
  110. position: absolute;
  111. left: 50%;
  112. transform: translateX(-50%);
  113. overflow: hidden;
  114. word-break: break-all;
  115. text-overflow: ellipsis;
  116. white-space: nowrap;
  117. -webkit-line-clamp: 1;
  118. text-align: center;
  119. }
  120. @keyframes choosed {
  121. from {
  122. transform: scale(1);
  123. }
  124. 50% {
  125. transform: scale(0.9);
  126. }
  127. to {
  128. transform: scale(1);
  129. }
  130. }
  131. /* 日期圆圈标记 */
  132. .todo-circle {
  133. border-width: 1rpx;
  134. border-style: solid;
  135. box-sizing: border-box;
  136. }
  137. /* 待办点标记相关样式 */
  138. .todo-dot {
  139. width: 10rpx;
  140. height: 10rpx;
  141. border-radius: 50%;
  142. position: absolute;
  143. left: 50%;
  144. transform: translateX(-50%);
  145. }
  146. .todo-dot-top {
  147. top: 3rpx;
  148. }
  149. .todo-dot.todo-dot-top-always {
  150. top: -8rpx;
  151. }
  152. .todo-dot.todo-dot-bottom {
  153. bottom: 0;
  154. }
  155. .todo-dot.todo-dot-bottom-always {
  156. bottom: -10rpx;
  157. }
  158. /* 日期描述文字(待办文字/农历)相关样式 */
  159. .date-desc.date-desc-top {
  160. top: -6rpx;
  161. }
  162. .date-desc.date-desc-top-always {
  163. top: -20rpx;
  164. }
  165. .date-desc.date-desc-bottom {
  166. bottom: -14rpx;
  167. }
  168. .todo-circle .date-desc.date-desc-bottom {
  169. bottom: -30rpx;
  170. }
  171. .date-desc.date-desc-bottom-always {
  172. bottom: -28rpx;
  173. }