-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
97 lines (84 loc) · 1.78 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
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
* {
margin: 0;
padding: 0;
font-family: 'Montserrat', sans-serif;
font-weight: 300;
}
.flex {
display: flex;
align-items: center;
}
.flex-col {
flex-direction: column;
}
.gap {
gap: 4rem;
}
body {
width: 500px;
margin: auto;
background: radial-gradient(circle, rgb(255, 255, 255) 0%, rgb(199, 199, 199) 100%);
}
.frame {
box-shadow: inset 0px 0px 10px 0px rgb(0 0 0 / .5);
background-color: white;
width: 400px;
height: 500px;
position: fixed;
top: 20px;
}
#face {
background-image: url("./assets/starry.gif");
width: 300px;
height: 300px;
border-radius: 50%;
box-shadow: 0px 0px 10px -1px rgb(0 0 0);
position: relative;
top: 70px;
}
#minutes,
#hours,
#seconds {
position: absolute;
left: 50%;
top: 50%;
transform-origin: top center;
border: 0px;
box-shadow: 0px 0px 7px 0px rgb(0 0 0 / .5);
border-radius: 5px;
}
#circle {
background-color: rgb(206, 206, 206);
position: absolute;
left: 48%;
top: 47%;
width: 15px;
height: 15px;
border: 0px;
border-radius: 50%;
border: 0px;
box-shadow: 0px 0px 7px 4px rgb(0 0 0 / .2);
}
#seconds {
background-color: rgb(206, 206, 206);
height: 130px;
width: 2px;
}
#hours {
background-color: rgb(206, 206, 206);
height: 100px;
width: 8px;
transform: rotate(125deg);
}
#minutes {
background-color: rgb(206, 206, 206);
height: 120px;
width: 4px;
transform: rotate(255deg);
}
.digital {
position: relative;
top: 90px;
font-size: 2rem;
}