-
Notifications
You must be signed in to change notification settings - Fork 0
/
weather.css
90 lines (89 loc) · 1.71 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
*{
margin: 0;
padding: 0;
}
body{
font-family: "Montserrat",sans-serif;
background-color: #f7f7f7;
}
.whether-container{
background-color: white;
box-shadow: 0 0 20px rgba(0,0,0,0.2);
text-align: center;
max-width: 93.75vh;
margin: 50px auto;
padding: 20px;
border-radius: 0.6vh;
}
form{
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 20px;
}
h1{
padding: 20px;
}
form input[type="text"]{
padding: 10px;
border:none;
outline: none;
font-size: 18px;
width: 60%;
}
form input[type="submit"]{
background-color: #007bff;
color: white;
border: none;
padding: 10px 20px;
border-radius: 5px;
font-size: 18px;
cursor: pointer;
outline: none;
transition: background-color 0.3s ease;
}
form input[type="submit"]:hover{
background-color: #0062cc;
}
.icon img{
width: 100px;
height: 100px;
background-size:contain;
background-repeat: no-repeat;
background-position: center center;
}
.temp{
font-size: 48px;
font-weight: bold;
margin: 20px 0;
}
.description{
font-size: 24px;
margin-bottom: 20px;
}
.details{
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
}
.details > div{
padding: 20px;
background-color: #f1f1f1;
margin: 10px;
flex:1;
border-radius: 5px;
min-height: 45px;
}
@media screen and (max-width:768px){
form{
flex-direction: column;
margin-bottom: 10px;
}
form input[type="submit"]{
width: 90%;
}
form input[type="text"]{
width: 90%;
}
}