time-picker.scss 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. .m-time-picker-rel{
  2. display: inline-block;
  3. position: relative;
  4. .m-time-picker{
  5. display: inline-block;
  6. font-size: 14px;
  7. box-sizing: border-box;
  8. position: relative;
  9. .m-input__prefix{
  10. position: absolute;
  11. left: 5px;
  12. top: 0;
  13. color: #c0c4cc;
  14. height: 100%;
  15. text-align: center;
  16. transition: all .3s;
  17. .iconfont{
  18. width: 25px;
  19. height: 100%;
  20. line-height: 40px;
  21. text-align: center;
  22. transition: all .3s;
  23. }
  24. }
  25. .m-input__inner{
  26. padding: 0 30px;
  27. height: 40px;
  28. line-height: 40px;
  29. border-radius: 4px;
  30. border: 1px solid #dcdfe6;
  31. font-size: 14px;
  32. outline: none;
  33. box-sizing: border-box;
  34. color: #606266;
  35. background-color: transparent;
  36. &:focus{
  37. outline: none;
  38. border-color: #409eff;
  39. }
  40. }
  41. .m-input__suffix{
  42. position: absolute;
  43. height: 100%;
  44. right: 10px;
  45. top: 0;
  46. text-align: center;
  47. color: #c0c4cc;
  48. transition: all .3s;
  49. cursor: pointer;
  50. .iconfont{
  51. width: 25px;
  52. height: 100%;
  53. line-height: 40px;
  54. text-align: center;
  55. transition: all .3s;
  56. }
  57. }
  58. }
  59. .m-time-picker-disabled{
  60. cursor: no-drop;
  61. .m-input__inner{
  62. cursor: no-drop;
  63. background-color: #f5f7fa;
  64. color: #c0c4cc;
  65. }
  66. }
  67. .m-time-panel{
  68. min-width: 100%;
  69. height: 200px;
  70. border-radius: 4px;
  71. margin-top: 8px;
  72. background-color: #fff;
  73. position: absolute;
  74. bottom: 0;
  75. top: 100%;
  76. z-index: 99;
  77. .m-time-panel-body{
  78. display: flex;
  79. .m-time-panel__wrap{
  80. &.end-picker-time{
  81. margin-left: 10px;
  82. }
  83. .m-time-panel__title{
  84. text-align: center;
  85. height: 32px;
  86. line-height: 32px;
  87. margin-bottom: 5px;
  88. }
  89. .m-time-panel__content{
  90. width: 232px;
  91. height: auto;
  92. box-sizing: border-box;
  93. background-color: #fff;
  94. border: 1px solid #dcdfe6f6;
  95. .m-time-spinner__wrapper{
  96. display: inline-block;
  97. width: 33%;
  98. height: 190px;
  99. overflow-y: auto;
  100. text-align: center;
  101. vertical-align: top;
  102. border-left: 1px solid #e3e8ee;
  103. box-sizing: border-box;
  104. &:first-child{
  105. border-left: none;
  106. }
  107. .m-time-spinner__ul{
  108. .m-time-spinner__item{
  109. height: 32px;
  110. line-height: 32px;
  111. font-size: 13px;
  112. &:hover{
  113. cursor: pointer;
  114. background: #f5f7fa;
  115. }
  116. }
  117. .cell-selected{
  118. color: #39f;
  119. background: #f3f3f3;
  120. }
  121. }
  122. }
  123. }
  124. }
  125. }
  126. .m-time-panel__footer{
  127. border: 1px solid #e4e4e4;
  128. border-top: none;
  129. padding: 4px;
  130. height: 36px;
  131. line-height: 25px;
  132. text-align: right;
  133. box-sizing: border-box;
  134. .m-time-panel__btn{
  135. border: none;
  136. line-height: 28px;
  137. padding: 0 5px;
  138. margin: 0 5px;
  139. cursor: pointer;
  140. background-color: transparent;
  141. outline: none;
  142. font-size: 13px;
  143. color: #303133;
  144. }
  145. .btn__confirm{
  146. font-weight: 800;
  147. color: #409eff;
  148. }
  149. }
  150. }
  151. .is-confirm{
  152. height: 232px;
  153. }
  154. .is-range.is-confirm {
  155. height: 270px;
  156. }
  157. // 是否选择时间范围
  158. .is-range{
  159. height: 232px;
  160. background-color: #fff;
  161. border: 1px solid #dcdfe6f6;
  162. padding: 8px;
  163. }
  164. }