forked from hs-07/Clock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
clock.css
300 lines (280 loc) · 5.42 KB
/
clock.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
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
* {
margin: 0px;
padding: 0px;
}
body {
top: 0;
left: 0;
width: 100%;
height: 750px;
background: linear-gradient(
45deg,
#8f1ee9,
#e91e63 50%,
#ffc107 50%,
#ff0000
)no-repeat;
}
.navigation {
display: flex;
align-items: center;
justify-content: left;
background-color: #36a2ef;
box-shadow: 0 4px 7px 0 rgb(0 0 0 / 40%);
z-index: 10;
}
.navigation ul {
display: flex;
align-items: center;
justify-content: left;
margin: 3px;
padding: 3px;
font-size: 20px;
text-shadow: 0.2px 0.2px 3px black;
}
.navigation label {
font-family: "Acme", sans-serif;
font-size: 40px;
}
.navigation ul li {
margin-top: 3px;
margin-bottom: 3px;
margin-left: 15px;
padding: 3px 5px;
list-style: none;
}
.navigation ul li a {
text-decoration: none;
font-family: "Fredoka One", cursive;
color: whitesmoke;
transition: color 0.3s;
}
.navigation ul li a.active {
text-decoration: none;
color: rgb(255, 0, 140);
}
.navigation ul li a:hover {
text-decoration: overline;
color: rgb(255, 0, 140);
}
/* ANALOG CLOCK CSS */
.container {
display: flex;
align-items: center;
justify-content: center;
position: relative;
}
.box {
position: relative;
z-index: 1;
width: 410px;
height: 410px;
backdrop-filter: blur(25px);
border-radius: 50%;
margin: 80px;
}
.container img {
width: 400px;
height: 400px;
border: none;
border-radius: 50%;
box-shadow: 1px 0px 6px 0px black;
transition: box-shadow 0.4s, transform 0.4s;
background: radial-gradient(transparent, rgba(255, 255, 255, 0.2));
z-index: 3;
border: 5px solid #b9aaaa;
}
#second {
width: 0;
height: 183px;
border: 2px solid rgb(255, 0, 0);
border-radius: 10px;
position: absolute;
margin-top: -190px;
transform-origin: bottom;
z-index: 5;
}
#minute {
width: 0;
height: 0;
border-left: 2px solid black;
border-right: 2px solid black;
border-bottom: 162px solid rgb(0, 0, 0);
position: absolute;
margin-top: -161px;
transform-origin: bottom;
z-index: 5;
}
#hour {
width: 0;
height: 0;
border-left: 5px solid white;
border-right: 5px solid white;
border-bottom: 110px solid white;
position: absolute;
margin-top: -109px;
transform-origin: bottom;
z-index: 5;
border-radius: 10px;
}
.circle {
height: 25px;
width: 25px;
background-color: rgb(255, 0, 0);
border-radius: 50%;
position: absolute;
z-index: 10;
}
.container img:hover {
box-shadow: 0 0px 41px 0 rgb(0 0 0 / 98%);
transform: scale(1.02);
}
/* DIGITAL CLOCK CSS */
.digital {
display: none;
justify-content: center;
align-items: center;
background: rgb(255 255 255 / 16%);
box-shadow: 0px 0px 16px 5px rgb(0 0 0 / 21%);
width: 50%;
margin-left: 25%;
margin-top: 10rem;
margin-bottom: 10rem;
border-radius: 0.7rem;
backdrop-filter: blur(18px);
height: 250px;
font-family: "Acme", sans-serif;
transition: box-shadow 0.4s, transform 0.4s;
}
.digital:hover{
box-shadow: 0 0px 41px 0 rgb(0 0 0 / 98%);
transform: scale(1.02);
}
h2{
font-size: 6rem;
margin: 1rem;
padding: 0.5rem;
border-radius: 0.7rem;
backdrop-filter: blur(25px);
box-shadow: 0px 15px 24px 1px rgb(0 0 0 / 34%);
}
h3{
font-size: 6rem;
}
#second-2{
color: #ff0000;
}
span{
font-size: 2rem;
margin-bottom: 2.5rem;
}
/* BUTTON CSS */
.switch{
display: flex;
align-items: center;
justify-content: center;
}
button.btm-big {
margin: 5px;
padding: 3px 40px;
border: none;
background: linear-gradient(
45deg
, #810adc, #05fff3);
color: floralwhite;
font-size: 25px;
border-radius: 25px;
font-family: 'Kaushan Script', cursive;
box-shadow: 0px 0px 27px 5px skyblue;
transform: scaleZ(1);
transition: all 0.6s;
}
button.btm-big:hover{
background: linear-gradient(
45deg
, #0adc2d, #00ffdd);
transform: scale(1.1);
color: black;
box-shadow: 0px 0px 27px 5px rgb(123 255 3);
}
@media(max-width:450px){
nav.navigation {
background-position: center;
background-attachment: fixed;
background-size: cover;
position: absolute;
width: 100%;
height: 60px;
}
.navigation ul {
margin: auto;
font-size: 19px;
align-items: center;
justify-self: center;
}
.navigation label {
font-size: 40px;
}
.container {
width: 100%;
margin-block-end: 35px;
}
.box{
margin-block-start: 191px;
left: -10px;
width: 310px;
height: 310px;
}
.container img {
width: 300px;
height: 300px;
margin-left: 8px;
}
#second {
margin-block-end: -164px;
height: 140px;
left: 178px;
}
#minute {
margin-block-end: -151px;
border-bottom: 128px solid black;
left: 178px;
}
#hour {
margin-block-end: -136px;
left: 175px;
border-bottom: 86px solid white;
}
.circle {
margin-block-end: -112px;
left: 174px;
width: 20px;
height: 20px;
}
button.btm-big {
justify-content: center;
text-align: center;
font-size: 18px;
margin: 20px;
padding: 8px 45px;
}
.switch {
width: 100%;
}
.digital {
width: 90%;
margin: 0px auto 278px 18px;
top: 12rem;
position: relative;
}
h2 {
width: 4.5rem;
font-size: 2.8rem;
margin: 11px;
justify-content: center;
display: flex;
}
h3#dots {
font-size: 3rem;
}
}