-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
92 lines (86 loc) · 1.51 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
*,
*:before,
*:after {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: sans-serif;
/* font-size: 62.5%; */
line-height: 1.5;
background-image: url("landscape.jpg");
background-size: cover;
background-repeat: no-repeat;
background-position: center;
background-attachment: fixed;
color: white;
overflow: hidden;
}
.container {
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
padding: 2rem;
}
#heading {
text-transform: uppercase;
letter-spacing: 0.1rem;
font-size: 1.5rem;
text-align: center;
color: white;
}
.clock {
display: flex;
}
#hour,
#minutes,
#second {
width: 55px;
height: 100%;
background-color: slateblue;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.items {
position: relative;
width: 55px;
height: 100%;
display: flex;
flex-direction: column;
margin: 0.4rem;
justify-content: center;
align-items: center;
/* padding: 1rem;/ */
opacity: 0.9;
text-shadow: 2px 2px 2px rgba(0, 0, 0 0.3);
}
.items span {
font-size: 1.8rem;
}
.items .text {
font-size: 0.5rem;
letter-spacing: 0.09rem;
background: darkblue;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
text-transform: uppercase;
}
.items #ampm {
position: absolute;
width: 100%;
background-color: green;
height: 37%;
bottom: 0;
font-size: 1rem;
opacity: 0.8;
text-align: center;
background-color: ;
}