-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
58 lines (53 loc) · 923 Bytes
/
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
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
width: 100vw;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background: hsl(0, 0%, 70%);
color: #fff;
font-size: 4rem;
}
.digital-clock {
width: 60%;
height: 30%;
display: flex;
justify-content: center;
align-items: center;
font-size: 0.8em;
border-radius: 15px;
box-shadow: 10px 10px 50px black;
background: hsl(0, 0%, 40%);
transition: all 0.4s ease;
}
.clock {
font-size: 1.8em;
padding: 10px;
}
.digital-clock:hover {
background: hsl(0, 0%, 90%);
color: hsl(0, 0%, 30%);
}
.day-period {
font-size: 0.5em;
}
@media screen and (max-width: 425px) {
.digital-clock {
width: 80%;
height: 80%;
flex-direction: column;
padding: 0;
}
.digital-clock:hover {
background: hsl(0, 0%, 90%);
color: hsl(0, 0%, 30%);
}
.colon {
display: none;
}
}