-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
94 lines (81 loc) · 1.54 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
89
90
91
92
93
94
body {
font-family: Arial, Helvetica, sans-serif;
background-color: hsl(0, 0%, 95%);
margin: 0;
display: flex;
flex-direction: column;
align-items: center;
overflow-y: hidden;
}
.weatherForm {
width: 300px;
display: flex;
flex-direction: column;
}
.cityInput {
padding: 10px;
font-size: 2rem;
font-weight: bold;
border: 2px solid hsla(0, 0%, 20%, 0.3);
margin: 10px 0;
border-radius: 5px;
}
button[type = 'submit'] {
font-weight: bold;
font-size: 2rem;
background-color: hsl(122, 39%, 57%);
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}
button[type = 'submit']:hover {
background-color: hsl(122, 39%, 40%);
}
button[type = 'submit']:active {
background-color: hsl(122, 39%, 30%);
}
.card{
background: linear-gradient(180deg, hsl(210, 100%, 75%), hsl(40, 100%, 75%));
padding: 50px;
box-shadow: 2px 2px 5px hsla(0, 0%, 0%, 0.5);
border-radius: 10px;
max-width: 300px;
display: flex;
flex-direction: column;
align-items: center;
margin-top: 10px;
}
h1{
font-size: 3.5rem;
margin-top: 0;
margin-bottom: 25px;
}
p {
font-size: 1.5rem;
margin: 5px 0;
}
.cityDisplay, .tempDisplay{
font-size: 3.5rem;
font-weight: bold;
color: hsla(0, 0%, 0%, 0.75);
margin-bottom: 25px;
}
.humidityDisplay {
font-weight: bold;
margin-bottom: 25px;
}
.descDisplay {
font-style: italic;
font-weight: bold;
font-size: 2rem;
}
.weatherEmoji {
margin: 0;
font-size: 7.5rem;
}
.errorDisplay {
font-size: 2.5rem;
font-weight: bold;
color: hsla(0, 0%, 0%, 0.75);
}