calendar-item.wxss 3.1 KB

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