-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
85 lines (83 loc) · 1.5 KB
/
style.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
*{
margin: 0;
padding: 0;
box-sizing:border-box;
border: none;
outline: none;
font-family: sans-serif;
}
body{
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background-color: beige;
}
.container{
width: 400p;
height: min-content;
background-color: white;
border-radius: 12px;
padding: 2px;
}
.search-box{
width: 200px;
height:min-content;
display: flex;
justify-content: space-between;
align-items:center;
background-color: white;
padding:12px 16px;
border-radius: 14px;
}
.search-box input::placeholder{
color:black;
}
.search-box button{
width: 46px;
height: 46px;
background-color: white;
border-radius: 50%;
cursor: pointer;
font-size: 20px;
}
.search-box button:hover
{
color:white;
background-color: grey;
}
.weather-body{
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
margin-block: 20px;
}
.weather-body img{
width: 50%;
}
.weather-box{
margin-block: 20px;
text-align: center;
}
.weather-box .temperature{
font-size: 40px;
font-weight: 800;
position: relative;
}
.weather-box .temperature sup{
font-size: 20px;
position: absolute;
font-weight: 600;
}
.weather-box .description{
font-size: 20px;
font-weight: 700;
text-transform: capitalize;
}
.weather-details{
width: 100%;
display: flex;
justify-content: space-between;
margin-top: 30px;
}