Skip to content

Commit e652674

Browse files
committed
fix: mobile nav banner not visible due top-banner-bg
1 parent d863569 commit e652674

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

Diff for: src/website/top-banner.js

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ export function TopBanner() {
33
document
44
.querySelector(".close-top-banner")
55
.addEventListener("click", () => {
6+
document.querySelector(".top-banner-bg").classList.add("closed");
67
document.querySelector(".top-banner").classList.add("closed");
78
document.querySelector(".top-banner-spacer").classList.add("hide");
89
document.querySelector(".navbar").classList.remove("top-banner-open");

Diff for: stylus/website/index.styl

+8
Original file line numberDiff line numberDiff line change
@@ -1848,6 +1848,14 @@ footer {
18481848
width: 100%;
18491849
height: 48px;
18501850
z-index: 100;
1851+
1852+
&.closed {
1853+
visibility: hidden;
1854+
height: 0;
1855+
opacity: 0;
1856+
padding: 0;
1857+
transition: all 0.1s linear;
1858+
}
18511859
}
18521860

18531861
.top-banner {

0 commit comments

Comments
 (0)