Skip to content

Commit c34d141

Browse files
committed
testing change
1 parent dd51171 commit c34d141

File tree

1 file changed

+31
-5
lines changed

1 file changed

+31
-5
lines changed

custom-implementation/src/main.css

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,39 @@
1717
display: block; /* Show the wrapper on screens larger than 1024px */
1818
}
1919
}
20-
20+
/* Fix header overlap and sidebar height issues */
2121
.fern-sidebar-container {
22-
top: 60px; /* Adjust to your header height */
23-
height: calc(100vh - 60px); /* Subtract header height from full viewport */
22+
position: fixed;
23+
top: 60px; /* Your header height */
24+
bottom: 60px; /* Your footer height */
25+
height: calc(100vh - 120px); /* Viewport minus header and footer */
26+
overflow-y: auto;
27+
z-index: 50; /* Lower than header */
2428
}
2529

26-
/* Also push the main content down */
2730
.fern-main {
28-
margin-top: 60px; /* Adjust to your header height */
31+
margin-top: 60px; /* Header height */
32+
margin-bottom: 60px; /* Footer height if footer is fixed */
33+
}
34+
35+
/* Ensure header is properly positioned */
36+
.custom-header {
37+
position: fixed;
38+
top: 0;
39+
left: 0;
40+
right: 0;
41+
height: 60px; /* Set explicit height */
42+
z-index: 60;
43+
background: white; /* Prevent content showing through */
44+
}
45+
46+
/* Ensure footer is properly positioned */
47+
.custom-footer {
48+
position: fixed;
49+
bottom: 0;
50+
left: 0;
51+
right: 0;
52+
height: 60px; /* Set explicit height */
53+
z-index: 50;
54+
background: white;
2955
}

0 commit comments

Comments
 (0)