-
Notifications
You must be signed in to change notification settings - Fork 3
/
fg.timepicker.css
170 lines (143 loc) · 3.22 KB
/
fg.timepicker.css
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
.fgtp {
/* position: absolute; */
top: 0;
left: 0;
display: inline-flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: flex-start;
align-items: stretch;
align-content: flex-start;
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
background-color: #fff;
font-family: inherit;
font-size: 14px;
color: #444;
transform-origin: 20% 5%;
}
.fgtp.popup.animatePopup {
animation: fgtp-pop .5s ease-out forwards;
}
@keyframes fgtp-pop {
0% {
transform: scale(0);
}
100% {
transform: scale(1.0);
}
}
.fgtp .fgtp-title {
margin: 0;
padding: 15px 0;
background: #222;
color: #fff;
text-transform: uppercase;
letter-spacing: .125em;
font-size: inherit;
font-weight: normal;
text-align: center;
}
.fgtp .fgtp-hr-block {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
align-items: stretch;
background: #fff;
}
.fgtp .fgtp-ampm-title {
align-self: center;
text-align: center;
margin: 0;
padding: 0 10px;
font-size: inherit;
font-weight: normal;
color: #999;
}
.fgtp .fgtp-unit-container {
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-content: flex-start;
width: calc(48px * 6 - 1px);
padding: 5px;
background: #fff;
font-size: 18px;
border-left: 1px solid #eee;
}
/* width adjustment for minutes unit container, 3 per row instead of 6 */
.fgtp .fgtp-minutes-unit-container {
width: calc(48px * 3 - 1px);
}
.fgtp .fgtp-ampm-block:nth-child(2) .fgtp-unit-container {
padding-bottom: 0;
}
.fgtp .fgtp-ampm-block:last-child .fgtp-unit-container {
padding-top: 0;
}
.fgtp .fgtp-unit {
text-align: center;
flex-grow: 0;
flex-basis: calc(100% / 6 - 2px);
line-height: 46px;
height: 46px;
border: 1px solid transparent;
border-radius: 50px;
cursor: pointer;
transition: all ease .3s;
}
/* width adjustment for minutes unit, 3 per row instead of 6 */
.fgtp .fgtp-minute-unit {
flex-basis: calc(100% / 3 - 2px);
}
.fgtp .fgtp-unit.selected,
.fgtp .fgtp-unit.selected:hover {
background-color: #ff6600;
color: #fff;
}
.fgtp .fgtp-unit:hover {
background: rgba(0, 0, 0, 0.05);
color: #000;
}
@media only screen and (max-width: 600px) {
.fgtp .fgtp-unit-container {
width: calc(42px * 6 - 1px);
padding: 2px;
}
.fgtp .fgtp-minutes-unit-container {
width: calc(42px * 6 + 3px);
padding: 2px 22px;
}
.fgtp .fgtp-unit {
text-align: center;
flex-grow: 0;
flex-basis: calc(100% / 6 - 2px);
line-height: 40px;
height: 40px;
}
.fgtp .fgtp-minute-unit {
flex-basis: calc(100% / 6 - 2px);
}
}
/* Dark theme */
.fgtp.fgtp-dark {
background-color: #222;
color: #ccc;
}
.fgtp.fgtp-dark .fgtp-title {
background-color: #666;
color: #000;
}
.fgtp.fgtp-dark .fgtp-hr-block {
background-color: #222;
}
.fgtp.fgtp-dark .fgtp-ampm-title {
color: #999;
}
.fgtp.fgtp-dark .fgtp-unit-container {
background: #222;
border-left: 1px solid #444;
}
.fgtp.fgtp-dark .fgtp-unit:hover {
background: rgba(255, 255, 255, 0.1);
color: #fff;
}