-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex2.html
More file actions
64 lines (53 loc) · 1.36 KB
/
index2.html
File metadata and controls
64 lines (53 loc) · 1.36 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
<!DOCTYPE html><html>
<head>
<meta charset="utf-8">
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>timezone-analog-clock</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="./style.css">
</head><body>
<div cless="page">
<style>
*{margin:0;padding:0}
/*@media (prefers-color-scheme: light) {*/
@media (prefers-color-scheme: dark) {
html,body{ background: #111; color: white; }
}
.clock-wrap-center {
display: flex;
justify-content: center;
align-items: center;
height: 100dvh;
}
.clock-wrap {
width: 500px;
aspect-ratio: 1;
border-radius: 50%;
border: 5px solid red;
/* for testing: */
background: gray;
}
.clock-hand-second {
/* the line */
border-top: 1px solid lightgreen;
width: 200px;
}
.clock-hand-second.p-absolute {
inset: 50%;
}
.p-relative { position: relative; }
.p-absolute { position: absolute; }
.clock-hand-minute {}
.clock-hand-hour {}
</style>
<h1 class="sr-only">timezone-analog-clock</h1>
<div class="clock-wrap-center">
<div class="clock-wrap p-relative">
<div class="clock-hand-second p-absolute"></div>
<div class="clock-hand-minute p-absolute"></div>
<div class="clock-hand-hour p-absolute"></div>
</div>
</div>
<script></script></div>
</body>
</html>