calendar.wxss 5.5 KB

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