-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
94 lines (90 loc) · 1.88 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
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: rgba(2, 2, 54, 0.932);
}
.clock{
position: relative;
width: 450px;
height: 450px;
background: rgba(1, 1, 39, 0.932);
border-radius: 50%;
box-shadow: 10px 50px 70px rgba(0,0,0,0.25)
inset 5px 5px 10px rgba(0,0,0,0.5),
inset 5px 5px 10px rgba(0,0,0,0.2),
inset -5px -5px 15px rgba(0,0,0,0.75);
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 30px;
}
.clock::before{
content: '';
position: absolute;
background: rgba(4, 4, 94, 0.932);
border: 3px solid white;
border-radius: 50%;
z-index: 100000;
}
.clock span{
position: absolute;
inset: 20px;
color: white;
text-align: center;
transform: rotate(calc(30deg*var(--i)));
}
.clock span b{
font-size: 2em;
font-weight: 600;
display: inline-block;
transform: rotate(calc(-30deg*var(--i)));
}
.circle{
position: absolute;
width: 300px;
height: 300px;
border: 2px solid rgba(0,0,0,0.25);
border-radius: 50%;
display: flex;
justify-content: center;
align-items: flex-start;
z-index: 10;
}
.circle i{
position: absolute;
width: 6px;
height: 50%;
background: var(--clr);
opacity: 0.75;
transform-origin: bottom;
transform: scale(0.5);
z-index: 9;
}
.circle2{
width: 240px;
height: 240px;
z-index: 9;
}
.circle3{
width: 180px;
height: 180px;
z-index: 8;
}
.circle::before{
content: '';
position: absolute;
top: -8.5px;
width: 15px;
height: 15px;
border-radius: 50%;
background: var(--clr);
box-shadow: 0 0 20px var(--clr),
0 0 60px var(--clr);
}