-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
96 lines (81 loc) · 1.28 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
* {
box-sizing: border-box;
}
body {
background-color: cadetblue;
display: flex;
flex-direction: column;
align-items: center;
/* justify-content: center; */
/* min-height: 100vh; */
}
.container {
width: 20rem;
height: 20rem;
border-radius: 50%;
border: solid 5px white;
position: relative;
}
.clock{
position: relative;
width: 100%;
height: 100%;
transform: translateY(-3px);
}
.hand{
background-color: midnightblue;
width: 50%;
height: 3.5px;
border-radius: 5px;
position: absolute;
top: 50%;
transform-origin: 100%;
transition: all 0.05s;
transition-timing-function: cubic-bezier(0.1, 2.7, 0.58, 1);
}
.min-hand{
height: 1.5px;
}
.sec-hand{
height: 0.5px;
/* transform: rotate(90deg); */
}
.hour-hand{
background-color: gold;
}
/* .center{
background-color: midnightblue;
width: 15px;
height: 15px;
border-radius: 50%;
position: absolute;
left: 47.5%;
top: 50%;
/* right: 50%;
bottom: 50%; */
/* } */
.hour{
color: white;
font-size: 20px;
/* font-weight: bolder; */
}
.time12{
position: absolute;
top: 2px;
left: 47%
}
.time6{
position: absolute;
bottom: 2px;
left: 48.5%
}
.time3{
position: absolute;
right: 2px;
top: 47%
}
.time9{
position: absolute;
left: 2px;
top: 47%
}