date-picker.scss 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. .m-date-picker-rel{
  2. display: inline-block;
  3. position: relative;
  4. .m-date-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-date-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-date-panel{
  68. position: absolute;
  69. color: #606266;
  70. border: 1px solid #e4e7ed;
  71. box-shadow: 0 2px 12px 0 rgb(0 0 0 / 10%);
  72. background: #fff;
  73. border-radius: 4px;
  74. margin: 5px 0;
  75. z-index: 99;
  76. .m-date-panel-sidebar{
  77. position: absolute;
  78. top: 0;
  79. bottom: 0;
  80. width: 100px;
  81. border-right: 1px solid #e4e4e4;
  82. box-sizing: border-box;
  83. padding-top: 6px;
  84. padding-left: 12px;
  85. background-color: #fff;
  86. overflow: auto;
  87. .m-date-panel-shortcut{
  88. line-height: 28px;
  89. font-size: 14px;
  90. color: #606266;
  91. cursor: pointer;
  92. &:hover{
  93. color: #409eff;
  94. }
  95. }
  96. }
  97. .m-date-panel-body{
  98. display: flex;
  99. .m-date-panel__wrap{
  100. //临时固定
  101. width: 320px;
  102. .m-date-picker__header{
  103. display: flex;
  104. padding: 6px 12px;
  105. align-items: center;
  106. text-align: center;
  107. .m-date-picker__btn{
  108. width: 30px;
  109. color: #303133;
  110. &:hover{
  111. color: #409eff;
  112. }
  113. }
  114. .m-date-picker__header-label{
  115. flex: 1;
  116. }
  117. }
  118. .m-picker-panel__content{
  119. padding: 10px;
  120. }
  121. }
  122. .end-picker-date{
  123. border-left: 1px solid #e4e4e4;
  124. }
  125. }
  126. .m-date-panel__footer{
  127. border-top: 1px solid #e4e4e4;
  128. padding: 4px;
  129. height: 36px;
  130. line-height: 25px;
  131. text-align: right;
  132. box-sizing: border-box;
  133. .m-date-panel__btn{
  134. border: none;
  135. line-height: 28px;
  136. padding: 0 5px;
  137. margin: 0 5px;
  138. cursor: pointer;
  139. background-color: transparent;
  140. outline: none;
  141. font-size: 13px;
  142. color: #303133;
  143. }
  144. .btn__confirm{
  145. font-weight: 800;
  146. color: #409eff;
  147. }
  148. }
  149. }
  150. }