index.scss 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342
  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. display: none;
  48. }
  49. .calendar {
  50. width: 100%;
  51. box-sizing: border-box;
  52. }
  53. /* 日历操作栏 */
  54. .handle {
  55. height: 80rpx;
  56. /* display: none; */
  57. }
  58. .prev-handle,
  59. .next-handle {
  60. padding: 20rpx;
  61. }
  62. .date-in-handle {
  63. height: 80rpx;
  64. }
  65. /* 星期栏 */
  66. .weeks {
  67. height: 50rpx;
  68. line-height: 50rpx;
  69. opacity: 0.5;
  70. }
  71. .week {
  72. text-align: center;
  73. }
  74. .default_prev-month-date {
  75. color: #a2a3a4 !important;
  76. }
  77. .default_normal-date {
  78. color: black !important;
  79. }
  80. .default_next-month-date {
  81. color: #a2a3a4 !important;
  82. }
  83. .grid,
  84. .week {
  85. width: 14.2857%;
  86. color: #171a1d;
  87. }
  88. .date-wrap {
  89. width: 100%;
  90. height: 80rpx;
  91. position: relative;
  92. left: 0;
  93. top: 0;
  94. display: flex;
  95. flex-direction: column;
  96. }
  97. .date {
  98. position: relative;
  99. left: 0;
  100. top: 0;
  101. width: 55rpx;
  102. height: 55rpx;
  103. text-align: center;
  104. line-height: 55rpx;
  105. font-size: 26rpx;
  106. font-weight: 200;
  107. border-radius: 50%;
  108. transition: all 0.3s;
  109. animation-name: choosed;
  110. animation-duration: 0.5s;
  111. animation-timing-function: linear;
  112. animation-iteration-count: 1;
  113. }
  114. .date-area-mode {
  115. width: 100%;
  116. border-radius: 0;
  117. }
  118. .date-desc {
  119. width: 150%;
  120. height: 32rpx;
  121. font-size: 20rpx;
  122. line-height: 32rpx;
  123. position: absolute;
  124. left: 50%;
  125. transform: translateX(-50%);
  126. overflow: hidden;
  127. word-break: break-all;
  128. text-overflow: ellipsis;
  129. white-space: nowrap;
  130. -webkit-line-clamp: 1;
  131. text-align: center;
  132. }
  133. @keyframes choosed {
  134. from {
  135. transform: scale(1);
  136. }
  137. 50% {
  138. transform: scale(0.9);
  139. }
  140. to {
  141. transform: scale(1);
  142. }
  143. }
  144. /* 日期圆圈标记 */
  145. .todo-circle {
  146. border-width: 1rpx;
  147. border-style: solid;
  148. box-sizing: border-box;
  149. }
  150. /* 待办点标记相关样式 */
  151. .todo-dot {
  152. width: 10rpx;
  153. height: 10rpx;
  154. border-radius: 50%;
  155. position: absolute;
  156. left: 50%;
  157. transform: translateX(-50%);
  158. }
  159. .todo-dot-top {
  160. top: 3rpx;
  161. }
  162. .todo-dot.todo-dot-top-always {
  163. top: -8rpx;
  164. }
  165. .todo-dot.todo-dot-bottom {
  166. bottom: 0;
  167. }
  168. .todo-dot.todo-dot-bottom-always {
  169. bottom: -10rpx;
  170. }
  171. /* 日期描述文字(待办文字/农历)相关样式 */
  172. .date-desc.date-desc-top {
  173. top: -6rpx;
  174. }
  175. .date-desc.date-desc-top-always {
  176. top: -20rpx;
  177. }
  178. .date-desc.date-desc-bottom {
  179. bottom: -14rpx;
  180. }
  181. .todo-circle .date-desc.date-desc-bottom {
  182. bottom: -30rpx;
  183. }
  184. .date-desc.date-desc-bottom-always {
  185. bottom: -28rpx;
  186. }
  187. .grid.dim .date,
  188. .grid.dim .date-desc,
  189. .grid.dim .dot {
  190. // opacity: 0.5;
  191. }
  192. .grid.other-month .date,
  193. .grid.other-month .date-desc,
  194. .grid.other-month .dot {
  195. color: #ccc;
  196. }
  197. .grid.current-month .date,
  198. .grid.current-month .date-desc {
  199. color: #222;
  200. }
  201. .grid.today .date {
  202. background: #eaf4ff;
  203. color: #2e7fff;
  204. font-weight: 600;
  205. }
  206. .grid.choosed .date {
  207. background: #2e7fff;
  208. color: #fff;
  209. font-weight: bold;
  210. box-shadow: 0 0 8rpx #2e7fff66;
  211. border-radius: 50%;
  212. border: none;
  213. }
  214. .dot-self-unchecked {
  215. background: #ff9800;
  216. }
  217. .dot-self-checked {
  218. background: #2e7fff;
  219. }
  220. .dot-other-unchecked {
  221. background: #ff4d4f;
  222. }
  223. .dot {
  224. width: 10rpx;
  225. height: 10rpx;
  226. border-radius: 50%;
  227. margin: 0 auto;
  228. margin-top: 4rpx;
  229. }
  230. /* 不同状态不同颜色 */
  231. .dot-3 {
  232. background: #2e7fff;
  233. } /* 打卡完成 */
  234. .dot-1 {
  235. background: #ff4d4f;
  236. } /* 本项目未打卡 */
  237. .dot-2 {
  238. background: #ff9800;
  239. } /* 其他项目未打卡 */
  240. .status-box {
  241. width: 100%;
  242. display: flex;
  243. align-items: center;
  244. justify-content: space-between;
  245. margin-bottom: 20rpx;
  246. .patch-btn {
  247. // margin-left: 24rpx;
  248. background: #1d6ff6;
  249. color: #fff;
  250. border-radius: 12rpx;
  251. // padding: 0 32rpx;
  252. height: 56rpx;
  253. line-height: 56rpx;
  254. font-size: 28rpx;
  255. border: none;
  256. }
  257. }
  258. .calendar-footer {
  259. margin-top: 48rpx;
  260. width: 100%;
  261. .status-row {
  262. display: flex;
  263. align-items: center;
  264. margin-bottom: 20rpx;
  265. .status-label {
  266. // font-size: 26rpx;
  267. }
  268. .status-content {
  269. // font-size: 26rpx;
  270. }
  271. .unpunch {
  272. color: #d54941;
  273. }
  274. .punch {
  275. color: #222;
  276. margin-right: 10rpx;
  277. }
  278. .patch-btn {
  279. // margin-left: 24rpx;
  280. background: #1d6ff6;
  281. color: #fff;
  282. border-radius: 12rpx;
  283. // padding: 0 32rpx;
  284. height: 56rpx;
  285. line-height: 56rpx;
  286. font-size: 28rpx;
  287. border: none;
  288. }
  289. }
  290. }