-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
108 lines (96 loc) · 2.09 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
@import url('https://fonts.googleapis.com/css2?family=Poppins&family=Roboto:ital,wght@0,500;1,400&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
body {
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background: url('./assets/clock_bg.jpg');
background-size: cover;
background-position: center center;
}
.clock {
background: rgba(255, 255, 255, 0.8);
height: 300px;
width: 300px;
border-radius: 50%;
position: relative;
border: 5px solid blue;
box-shadow: 0 0 20px 0 gray;
}
.text {
inset: 7px;
position: absolute;
text-align: center;
transform: rotate(calc(var(--i)*30deg));
}
span {
display: block;
font-size: 1.2em;
font-weight: bold;
color: black;
user-select: none;
transform: rotate(calc(var(--i)*-30deg));
}
.hand {
position: absolute;
bottom: 50%;
left: 50%;
transform-origin: 50% 85%;
transform: translate(-50%, 15%);
border-radius: 10px;
}
.hour {
width: 9px;
height: 34%;
background-color: green;
}
.minute {
width: 6px;
height: 39%;
background-color: blue;
}
.second {
background-color: rgb(255, 104, 104);
width: 3px;
height: 44%;
}
.point {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
height: 20px;
width: 20px;
border-radius: 50%;
background-color: black;
box-shadow: 0 0 20px 0 gray;
}
.title {
font-weight: bold;
font-size: 1.3em;
letter-spacing: 0.1em;
display: flex;
justify-content: center;
align-items: center;
width: 345px;
height: 40px;
position: absolute;
border-radius: 10px;
top: -60px;
left: 55%;
transform: translateX(-50%);
text-align: center;
color: black;
background: rgba(255, 255, 255, 0.2);
box-shadow: 0 0 20px 0 white;
}
.shadow {
color: var(--colour);
text-shadow: 0 0 5px #ffa500, 0 0 15px #ffa500, 0 0 20px #ffa500, 0 0 40px #ffa500, 0 0 60px #ff0000, 0 0 10px #ff8d00, 0 0 98px #ff0000;
}