-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcalendar.css
140 lines (121 loc) · 2.51 KB
/
calendar.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
body {
font-family: helvetica, arial, sans-serif;
padding: 0 20px;
min-width: 355px;
max-width: 600px;
margin: 10px auto;
height: 530px;
position: relative;
}
.calendar {
font-family: cursive, Helvetica, sans-serif;
}
h1 {
position: relative;
background-color: green;
padding: 10px;
text-align: center;
color: #fff;
border-radius: 20px 0;
}
.btn {
position: absolute;
top: 15px;
padding: 2px;
font-family: "Goudy Old Style", monospace;
font-size: 0.8em;
border: 2px solid;
border-radius: 5px;
text-shadow: 0 0 10px blue;
color: #5e5e5e;
}
&:active {
font-weight: 1000;
text-shadow: 2px 0 2px blue;
}
&:hover {
background-color: #ccc;
}
.prev {
left: 25px;
}
.next {
right: 20px;
}
ul {
list-style-type: none;
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 1px;
padding-left: 0;
}
li:nth-child(7n) {
color: blue;
}
li:nth-child(7n-1) {
color: red;
}
.weekdays {
text-align: center;
background-color: rgba(0, 0, 0, 0.1);
border-top: 2px solid;
border-bottom: 2px solid;
color: green;
padding: 5px;
}
.days li {
text-align: right;
border: 2px solid green;
background-color: rgba(0, 200, 0, 0.1);
border-radius: 10px 0;
padding: 5px 30% 5px 5px;
}
fieldset {
border-radius: 10px;
padding: 0 20px;
}
legend {
background-color: black;
color: #ffffff;
padding: 8px;
}
input:invalid:required {
background-color: lightpink;
}
ul {
list-style-type: none;
padding-left: 0;
}
.form {
display: flex;
gap: 5px;
}
li {
flex: 1 auto;
background-color: lightgreen;
button {
width: 100%;
height: 100%;
}
label {
display: inline-block;
padding: 5px;
}
}
footer {
display: inline;
font-family: Helvetica, monospace;
font-size: 12px;
padding: 3px;
text-decoration: underline;
color: red;
font-weight: 600;
position: absolute;
bottom: 0;
left: 20px;
}
&:hover {
cursor: pointer;
background-color: white;
text-decoration: none;
}