forked from saravanajd/YearPicker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
yearpicker.css
73 lines (63 loc) · 1.38 KB
/
yearpicker.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
:root {
--background-color: #fff;
--border-color: #ccc;
--text-color: #555;
--selected-text-color: rgb(56, 241, 164);
--hover-background-color: #eee;
}
.yearpicker-container {
position: absolute;
color: var(--text-color);
width: 280px;
border: 1px solid var(--border-color);
border-radius: 3px;
font-size: 1rem;
box-shadow: 1px 1px 8px 0px rgba(0, 0, 0, 0.2);
background-color: var(--background-color);
}
.yearpicker-header {
display: flex;
width: 100%;
height: 2.5rem;
border-bottom: 1px solid var(--border-color);
align-items: center;
justify-content: space-around;
}
.yearpicker-prev,
.yearpicker-next {
cursor: pointer;
font-size: 2rem;
}
.yearpicker-prev:hover,
.yearpicker-next:hover {
color: var(--selected-text-color);
}
.yearpicker-year {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
text-align: center;
padding: 0.5rem;
}
.yearpicker-items {
list-style: none;
padding: 1rem 0.5rem;
flex: 0 0 33.3%;
width: 100%;
}
.yearpicker-items:hover {
background-color: var(--hover-background-color);
color: var(--selected-text-color);
cursor: pointer;
}
.yearpicker-items.selected {
color: var(--selected-text-color);
}
.hide {
display: none;
}
.yearpicker-items.disabled {
pointer-events: none;
color: #bbb;
}