index.wxss 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  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. .fsnd {
  49. font-weight: 500;
  50. font-size: 45rpx;
  51. }
  52. .calendar {
  53. width: 100%;
  54. box-sizing: border-box;
  55. }
  56. /* 日历操作栏 */
  57. .handle {
  58. height: 80rpx;
  59. }
  60. .prev-handle,
  61. .next-handle {
  62. padding: 20rpx;
  63. }
  64. .date-in-handle {
  65. height: 90rpx;
  66. }
  67. /* 星期栏 */
  68. .weeks {
  69. height: 60rpx;
  70. line-height: 60rpx;
  71. font-size: 30rpx;
  72. font-weight: 600;
  73. opacity: 0.8;
  74. }
  75. .week {
  76. text-align: center;
  77. }
  78. .grid,
  79. .week {
  80. width: 14.286014285714286%;
  81. }
  82. .date-wrap {
  83. width: 100%;
  84. /* height: 96rpx; */
  85. height: 104rpx;
  86. position: relative;
  87. left: 0;
  88. top: 0;
  89. }
  90. .date {
  91. position: relative;
  92. left: 0;
  93. top: 0;
  94. width: 65rpx;
  95. height: 65rpx;
  96. text-align: center;
  97. line-height: 65rpx;
  98. font-size: 42rpx;
  99. font-weight: 600;
  100. border-radius: 50%;
  101. transition: all 0.3s;
  102. animation-name: choosed;
  103. animation-duration: 0.5s;
  104. animation-timing-function: linear;
  105. animation-iteration-count: 1;
  106. }
  107. .date-area-mode {
  108. width: 100%;
  109. border-radius: 0;
  110. }
  111. .date-desc {
  112. width: 150%;
  113. height: 32rpx;
  114. font-size: 20rpx;
  115. line-height: 32rpx;
  116. position: absolute;
  117. left: 50%;
  118. transform: translateX(-50%);
  119. overflow: hidden;
  120. word-break: break-all;
  121. text-overflow: ellipsis;
  122. white-space: nowrap;
  123. -webkit-line-clamp: 1;
  124. text-align: center;
  125. }
  126. @keyframes choosed {
  127. from {
  128. transform: scale(1);
  129. }
  130. 50% {
  131. transform: scale(0.9);
  132. }
  133. to {
  134. transform: scale(1);
  135. }
  136. }
  137. /* 日期圆圈标记 */
  138. .todo-circle {
  139. border-width: 1rpx;
  140. border-style: solid;
  141. box-sizing: border-box;
  142. }
  143. /* 待办点标记相关样式 */
  144. .todo-dot {
  145. width: 10rpx;
  146. height: 10rpx;
  147. border-radius: 50%;
  148. position: absolute;
  149. left: 50%;
  150. transform: translateX(-50%);
  151. }
  152. .todo-dot-top {
  153. top: 3rpx;
  154. }
  155. .todo-dot.todo-dot-top-always {
  156. top: -8rpx;
  157. }
  158. .todo-dot.todo-dot-bottom {
  159. bottom: 0;
  160. }
  161. .todo-dot.todo-dot-bottom-always {
  162. bottom: -10rpx;
  163. }
  164. /* 日期描述文字(待办文字/农历)相关样式 */
  165. .date-desc.date-desc-top {
  166. top: -6rpx;
  167. }
  168. .date-desc.date-desc-top-always {
  169. top: -20rpx;
  170. }
  171. .date-desc.date-desc-bottom {
  172. bottom: -32rpx;
  173. /* color: #6495ED; */
  174. color: #3B82F6;
  175. font-size: 22rpx;
  176. font-weight: 400;
  177. }
  178. .todo-circle .date-desc.date-desc-bottom {
  179. bottom: -30rpx;
  180. }
  181. .date-desc.date-desc-bottom-always {
  182. bottom: -28rpx;
  183. }
  184. /* 补充 */
  185. .calendar {
  186. background: #fff;
  187. border: 1rpx solid #dddee1;
  188. border-radius: 10rpx;
  189. }
  190. .calendar_title{
  191. font-size: 36rpx;
  192. }
  193. .calendar_header{
  194. border-bottom: 1rpx solid #dddee1;
  195. position: relative;
  196. }
  197. .calendar_body{
  198. padding: 4rpx;
  199. }
  200. .calendar_date .date-wrap{
  201. box-sizing: border-box;
  202. border: 4rpx solid transparent;
  203. }
  204. .calendar_date .date {
  205. margin-top: -20rpx;
  206. }
  207. .calendar_today{
  208. color: #2563EB;
  209. }
  210. .calendar_date .calendar_date_choosed{
  211. border: 4rpx solid #3B82F6;
  212. border-radius: 16rpx;
  213. }
  214. .calander-todos{
  215. position: absolute;
  216. top: 62rpx;
  217. left: 0;
  218. display: flex;
  219. justify-content: center;
  220. align-items: center;
  221. width: 100%;
  222. }
  223. .calander-todo{
  224. margin: 0 4rpx;
  225. font-size: 20rpx;
  226. line-height: 28rpx;
  227. min-width: 28rpx;
  228. border-radius: 15rpx;
  229. color: #fff;
  230. text-align: center;
  231. background-color: #3B82F6;
  232. }
  233. .calender-search{
  234. position: absolute;
  235. height: 80rpx;
  236. width: 80rpx;
  237. right: 80rpx;
  238. top: 0rpx;
  239. display: flex;
  240. justify-content: center;
  241. align-items: center;
  242. }
  243. .calender-search .icon {
  244. margin-top: -6rpx;
  245. }