time.less 2.25 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
/* ------------------------------------------------------------------------------
*
*  # Pick-a-date - Time picker
*
*  The mobile-friendly, responsive, and lightweight jQuery date & time input picker
*
*  Version: 1.1
*  Latest update: Mar 10, 2016
*
* ---------------------------------------------------------------------------- */


// Base
// ------------------------------

// Container size
.picker--time {
    min-width: 256px;
    max-width: 320px;
}

// Remove padding from picker box
.picker--time .picker__box {
    padding: 0;
}


// List of items
// ------------------------------

// Items list
.picker__list {
    list-style: none;
    padding: @list-spacing 0;
    margin: 0;
    max-height: 250px;
    overflow-y: auto;
}

// The times on the clock.
.picker__list-item {
    position: relative;
    padding: @padding-base-vertical @padding-base-horizontal;

    &:hover,
    &:focus {
        cursor: pointer;
        background-color: @dropdown-link-hover-bg;
        z-index: 10;
    }
}

// The clear button
.picker--time .picker__button--clear {
    display: block;
    width: 100%;
    margin: 0;
    padding: @padding-small-vertical @padding-small-horizontal;
    background-color: @btn-default-bg;
    margin-top: 1px;
    outline: 0;
    border: 0;
    border-top: 1px solid @gray-lighter;
    text-align: center;
    margin-bottom: -(@list-spacing);
    margin-top: @list-spacing;

    &:hover,
    &:focus {
        background-color: @dropdown-link-hover-bg;
    }
}


// States
// ------------------------------

// Highlighted and hovered/focused time
.picker__list-item--highlighted {
    z-index: 10;
}
.picker__list-item--highlighted,
.picker__list-item--highlighted:hover,
.picker--focused .picker__list-item--highlighted {
    cursor: pointer;
    color: #fff;
    background-color: @color-teal-400;
}

// Selected and hovered/focused time
.picker__list-item--selected,
.picker__list-item--selected:hover,
.picker--focused .picker__list-item--selected {
    background-color: @color-teal-400;
    color: #fff;
    z-index: 10;
}

// Disabled time
.picker__list-item--disabled,
.picker__list-item--disabled:hover,
.picker--focused .picker__list-item--disabled {
    background-color: #fafafa;
    color: @text-muted;
    cursor: @cursor-disabled;
    z-index: auto;
}