uni-datetime-picker.wxss 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  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-date {
  28. width: 100%;
  29. flex: 1;
  30. }
  31. .uni-date-x {
  32. display: flex;
  33. flex-direction: row;
  34. align-items: center;
  35. justify-content: center;
  36. border-radius: 4px;
  37. background-color: #fff;
  38. color: #666;
  39. font-size: 14px;
  40. flex: 1;
  41. }
  42. .uni-date-x .icon-calendar {
  43. padding-left: 3px;
  44. }
  45. .uni-date-x .range-separator {
  46. height: 35px;
  47. line-height: 35px;
  48. }
  49. .uni-date-x--border {
  50. box-sizing: border-box;
  51. border-radius: 4px;
  52. border: 1px solid #e5e5e5;
  53. }
  54. .uni-date-editor--x {
  55. display: flex;
  56. align-items: center;
  57. position: relative;
  58. }
  59. .uni-date-editor--x .uni-date__icon-clear {
  60. padding-right: 3px;
  61. display: flex;
  62. align-items: center;
  63. }
  64. .uni-date__x-input {
  65. width: auto;
  66. height: 35px;
  67. position: relative;
  68. flex: 1;
  69. line-height: 35px;
  70. font-size: 14px;
  71. overflow: hidden;
  72. }
  73. .text-center {
  74. text-align: center;
  75. }
  76. .uni-date__input {
  77. height: 40px;
  78. width: 100%;
  79. line-height: 40px;
  80. font-size: 14px;
  81. }
  82. .uni-date-range__input {
  83. text-align: center;
  84. max-width: 142px;
  85. }
  86. .uni-date-picker__container {
  87. position: relative;
  88. }
  89. .uni-date-mask--pc {
  90. position: fixed;
  91. bottom: 0px;
  92. top: 0px;
  93. left: 0px;
  94. right: 0px;
  95. background-color: rgba(0, 0, 0, 0);
  96. transition-duration: 0.3s;
  97. z-index: 996;
  98. }
  99. .uni-date-single--x {
  100. background-color: #fff;
  101. position: absolute;
  102. top: 0;
  103. z-index: 999;
  104. border: 1px solid #EBEEF5;
  105. box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  106. border-radius: 4px;
  107. }
  108. .uni-date-range--x {
  109. background-color: #fff;
  110. position: absolute;
  111. top: 0;
  112. z-index: 999;
  113. border: 1px solid #EBEEF5;
  114. box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  115. border-radius: 4px;
  116. }
  117. .uni-date-editor--x__disabled {
  118. opacity: 0.4;
  119. cursor: default;
  120. }
  121. .uni-date-editor--logo {
  122. width: 16px;
  123. height: 16px;
  124. vertical-align: middle;
  125. }
  126. /* 添加时间 */
  127. .popup-x-header {
  128. display: flex;
  129. flex-direction: row;
  130. }
  131. .popup-x-header--datetime {
  132. display: flex;
  133. flex-direction: row;
  134. flex: 1;
  135. }
  136. .popup-x-body {
  137. display: flex;
  138. }
  139. .popup-x-footer {
  140. padding: 0 15px;
  141. border-top-color: #F1F1F1;
  142. border-top-style: solid;
  143. border-top-width: 1px;
  144. line-height: 40px;
  145. text-align: right;
  146. color: #666;
  147. }
  148. .popup-x-footer text:hover {
  149. color: #007aff;
  150. cursor: pointer;
  151. opacity: 0.8;
  152. }
  153. .popup-x-footer .confirm-text {
  154. margin-left: 20px;
  155. color: #007aff;
  156. }
  157. .uni-date-changed {
  158. text-align: center;
  159. color: #333;
  160. border-bottom-color: #F1F1F1;
  161. border-bottom-style: solid;
  162. border-bottom-width: 1px;
  163. }
  164. .uni-date-changed--time text {
  165. height: 50px;
  166. line-height: 50px;
  167. }
  168. .uni-date-changed .uni-date-changed--time {
  169. flex: 1;
  170. }
  171. .uni-date-changed--time-date {
  172. color: #333;
  173. opacity: 0.6;
  174. }
  175. .mr-50 {
  176. margin-right: 50px;
  177. }
  178. /* picker 弹出层通用的指示小三角, todo:扩展至上下左右方向定位 */
  179. .uni-popper__arrow,
  180. .uni-popper__arrow::after {
  181. position: absolute;
  182. display: block;
  183. width: 0;
  184. height: 0;
  185. border: 6px solid transparent;
  186. border-top-width: 0;
  187. }
  188. .uni-popper__arrow {
  189. -webkit-filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.03));
  190. filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.03));
  191. top: -6px;
  192. left: 10%;
  193. margin-right: 3px;
  194. border-bottom-color: #EBEEF5;
  195. }
  196. .uni-popper__arrow::after {
  197. content: " ";
  198. top: 1px;
  199. margin-left: -6px;
  200. border-bottom-color: #fff;
  201. }