4b200e4df99a930036cb904859a88f01f5057d4bd96df588af6a3b768fea874ec32accffd306122851fc7888b1ac2d7022d10a1ca27ea5ae529adfab35bae9 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. @import "../common/var";
  2. @include b(time-spinner) {
  3. &.has-seconds {
  4. .el-time-spinner__wrapper {
  5. width: 33.3%;
  6. }
  7. }
  8. @include e(wrapper) {
  9. max-height: 190px;
  10. overflow: auto;
  11. display: inline-block;
  12. width: 50%;
  13. vertical-align: top;
  14. position: relative;
  15. & .el-scrollbar__wrap:not(.el-scrollbar__wrap--hidden-default) {
  16. padding-bottom: 15px;
  17. }
  18. @include when(arrow) {
  19. box-sizing: border-box;
  20. text-align: center;
  21. overflow: hidden;
  22. .el-time-spinner__list {
  23. transform: translateY(-32px);
  24. }
  25. .el-time-spinner__item:hover:not(.disabled):not(.active) {
  26. background: $--color-white;
  27. cursor: default;
  28. }
  29. }
  30. }
  31. @include e(arrow) {
  32. font-size: 12px;
  33. color: $--color-text-secondary;
  34. position: absolute;
  35. left: 0;
  36. width: 100%;
  37. z-index: $--index-normal;
  38. text-align: center;
  39. height: 30px;
  40. line-height: 30px;
  41. cursor: pointer;
  42. &:hover {
  43. color: $--color-primary;
  44. }
  45. &.el-icon-arrow-up {
  46. top: 10px;
  47. }
  48. &.el-icon-arrow-down {
  49. bottom: 10px;
  50. }
  51. }
  52. @include e(input) {
  53. &.el-input {
  54. width: 70%;
  55. .el-input__inner {
  56. padding: 0;
  57. text-align: center;
  58. }
  59. }
  60. }
  61. @include e(list) {
  62. padding: 0;
  63. margin: 0;
  64. list-style: none;
  65. text-align: center;
  66. &::after,
  67. &::before {
  68. content: '';
  69. display: block;
  70. width: 100%;
  71. height: 80px;
  72. }
  73. }
  74. @include e(item) {
  75. height: 32px;
  76. line-height: 32px;
  77. font-size: 12px;
  78. color: $--color-text-regular;
  79. &:hover:not(.disabled):not(.active) {
  80. background: $--background-color-base;
  81. cursor: pointer;
  82. }
  83. &.active:not(.disabled) {
  84. color: $--color-text-primary;
  85. font-weight: bold;
  86. }
  87. &.disabled {
  88. color: $--color-text-placeholder;
  89. cursor: not-allowed;
  90. }
  91. }
  92. }