-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
69 lines (61 loc) · 1.38 KB
/
style.css
File metadata and controls
69 lines (61 loc) · 1.38 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
65
66
67
68
69
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300&display=swap');
*{
margin: 0;
padding: 0;
}
body{
font-family: poppins, sans-serif;
background: rgb(2,0,36);
background: linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(14,77,152,1) 35%, rgba(0,212,255,1) 100%);
position: relative;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.clock{
background-color:rgb(49,47,47);
width: 300px;
height: 300px;
border-radius: 50%;
color: #fff;
border: 5px solid #fff;
box-shadow: 0px opx 10px rgba{255,255,255,0,7}, 0px 0px 20px rgba{0,0,0,7};
font-size:25px;
font-weight:bold;
display: flex;
justify-content: center;
align-items: center;
position: relative;
}
.clock ul li{
list-style: none;
position: absolute;
text-align: center;
transform: rotate(calc(30deg * var(--i)));
inset: 5px;
}
.clock ul li span{
transform: rotate(calc(-30deg * var(--i)));
display: inline-block;
}
.clock::after{
content: '';
width: 10px;
height: 10px;
background-color:#fff;
border-radius: 50%;
position: absolute;
}
.needle{
display: flex;
justify-content: center;
align-items: flex-end;
}
.needle span{
width: 5px;
height: var(--h);
background-color: var(--clr);
position: absolute;
border-radius: 5px;
}