index.wxss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  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. .fs54 {
  49. font-size: 54rpx;
  50. }
  51. .fsnd {
  52. font-size: 40rpx;
  53. }
  54. .calendar {
  55. width: 100%;
  56. box-sizing: border-box;
  57. }
  58. /* 日历操作栏 */
  59. .handle {
  60. height: 80rpx;
  61. }
  62. .prev-handle,
  63. .next-handle {
  64. padding: 20rpx;
  65. }
  66. .date-in-handle {
  67. height: 80rpx;
  68. }
  69. /* 星期栏 */
  70. .weeks {
  71. height: 50rpx;
  72. line-height: 50rpx;
  73. opacity: 0.5;
  74. }
  75. .week {
  76. text-align: center;
  77. }
  78. .grid,
  79. .week {
  80. width: 14.28%;
  81. }
  82. .date-wrap {
  83. width: 100%;
  84. height: 80rpx;
  85. position: relative;
  86. left: 0;
  87. top: 0;
  88. }
  89. .date {
  90. position: relative;
  91. left: 0;
  92. top: 0;
  93. width: 55rpx;
  94. height: 55rpx;
  95. text-align: center;
  96. line-height: 55rpx;
  97. font-size: 26rpx;
  98. font-weight: 200;
  99. border-radius: 50%;
  100. transition: all 0.3s;
  101. animation-name: choosed;
  102. animation-duration: 0.5s;
  103. animation-timing-function: linear;
  104. animation-iteration-count: 1;
  105. }
  106. .date-area-mode {
  107. width: 100%;
  108. border-radius: 0;
  109. }
  110. .date-desc {
  111. width: 150%;
  112. height: 32rpx;
  113. font-size: 20rpx;
  114. line-height: 32rpx;
  115. position: absolute;
  116. left: 50%;
  117. transform: translateX(-50%);
  118. overflow: hidden;
  119. word-break: break-all;
  120. text-overflow: ellipsis;
  121. white-space: nowrap;
  122. -webkit-line-clamp: 1;
  123. text-align: center;
  124. }
  125. @keyframes choosed {
  126. from {
  127. transform: scale(1);
  128. }
  129. 50% {
  130. transform: scale(0.9);
  131. }
  132. to {
  133. transform: scale(1);
  134. }
  135. }
  136. /* 日期圆圈标记 */
  137. .todo-circle {
  138. border-width: 1rpx;
  139. border-style: solid;
  140. box-sizing: border-box;
  141. }
  142. /* 待办点标记相关样式 */
  143. .todo-dot {
  144. width: 10rpx;
  145. height: 10rpx;
  146. border-radius: 50%;
  147. position: absolute;
  148. left: 50%;
  149. transform: translateX(-50%);
  150. }
  151. .todo-dot-top {
  152. top: 3rpx;
  153. }
  154. .mt10{
  155. margin-top:10rpx;
  156. }
  157. .todo-dot.todo-dot-top-always {
  158. top: -8rpx;
  159. }
  160. .todo-dot.todo-dot-bottom {
  161. bottom: 0;
  162. }
  163. .todo-dot.todo-dot-bottom-always {
  164. bottom: -10rpx;
  165. }
  166. /* 日期描述文字(待办文字/农历)相关样式 */
  167. .date-desc.date-desc-top {
  168. top: -6rpx;
  169. }
  170. .date-desc.date-desc-top-always {
  171. top: -20rpx;
  172. }
  173. .date-desc.date-desc-bottom {
  174. bottom: -14rpx;
  175. }
  176. .todo-circle .date-desc.date-desc-bottom {
  177. bottom: -30rpx;
  178. }
  179. .date-desc.date-desc-bottom-always {
  180. bottom: -28rpx;
  181. }