-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
107 lines (89 loc) · 1.85 KB
/
style.css
File metadata and controls
107 lines (89 loc) · 1.85 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
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
* {
margin: 0;
padding: 0;
}
body {
height: 100vh;
width: 100%;
background: rgb(238,174,202);
background: radial-gradient(circle, rgba(238,174,202,1) 0%, rgba(148,187,233,1) 100%);
display: flex;
position: relative;
justify-content: center;
align-items: center;
}
/* CLOCK */
.clock {
height: 400px;
width: 400px;
background-color: rgb(61, 2, 120);
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
position: relative;
color: aliceblue;
font-size: 2rem;
box-shadow: -8px -10px 18px rgb(26, 13, 36, 0.6);
border: 5px solid white;
}
/* CLOCK NUMBERS */
.number {
position: absolute;
text-align: center;
transform: rotate(calc(30deg * var(--num)));
inset: 8px;
text-shadow: 0px 0px 17px rgb(154, 151, 223);
}
.number b {
transform: rotate(calc(-30deg * var(--num)));
display: inline-block;
}
/* CLOCK LINE */
.line {
height: 10px;
width: 12px;
text-align: center;
color: gray;
position: absolute;
transform: rotate(calc(30deg * var(--i)));
inset: 30px;
}
/* CLOCK CENTER DOT */
.center__dot {
background-color: aliceblue;
height: 15px;
width: 15px;
border-radius: 50%;
position: absolute;
}
/* CLOCK HANDS */
.hands {
--rotate: 0;
position: absolute;
bottom: 50%;
transform: rotate(calc(var(--rotate) * 1deg));
transform-origin: bottom;
}
.hour__hand {
height: 100px;
width: 10px;
background-color: white;
}
.minute__hand {
height: 150px;
width: 7px;
background-color: rgb(153, 153, 207);
}
.sec__hand {
height: 190px;
width: 4px;
background-color: rgb(191, 55, 55);
}
.clock__text {
font-family: 'Pacifico', cursive;
position: absolute;
color: rgb(186, 186, 238);
margin-top: 35px;
font-size: 15px;
}