-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
executable file
·125 lines (118 loc) · 2.27 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
118
119
120
121
122
123
124
125
*,
::after,
::before {
box-sizing: border-box;
font-family: Arial, Helvetica, sans-serif;
}
.sec-4 {
height: 100%;
background: #212529;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
padding: 100px;
}
.Clock {
width: 300px;
height: 300px;
background-color: black;
border-radius: 50%;
padding: ;
border: 2px solid rgb(255, 136, 0);
position: relative;
}
.Clock .number {
position: absolute;
width: 100%;
height: 100%;
text-align: center;
font-size: 1.5rem;
color: white;
}
.number1 {
transform: rotate(30deg);
}
.number2 {
transform: rotate(60deg);
}
.number3 {
transform: rotate(90deg);
color: rgb(255, 136, 0) !important;
}
.number4 {
transform: rotate(120deg);
}
.number5 {
transform: rotate(150deg);
}
.number6 {
transform: rotate(180deg);
color: rgb(255, 136, 0) !important;
}
.number7 {
transform: rotate(210deg);
}
.number8 {
transform: rotate(240deg);
}
.number9 {
transform: rotate(270deg);
color: rgb(255, 136, 0) !important;
}
.number10 {
transform: rotate(300deg);
}
.number11 {
transform: rotate(330deg);
}
.number12 {
transform: rotate(360deg);
color: rgb(255, 136, 0) !important;
}
.Clock::after {
content: "";
position: absolute;
background-color: white;
z-index: 1;
width: 18px;
height: 18px;
top: 50%;
left: 52%;
border-radius: 50%;
transform: translate(-50%, -50%);
}
.Clock .hand {
--rotation: 0;
position: absolute;
bottom: 50%;
left: 50%;
width: 10px;
height: 40%;
border: 1px solid white;
background-color: black;
transform-origin: bottom;
transform: translateX(-50%) rotate(calc(var(--rotation) * 1deg));
}
.Clock > .second {
--rotation: 0;
width: 2px;
height: 35%;
background-color: rgb(255, 136, 0) !important;
border: none;
transform: rotate(calc(var(--rotation) * 1deg));
}
.Clock > .hour {
--rotation: 0;
height: 30%;
border-top-right-radius: 10em;
border-top-left-radius: 10em;
transform: rotate(calc(var(--rotation) * 1deg));
}
.Clock > .minute {
--rotation: 0;
width: 7px;
border-top-right-radius: 10em;
border-top-left-radius: 10em;
transform: rotate(calc(var(--rotation) * 1deg));
}