|
357 | 357 |
|
358 | 358 | /* ===== DOCUSAURUS DOCUMENTATION PAGES DARK THEME ===== */ |
359 | 359 |
|
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 *) { |
362 | 362 | background-color: var(--dark-bg-primary) !important; |
363 | 363 | color: var(--dark-text-primary) !important; |
364 | 364 | } |
365 | 365 |
|
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 *) { |
367 | 367 | background-color: var(--dark-bg-primary) !important; |
368 | 368 | } |
369 | 369 |
|
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 *) { |
372 | 372 | background-color: var(--dark-bg-primary) !important; |
373 | 373 | } |
374 | 374 |
|
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 *) { |
376 | 376 | background-color: var(--dark-bg-primary) !important; |
377 | 377 | } |
378 | 378 |
|
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 *) { |
380 | 380 | background-color: var(--dark-bg-primary) !important; |
381 | 381 | } |
382 | 382 |
|
@@ -812,3 +812,38 @@ html { |
812 | 812 | color: inherit; |
813 | 813 | } |
814 | 814 |
|
| 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