-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
85 lines (76 loc) · 1.51 KB
/
Copy pathstyles.css
File metadata and controls
85 lines (76 loc) · 1.51 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
80
81
82
83
84
85
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #222;
margin: 0;
}
.clock {
width: 250px;
height: 250px;
background: black;
border-radius: 50%;
border: 5px solid white;
position: relative;
display: flex;
justify-content: center;
align-items: center;
}
.numbers {
position: absolute;
width: 100%;
height: 100%;
}
.number {
position: absolute;
font-size: 20px;
font-weight: bold;
color: white;
text-align: center;
transform: translate(-50%, -50%);
top: 50%;
left: 50%;
transform: translate(-50%, -50%) rotate(calc(var(--num) * 30deg)) translateY(-90px) rotate(calc(var(--num) * -30deg));
}
.hand {
position: absolute;
background: white;
transform-origin: bottom;
bottom: 50%;
left: 50%;
transform: translateX(-50%);
border-radius: 10px;
}
.hour-hand {
width: 6px;
height: 60px;
background: white;
}
.minute-hand {
width: 4px;
height: 80px;
background: gray;
}
.second-hand {
width: 2px;
height: 90px;
background: red;
}
.center-dot {
width: 10px;
height: 10px;
background: white;
border-radius: 50%;
position: absolute;
}
.clock-name {
position: absolute;
top: 30%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 8px;
font-weight: bold;
color: white;
text-align: center;
}