timePicker.scss 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. @import "./variables.scss";
  2. $module: #{$prefix}-timepicker;
  3. $module-list: #{$prefix}-scrolllist;
  4. .#{$module} {
  5. display: inline-block;
  6. &-panel {
  7. .#{$module-list}-body {
  8. height: $height-timePicker_panel_body;
  9. .#{$module-list}-item-wheel .#{$module-list}-list-outer-nocycle,
  10. .#{$module-list}-item {
  11. & > ul {
  12. &:before {
  13. height: ($height-timePicker_panel_body - $height-scrollList_item) * 0.5;
  14. }
  15. }
  16. }
  17. .#{$module-list}-item,
  18. .#{$module-list}-item-wheel .#{$module-list}-list-outer {
  19. -ms-overflow-style: none; /* Internet Explorer 10+ */
  20. scrollbar-width: none; /* Firefox */
  21. &::-webkit-scrollbar {
  22. display: none;
  23. width: 0;
  24. height: 0;
  25. }
  26. & > ul {
  27. padding-bottom: ($height-timePicker_panel_body - $height-scrollList_item) * 0.5;
  28. }
  29. }
  30. .#{$module-list}-item {
  31. -ms-overflow-style: none; /* Internet Explorer 10+ */
  32. scrollbar-width: none; /* Firefox */
  33. &::-webkit-scrollbar {
  34. display: none;
  35. width: 0;
  36. height: 0;
  37. }
  38. }
  39. }
  40. .#{$module-list}-item,
  41. .#{$module-list}-item-wheel {
  42. flex: none;
  43. }
  44. .#{$module-list}-item-wheel,
  45. .#{$module-list}-item-wheel:not(:last-child) {
  46. border: none;
  47. }
  48. &-list {
  49. &-ampm {
  50. width: $width-timePicker_panel_list_ampm;
  51. }
  52. &-hour {
  53. width: $width-timePicker_panel_list_hour;
  54. }
  55. &-minute {
  56. width: $width-timePicker_panel_list_minute;
  57. }
  58. &-second {
  59. width: $width-timePicker_panel_list_second;
  60. }
  61. }
  62. }
  63. &-range {
  64. &-panel {
  65. .#{$module}-lists {
  66. display: flex;
  67. box-shadow: $shadow-timePicker_range_panel;
  68. border: $width-timePicker_range_panel-border solid $color-timePicker_range_panel-border;
  69. border-radius: $radius-timePicker_range_panel;
  70. // left
  71. .#{$prefix}-scrolllist:first-of-type {
  72. border-radius: $radius-timePicker_range_panel 0 0 $radius-timePicker_range_panel;
  73. }
  74. // right
  75. .#{$prefix}-scrolllist:last-of-type {
  76. border-radius: 0 $radius-timePicker_range_panel $radius-timePicker_range_panel 0;
  77. }
  78. & > .#{$prefix}-scrolllist:not(:last-child) {
  79. .#{$prefix}-scrolllist {
  80. &-body {
  81. border-right: $width-timePicker_range_panel_scrolllist_body-border solid $color-timePicker_range_picker_panel_split-border;
  82. }
  83. }
  84. }
  85. & > .#{$prefix}-scrolllist {
  86. box-shadow: none;
  87. .#{$prefix}-scrolllist {
  88. &-body,
  89. &-header {
  90. padding: $spacing-timePicker_range_panel_scrolllist_header_body-padding;
  91. }
  92. }
  93. }
  94. }
  95. }
  96. }
  97. .#{$module}-input {
  98. @include font-size-regular;
  99. border-radius: $radius-timePicker_input;
  100. align-items: center;
  101. }
  102. .#{$prefix}-input-readonly {
  103. cursor: pointer;
  104. }
  105. }
  106. .#{$module} {
  107. .#{$prefix}-input-borderless:not(:focus-within):not(:hover){
  108. .#{$prefix}-input {
  109. &-suffix {
  110. opacity: 0;
  111. }
  112. }
  113. }
  114. }
  115. @import "./rtl.scss";