-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclock.css
128 lines (111 loc) · 2.05 KB
/
clock.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
123
124
125
126
127
128
.light{
--color1: black;
--color2: white;
--color3: red;
--face: url(lightface.png);
}
.dark{
--color1: white;
--color2: black;
--color3: rgb(230, 123, 15);
--face: url(darkface.png);
}
#clock {
position: relative;
margin: auto;
height: 300px;
width: 300px;
border-radius: 50%;
background-color: var(--color2);
background-image: var(--face);
background-size: cover;
}
#border {
position: relative;
margin: auto;
height: 302px;
width: 303px;
border-radius: 50%;
border: 10px solid;
}
#centre {
position: absolute;
background: var(--color1);
width: 5%;
height: 5%;
top: 47%;
left: 46.5%;
border-radius: 10px;
}
#hour, #min, #sec {
position: absolute;
background: var(--color1);
border-radius: 10px;
transform-origin: bottom;
}
#hour {
width: 2.4%;
height: 25%;
top: 24%;
left: 48%;
opacity: 0.8;
background: var(--color1);
}
#min {
width: 1.7%;
height: 33%;
top: 17%;
left: 48%;
opacity: 0.8;
background: var(--color1);
}
#sec {
width: 1%;
height: 40%;
top: 9%;
left: 49%;
opacity: 0.8;
background: var(--color3);
}
#twelve, #three, #six, #nine {
position: absolute;
background: none;
font-size: 330%;
color: var(--color3);
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}
#date, #day {
position: absolute;
background: var(--color1);
color: var(--color2);
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
text-align: center;
font-size: 115%;
width: 10%;
height: 8%;
left: 63%;
border-radius: 10%;
opacity: 0.9;
}
#date{
top: 49%;
}
#day{
top: 42%;
}
#twelve {
top: 3%;
left: 42%;
}
#three {
top: 41%;
left: 89%;
}
#six {
top: 80%;
left: 46%;
}
#nine{
top: 41%;
left: 5%;
}