Skip to content

Commit 3b8a9d6

Browse files
authored
Merge pull request #286 from Richajaishwal0/main
fixed footer
2 parents 079c41e + 2f13ba5 commit 3b8a9d6

File tree

2 files changed

+43
-8
lines changed

2 files changed

+43
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"dotenv": "^16.5.0",
3939
"embla-carousel-autoplay": "^8.6.0",
4040
"embla-carousel-react": "^8.6.0",
41-
"firebase": "^9.22.2",
41+
"firebase": "^12.1.0",
4242
"firebaseui": "6.1.0",
4343
"framer-motion": "^12.7.5",
4444
"lucide-react": "^0.503.0",

src/css/custom.css

Lines changed: 42 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -357,26 +357,26 @@
357357

358358
/* ===== DOCUSAURUS DOCUMENTATION PAGES DARK THEME ===== */
359359

360-
/* Main documentation layout - EXCLUDE community page */
361-
[data-theme='dark'] body:not(:has(.community-page)) .main-wrapper {
360+
/* Main documentation layout - EXCLUDE community page AND footer */
361+
[data-theme='dark'] body:not(:has(.community-page)) .main-wrapper:not(.enhanced-footer *) {
362362
background-color: var(--dark-bg-primary) !important;
363363
color: var(--dark-text-primary) !important;
364364
}
365365

366-
[data-theme='dark'] body:not(:has(.community-page)) .docusaurus-wrapper {
366+
[data-theme='dark'] body:not(:has(.community-page)) .docusaurus-wrapper:not(.enhanced-footer *) {
367367
background-color: var(--dark-bg-primary) !important;
368368
}
369369

370-
/* Documentation content area - EXCLUDE community page */
371-
[data-theme='dark'] body:not(:has(.community-page)) .container {
370+
/* Documentation content area - EXCLUDE community page AND footer */
371+
[data-theme='dark'] body:not(:has(.community-page)) .container:not(.enhanced-footer .container):not(.enhanced-footer *) {
372372
background-color: var(--dark-bg-primary) !important;
373373
}
374374

375-
[data-theme='dark'] body:not(:has(.community-page)) .row {
375+
[data-theme='dark'] body:not(:has(.community-page)) .row:not(.enhanced-footer .row):not(.enhanced-footer *) {
376376
background-color: var(--dark-bg-primary) !important;
377377
}
378378

379-
[data-theme='dark'] body:not(:has(.community-page)) .col {
379+
[data-theme='dark'] body:not(:has(.community-page)) .col:not(.enhanced-footer .col):not(.enhanced-footer *) {
380380
background-color: var(--dark-bg-primary) !important;
381381
}
382382

@@ -812,3 +812,38 @@ html {
812812
color: inherit;
813813
}
814814

815+
/* ===== FOOTER PROTECTION FROM GLOBAL THEME OVERRIDES ===== */
816+
/* Prevent ANY global dark theme styles from affecting the enhanced footer */
817+
818+
/* Override any global container/wrapper styles that might affect footer */
819+
[data-theme='dark'] .enhanced-footer,
820+
[data-theme='dark'] .enhanced-footer *,
821+
[data-theme='dark'] .enhanced-footer .container,
822+
[data-theme='dark'] .enhanced-footer .row,
823+
[data-theme='dark'] .enhanced-footer .col,
824+
[data-theme='dark'] .enhanced-footer div,
825+
[data-theme='dark'] .enhanced-footer section {
826+
background-color: transparent !important;
827+
}
828+
829+
/* Ensure footer maintains its gradient background regardless of global styles */
830+
[data-theme='dark'] .enhanced-footer {
831+
background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 25%, #16213e 50%, #0f3460 75%, #533483 100%) !important;
832+
color: #e2e8f0 !important;
833+
}
834+
835+
/* Force footer sections to maintain their intended backgrounds */
836+
[data-theme='dark'] .enhanced-footer .footer-links-section {
837+
background: rgba(0, 0, 0, 0.15) !important;
838+
}
839+
840+
[data-theme='dark'] .enhanced-footer .footer-bottom {
841+
background: rgba(0, 0, 0, 0.2) !important;
842+
}
843+
844+
/* Prevent global text color overrides */
845+
[data-theme='dark'] .enhanced-footer,
846+
[data-theme='dark'] .enhanced-footer * {
847+
color: inherit !important;
848+
}
849+

0 commit comments

Comments
 (0)