-
Notifications
You must be signed in to change notification settings - Fork 0
/
weather.css
157 lines (137 loc) · 3.07 KB
/
weather.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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
*,*::after,*::before{
box-sizing: border-box;
}
body{
/* margin:0; */
max-width: 1000px;
margin: auto;
font-family: Arial, Helvetica, sans-serif;
}
h1,h2,h3{
margin: 0;
}
p{
margin: var(--spacing-regular);
}
:root{
--spacing-regular:16px;
--spacing-small:8px;
--font-small:.5rem;
--font-regular:1rem;
--font-large:2rem;
--font-xl:4rem;
--font-semibold:600;
}
.container{
border-radius: var(--spacing-regular);
padding: var(--spacing-regular);
gap: var(--spacing-regular);
}
.container >article{
border: 1px solid;
border-radius: var(--spacing-regular);
padding: var(--spacing-regular);
gap: var(--spacing-regular);
}
.container{
display: grid;
grid-template-columns: repeat(2,1fr);
grid-template-areas:
"search search"
"current current"
"hourly hourly"
"fiveday fiveday"
"feelslike humidity";
}
#searching{
grid-area: search;
font-size: var(--font-large);
border: 1px solid;
border-radius: var(--spacing-regular);
padding: var(--spacing-regular);
}
/* styling for current forecast */
#current-forecast{
grid-area: current;
text-align: center;
/* background: linear-gradient(rgb(8, 215, 243),rgb(0, 255, 251),rgb(248, 248, 5)); */
}
#current-forecast .temp{
font-size: var(--font-xl);
}
#current-forecast .description,
#current-forecast .min-max-temp{
font-size: var(--font-regular);
font-weight: var(--font-semibold);
text-transform: capitalize;
}
/* styling for hourly forecast */
#hourly-forecast{
grid-area: hourly;
text-align: center;
display: grid;
}
#hourly-forecast .hourly{
margin-top: var(--spacing-regular);
display: grid;
grid-template: repeat(auto,minmax(100px,1fr));
grid-auto-flow: column;
/* grid-auto-columns: minmax(100px,1fr); */
overflow-x:scroll;
}
.hourly::-webkit-scrollbar,.fivedayforecast.hourly::-webkit-scrollbar{
display: none;
}
/* styling for five day forecast */
#five-day-forecast{
grid-area:fiveday;
text-align: center;
}
#five-day-forecast .fivedayforecast{
display: grid;
grid-auto-flow: row;
overflow-x: scroll;
}
.fivedayforecast .daywiseforecast{
display: grid;
grid-template:auto/repeat(4,1fr);
gap: var(--spacing-regular);
place-items: center;
}
.daywiseforecast .temp_low,.daywiseforecast .temp_high{
font-weight: var(--font-semibold);
}
.daywiseforecast .temp_low{
opacity: 50%;
}
.fivedaydate{
text-transform: capitalize;
justify-self: start;
}
.fivedayimage{
height: 75px;
width: 75px;
}
/* styling for feels like */
#feels-like{
display: grid;
grid-area:feelslike;
text-align: center;
}
/* styling for humidity */
#humidity{
display: grid;
grid-area: humidity;
text-align: center;
}
@media(width>500px){
.container{
grid-template-columns: repeat(4,1fr);
grid-template-areas:
"search search search search"
"current current current current"
"hourly hourly fiveday fiveday"
"feelslike humidity fiveday fiveday"
;
}
}