-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
109 lines (90 loc) · 1.91 KB
/
index.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
:root {
--clock-width: 300px;
--clock-offset-top: 100px;
}
* {
box-sizing: border-box;
}
body {
background-color: #FFF8E7;
}
body>* {
position: absolute;
}
#clock {
border-radius: 50%;
background: 50% 45%/ 100px no-repeat url('fuduli.ico');
border: 1px solid black;
width: var(--clock-width);
height: var(--clock-width);
left: calc(50vw - var(--clock-width)/2);
top: var(--clock-offset-top);
}
.clock-num {
position: absolute;
width: 100%;
height: 100%;
transform-origin: center left;
}
.clock-num>div {
position: absolute;
transform-origin: center left;
}
.clock-graduation {
position: absolute;
width: 100%;
height: 100%;
transform-origin: center left;
}
.clock-graduation>div {
width: 1px;
height: 7px;
background: black;
}
.hand {
position: absolute;
transform-origin: center left;
}
#hour-hand {
width: 40px;
height: 6px;
background-color: #0096FF;
}
#minute-hand {
width: 80px;
height: 4px;
background-color: black;
}
#second-hand {
width: 120px;
height: 2px;
background-color: rgba(255, 0, 0, 0.5);
}
#date-display {
top: calc(var(--clock-offset-top) + var(--clock-width) + 1rem);
left: calc(50vw - var(--clock-width)/2);
width: var(--clock-width);
text-align: center;
}
#timezone-section {
top: calc(var(--clock-offset-top) + var(--clock-width) + 4rem);
left: calc(50vw - var(--clock-width)/2);
}
#locale-section {
top: calc(var(--clock-offset-top) + var(--clock-width) + 6rem);
left: calc(50vw - var(--clock-width)/2);
}
#locale-select {
margin-left: 1.5rem;
}
#timezone-section, #locale-section {
width: var(--clock-width);
display: flex;
}
#timezone-section>select, #locale-section>select {
width: 73%;
}
#timezone-section>label, #locale-section>label {
display: inline-block;
margin-right: calc(2 * var(--clock-width) / 100);
}