-
Notifications
You must be signed in to change notification settings - Fork 5
/
style.css
88 lines (87 loc) · 2.22 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
76
77
78
79
80
81
82
83
84
85
86
87
88
@import url("https://fonts.googleapis.com/css2?family=Varela&display=swap");
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
ul li {
list-style: none;
}
body {
font-family: "Varela", sans-serif;
background-size: cover;
background-repeat: no-repeat;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
height: 100vh;
width: 100vw;
}
div.box {
padding-bottom: 5px;
text-align: center;
color: hsla(0, 0%, 100%, 0.65);
border-bottom: 2px solid hsla(0, 0%, 100%, 0.65);
margin-bottom: 2em;
}
#time {
margin-bottom: 20px;
font-size: 90px;
}
#greeting {
font-size: 30px;
}
#temperature {
margin: 1rem auto;
}
.night {
background-image: url("https://images.unsplash.com/photo-1488415032361-b7e238421f1b?q=80&w=1769&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
}
.morning {
background-image: url("https://images.unsplash.com/photo-1511717220991-7aacf148fd88?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
}
.afternoon {
background-image: url("https://images.unsplash.com/photo-1661435891212-6a69c22b9455?q=80&w=1933&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
}
.evening {
background-image: url("https://images.unsplash.com/photo-1525848737975-98abfe205efc?q=80&w=1770&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
}
ul.links {
position: absolute;
bottom: 20px;
width: 30%;
border-radius: 16px;
padding: 0.5em;
background-color: rgba(255, 255, 255, 0.2);
display: flex;
justify-content: space-around;
}
ul li {
width: 50px;
display: flex;
justify-content: center;
align-items: center;
border-radius: 50%;
padding: 10px;
transition: all 200ms ease-in-out;
}
ul li:hover {
background-color: rgba(255, 255, 255, 0.7);
transform: scale(1.05);
}
ul.links li a {
display: flex;
justify-content: center;
}
ul.links li a img {
width: 100%;
}
@media screen and (max-width: 500px) {
#time {
font-size: 70px;
}
#greeting {
font-size: 20px;
}
}