-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
66 lines (54 loc) · 924 Bytes
/
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
*{
box-sizing: border-box;
}
body {
background-color: lightseagreen;
}
.mid {
display: flex;
}
#clockContainer {
position: relative;
margin: auto;
height: 40vw;
width: 40vw;
background: url(clock.png) no-repeat;
background-size: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.mid {
background-color: black;
position: relative;
z-index: 10;
height: 1vw;
width: 1vw;
border-radius: 100%;
}
#hour, #minute, #second {
position: absolute;
background-color: blueviolet;
border-radius: 10px;
transform-origin: bottom;
}
#hour {
width: 1%;
height: 25%;
top: 25%;
left: 49.5%;
}
#minute {
background-color:crimson;
width: 0.6%;
height: 30%;
top: 20.5%;
left: 49.7%;
}
#second {
background-color: gold;
width: 0.4%;
height: 22%;
top: 28%;
left: 49.8%;
}