-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
220 lines (186 loc) · 4.7 KB
/
styles.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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
body {
font-family: Arial, sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background-color: #f0f0f0;
background: url('https://api.ednovas.xyz/') no-repeat fixed center center;
background-size: cover;
}
.container {
text-align: center;
background-color: rgba(255, 255, 255, 0.83);
padding: 40px;
border-radius: 5px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
h1 {
margin-top: 0;
}
#timeDisplay {
font-size: 2.5rem;
}
.calendar-container {
margin-top: 50px;
}
.calendar {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 10px;
font-size: 14px;
list-style-type: none;
padding: 0;
margin: 0;
}
.calendar li {
padding: 15px;
background-color: #f0f0f0;
border-radius: 10px;
text-align: center;
}
.calendar li.holiday {
background-color: rgb(250, 200, 167);
/* cursor: pointer;
box-shadow: 18px 18px 30px rgba(0, 0, 0, 0.2), -18px -18px 30px rgba(255, 255, 255, 1); */
transition: all 0.3s ease-in-out;
opacity: 1;
}
.calendar li.holiday:hover {
cursor: pointer;
background-color: rgb(255, 123, 75);
transition: all 0.3s ease-in-out;
opacity: 1;
/* box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19); */
/* box-shadow: 0 0 0 rgba(0, 0, 0, 0.2), 0 0 0 rgba(224, 141, 141, 0.8), inset 18px 18px 30px rgba(0, 0, 0, 0.1), inset -18px -18px 30px rgb(212, 113, 113); */
}
.calendar-navigation {
display: flex;
justify-content: center;
align-items: center;
gap: 20px;
margin-bottom: 23px;
}
.calendar-navigation button {
font-size: 14px;
padding: 5px 10px;
background-color: #f0f0f0;
border: none;
border-radius: 3px;
cursor: pointer;
/* box-shadow: 18px 18px 30px rgba(0, 0, 0, 0.2), -18px -18px 30px rgba(255, 255, 255, 1); */
transition: all 0.2s ease-in-out;
}
.calendar-navigation button:hover {
background-color: #e0e0e0;
cursor: pointer;
box-shadow: 0 0 0 rgba(0, 0, 0, 0.2), 0 0 0 rgba(255, 255, 255, 0.8), inset 18px 18px 30px rgba(0, 0, 0, 0.1), inset -18px -18px 30px rgba(255, 255, 255, 1);
}
.calendar-navigation span {
font-size: 18px;
font-weight: bold;
}
.calendar li.dimmed {
color: #999;
opacity: 1;
}
.calendar li {
position: relative;
opacity: 1;
}
.calendar li:hover .holiday-tooltip {
display: block;
}
.holiday-tooltip {
display: none;
position: absolute;
left: 50%;
bottom: 100%;
transform: translateX(-50%);
background-color: #333;
color: #fff;
padding: 5px;
border-radius: 5px;
font-size: 12px;
white-space: nowrap;
z-index: 10;
margin-bottom: 5px;
width: 200px;
white-space: normal;
word-wrap: break-word;
text-align: left;
padding: 15px;
}
.holiday-title {
margin: 6px;
font-size: 14px;
display: block;
text-align: center;
margin-bottom: 8px;
}
.calendar .day-of-week {
font-weight: bold;
text-align: center;
background-color: #95b4db;
}
a {
position: relative;
display: inline-block;
padding: 10px 15px;
text-decoration: none;
font-weight: 500;
letter-spacing: 2px;
color: #000000;
font-size: 14px;
border-radius: 60px;
border: 2px solid #000000;
box-shadow: -2px -2px 8px rgba(255, 255, 255, 1),
-2px -2px 12px rgba(255, 255, 255, 0.5),
inset 2px 2px 4px rgba(255, 255, 255, 0.1),
2px 2px 8px rgba(0, 0, 0, 0.15);
margin-bottom: 12px;
}
a:hover {
box-shadow: inset -2px -2px 8px rgba(255, 255, 255, 1),
inset -2px -2px 12px rgba(255, 255, 255, 0.5),
inset 2px 2px 4px rgba(255, 255, 255, 0.1),
inset 2px 2px 8px rgba(0, 0, 0, 0.15);
}
a:hover span {
display: inline-block;
transform: scale(0.98);
}
.calendar li.holiday_today {
background-color: rgb(246, 167, 135);
/* color: white; */
font-weight: bold;
}
.calendar li.today {
background-color: #cdc6c4;
/* color: white; */
font-weight: bold;
}
@media only screen and (max-width: 768px) {
#calendar {
width: 100%;
max-width: 300px;
margin: 0 auto;
}
.calendar-navigation button{
font-size: 12px;
padding: 3px 5px;
}
.calendar li {
font-size: 12px;
padding: 8px;
}
.calendar{
gap: 3px;
}
}
@media screen and (max-height: 600px) {
.container {
margin-top: 200px;
}
}