-
Notifications
You must be signed in to change notification settings - Fork 2
/
style.css
71 lines (63 loc) · 1.37 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
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");
body {
background-image: url(https://source.unsplash.com/uAfZBP-GtiA/1600x900);
background-size: cover;
background-position: center;
background-repeat: no-repeat;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
font-family: "Roboto", sans-serif;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.clock {
padding: 3.5em 4em;
background: rgba(255, 255, 255, 0.25);
box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.7);
backdrop-filter: blur(4px);
-webkit-backdrop-filter: blur(4px);
border-radius: 10px;
border: 1px solid rgba(255, 255, 255, 0.18);
color: #fff;
display: flex;
justify-content: space-between;
align-items: center;
gap: 2em;
position: relative;
padding-bottom: 5em;
}
.details {
display: flex;
justify-content: space-between;
align-items: center;
flex-direction: column;
gap: 2em;
}
.time {
font-size: 4em;
}
.date {
font-weight: 400;
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 100%;
padding: 1em;
text-align: center;
}
@media screen and (min-width: 1000px) {
.time {
font-size: 6em;
}
}
@media screen and (max-width: 1000px) {
.clock {
font-size: 13px;
}
}