Skip to content

Commit a743e93

Browse files
committed
added media queries
1 parent 06e59de commit a743e93

File tree

1 file changed

+125
-37
lines changed

1 file changed

+125
-37
lines changed

assets/css/styles.css

Lines changed: 125 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ a.btn {
3131
text-transform: uppercase;
3232
font-weight: bold;
3333
text-align: center;
34-
background-color: #7d3faf;
34+
background-color: #4f2481;
3535
opacity: 1;
3636
}
3737

@@ -56,7 +56,7 @@ section:not(.hero):nth-child(even) {
5656
hr {
5757
width: 250px;
5858
height: 3px;
59-
background-color: #7d3faf;
59+
background-color: #4f2481;
6060
border: 0;
6161
margin-bottom: 50px;
6262
}
@@ -76,6 +76,12 @@ section p {
7676
text-align: center;
7777
}
7878

79+
@media (max-width: 800px) {
80+
section {
81+
padding: 50px 20px;
82+
}
83+
}
84+
7985
/*Header Styles*/
8086

8187
header {
@@ -109,6 +115,17 @@ header nav li {
109115
margin: 0 15px;
110116
}
111117

118+
@media (max-width: 800px) {
119+
header {
120+
padding: 20px 50px;
121+
flex-direction: column;
122+
}
123+
124+
header h2 {
125+
margin-bottom: 15px;
126+
}
127+
}
128+
112129
/*Hero Styles*/
113130

114131
.hero {
@@ -127,7 +144,7 @@ header nav li {
127144
height: 100%;
128145
background-size: cover;
129146
z-index: -1;
130-
background-color: #80a3db;
147+
background-color: #604281;
131148
}
132149

133150
.hero h1 {
@@ -157,6 +174,24 @@ header nav li {
157174
}
158175
}
159176

177+
@media (max-width: 800px) {
178+
.hero {
179+
min-height: 600px;
180+
}
181+
182+
.hero h1 {
183+
font-size: 48px;
184+
}
185+
186+
.hero h3 {
187+
font-size: 24px;
188+
}
189+
190+
.hero a.btn {
191+
padding: 15px 40px;
192+
}
193+
}
194+
160195
/*Destinations Section*/
161196

162197
.destinations .grid li {
@@ -175,6 +210,20 @@ header nav li {
175210
flex-basis: 70%;
176211
}
177212

213+
@media (max-width: 1100px) {
214+
.destinations .grid li.small,
215+
.destinations .grid li.large {
216+
flex-basis: 50%;
217+
}
218+
}
219+
220+
@media (max-width: 800px) {
221+
.destinations .grid li.small,
222+
.destinations .grid li.large {
223+
flex-basis: 100%;
224+
}
225+
}
226+
178227
/*Packages Section*/
179228

180229
.packages .grid li {
@@ -184,68 +233,107 @@ header nav li {
184233
}
185234

186235
.packages .grid li i {
187-
color: #7d3fafa6;
236+
color: #604281;
188237
}
189238

190239
.packages .grid li h4 {
191240
font-size: 30px;
192241
margin: 25px 0;
193242
}
194243

195-
/* Testimonials */
244+
@media (max-width: 800px) {
245+
.packages .grid li {
246+
flex-basis: 100%;
247+
padding: 20px;
248+
}
249+
}
250+
251+
/*Testimonials Section*/
196252

197253
.testimonials .quote {
198-
font-size: 22px;
199-
font-weight: 300;
200-
line-height: 1.5;
201-
margin: 40px 0 25px;
254+
font-size: 22px;
255+
font-weight: 300;
256+
line-height: 1.5;
257+
margin: 40px 0 25px;
202258
}
203259

204-
/* Contact Section */
260+
@media (max-width: 800px) {
261+
.testimonials .quote {
262+
font-size: 18px;
263+
margin: 15px 0;
264+
}
265+
266+
.testimonials .author {
267+
font-size: 14px;
268+
}
269+
}
270+
271+
/*Contact Section*/
205272

206273
.contact form {
207-
display: flex;
208-
align-items: center;
209-
justify-content: center;
210-
flex-wrap: wrap;
211-
width: 60%;
274+
display: flex;
275+
align-items: center;
276+
justify-content: center;
277+
flex-wrap: wrap;
278+
width: 60%;
212279
}
213280

214281
.contact form .btn {
215-
padding: 18px 42px;
282+
padding: 18px 42px;
283+
}
284+
285+
.contact form input {
286+
padding: 15px;
287+
margin-right: 30px;
288+
font-size: 18px;
289+
color: #555;
290+
flex: 1;
216291
}
217292

218-
.contact form input {
219-
padding: 15px;
220-
margin-right: 30px;
221-
font-size: 18px;
222-
color: #555;
223-
flex: 1;
293+
@media (max-width: 1000px) {
294+
.contact form input {
295+
flex-basis: 100%;
296+
margin: 0 0 20px 0;
297+
}
224298
}
225299

226-
/* Footer Section */
300+
/*Footer Section*/
227301

228302
footer {
229-
display: flex;
230-
align-items: center;
231-
justify-content: space-around;
232-
background-color: #7d3faf;
233-
color: #fff;
234-
padding: 20px 0;
303+
display: flex;
304+
align-items: center;
305+
justify-content: space-around;
306+
background-color: #4f2481;
307+
color: #fff;
308+
padding: 20px 0;
235309
}
236310

237311
footer ul {
238-
display: flex;
312+
display: flex;
239313
}
240314

241315
footer ul li {
242-
margin-left: 16px;
316+
margin-left: 16px;
243317
}
244318

245319
footer p {
246-
text-transform: uppercase;
247-
font-size: 14px;
248-
opacity: 0.6;
249-
align-self: center;
250-
padding: 5px;
251-
}
320+
text-transform: uppercase;
321+
font-size: 14px;
322+
opacity: 0.6;
323+
align-self: center;
324+
}
325+
326+
@media (max-width: 1100px) {
327+
footer {
328+
flex-direction: column;
329+
}
330+
331+
footer p {
332+
text-align: center;
333+
margin-bottom: 20px;
334+
}
335+
336+
footer ul li {
337+
margin: 0 8px;
338+
}
339+
}

0 commit comments

Comments
 (0)