File tree Expand file tree Collapse file tree 2 files changed +19
-11
lines changed
Expand file tree Collapse file tree 2 files changed +19
-11
lines changed Original file line number Diff line number Diff line change 1-
21: root {
32 --bg : # 0a0a0a ;
43 --card : # 1a1a1a ;
2019* {
2120 box-sizing : border-box;
2221}
23- html ,
24- body ,
25- # content {
22+ html {
2623 height : 100% ;
2724}
2825body {
@@ -34,11 +31,13 @@ body {
3431 -moz-osx-font-smoothing : grayscale;
3532 font-size : 16px ;
3633 line-height : 1.7 ;
34+ position : relative;
35+ min-height : 100vh ;
36+ padding-bottom : 150px ; /* Footer height */
3737}
3838
3939.site {
4040 display : flex;
41- min-height : 100vh ;
4241}
4342
4443@media (max-width : 900px ) {
@@ -163,8 +162,8 @@ body {
163162 flex-direction : column;
164163 gap : 20px ;
165164 position : sticky;
166- top : 0 ;
167- height : 100vh ;
165+ top : 65 px ; /* Match navbar height */
166+ height : calc ( 100vh - 65 px ) ;
168167 overflow : auto;
169168}
170169.sidebar .collapsed {
@@ -310,7 +309,6 @@ body {
310309}
311310
312311.content {
313- flex : 1 ;
314312 padding : 48px ;
315313 display : flex;
316314 justify-content : center;
@@ -426,8 +424,18 @@ mark {
426424}
427425
428426.site-footer {
427+ padding : 12px 12px ;
428+ border-top : 1px solid var (--card );
429+ margin-top : 10px ;
430+ text-align : center;
431+ color : var (--muted );
432+ }
433+
434+ .site-footer-projects {
435+ position : absolute;
436+ bottom : 0 ;
437+ width : 100% ;
429438 padding : 48px 24px ;
430- margin-top : 64px ;
431439 border-top : 1px solid var (--card );
432440 text-align : center;
433441 color : var (--muted );
@@ -496,4 +504,4 @@ mark {
496504
497505[data-theme = 'light' ] .footer-links a : hover {
498506 color : var (--accent );
499- }
507+ }
Original file line number Diff line number Diff line change @@ -223,7 +223,7 @@ <h1>Project Explorer</h1>
223223 </ div >
224224 </ main >
225225
226- < footer class ="site-footer ">
226+ < footer class ="site-footer-project ">
227227 < div class ="footer-inner ">
228228 < div class ="footer-links ">
229229 < a href ="index.html#what-is-hacktoberfest "> Overview</ a >
You can’t perform that action at this time.
0 commit comments