Skip to content

Commit a0c22df

Browse files
author
aafomin
committed
fix @media in weather
1 parent 4ffb4ec commit a0c22df

File tree

4 files changed

+11
-16
lines changed

4 files changed

+11
-16
lines changed

src/components/Weather/card-detail.vue

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,21 +83,24 @@ export default {
8383
color: white;
8484
}
8585
.detail__day_text {
86-
font-size: .75rem;
86+
font-size: 0.75rem;
8787
// overflow-wrap: break-word;
8888
word-break: normal;
8989
white-space: normal;
9090
color: lightgray;
9191
}
9292
}
93-
@media screen and (max-width: 840px) {
93+
@media screen and (max-width: 800px) {
9494
.detail {
9595
width: 16vw;
96+
.detail__date {
97+
color: white;
98+
font-size: 3vw;
99+
}
96100
.detail__day_icon {
97101
width: 15vw;
98102
}
99103
.detail__day_temp {
100-
101104
}
102105
.detail__day_temp_value {
103106
font-size: 1.25rem;
@@ -107,10 +110,8 @@ export default {
107110
display: none;
108111
}
109112
.detail__day_text {
110-
word-break: break-word;
113+
word-break: break-all;
111114
}
112115
}
113116
}
114-
@media screen and (max-width: 600px) {
115-
}
116117
</style>

src/components/Weather/card-weather.vue

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ export default {
224224
opacity: 0;
225225
}
226226
227-
@media screen and (max-width: 840px) {
227+
@media screen and (max-width: 800px) {
228228
.card {
229229
width: 95vw;
230230
height: 40%;
@@ -244,16 +244,12 @@ export default {
244244
font-size: 0.75rem;
245245
text-align: center;
246246
}
247-
.card__footer_more {
248-
}
249247
}
250248
}
251249
.card__datails {
252250
margin: auto;
253251
width: 95vw;
254-
height: 43vh;
252+
height: 40vh;
255253
}
256254
}
257-
@media screen and (max-width: 600px) {
258-
}
259255
</style>

src/components/Weather/search-list.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export default {
4242
width: 30%;
4343
z-index: 1;
4444
}
45-
@media screen and (max-width: 1024px) {
45+
@media screen and (max-width: 800px) {
4646
.weather__searchList {
4747
width: 55%;
4848
}

src/components/Weather/weather.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,11 @@ export default {
9494
width: 750px;
9595
}
9696
}
97-
@media screen and (max-width: 1024px) {
97+
@media screen and (max-width: 800px) {
9898
.weather {
9999
.weather__search {
100100
width: 70%;
101101
}
102102
}
103103
}
104-
@media screen and (max-width: 600px) {
105-
}
106104
</style>

0 commit comments

Comments
 (0)