UNPKG

react-ts-timepicker

Version:

Simple timepicker for React

53 lines (51 loc) 1.35 kB
.time-picker { position: relative; } .time-picker__trigger { position: relative; height: 27px; } .time-picker__input { height: 27px; line-height: 27px; font-size: 13px; padding: 0 5px; box-shadow: none; color: #263238; border-radius: 2px; -webkit-appearance: none; font-family: HelveticaNeue-Regular, Helvetica, Arial, sans-serif; background-image: none; border: 1px solid #1980EC; } .time-picker__suggestion-list { background: #fff; border: 1px solid #ddd; -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); outline: 0; z-index: 2099; margin: 0; font-weight: 400; line-height: 1.42857; text-align: left; overflow-y: auto; height: 150px; width: 6.5em; position: absolute; top: 100%; left: 0; } .time-picker__suggestion { display: block; width: 100%; text-align: left; padding: 3px 0 3px 5px; cursor: pointer; white-space: nowrap; color: #000; list-style: none; margin: 0; user-select: none; border: none; background: 0 0; } .time-picker__suggestion_selected, .time-picker__suggestion:hover, .time-picker__suggestion:focus { background: #1980EC; color: #fff; }