-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.css
140 lines (119 loc) · 2.21 KB
/
main.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
html{
box-sizing: border-box;
}
*,
*::before,
*::after{
box-sizing: inherit;
}
body{
min-height: 100vh;
font-family: 'Roboto', sans-serif;
background: url('./img/weather.jpg') no-repeat;
background-size: cover;
margin: 0;
}
.weather{
max-width: 1350px;
margin: 0 auto;
padding: 0 30px;
}
.weather h2{
color: #fff;
width: 250px;
text-align: center;
margin: 0 auto;
padding: 20px 0;
text-transform: uppercase;
}
#city_form{
font-size: 0;
margin-bottom: 25px;
}
#city_input{
outline: none;
width: 250px;
padding: 10px;
border: 1px solid #212121;
border-radius: 5px;
background: #fff;
color: #212121;
cursor: pointer;
}
#city_btn{
font-size: 14px;
font-weight: 600;
text-transform: uppercase;
width: 150px;
padding: 10px;
margin-left: 10px;
border: 1px solid #212121;
border-radius: 5px;
background: #edbe11;
color: #212121;
cursor: pointer;
transition: color .25s ease-in-out;
}
#city_btn:hover{
color: #fff;
}
#city_output{
display: flex;
flex-flow: row wrap;
margin: 15px 0;
gap: 20px 30px;
}
#city_error{
color: crimson;
margin: 15px 0;
}
.card{
background-color: white;
background-image: url('./img/close.svg');
background-size: 30px;
background-position: 265px 5px;
background-repeat: no-repeat;
display: flex;
flex-direction: column;
justify-content: space-between;
font-size: 14px;
width: 300px;
border: 1px solid #212121;
border-radius: 8px;
cursor: pointer;
}
.card_title, .name{
font-size: 18px;
font-weight: 600;
padding-bottom: 5px;
margin-right: 35px;
}
.card div{
cursor: auto;
padding: 10px;
}
@media (max-width: 690px) {
.weather{
padding: 0 10px;
}
#city_form{
display: flex;
flex-direction: column;
}
#city_input {
width: 300px;
margin: 0 auto;
}
#city_btn {
width: 300px;
margin: 10px auto 0;
}
#city_output {
display: flex;
flex-direction: column;
flex-wrap: wrap;
align-items: center;
margin: 15px auto;
gap: 20px 30px;
}
}