-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
64 lines (55 loc) · 1.29 KB
/
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
/*Removing the default margin and bringing everything to the center*/
body{
margin: 0;
display: flex;
font-family: sans-serif;
flex-direction: column;
align-items: center; /*center horizontally*/
height: 100vh;
justify-content: center; /*center vertically*/
background: url(https://images.unsplash.com/photo-1475924156734-496f6cac6ec1?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1170&q=80);
background-repeat: no-repeat;
background-size: cover;
overflow: hidden; /* no scrollbar*/
}
h2{
text-transform: uppercase;
letter-spacing: 4px;
font-size: 16px;
text-align: center;
}
.clock{
display: flex;
}
.clock div{
margin: 6px;
position: relative;
}
.clock span{
width: 100px;
height: 80px;
background-color: blueviolet;
opacity: 60%;
color: white;
display: flex;
justify-content: center;
align-items: center;
font-size: 50px;
text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.clock .text{
height: 40px;
font-size: 15px;
text-transform: uppercase;
letter-spacing: 2px;
background: darkblue;
opacity: 80%;
}
.clock #ampm{
bottom:0;
position:absolute;
width: 70px;
height: 40px;
font-size: 20px;
background: green;
}