forked from agatemosu/firefly-countdown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
76 lines (65 loc) · 992 Bytes
/
styles.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
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background-image: url("Mavuika.png");
background-position: 15% center;
background-size: cover;
background-repeat: no-repeat;
background-color: #8e5b4d;
height: 100dvh;
font-family: system-ui, sans-serif;
}
main {
display: flex;
flex-direction: column;
place-content: center;
align-items: center;
gap: 2rem;
margin-inline: auto;
max-width: 90vw;
height: 100dvh;
text-align: center;
}
.countdown {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 1rem;
}
.unit,
.complete-time {
backdrop-filter: blur(4px);
background-color: #0008;
color: white;
}
.unit {
display: flex;
flex-direction: column;
justify-content: center;
aspect-ratio: 1;
width: 6rem;
}
.value {
font-size: 2rem;
}
.complete-time {
padding: 1rem;
}
@media (width >= 640px) {
.countdown {
gap: 2rem;
}
.unit {
width: 9rem;
}
.value {
font-size: 4rem;
}
}
.title {
color: white;
font-weight: bold;
}