forked from hanumancode/Christmas-Countdown-Clock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
75 lines (63 loc) · 1.14 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
@import url('https://fonts.googleapis.com/css?family=Mountains+of+Christmas');
body {
margin: 0;
padding: 0;
background: #f00;
}
.container {
position: absolute;
top: 50%;
width: 100%;
transform: translateY(-50%);
text-align: center;
}
h1 {
text-align: center;
text-transform: uppercase;
color: #fff;
font-size: 3em;
font-family: 'Mountains of Christmas', cursive;
}
h1 span {
font-size: 4em;
line-height: .8em;
}
#clock {
display: flex;
width: 570px;
margin: 0 auto;
}
#clock div {
position: relative;
width: 100px;
padding: 20px;
margin: 0 5px;
background: green;
color: #fff;
border: 2px solid;
}
#clock div:last-child {
background: #f00;
}
#clock div:before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 50%;
background: rgb(255, 255, 255, 0.2);
}
#clock div span {
display: block;
text-align: center;
}
#clock div span:nth-child(1) {
font-size: 48px;
font-weight: 800;
}
#clock div span:nth-child(2) {
font-size: 18px;
font-weight: 800;
margin-top: -10px;
}