-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
79 lines (79 loc) · 1.54 KB
/
style.css
File metadata and controls
79 lines (79 loc) · 1.54 KB
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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: Arial, Helvetica, sans-serif;
color: #fff;
cursor: pointer;
}
*::selection{
color: black;
}
body {
background-color: #000000e8;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
p {
position: absolute;
top: 5px;
font-size: 4em;
font-weight: 900;
text-shadow: 10px 10px 50px rgb(255, 255, 255);
}
.container {
position: relative;
}
.clock {
width: 300px;
height: 300px;
border-radius: 50%;
background-color: rgba(255, 255, 255, 0);
box-shadow: 0px 0px 50px rgb(255, 255, 255);
display: flex;
justify-content: center;
align-items: center;
}
.clock span {
position: absolute;
transform: rotate(calc(30deg *var(--i)));
inset: 12px;
text-align: center;
}
.clock span b {
transform: rotate(calc(-30deg * var(--i)));
display: inline-block;
font-size: 1.4em;
}
.clock::before {
content: "";
position: absolute;
padding: 5px;
border-radius: 50%;
background-color: #ffffff;
z-index: 1;
}
.hand{
position: absolute;
display: flex;
justify-content: center;
align-items: flex-end;
}
.hand i {
position: absolute;
border-radius: 8px;
}
#hour i {
background-color: rgb(0, 0, 0);
padding: 25px 5px;
}
#min i {
background-color: #000000;
padding: 45px 4px;
}
#sec i {
background-color: #fff;
padding: 50px 2px;
}