-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
style.css
138 lines (116 loc) · 2.18 KB
/
style.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
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");
* {
padding: 0;
margin: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
color: #333;
}
body {
background: mediumpurple;
padding-top: 50px;
display: flex;
flex-direction: column;
align-items: center;
min-height: 100dvh;
overflow: hidden;
}
.date-input {
padding: 10px;
font-size: 1rem;
border-radius: 5px;
border: 1px solid #eee;
}
/* datepicker styles */
.datepicker-container {
position: relative;
}
.datepicker {
position: absolute;
top: 100%;
z-index: 100;
margin-top: 2px;
background: #fff;
padding: 10px;
border-radius: 5px;
}
.datepicker button {
cursor: pointer;
border: none;
border-radius: 3px;
background: transparent;
font-size: 14px;
font-weight: 500;
text-transform: uppercase;
transition: 0.3s;
touch-action: manipulation;
}
.days,
.dates {
display: grid;
grid-template-columns: repeat(7, 32px);
gap: 10px;
margin-block: 10px;
}
.days span {
font-size: 14px;
font-weight: 600;
text-transform: uppercase;
text-align: center;
}
.dates button {
color: slategray;
aspect-ratio: 1;
}
.dates button:disabled {
opacity: 0.5;
pointer-events: none;
user-select: none;
}
.dates button:hover {
background: rgba(119, 136, 153, 0.1);
}
.dates button.today {
background: rgba(147, 112, 216, 0.2);
color: mediumpurple;
}
.dates button.selected {
background: mediumpurple;
color: #fff;
}
.datepicker-header {
display: flex;
align-items: center;
justify-content: space-between;
padding-bottom: 10px;
border-bottom: 1px solid #eee;
}
.datepicker-header select,
.datepicker-header input {
font-size: 14px;
border: 1px solid #eee;
}
.datepicker-header input {
max-width: 64px;
}
.datepicker-header button {
color: slategray;
}
.datepicker-header button:hover {
color: mediumpurple;
}
.datepicker-footer {
display: flex;
justify-content: flex-end;
gap: 10px;
padding-top: 10px;
border-top: 1px solid #eee;
}
.datepicker-footer button {
background: rgba(119, 136, 153, 0.1);
padding: 3px 10px;
}
.datepicker-footer button.apply {
background: mediumpurple;
color: #fff;
}