-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
120 lines (118 loc) · 2.49 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
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
@import url('https://fonts.googleapis.com/css2?family=Baloo+Bhai+2:wght@400;500;700&family=Open+Sans:wght@500&family=Varela+Round&display=swap');
body{
display: flex;
justify-content: center;
align-items: center;
height:100vh;
margin:0;
background: #222;
font-family: 'Open Sans', sans-serif;
background-image: url('https://source.unsplash.com/1600x900/?landscape');
background-repeat: no-repeat;
/* image-rendering: auto;
image-rendering: crisp-edges; */
/* image-rendering: pixelated; */
background-position: center;
}
.card{
background: #000000d0;
color: white;
padding: 2em;
border-radius:25px;
width: 100%;
max-width: 400px;
margin: 1em;
}
.search{
display:flex;
align-items: center;
justify-content: center;
}
button{
margin: 8px;
border-radius: 50%;
border: none;
height: 2.75em;
width: 2.75em;
outline: none;
background-color: #7c7c7c2b;
}
button:hover{
background-color: #e7e1e12b;
cursor: pointer;
transition: 0.2s ease-in-out;
}
h1.temp{
margin-bottom: 25px;
}
input.search-bar{
border: none;
outline: none;
padding: 10px 12px;
border-radius: 20px;
background-color: #7c7c7c2b;
color: white;
font-family: inherit;
font-size: medium;
width: 75%;
}
.weather{
line-height: 30px;
}
.description{
text-transform: capitalize;
margin-left: 5px;
}
.flex{
display: flex;
align-items: center;
}
.weather.loading{
visibility: hidden;
max-height: 20px;
position: relative;
}
.weather.loading:after{
visibility: visible;
content: "Loading...";
color:white;
position: absolute;
top:0;
left: 20px;
}
@media (max-width: 800px)
{
body{
margin:0;
background-size:1500px;
background-repeat: no-repeat;
background-position: center;
}
}
@media (max-width: 700px)
{
body{
margin:0;
background-size: 1400px;
background-repeat: no-repeat;
background-position: center;
}
}
@media (max-width: 500px)
{
body{
margin:0;
background-size: 1350px;
background-repeat: no-repeat;
background-position: center;
}
}
@media (max-width: 400px)
{
body{
margin:0;
background-size: 1250px;
background-repeat: no-repeat;
background-position: center;
}
}