-
Notifications
You must be signed in to change notification settings - Fork 0
/
input-field.css
80 lines (69 loc) · 1.37 KB
/
input-field.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
body {
font-family: Arial, sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background-color: #f4f4f4;
}
.input-container {
position: relative;
display: inline-block;
}
#dateInput {
padding: 10px;
border: 1px solid #ddd;
border-radius: 5px;
width: 200px;
}
.calendar-container {
position: absolute;
top: 50px;
left: 0;
width: 350px;
background-color: #fff;
border: 1px solid #ddd;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
overflow: hidden;
display: none;
z-index: 1000;
}
.calendar-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 20px;
background-color: #4CAF50;
color: #fff;
}
.calendar-header button {
background: none;
border: none;
color: #fff;
font-size: 18px;
cursor: pointer;
}
.calendar-weekdays, .calendar-dates {
display: grid;
grid-template-columns: repeat(7, 1fr);
text-align: center;
}
.calendar-weekdays div, .calendar-dates div {
padding: 10px 0;
}
.calendar-weekdays {
background-color: #ddd;
}
.calendar-dates div {
border: 1px solid #eee;
cursor: pointer;
}
.calendar-dates div:hover {
background-color: #f0f0f0;
}
.calendar-dates .selected {
background-color: #4CAF50;
color: #fff;
}