-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
117 lines (103 loc) · 2.34 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
@import url('https://fonts.googleapis.com/css2?family=Sacramento&family=Work+Sans:wght@100;400;700&display=swap');
:root {
--primary-color: #f6f7fb;
--white-color: #fff;
--black-color: #18191a;
--red-color: #e74c3c;
}
/* Rest of the CSS code remains the same */
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family:"Poppins",sans-serif ;
}
body{
display: flex;
min-height: 100vh;
align-items: center;
justify-content: center;
background: var(--primary-color);
}
body .dark{
--primary-color: #242526;
--white-color:#18191a;
--black-color:#fff;
--red-color :#e74c3c;
}
.container{
display: flex;
flex-direction: column;
align-items: center;
gap: 60px;
}
.container .clock{
display: flex;
height: 400px;
width: 400px;
border-radius: 50%;
align-items: center;
justify-content: center;
background: var(--white-color);
box-shadow: 0 15px 25px rgba(0,0,0,0.1), 0 25px 45px rgba(0,0,0,0.1);
position: relative;
}
.clock label{
position: absolute;
inset: 20px;
text-align: center;
transform: rotate(calc(var(--i)*(360deg/12)));
}
.clock label span{
display: inline-block;
font-size: 30px;
font-weight: 600;
color: var(--black-color);
transform: rotate(calc(var(--i)*(-360deg/12)));
}
.container .indicator{
position: absolute;
width: 10px;
display: flex;
justify-content: center;
}
.indicator::before{
content: " ";
position: absolute;
height: 100%;
width: 100%;
border-radius: 50%;
z-index: 100;
background: var(--black-color);
border: 4px solid var(--red-color);
}
.indicator .hand{
position: absolute;
height: 130px;
width: 4px;
bottom: 0;
border-radius: 25px;
transform-origin: bottom;
background: var(--red-color);
}
.hand .minute{
height: 120px;
width: 5px;
background: var(--black-color);
}
.hand .hour{
height: 100px;
width: 8px;
background: var(--black-color);
}
.mode-switch{
padding: 10px;
border-radius: 8px;
font-size: 22px;
font-weight: 400;
display: inline-block;
color: var(--white-color);
background: var(--black-color);
box-shadow: 0 5px 10px rgba(0,0,0,0.1);
cursor: grab;
}