timePicker.scss 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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. & > ul {
  20. padding-bottom: ($height-timePicker_panel_body - $height-scrollList_item) * 0.5;
  21. }
  22. }
  23. .#{$module-list}-item {
  24. -ms-overflow-style: none; /* Internet Explorer 10+ */
  25. scrollbar-width: none; /* Firefox */
  26. &::-webkit-scrollbar {
  27. display: none;
  28. width: 0;
  29. height: 0;
  30. }
  31. }
  32. }
  33. .#{$module-list}-item,
  34. .#{$module-list}-item-wheel {
  35. flex: none;
  36. }
  37. .#{$module-list}-item-wheel,
  38. .#{$module-list}-item-wheel:not(:last-child) {
  39. border: none;
  40. }
  41. &-list {
  42. &-ampm {
  43. width: $width-timePicker_panel_list_ampm;
  44. }
  45. &-hour {
  46. width: $width-timePicker_panel_list_hour;
  47. }
  48. &-minute {
  49. width: $width-timePicker_panel_list_minute;
  50. }
  51. &-second {
  52. width: $width-timePicker_panel_list_second;
  53. }
  54. }
  55. }
  56. &-range {
  57. &-panel {
  58. .#{$module}-lists {
  59. display: flex;
  60. box-shadow: $shadow-timePicker_range_panel;
  61. border: $width-timePicker_range_panel-border solid $color-timePicker_range_panel-border;
  62. border-radius: $radius-timePicker_range_panel;
  63. // left
  64. .#{$prefix}-scrolllist:first-of-type {
  65. border-radius: $radius-timePicker_range_panel 0 0 $radius-timePicker_range_panel;
  66. }
  67. // right
  68. .#{$prefix}-scrolllist:last-of-type {
  69. border-radius: 0 $radius-timePicker_range_panel $radius-timePicker_range_panel 0;
  70. }
  71. & > .#{$prefix}-scrolllist:not(:last-child) {
  72. .#{$prefix}-scrolllist {
  73. &-body {
  74. border-right: $width-timePicker_range_panel_scrolllist_body-border solid $color-timePicker_range_picker_panel_split-border;
  75. }
  76. }
  77. }
  78. & > .#{$prefix}-scrolllist {
  79. box-shadow: none;
  80. .#{$prefix}-scrolllist {
  81. &-body,
  82. &-header {
  83. padding: $spacing-timePicker_range_panel_scrolllist_header_body-padding;
  84. }
  85. }
  86. }
  87. }
  88. }
  89. }
  90. .#{$module}-input {
  91. @include font-size-regular;
  92. border-radius: $radius-timePicker_input;
  93. align-items: center;
  94. }
  95. .#{$prefix}-input-readonly {
  96. cursor: pointer;
  97. }
  98. }
  99. @import "./rtl.scss";