summaryrefslogtreecommitdiff
path: root/www/lib/ion-datetime-picker/src/picker.scss
blob: da060e666395e72affad60a5ba1faaf441529c1e (plain)
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
.ion-datetime-picker {
    .calendar {
        text-align: center;
        font-size: 12px;

        .col {
            padding: 0;
        }
        .day, .weekday {
            padding: 5px;
        }
        .day {
            &:hover, &.activated, &.today:hover, &.today.activated {
                background-color: #bdf;
                color: black;
                cursor: pointer;
            }
            &.today {
                background-color: #e4e4e4;
            }
            &.selected, &.selected:hover, &.selected.activated {
                background-color: #387ef5;
                color: white;
            }
        }
        .weekday {
            font-weight: bold;
        }
    }
    .month-year {
        padding: 0;
        text-align: center;

        select {
            width: 100%;
        }
        .button {
            padding: 0;
            width: 100%;
            height: 25px;
            min-width: 0;
            min-height: 0;
        }
        .item-input {
            height: 25px;
            padding: 0;
            margin: 0;

            &.item-select:after {
                right: 5px;
            }
            input, select {
                font-size: 12px;
                width: 100%;
                height: 100%;
                max-width: none;
                line-height: 20px;
            }
            select {
                left: 0;
                padding: 0 15px 0 1px;
                direction: ltr;
            }
            input {
                text-align: center;
                padding: 0 5px;

                &.ng-invalid {
                    background-color: #ffe4ea;
                }
                &::-webkit-outer-spin-button, &::-webkit-inner-spin-button {
                    display: none;
                }
            }
        }
    }

    .time-buttons {
        .col {
            padding: 0;
        }
        .button {
            padding: 0;
            width: 100%;
            height: 36px;
            min-width: 0;
            min-height: 0;
        }
        .button:before {
            line-height: 35px;
        }
        &:first-child {
            padding-top: 0;
        }
        &:last-child {
            padding-bottom: 0;
        }
    }

    .time {
        .col {
            padding: 0;
        }
        .colon {
            color: #999;
            font-size: 16px;
            padding: 0;
            text-align: center;
            line-height: 32px;
        }
        .item-input {
            height: 35px;
            padding: 0;
            margin: 0;

            input {
                font-size: 16px;
                width: 100%;
                height: 100%;
                max-width: none;
                text-align: center;
                padding: 0 5px;

                &.ng-invalid {
                    background-color: #ffe4ea;
                }
                &::-webkit-outer-spin-button, &::-webkit-inner-spin-button {
                    display: none;
                }
            }
        }
    }
}