// Lightning Design System 2.24.3
// Copyright (c) 2015-present, salesforce.com, inc. All rights reserved
// Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license

@include deprecate('4.0.0', 'Please use a combobox instead') {

  .slds-datepicker_time,
  .slds-datepicker--time {
    max-width: $size-x-small;
    max-height: (($line-height-text + ($spacing-x-small * 2)) * 6) - ($spacing-small * 2);
    overflow-x: hidden;
    overflow-y: auto;
  }
}

.slds-datepicker_time__list,
.slds-datepicker--time__list {

  > li {
    white-space: nowrap;
    padding: $spacing-x-small {
      left: $spacing-x-large;
      right: $spacing-x-large;
    }

    &:hover,
    &:focus {
      background: var(--slds-g-color-neutral-base-95, #{$color-background-row-hover});
      text-decoration: none;
      cursor: pointer;
    }
  }
}
