-
Notifications
You must be signed in to change notification settings - Fork 0
/
Weather.css
139 lines (119 loc) · 2.65 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
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
138
139
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@100;200;300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@100;200;300;400;500;600;800&display=swap');
* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: 'Josefin Sans', sans-serif;
text-align: center;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background: linear-gradient(rgba(0, 0, 0, 0.5) 100%, rgba(0, 0, 0, 0.5) 100%),
url('https://source.unsplash.com/1920x1280/?nature');
background-position: center;
background-size: cover;
color: #fff;
background-repeat: no-repeat;
}
.container {
background-color: rgba(0, 0, 0, 0.1);
padding: 1% 8%;
border-radius: 15px;
-webkit-box-shadow: 1px 24px 36px 12px rgba(0, 0, 0, 0.27);
-moz-box-shadow: 1px 24px 36px 12px rgba(0, 0, 0, 0.27);
box-shadow: 1px 24px 36px 12px rgba(0, 0, 0, 0.27);
min-height: 80vh;
}
#search {
outline: none;
font-family: 'Josefin Sans', sans-serif;
border: none;
color: #fff;
padding: 20px 10px;
background-color: rgba(255, 255, 255, 0);
border-radius: 20px;
font-size: 18px;
font-weight: bold;
color: #fff;
}
.input-search {
background-color: rgba(255, 255, 255, 0.1);
border-radius: 20px;
max-width: 300px;
padding-right: 10px;
display: flex;
justify-content: center;
align-items: center;
margin: 1rem auto 1rem;
}
#search-icon {
font-size: 20px;
color: #fff;
cursor: pointer;
}
.location {
font-size: 2rem;
line-height: 1.5;
}
.date {
font-size: 1.2rem;
font-family: 'Open Sans', sans-serif;
font-weight: 600;
opacity: 0.8;
}
.main-deg {
margin: 50px auto;
font-size: 7rem;
text-shadow: 2px 2px 0 #000000, 8px 8px 0 #000000;
}
.about {
font-size: 1.5rem;
}
.average {
font-size: 2rem;
}
#weather {
width: 150px;
color: #fff;
}
.link {
text-decoration: none;
color: #fff;
font-size: 18px;
font-family: 'Open Sans', sans-serif;
font-weight: normal;
}
@media (max-width: 500px) {
.container {
padding: 1% 4%;
}
#search {
padding: 15px 15px;
background-color: rgba(255, 255, 255, 0);
border-radius: 20px;
font-size: 16px;
font-weight: bold;
}
.input-search {
width: 90%;
margin: auto;
padding-right: 10px;
padding-left: 10px;
margin: 1rem auto 1rem;
}
#search-icon {
font-size: 18px;
padding-right: 15px;
}
.location {
font-size: 1.5rem;
}
h5 {
font-size: 0.8rem;
font-weight: 600;
opacity: 0.8;
}
}