-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
clock.css
143 lines (124 loc) · 2.53 KB
/
clock.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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
*,
*::after,
*::before {
margin: 0;
padding: 0;
box-sizing: border-box;
}
a {
text-decoration: none;
}
.analog {
background: radial-gradient(circle, transparent 68%,black 68.15%, grey 68.5%, white 69.2%, silver 69.5%, grey 70%, black 71%),
repeating-linear-gradient(10deg, transparent 0.1%, black 0.2%, transparent 0.3%, black 0.4%);
border-radius:100%;
cursor:pointer;
display:flex;
align-items: center;
justify-content: center;
height:65vh;
opacity:0.9;
position:absolute;
width:65vh;
visibility:hidden;
}
body {
background-color: black;
font-family: Roboto, "Arial Rounded MT Bold", sans-serif;
min-height: 100vh;
min-width:100vw;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
user-select: none;
}
.center {
background: radial-gradient(circle, white 5%, black 10%, grey 50%, silver 60%, grey 65%, black 75%);
border-radius:100%;
height:10px;
width:10px;
position:absolute;
z-index:3;
}
.contact {
color:transparent;
font-family: "zapfino", "luminari", "Academy Engraved Let";
font-size:small;
position:absolute;
right:25%;
top:-50px;
z-index:2;
}
.contact:hover {
color: black;
text-shadow: 0px 0px 2px lightsteelblue;
}
.digital {
backdrop-filter: blur(15px);
-webkit-backdrop-filter: blur(9px);
background: rgba(105, 103, 103, 0.21);
border: 1px solid rgba(234, 230, 230, 0.13);
border-radius: 16px;
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
cursor: pointer;
font-size: 27.5px;
font-weight: 500;
letter-spacing: 2.5px;
line-height: 47.5px;
max-width: 70%;
min-width: 280px;
padding: 30px 50px 25px 50px;
text-align: center;
}
.digital:hover {
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
transition: box-shadow 0.3s ease;
}
.hand {
border-radius: 10px;
position:absolute;
top:50%;
transform-origin:50% 0%;
transform:rotate(180deg);
}
.hide {
visibility: hidden;
}
.hour {
background-color: black;
height:34%;
width:5px;
z-index:2;
}
.minute {
background-color: white;
height:37%;
transition: all 0.05s;
transition-timing-function: cubic-bezier(0.1, 2.7, 0.58, 1);
width:5px;
z-index:1;
}
.second {
background-color: red;
height:40%;
transition: all 0.05s;
transition-timing-function: cubic-bezier(0.1, 2.7, 0.58, 1);
width:2.5px;
z-index:0;
}
@media screen and (max-width: 811px) {
.analog {
height:50vh;
width:50vh;
}
.digital {
font-size: 25px;
padding: 25px 15px;
}
.contact {
font-size:small;
top:-50px;
right:25%;
}
}