calendar.wxss 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  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 {
  27. display: flex;
  28. flex-direction: column;
  29. }
  30. .uni-calendar__mask {
  31. position: fixed;
  32. bottom: 0;
  33. top: 0;
  34. left: 0;
  35. right: 0;
  36. background-color: rgba(0, 0, 0, 0.4);
  37. transition-property: opacity;
  38. transition-duration: 0.3s;
  39. opacity: 0;
  40. z-index: 99;
  41. }
  42. .uni-calendar--mask-show {
  43. opacity: 1;
  44. }
  45. .uni-calendar--fixed {
  46. position: fixed;
  47. bottom: calc(var(--window-bottom));
  48. left: 0;
  49. right: 0;
  50. transition-property: transform;
  51. transition-duration: 0.3s;
  52. transform: translateY(460px);
  53. z-index: 99;
  54. }
  55. .uni-calendar--ani-show {
  56. transform: translateY(0);
  57. }
  58. .uni-calendar__content {
  59. background-color: #fff;
  60. }
  61. .uni-calendar__content-mobile {
  62. border-top-left-radius: 10px;
  63. border-top-right-radius: 10px;
  64. box-shadow: 0px 0px 5px 3px rgba(0, 0, 0, 0.1);
  65. }
  66. .uni-calendar__header {
  67. position: relative;
  68. display: flex;
  69. flex-direction: row;
  70. justify-content: center;
  71. align-items: center;
  72. height: 50px;
  73. }
  74. .uni-calendar__header-mobile {
  75. padding: 10px;
  76. padding-bottom: 0;
  77. }
  78. .uni-calendar--fixed-top {
  79. display: flex;
  80. flex-direction: row;
  81. justify-content: space-between;
  82. border-top-color: rgba(0, 0, 0, 0.4);
  83. border-top-style: solid;
  84. border-top-width: 1px;
  85. }
  86. .uni-calendar--fixed-width {
  87. width: 50px;
  88. }
  89. .uni-calendar__backtoday {
  90. position: absolute;
  91. right: 0;
  92. top: 25rpx;
  93. padding: 0 5px;
  94. padding-left: 10px;
  95. height: 25px;
  96. line-height: 25px;
  97. font-size: 12px;
  98. border-top-left-radius: 25px;
  99. border-bottom-left-radius: 25px;
  100. color: #fff;
  101. background-color: #f1f1f1;
  102. }
  103. .uni-calendar__header-text {
  104. text-align: center;
  105. width: 100px;
  106. font-size: 15px;
  107. color: #666;
  108. }
  109. .uni-calendar__button-text {
  110. text-align: center;
  111. width: 100px;
  112. font-size: 14px;
  113. color: #007aff;
  114. letter-spacing: 3px;
  115. }
  116. .uni-calendar__header-btn-box {
  117. display: flex;
  118. flex-direction: row;
  119. align-items: center;
  120. justify-content: center;
  121. width: 50px;
  122. height: 50px;
  123. }
  124. .uni-calendar__header-btn {
  125. width: 9px;
  126. height: 9px;
  127. border-left-color: #808080;
  128. border-left-style: solid;
  129. border-left-width: 1px;
  130. border-top-color: #555555;
  131. border-top-style: solid;
  132. border-top-width: 1px;
  133. }
  134. .uni-calendar--left {
  135. transform: rotate(-45deg);
  136. }
  137. .uni-calendar--right {
  138. transform: rotate(135deg);
  139. }
  140. .uni-calendar__weeks {
  141. position: relative;
  142. display: flex;
  143. flex-direction: row;
  144. }
  145. .uni-calendar__weeks-item {
  146. flex: 1;
  147. }
  148. .uni-calendar__weeks-day {
  149. flex: 1;
  150. display: flex;
  151. flex-direction: column;
  152. justify-content: center;
  153. align-items: center;
  154. height: 40px;
  155. border-bottom-color: #F5F5F5;
  156. border-bottom-style: solid;
  157. border-bottom-width: 1px;
  158. }
  159. .uni-calendar__weeks-day-text {
  160. font-size: 12px;
  161. color: #B2B2B2;
  162. }
  163. .uni-calendar__box {
  164. position: relative;
  165. padding-bottom: 7px;
  166. }
  167. .uni-calendar__box-bg {
  168. display: flex;
  169. justify-content: center;
  170. align-items: center;
  171. position: absolute;
  172. top: 0;
  173. left: 0;
  174. right: 0;
  175. bottom: 0;
  176. }
  177. .uni-calendar__box-bg-text {
  178. font-size: 200px;
  179. font-weight: bold;
  180. color: #999;
  181. opacity: 0.1;
  182. text-align: center;
  183. line-height: 1;
  184. }
  185. .uni-date-changed {
  186. padding: 0 10px;
  187. text-align: center;
  188. color: #333;
  189. border-top-color: #DCDCDC;
  190. border-top-style: solid;
  191. border-top-width: 1px;
  192. flex: 1;
  193. }
  194. .uni-date-btn--ok {
  195. padding: 20px 15px;
  196. }
  197. .uni-date-changed--time-start {
  198. display: flex;
  199. align-items: center;
  200. }
  201. .uni-date-changed--time-end {
  202. display: flex;
  203. align-items: center;
  204. }
  205. .uni-date-changed--time-date {
  206. color: #999;
  207. line-height: 50px;
  208. margin-right: 5px;
  209. }
  210. .time-picker-style {
  211. display: flex;
  212. justify-content: center;
  213. align-items: center;
  214. }
  215. .mr-10 {
  216. margin-right: 10px;
  217. }
  218. .dialog-close {
  219. position: absolute;
  220. top: 0;
  221. right: 0;
  222. bottom: 0;
  223. display: flex;
  224. flex-direction: row;
  225. align-items: center;
  226. padding: 0 25px;
  227. margin-top: 10px;
  228. }
  229. .dialog-close-plus {
  230. width: 16px;
  231. height: 2px;
  232. background-color: #737987;
  233. border-radius: 2px;
  234. transform: rotate(45deg);
  235. }
  236. .dialog-close-rotate {
  237. position: absolute;
  238. transform: rotate(-45deg);
  239. }
  240. .uni-datetime-picker--btn {
  241. border-radius: 100px;
  242. height: 40px;
  243. line-height: 40px;
  244. background-color: #007aff;
  245. color: #fff;
  246. font-size: 16px;
  247. letter-spacing: 5px;
  248. }
  249. .uni-datetime-picker--btn:active {
  250. opacity: 0.7;
  251. }