uni-datetime-picker.wxss 3.4 KB

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