-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
70 lines (61 loc) · 1.35 KB
/
styles.css
File metadata and controls
70 lines (61 loc) · 1.35 KB
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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
font-family: sans-serif;
display: flex;
flex-direction: column;
align-items: center;
height: 100vh;
justify-content: center;
background: url('https://images.unsplash.com/photo-1433838552652-f9a46b332c40?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1170&q=80');
background-size: cover;
background-position: center;
overflow: hidden;
}
h2{
text-transform: uppercase;
letter-spacing: 4px;
font-size: 34px;
text-align: center;
color: #fff;
font-weight: 800px;
}
.clock{
display: flex;
}
.clock div{
margin: 10px;
position: relative;
}
.clock span{
width: 100px;
height: 80px;
background: slateblue;
opacity: .8;
font-weight: 900px;
font-size: 50px;
color: rgb(249, 250, 245);
display: flex;
align-items: center;
justify-content: center;
text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.clock .text {
height: 30px;
font-size: 10px;
text-transform: uppercase;
letter-spacing: 2px;
background: darkblue;
opacity: 0.8;
}
.clock #ampm {
bottom: 0;
position: absolute;
width: 60px;
height: 30px;
font-size: 20px;
background: green;
}