-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathCalendarPicker.style.css
More file actions
142 lines (124 loc) Β· 3.01 KB
/
Copy pathCalendarPicker.style.css
File metadata and controls
142 lines (124 loc) Β· 3.01 KB
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
#calendar-wrapper {
width: 100%;
display: grid;
grid-template-rows: 2.5em 1fr;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
box-sizing: border-box;
font-size: inherit;
}
#calendar-wrapper header {
grid-row: 1/2;
font-size: 2em;
box-sizing: inherit;
}
#calendar-wrapper header h4 {
padding: 0;
margin: 0;
}
#calendar {
display: grid;
grid-template-columns: 1fr 4em;
grid-template-rows: 3em 1fr;
box-sizing: inherit;
padding: 0;
margin: 0;
}
#calendar #calendar-days,
#calendar #calendar-grid {
display: grid;
grid-template-columns: repeat(7, 1fr);
align-items: center;
padding: 0 1em;
box-sizing: inherit;
margin: 0;
}
#calendar #calendar-days {
justify-items: center;
grid-row: 1/2;
grid-column: 1/2;
}
#calendar #calendar-grid {
grid-template-rows: repeat(6, 1fr);
justify-items: flex-start;
grid-row: 2/-1;
grid-column: 1/2;
width: 100%;
}
#calendar #calendar-grid > time {
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
margin: 0.4em;
padding: 1em 0.2em;
width: 90%;
background-color: rgba(108, 108, 108, 0.02);
border-radius: 3px;
border: 2px solid transparent;
transition: box-shadow 200ms, border 100ms;
box-shadow: 1px 1px rgba(0, 0, 0, 0);
box-sizing: inherit;
}
#calendar #calendar-grid time.selected,
#calendar #calendar-grid time.selected:focus {
outline: none;
border: 2px solid #c64949;
box-sizing: inherit;
}
#calendar #calendar-grid time.disabled,
#calendar #calendar-grid time.disabled:focus {
outline: none;
border: 2px solid transparent;
box-sizing: inherit;
cursor: not-allowed;
background-color: rgba(30, 39, 51, 0.2);
box-shadow: 1px 1px rgba(0, 0, 0, 0);
}
#calendar #calendar-grid > *:hover {
border: 2px solid rgba(72, 72, 72, 0.5);
box-shadow: 1px 1px rgba(0, 0, 0, 0.2);
box-sizing: inherit;
}
#calendar #navigation-wrapper {
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
grid-row: 2/-1;
grid-column: 2/-1;
box-sizing: inherit;
padding: 1em 0 3.5em;
margin: 0;
}
#calendar #navigation-wrapper button {
cursor: pointer;
background: transparent;
border: 0;
font-size: 3em;
width: 1.6em;
box-sizing: inherit;
padding: 0.1em;
margin: 0;
}
#calendar #navigation-wrapper button:hover {
opacity: 0.75;
}
#calendar #navigation-wrapper button svg {
margin: 0;
padding: 0;
width: 100%;
height: 1.6em;
display: block;
box-sizing: inherit;
}
#calendar #navigation-wrapper button:first-of-type {
transform: rotate(180deg);
}
#calendar #navigation-wrapper button[disabled] svg {
cursor: not-allowed;
fill: rgba(30, 39, 51, 0.2);
}