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