-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
75 lines (66 loc) · 1.18 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
body{
margin: 0;
display: flex;
flex-direction: column;
align-items: center;
height: 100vh;
justify-content: center;
font-family: cursive;
background-color: slateblue;
overflow: hidden;
}
h2{
color: white;
text-align: center;
text-transform: uppercase;
letter-spacing: 4px;
}
.year{
font-size: 5em;
color: white;
font-weight: bold;
}
.countdown{
margin: 30px;
background-color: rgba(0, 0, 0, 0.1);
width: 100%;
color: white;
height: 120px;
display: flex;
justify-content: center;
align-items: center;
}
.countdown div{
margin: 0 15px;
font-size: 2.5em;
font-weight: 500;
margin-top: -25px;
position: relative;
text-align: center;
width: 100px;
}
.countdown div::before{
content: "";
position: absolute;
bottom: -30px;
left: 0;
font-size: .35em;
line-height: 35px;
text-transform: uppercase;
letter-spacing: 1px;
font-weight: 500;
width: 100%;
height: 35px;
}
.countdown #day::before{
content: "Days";
}
.countdown #hour::before{
content: "Hours";
}
.countdown #minute::before{
content: "Minutes";
}
.countdown #second::before{
content: "Seconds";
}