calendar-item.wxss 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. @charset "UTF-8";
  2. /**
  3. * 这里是uni-app内置的常用样式变量
  4. *
  5. * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
  6. * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
  7. *
  8. */
  9. /**
  10. * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
  11. *
  12. * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
  13. */
  14. /* 颜色变量 */
  15. /* 行为相关颜色 */
  16. /* 文字基本颜色 */
  17. /* 背景颜色 */
  18. /* 边框颜色 */
  19. /* 尺寸变量 */
  20. /* 文字尺寸 */
  21. /* 图片尺寸 */
  22. /* Border Radius */
  23. /* 水平间距 */
  24. /* 垂直间距 */
  25. /* 透明度 */
  26. /* 文章场景相关 */
  27. .uni-calendar-item__weeks-box {
  28. flex: 1;
  29. display: flex;
  30. flex-direction: column;
  31. justify-content: center;
  32. align-items: center;
  33. margin: 1px 0;
  34. position: relative;
  35. }
  36. .uni-calendar-item__weeks-box-text {
  37. font-size: 14px;
  38. font-weight: bold;
  39. color: #001833;
  40. }
  41. .uni-calendar-item__weeks-box-item {
  42. position: relative;
  43. display: flex;
  44. flex-direction: column;
  45. justify-content: center;
  46. align-items: center;
  47. width: 40px;
  48. height: 40px;
  49. }
  50. .uni-calendar-item__weeks-box-circle {
  51. position: absolute;
  52. top: 5px;
  53. right: 5px;
  54. width: 8px;
  55. height: 8px;
  56. border-radius: 8px;
  57. background-color: #dd524d;
  58. }
  59. .uni-calendar-item__weeks-box .uni-calendar-item--disable {
  60. cursor: default;
  61. }
  62. .uni-calendar-item--disable .uni-calendar-item__weeks-box-text-disable {
  63. color: #D1D1D1;
  64. }
  65. .uni-calendar-item--today {
  66. position: absolute;
  67. top: 10px;
  68. right: 17%;
  69. background-color: #dd524d;
  70. width: 6px;
  71. height: 6px;
  72. border-radius: 50%;
  73. }
  74. .uni-calendar-item--extra {
  75. color: #dd524d;
  76. opacity: 0.8;
  77. }
  78. .uni-calendar-item__weeks-box .uni-calendar-item--checked {
  79. background-color: #007aff;
  80. border-radius: 50%;
  81. box-sizing: border-box;
  82. border: 3px solid #fff;
  83. }
  84. .uni-calendar-item--checked .uni-calendar-item--checked-text {
  85. color: #fff;
  86. }
  87. .uni-calendar-item--multiple .uni-calendar-item--checked-range-text {
  88. color: #333;
  89. }
  90. .uni-calendar-item--multiple {
  91. background-color: #F6F7FC;
  92. }
  93. .uni-calendar-item--multiple .uni-calendar-item--before-checked,
  94. .uni-calendar-item--multiple .uni-calendar-item--after-checked {
  95. background-color: #007aff;
  96. border-radius: 50%;
  97. box-sizing: border-box;
  98. border: 3px solid #F6F7FC;
  99. }
  100. .uni-calendar-item--before-checked .uni-calendar-item--checked-text,
  101. .uni-calendar-item--after-checked .uni-calendar-item--checked-text {
  102. color: #fff;
  103. }
  104. .uni-calendar-item--before-checked-x {
  105. border-top-left-radius: 50px;
  106. border-bottom-left-radius: 50px;
  107. box-sizing: border-box;
  108. background-color: #F6F7FC;
  109. }
  110. .uni-calendar-item--after-checked-x {
  111. border-top-right-radius: 50px;
  112. border-bottom-right-radius: 50px;
  113. background-color: #F6F7FC;
  114. }