time-picker.wxss 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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-datetime-picker {
  28. /* width: 100%; */
  29. }
  30. .uni-datetime-picker-view {
  31. height: 130px;
  32. width: 270px;
  33. cursor: pointer;
  34. }
  35. .uni-datetime-picker-item {
  36. height: 50px;
  37. line-height: 50px;
  38. text-align: center;
  39. font-size: 14px;
  40. }
  41. .uni-datetime-picker-btn {
  42. margin-top: 60px;
  43. display: flex;
  44. cursor: pointer;
  45. flex-direction: row;
  46. justify-content: space-between;
  47. }
  48. .uni-datetime-picker-btn-text {
  49. font-size: 14px;
  50. color: #007aff;
  51. }
  52. .uni-datetime-picker-btn-group {
  53. display: flex;
  54. flex-direction: row;
  55. }
  56. .uni-datetime-picker-cancel {
  57. margin-right: 30px;
  58. }
  59. .uni-datetime-picker-mask {
  60. position: fixed;
  61. bottom: 0px;
  62. top: 0px;
  63. left: 0px;
  64. right: 0px;
  65. background-color: rgba(0, 0, 0, 0.4);
  66. transition-duration: 0.3s;
  67. z-index: 998;
  68. }
  69. .uni-datetime-picker-popup {
  70. border-radius: 8px;
  71. padding: 30px;
  72. width: 270px;
  73. background-color: #fff;
  74. position: fixed;
  75. top: 50%;
  76. left: 50%;
  77. -webkit-transform: translate(-50%, -50%);
  78. transform: translate(-50%, -50%);
  79. transition-duration: 0.3s;
  80. z-index: 999;
  81. }
  82. .uni-datetime-picker-time {
  83. color: grey;
  84. }
  85. .uni-datetime-picker-column {
  86. height: 50px;
  87. }
  88. .uni-datetime-picker-timebox {
  89. border: 1px solid #E5E5E5;
  90. border-radius: 5px;
  91. padding: 7px 10px;
  92. box-sizing: border-box;
  93. cursor: pointer;
  94. }
  95. .uni-datetime-picker-timebox-pointer {
  96. cursor: pointer;
  97. }
  98. .uni-datetime-picker-disabled {
  99. opacity: 0.4;
  100. }
  101. .uni-datetime-picker-text {
  102. font-size: 14px;
  103. line-height: 50px;
  104. }
  105. .uni-datetime-picker-sign {
  106. position: absolute;
  107. top: 53px;
  108. /* 减掉 10px 的元素高度,兼容nvue */
  109. color: #999;
  110. }
  111. .sign-left {
  112. left: 86px;
  113. }
  114. .sign-right {
  115. right: 86px;
  116. }
  117. .sign-center {
  118. left: 135px;
  119. }
  120. .uni-datetime-picker__container-box {
  121. position: relative;
  122. display: flex;
  123. align-items: center;
  124. justify-content: center;
  125. margin-top: 40px;
  126. }
  127. .time-hide-second {
  128. width: 180px;
  129. }