25
25
html {
26
26
box-sizing : border-box;
27
27
font-size : 62.5% ; }
28
+ @media only screen and (max-width : 68.75em ) {
29
+ html {
30
+ font-size : 50% ; } }
28
31
29
32
body {
30
33
font-family : 'Open Sans' , sans-serif;
@@ -42,6 +45,11 @@ body {
42
45
background-color : var (--color-grey-light-2 );
43
46
box-shadow : var (--shadow-dark );
44
47
min-height : 50rem ; }
48
+ @media only screen and (max-width : 75em ) {
49
+ .container {
50
+ margin : 0 ;
51
+ max-width : 100% ;
52
+ width : 100% ; } }
45
53
46
54
.header {
47
55
font-size : 1.4rem ;
@@ -51,9 +59,17 @@ body {
51
59
display : flex;
52
60
justify-content : space-between;
53
61
align-items : center; }
62
+ @media only screen and (max-width : 31.25rem ) {
63
+ .header {
64
+ flex-wrap : wrap;
65
+ height : 12rem ;
66
+ align-content : space-around; } }
54
67
55
68
.content {
56
69
display : flex; }
70
+ @media only screen and (max-width : 56.25em ) {
71
+ .content {
72
+ flex-direction : column; } }
57
73
58
74
.sidebar {
59
75
background-color : var (--color-grey-dark-1 );
@@ -72,6 +88,12 @@ body {
72
88
padding : 4.5rem ;
73
89
background-color : var (--color-grey-light-1 );
74
90
border-bottom : var (--line ); }
91
+ @media only screen and (max-width : 56.25em ) {
92
+ .detail {
93
+ padding : 3rem ; } }
94
+ @media only screen and (max-width : 37.5em ) {
95
+ .detail {
96
+ flex-direction : column; } }
75
97
76
98
.description {
77
99
font-size : 1.4rem ;
@@ -80,9 +102,20 @@ body {
80
102
padding : 3rem ;
81
103
flex : 0 0 60% ;
82
104
margin-right : 4.5rem ; }
105
+ @media only screen and (max-width : 56.25em ) {
106
+ .description {
107
+ padding : 2rem ;
108
+ margin-right : 3rem ; } }
109
+ @media only screen and (max-width : 37.5em ) {
110
+ .description {
111
+ margin-right : 0 ;
112
+ margin-bottom : 3rem ; } }
83
113
84
114
.user-reviews {
85
- flex : 1 ; }
115
+ flex : 1 ;
116
+ display : flex;
117
+ flex-direction : column;
118
+ align-items : center; }
86
119
87
120
.logo {
88
121
height : 3.25rem ;
@@ -94,6 +127,11 @@ body {
94
127
align-items : center;
95
128
justify-content : center;
96
129
padding : 0 0.2rem ; }
130
+ @media only screen and (max-width : 31.25rem ) {
131
+ .search {
132
+ order : 1 ;
133
+ flex : 0 0 100% ;
134
+ background-color : var (--color-grey-light-2 ); } }
97
135
.search__input {
98
136
font-family : inherit;
99
137
font-size : inherit;
@@ -166,10 +204,20 @@ body {
166
204
font-size : 1.4rem ;
167
205
list-style : none;
168
206
margin-top : 3.5rem ; }
207
+ @media only screen and (max-width : 56.25em ) {
208
+ .side-nav {
209
+ display : flex;
210
+ margin : 0 ; } }
169
211
.side-nav__item {
170
212
position : relative; }
171
213
.side-nav__item : not (: last-child ) {
172
214
margin-bottom : 0.5rem ; }
215
+ @media only screen and (max-width : 56.25em ) {
216
+ .side-nav__item : not (: last-child ) {
217
+ margin : 0 ; } }
218
+ @media only screen and (max-width : 56.25em ) {
219
+ .side-nav__item {
220
+ flex : 1 ; } }
173
221
.side-nav__item ::before {
174
222
content : "" ;
175
223
position : absolute;
@@ -195,6 +243,14 @@ body {
195
243
align-items : center;
196
244
position : relative;
197
245
z-index : 10 ; }
246
+ @media only screen and (max-width : 56.25em ) {
247
+ .side-nav__link : link , .side-nav__link : visited {
248
+ justify-content : center;
249
+ padding : 2rem ; } }
250
+ @media only screen and (max-width : 37.5em ) {
251
+ .side-nav__link : link , .side-nav__link : visited {
252
+ flex-direction : column;
253
+ padding : 1.5rem 0.5rem ; } }
198
254
.side-nav__link : hover {
199
255
color : # fff ;
200
256
cursor : pointer; }
@@ -204,11 +260,20 @@ body {
204
260
height : 1.75rem ;
205
261
margin-right : 2rem ;
206
262
fill : white; }
263
+ @media only screen and (max-width : 37.5em ) {
264
+ .side-nav__icon {
265
+ margin-right : 0 ;
266
+ margin-bottom : 7px ;
267
+ width : 1.5rem ;
268
+ height : 1.5rem ; } }
207
269
.side-nav .legal {
208
270
font-size : 1.2rem ;
209
271
text-align : center;
210
272
padding : 2.5rem ;
211
273
color : var (--color-grey-light-4 ); }
274
+ @media only screen and (max-width : 56.25em ) {
275
+ .side-nav .legal {
276
+ display : none; } }
212
277
213
278
.legal {
214
279
font-size : 1.2rem ;
@@ -232,6 +297,10 @@ body {
232
297
text-transform : uppercase;
233
298
letter-spacing : 1px ;
234
299
padding : 1.5rem 3rem ; }
300
+ @media only screen and (max-width : 37.5em ) {
301
+ .overview__heading {
302
+ font-size : 1.8rem ;
303
+ padding : 1.25rem 2rem ; } }
235
304
.overview__stars {
236
305
margin-right : auto;
237
306
display : flex; }
@@ -254,13 +323,22 @@ body {
254
323
flex-direction : column;
255
324
justify-content : center;
256
325
align-items : center; }
326
+ @media only screen and (max-width : 37.5em ) {
327
+ .overview__rating {
328
+ padding : 0 1.5rem ; } }
257
329
.overview__rating-average {
258
330
font-size : 2.25rem ;
259
331
font-weight : 300 ;
260
332
margin-bottom : -3px ; }
333
+ @media only screen and (max-width : 37.5em ) {
334
+ .overview__rating-average {
335
+ font-size : 1.8rem ; } }
261
336
.overview__rating-count {
262
337
font-size : 0.8rem ;
263
338
text-transform : uppercase; }
339
+ @media only screen and (max-width : 37.5em ) {
340
+ .overview__rating-count {
341
+ font-size : 0.5rem ; } }
264
342
265
343
.btn-inline {
266
344
border : none;
@@ -272,8 +350,13 @@ body {
272
350
background-color : transparent;
273
351
cursor : pointer;
274
352
transition : all 0.2s ; }
353
+ .btn-inline span {
354
+ margin-left : 3px ;
355
+ transition : margin-left 0.2s ; }
275
356
.btn-inline : hover {
276
357
color : var (--color-grey-dark-1 ); }
358
+ .btn-inline : hover span {
359
+ margin-left : 8px ; }
277
360
.btn-inline : focus {
278
361
outline : none;
279
362
animation : pulsate 1s infinite; }
@@ -324,22 +407,32 @@ body {
324
407
align-items : center; }
325
408
.recommended__count {
326
409
margin-right : auto; }
410
+ .recommended__friends {
411
+ display : flex; }
327
412
.recommended__photo {
328
413
box-sizing : content-box;
329
414
height : 4rem ;
330
415
width : 4rem ;
331
416
border-radius : 50% ;
332
417
border : 3px solid # fff ; }
333
418
.recommended__photo : not (: last-child ) {
334
- margin-right : -1.5 rem ; }
419
+ margin-right : -2 rem ; }
335
420
336
421
.review {
337
422
background-color : # fff ;
338
423
box-shadow : var (--shadow-light );
339
424
padding : 3rem ;
340
- margin-bottom : 3.5rem ; }
425
+ margin-bottom : 3.5rem ;
426
+ position : relative;
427
+ overflow : hidden; }
428
+ @media only screen and (max-width : 56.25em ) {
429
+ .review {
430
+ margin-bottom : 3rem ;
431
+ padding : 2rem ; } }
341
432
.review__text {
342
- margin-bottom : 2rem ; }
433
+ margin-bottom : 2rem ;
434
+ z-index : 10 ;
435
+ position : relative; }
343
436
.review__user {
344
437
display : flex;
345
438
align-items : center; }
@@ -363,4 +456,57 @@ body {
363
456
font-size : 2.2rem ;
364
457
font-weight : 300 ; }
365
458
.review ::before {
366
- content : "" ; }
459
+ content : "\201C" ;
460
+ position : absolute;
461
+ top : -2rem ;
462
+ left : -1rem ;
463
+ font-size : 20rem ;
464
+ color : var (--color-grey-light-2 );
465
+ font-family : sans-serif;
466
+ line-height : 1 ;
467
+ z-index : 1 ; }
468
+
469
+ .cta {
470
+ padding : 3.5rem 0 ;
471
+ text-align : center; }
472
+ @media only screen and (max-width : 56.25em ) {
473
+ .cta {
474
+ padding : 2.5rem 0 ; } }
475
+ .cta__book-now {
476
+ font-size : 2rem ;
477
+ font-weight : 300 ;
478
+ text-transform : uppercase;
479
+ margin-bottom : 1.5rem ; }
480
+
481
+ .btn {
482
+ font-size : 1.5rem ;
483
+ border : none;
484
+ font-weight : 300 ;
485
+ text-transform : uppercase;
486
+ border-radius : 100px ;
487
+ background-image : linear-gradient (to right bottom, var (--color-primary-light ), var (--color-primary-dark ));
488
+ color : # fff ;
489
+ position : relative;
490
+ overflow : hidden;
491
+ cursor : pointer; }
492
+ .btn > * {
493
+ height : 100% ;
494
+ width : 100% ;
495
+ display : inline-block;
496
+ transition : all 0.2s ; }
497
+ .btn__visible {
498
+ padding : 2rem 7.5rem ; }
499
+ .btn__invisible {
500
+ position : absolute;
501
+ padding : 2rem 0rem ;
502
+ left : 0 ;
503
+ top : -100% ; }
504
+ .btn : hover {
505
+ background-image : linear-gradient (to right bottom, var (--color-primary-light ), var (--color-primary-dark )); }
506
+ .btn : hover .btn__visible {
507
+ transform : translateY (100% ); }
508
+ .btn : hover .btn__invisible {
509
+ top : 0 ; }
510
+ .btn : focus {
511
+ outline : none;
512
+ animation : pulsate 1s infinite; }
0 commit comments