TimePicker.less 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. .@{calendar-timepicker-prefix-cls} {
  2. position: absolute;
  3. top: 40px;
  4. width: 100%;
  5. background-color: @component-background;
  6. &-panel {
  7. position: absolute;
  8. z-index: @zindex-picker;
  9. width: 100%;
  10. }
  11. &-inner {
  12. position: relative;
  13. display: inline-block;
  14. width: 100%;
  15. overflow: hidden;
  16. font-size: @font-size-base;
  17. line-height: 1.5;
  18. text-align: left;
  19. list-style: none;
  20. background-color: @component-background;
  21. background-clip: padding-box;
  22. outline: none;
  23. }
  24. &-combobox {
  25. width: 100%;
  26. }
  27. &-column-1,
  28. &-column-1 &-select {
  29. width: 100%;
  30. }
  31. &-column-2 &-select {
  32. width: 50%;
  33. }
  34. &-column-3 &-select {
  35. width: 33.33%;
  36. }
  37. &-column-4 &-select {
  38. width: 25%;
  39. }
  40. &-input-wrap {
  41. display: none;
  42. }
  43. &-select {
  44. position: relative; // Fix chrome weird render bug
  45. float: left;
  46. height: 226px;
  47. overflow: hidden;
  48. font-size: @font-size-base;
  49. border-right: @border-width-base @border-style-base @border-color-split;
  50. &:hover {
  51. overflow-y: auto;
  52. }
  53. &:first-child {
  54. margin-left: 0;
  55. border-left: 0;
  56. }
  57. &:last-child {
  58. border-right: 0;
  59. }
  60. ul {
  61. width: 100%;
  62. max-height: 206px;
  63. margin: 0;
  64. padding: 0;
  65. list-style: none;
  66. }
  67. li {
  68. width: 100%;
  69. height: 24px;
  70. margin: 0;
  71. line-height: 24px;
  72. text-align: center;
  73. list-style: none;
  74. cursor: pointer;
  75. transition: all .3s;
  76. user-select: none;
  77. &:last-child::after {
  78. display: block;
  79. height: 202px;
  80. content: '';
  81. }
  82. &:hover {
  83. background: @item-hover-bg;
  84. }
  85. &:focus {
  86. color: @primary-color;
  87. font-weight: 600;
  88. outline: none;
  89. }
  90. }
  91. li&-option-selected {
  92. font-weight: 600;
  93. background: @time-picker-selected-bg;
  94. }
  95. li&-option-disabled {
  96. color: @btn-disable-color;
  97. &:hover {
  98. background: transparent;
  99. cursor: not-allowed;
  100. }
  101. }
  102. }
  103. }
  104. .@{calendar-prefix-cls}-time {
  105. .@{calendar-prefix-cls}-day-select {
  106. display: inline-block;
  107. padding: 0 2px;
  108. color: @heading-color;
  109. font-weight: 500;
  110. line-height: 34px;
  111. }
  112. .@{calendar-prefix-cls}-footer {
  113. position: relative;
  114. height: auto;
  115. &-btn {
  116. text-align: right;
  117. }
  118. .@{calendar-prefix-cls}-today-btn {
  119. float: left;
  120. margin: 0;
  121. }
  122. .@{calendar-prefix-cls}-time-picker-btn {
  123. display: inline-block;
  124. margin-right: 8px;
  125. &-disabled {
  126. color: @disabled-color;
  127. }
  128. }
  129. }
  130. }