Skip to content

Commit ac02ac3

Browse files
committed
random bug
1 parent 0937127 commit ac02ac3

File tree

1 file changed

+19
-11
lines changed

1 file changed

+19
-11
lines changed

css/style.css

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ body {
1717
background: #f8fafc;
1818

1919
}
20+
html, body {
21+
width: 100%;
22+
max-width: 100%;
23+
overflow-x: hidden !important;
24+
}
25+
2026

2127
body.menu-open {
2228
overflow: hidden;
@@ -430,22 +436,28 @@ footer {
430436
top: 0;
431437
right: 0;
432438

433-
width: min(320px, 85vw);
434-
height: 100dvh;
439+
width: 85vw;
440+
max-width: 320px;
441+
height: 100vh;
435442

436443
background: rgba(15, 23, 42, 0.92);
437444
backdrop-filter: blur(16px);
438445

439446
display: flex;
440447
flex-direction: column;
441-
justify-content: flex-start;
442-
padding-top: 76px;
448+
padding-top: 88px;
443449

444-
transform: translateX(100%);
450+
transform: translate3d(100%, 0, 0);
445451
transition: transform 0.35s ease;
446452

453+
overflow-x: hidden; /* 🔥 IMPORTANT */
454+
box-sizing: border-box;
455+
447456
z-index: 1000;
448-
box-shadow: -18px 0 40px rgba(0, 0, 0, 0.45);
457+
}
458+
459+
.nav-links.open {
460+
transform: translate3d(0, 0, 0);
449461
}
450462

451463
/* DIVIDER BELOW BRAND AREA */
@@ -457,11 +469,7 @@ footer {
457469
right: 24px;
458470
height: 1px;
459471
background: rgba(255, 255, 255, 0.08);
460-
}
461-
462-
.nav-links.open {
463-
transform: translateX(0);
464-
}
472+
}
465473

466474
.nav-links li {
467475
text-align: center;

0 commit comments

Comments
 (0)