forked from code-differently/Weather-App
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathweather.css
More file actions
152 lines (152 loc) · 2.6 KB
/
weather.css
File metadata and controls
152 lines (152 loc) · 2.6 KB
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
@import url('https://fonts.googleapis.com/css?family=Google+Sans&display=swap');
body {
font-family: 'Google Sans', arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
text-align: center;
}
img {
width: 50px;
height: 50px;
}
#weather-data {
display: grid;
grid-template-areas:
"location . . . . . degree-div"
"week week week week week week week";
}
#location {
grid-area: location;
color: #b5b5b5;
}
#degree-div,
.degree-div {
grid-area: degree-div;
color: black;
display: grid;
grid-template-areas:
"degree degree-type"
"degree .";
width: 90px;
}
#week {
grid-area: week;
display: grid;
grid-template-areas: "day1 day2 day3 day4 day5 day6 day7";
}
#degree,
.degree {
grid-area: degree
}
#degree-type,
.degree-type {
grid-area: degree-type;
}
.min {
color: #b5b5b5;
}
.day-name {
grid-area: day-name;
}
.icon {
grid-area: icon;
}
.minmax {
display: flex;
grid-area: minmax;
justify-content: center;
}
#day1 {
grid-area: day1;
grid-template-areas:
"day-name"
"icon"
"minmax";
}
#day2 {
grid-area: day2;
grid-template-areas:
"day-name"
"icon"
"minmax";
}
#day3 {
grid-area: day3;
grid-template-areas:
"day-name"
"icon"
"minmax";
}
#day4 {
grid-area: day4;
grid-template-areas:
"day-name"
"icon"
"minmax";
}
#day5 {
grid-area: day5;
grid-template-areas:
"day-name"
"icon"
"minmax";
}
#day6 {
grid-area: day6;
grid-template-areas:
"day-name"
"icon"
"minmax";
}
#day7 {
grid-area: day7;
grid-template-areas:
"day-name"
"icon"
"minmax";
}
@media (max-width: 675px) {
#weather-data {
display: grid;
grid-template-areas:
"location . degree-div"
"week week";
}
#week {
grid-area: week;
display: grid;
grid-template-areas:
"day1 day2 day3 day4"
"day5 day6 day7 .";
}
}
@media (max-width: 450px) {
#week {
grid-area: week;
display: grid;
grid-template-areas:
"day1 day2"
"day3 day4"
"day5 day6"
"day7 .";
}
}
@media (max-width: 250px) {
#weather-data {
display: grid;
grid-template-areas:
"location"
"degree-div"
"week";
}
#week {
grid-area: week;
display: grid;
grid-template-areas:
"day1"
"day2"
"day3"
"day4"
"day5"
"day6"
"day7";
}
}