Skip to content

Commit 23c0674

Browse files
committed
fixed the layering of CSS elements
1 parent 6e2ce53 commit 23c0674

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/styles/App.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,18 @@ p {
3131
.nav-left {
3232
flex: 1;
3333
padding-left: 30px;
34+
z-index: 1000; /* Add this line to ensure the nav bar stays on top */
3435
}
3536

3637
.nav-center {
3738
flex: 0 1 0;
39+
z-index: 1000; /* Add this line to ensure the nav bar stays on top */
3840
}
3941

4042
.nav-right {
4143
flex: 1;
4244
padding-right: 30px;
45+
z-index: 1000; /* Add this line to ensure the nav bar stays on top */
4346
}
4447

4548
section {
@@ -60,6 +63,7 @@ nav {
6063
position: fixed;
6164
width: 100vw;
6265
background-color: rgba(0, 0, 0, 0.1);
66+
z-index: 999; /* Add this line to ensure the nav bar stays on top */
6367
}
6468

6569
.nav-tab {

src/styles/output.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -646,15 +646,21 @@ p {
646646
.nav-left {
647647
flex: 1;
648648
padding-left: 30px;
649+
z-index: 1000;
650+
/* Add this line to ensure the nav bar stays on top */
649651
}
650652

651653
.nav-center {
652654
flex: 0 1 0;
655+
z-index: 1000;
656+
/* Add this line to ensure the nav bar stays on top */
653657
}
654658

655659
.nav-right {
656660
flex: 1;
657661
padding-right: 30px;
662+
z-index: 1000;
663+
/* Add this line to ensure the nav bar stays on top */
658664
}
659665

660666
section {
@@ -675,6 +681,8 @@ nav {
675681
position: fixed;
676682
width: 100vw;
677683
background-color: rgba(0, 0, 0, 0.1);
684+
z-index: 999;
685+
/* Add this line to ensure the nav bar stays on top */
678686
}
679687

680688
.nav-tab {

0 commit comments

Comments
 (0)