-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
122 lines (111 loc) · 2.55 KB
/
style.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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
}
.face {
position: relative;
width: 180px;
height: 180px;
border-radius: 50%;
outline: 10px solid #333;
background: repeating-radial-gradient(circle at 50% 50%,
rgba(200, 200, 200, .2) 0%, rgba(200, 200, 200, .2) 2%,
transparent 2%, transparent 3%, rgba(200, 200, 200, .2) 3%,
transparent 3%), conic-gradient(white 0%, silver 10%,
white 35%, silver 45%, white 60%, silver 70%,
white 80%, silver 95%, white 100%);
box-shadow: inset 0 0 20px #0007;
}
.hour {
position: absolute;
width: 5px;
height: 60px;
background: #aaa;
left: 87.5px;
top: 43px;
border-radius: 3px 3px 1px 1px;
transform-origin: 2px 47px;
box-shadow: 0 0 5px #0005, inset 1.5px 3px 0px #333, inset -1.5px -3px 0px #333;
z-index: 1;
animation: watch 43200s linear infinite;
}
.minute {
position: absolute;
width: 4px;
height: 78px;
background: #aaa;
left: 88px;
top: 25px;
border-radius: 3px 3px 1px 1px;
transform-origin: 2px 65px;
box-shadow: 0 0 5px #0005, inset 1.5px 3px 0px #333, inset -1.5px -3px 0px #333;
z-index: 2;
animation: watch 3600s linear infinite;
}
.second {
position: absolute;
width: 10px;
height: 10px;
background: red;
left: 85px;
top: 85px;
border-radius: 50%;
border: 1px solid #eee;
z-index: 3;
animation: watch 60s steps(60, end) 0s infinite;
}
.second::before {
content: "";
position: absolute;
width: 1px;
height: 85px;
left: 3px;
bottom: -10px;
background: red;
border-radius: 2px;
box-shadow: 5px 0 2px rgba(128, 128, 128, 0.2);
}
.second::after {
content: "";
position: absolute;
width: 4px;
height: 4px;
left: 2px;
top: 2px;
background: #555;
border-radius: 50%;
}
.v-index {
position: absolute;
color: #333;
font-size: 24px;
left: 83.5px;
top: -3px;
text-shadow: 0 157px 0 #333;
z-index: 1
}
.h-index {
position: absolute;
color: #333;
font-size: 24px;
top: 72px;
left: 5px;
transform: rotate(-90deg);
text-shadow: 0 158px 0 #333;
z-index: 1;
}
@keyframes watch {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}