File tree Expand file tree Collapse file tree 2 files changed +53
-52
lines changed
starter/07-Omnifood-Desktop Expand file tree Collapse file tree 2 files changed +53
-52
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,9 @@ font size in html media queries
126
126
127
127
/* MOBILE NAVIGATION */
128
128
.main-nav {
129
- background-color : rgb (255 , 255 , 255 , 0.97 );
129
+ background-color : rgb (255 , 255 , 255 , 0.9 );
130
+ backdrop-filter : blur (5px );
131
+ -webkit-backdrop-filter : blur (5px );
130
132
position : absolute;
131
133
top : 0 ;
132
134
/* We use tranform before it is more performant */
@@ -289,3 +291,53 @@ font size in html media queries
289
291
grid-row : 1 ;
290
292
}
291
293
}
294
+
295
+ /* Fixing Safary Flexbox gap */
296
+ .no-flexbox-gap .main-nav-list li : not (: last-child ) {
297
+ margin-right : 4.8rem ;
298
+ }
299
+
300
+ .no-flexbox-gap .list-item : not (: last-child ) {
301
+ margin-bottom : 1.6rem ;
302
+ }
303
+
304
+ .no-flexbox-gap .list-icon : not (: last-child ) {
305
+ margin-right : 1.6rem ;
306
+ }
307
+
308
+ .no-flexbox-gap .delivered-faces {
309
+ margin-right : 1.6rem ;
310
+ }
311
+
312
+ .no-flexbox-gap .meal-attribute : not (: last-child ) {
313
+ margin-bottom : 2rem ;
314
+ }
315
+
316
+ .no-flexbox-gap .meal-icon {
317
+ margin-right : 1.6rem ;
318
+ }
319
+
320
+ .no-flexbox-gap .footer-row div : not (: last-child ) {
321
+ margin-right : 6.4rem ;
322
+ }
323
+
324
+ .no-flexbox-gap .social-links li : not (: last-child ) {
325
+ margin-right : 2.4rem ;
326
+ }
327
+
328
+ .no-flexbox-gap .footer-nav li : not (: last-child ) {
329
+ margin-bottom : 2.4rem ;
330
+ }
331
+
332
+ @media (max-width : 75em ) {
333
+ .no-flexbox-gap .main-nav-list li : not (: last-child ) {
334
+ margin-right : 3.2rem ;
335
+ }
336
+ }
337
+
338
+ @media (max-width : 59em ) {
339
+ .no-flexbox-gap .main-nav-list li : not (: last-child ) {
340
+ margin-right : 0 ;
341
+ margin-bottom : 4.8rem ;
342
+ }
343
+ }
Original file line number Diff line number Diff line change @@ -75,54 +75,3 @@ function checkFlexGap() {
75
75
if ( ! isSupported ) document . body . classList . add ( "no-flexbox-gap" ) ;
76
76
}
77
77
checkFlexGap ( ) ;
78
-
79
- /*
80
- .no-flexbox-gap .main-nav-list li:not(:last-child) {
81
- margin-right: 4.8rem;
82
- }
83
-
84
- .no-flexbox-gap .list-item:not(:last-child) {
85
- margin-bottom: 1.6rem;
86
- }
87
-
88
- .no-flexbox-gap .list-icon:not(:last-child) {
89
- margin-right: 1.6rem;
90
- }
91
-
92
- .no-flexbox-gap .delivered-faces {
93
- margin-right: 1.6rem;
94
- }
95
-
96
- .no-flexbox-gap .meal-attribute:not(:last-child) {
97
- margin-bottom: 2rem;
98
- }
99
-
100
- .no-flexbox-gap .meal-icon {
101
- margin-right: 1.6rem;
102
- }
103
-
104
- .no-flexbox-gap .footer-row div:not(:last-child) {
105
- margin-right: 6.4rem;
106
- }
107
-
108
- .no-flexbox-gap .social-links li:not(:last-child) {
109
- margin-right: 2.4rem;
110
- }
111
-
112
- .no-flexbox-gap .footer-nav li:not(:last-child) {
113
- margin-bottom: 2.4rem;
114
- }
115
-
116
- @media (max-width: 75em) {
117
- .no-flexbox-gap .main-nav-list li:not(:last-child) {
118
- margin-right: 3.2rem;
119
- }
120
- }
121
-
122
- @media (max-width: 59em) {
123
- .no-flexbox-gap .main-nav-list li:not(:last-child) {
124
- margin-right: 0;
125
- margin-bottom: 4.8rem;
126
- }
127
- }
128
- */
You can’t perform that action at this time.
0 commit comments