|
| 1 | +/* Global Overrides for Premium Feel */ |
| 2 | +body { |
| 3 | + background-color: var(--bg-deep) !important; |
| 4 | + color: var(--text-primary) !important; |
| 5 | + font-family: 'Inter', system-ui, -apple-system, sans-serif; |
| 6 | +} |
| 7 | + |
| 8 | +/* Footer & Extras */ |
| 9 | +footer { |
| 10 | + background: #0b1120 !important; |
| 11 | + border-top: 1px solid var(--glass-border); |
| 12 | +} |
| 13 | + |
| 14 | +/* Sidebar Fixes for Dark Mode */ |
| 15 | +.bd-sidebar-primary, .bd-sidebar-secondary, .bd-toc, .bd-sidebar { |
| 16 | + background: rgba(15, 23, 42, 0.6) !important; /* Semi-transparent dark */ |
| 17 | + backdrop-filter: blur(10px); |
| 18 | + -webkit-backdrop-filter: blur(10px); |
| 19 | + border-right: 1px solid var(--glass-border); |
| 20 | + border-left: 1px solid var(--glass-border); |
| 21 | +} |
| 22 | + |
| 23 | +.bd-sidebar-primary__label, .bd-toc-item.active > .bd-toc-link { |
| 24 | + color: var(--text-primary) !important; |
| 25 | +} |
| 26 | + |
| 27 | +/* Navbar Active State Overrides - NUCLEAR OPTION */ |
| 28 | +/* 1. Force the correct text color and border */ |
| 29 | +.navbar-nav li.active > .nav-link, |
| 30 | +.navbar-nav .nav-link.active, |
| 31 | +.bd-navbar .navbar-nav .nav-link.active, |
| 32 | +.bd-navbar .navbar-nav .nav-link.current, |
| 33 | +.navbar-expand-lg .navbar-nav .nav-link.active { |
| 34 | + color: var(--brand-magenta) !important; |
| 35 | + border-bottom: 3px solid var(--brand-magenta) !important; |
| 36 | + box-shadow: none !important; |
| 37 | + background: transparent !important; |
| 38 | + font-weight: 700 !important; |
| 39 | +} |
| 40 | + |
| 41 | +/* 2. KILL ALL PSEUDO-ELEMENTS that usually create the "other" bar */ |
| 42 | +.navbar-nav li.active > .nav-link::after, |
| 43 | +.navbar-nav .nav-link.active::after, |
| 44 | +.navbar-nav li.active > .nav-link::before, |
| 45 | +.navbar-nav .nav-link.active::before, |
| 46 | +.bd-navbar .nav-item.active > .nav-link::after, |
| 47 | +.bd-navbar .nav-item.active > .nav-link::before { |
| 48 | + display: none !important; |
| 49 | + content: none !important; |
| 50 | + border: none !important; |
| 51 | + height: 0 !important; |
| 52 | + width: 0 !important; |
| 53 | + background: transparent !important; |
| 54 | + opacity: 0 !important; |
| 55 | +} |
| 56 | + |
| 57 | +/* Sidebar Active State Overrides */ |
| 58 | +.bd-sidenav li.active > a, |
| 59 | +.bd-sidenav .current > a, |
| 60 | +.bd-toc .active > a, |
| 61 | +.bd-toc li.active > a { |
| 62 | + color: var(--brand-magenta) !important; |
| 63 | + border-color: var(--brand-magenta) !important; |
| 64 | + background: transparent !important; /* Remove blue background if present */ |
| 65 | + box-shadow: none !important; |
| 66 | +} |
| 67 | + |
| 68 | +/* Left Sidebar Vertical Indicator */ |
| 69 | +.bd-sidenav .current { |
| 70 | + border-left: 2px solid var(--brand-magenta) !important; |
| 71 | + box-shadow: none !important; |
| 72 | +} |
| 73 | + |
| 74 | +/* Handle PyData Theme specific 'active' class on li that might use box-shadow */ |
| 75 | +.bd-sidenav li.active, .bd-sidenav li.current { |
| 76 | + box-shadow: none !important; |
| 77 | + border: none !important; /* prevent double borders on container */ |
| 78 | +} |
| 79 | + |
| 80 | +/* Right Sidebar (TOC) Active Indicator */ |
| 81 | +.bd-toc nav ul li.active > a { |
| 82 | + border-left: 2px solid var(--brand-magenta) !important; |
| 83 | + color: var(--brand-magenta) !important; |
| 84 | + box-shadow: none !important; |
| 85 | +} |
| 86 | + |
| 87 | +/* Scroll Spy Active State (Right Sidebar) */ |
| 88 | +.bd-toc .nav-link.active { |
| 89 | + color: var(--brand-magenta) !important; |
| 90 | + border-left-color: var(--brand-magenta) !important; |
| 91 | + box-shadow: none !important; |
| 92 | +} |
| 93 | + |
| 94 | +/* Fix for potential 'border-inline-start' conflict in some browsers/themes */ |
| 95 | +.bd-sidenav li.active > a, |
| 96 | +.bd-sidenav .current > a { |
| 97 | + border-inline-start: 2px solid var(--brand-magenta) !important; |
| 98 | +} |
| 99 | + |
| 100 | +/* Focus rings/outlines */ |
| 101 | +a:focus, button:focus { |
| 102 | + outline-color: var(--brand-violet) !important; |
| 103 | +} |
| 104 | + |
| 105 | +/* Premium Table Styling */ |
| 106 | +.bd-content table.docutils { |
| 107 | + width: 100%; |
| 108 | + border-collapse: separate; /* Required for rounded corners */ |
| 109 | + border-spacing: 0; |
| 110 | + border-radius: 12px; |
| 111 | + overflow: hidden; |
| 112 | + margin: 2rem 0; |
| 113 | + box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); |
| 114 | + border: 1px solid var(--glass-border); |
| 115 | + background: var(--bg-card); /* Glassmorphism background */ |
| 116 | + backdrop-filter: blur(5px); |
| 117 | +} |
| 118 | + |
| 119 | +.bd-content table.docutils th { |
| 120 | + background: linear-gradient(90deg, #1e1b4b, #312e81); /* Deep Indigo */ |
| 121 | + color: var(--text-primary); |
| 122 | + font-weight: 700; |
| 123 | + padding: 1rem 1.5rem; |
| 124 | + text-align: left; |
| 125 | + border-bottom: 2px solid var(--brand-violet); |
| 126 | + text-transform: uppercase; |
| 127 | + font-size: 0.85rem; |
| 128 | + letter-spacing: 1px; |
| 129 | +} |
| 130 | + |
| 131 | +.bd-content table.docutils td { |
| 132 | + padding: 1rem 1.5rem; |
| 133 | + color: var(--text-secondary); |
| 134 | + border-bottom: 1px solid rgba(255, 255, 255, 0.05); |
| 135 | + vertical-align: middle; |
| 136 | + transition: color 0.2s ease; |
| 137 | +} |
| 138 | + |
| 139 | +.bd-content table.docutils tr:last-child td { |
| 140 | + border-bottom: none; |
| 141 | +} |
| 142 | + |
| 143 | +.bd-content table.docutils tr { |
| 144 | + transition: background-color 0.2s ease; |
| 145 | +} |
| 146 | + |
| 147 | +.bd-content table.docutils tr:hover { |
| 148 | + background-color: rgba(217, 70, 239, 0.05); /* Very subtle magenta tint */ |
| 149 | +} |
| 150 | + |
| 151 | +.bd-content table.docutils tr:hover td { |
| 152 | + color: var(--text-primary); |
| 153 | +} |
| 154 | + |
| 155 | +/* Link styling inside tables */ |
| 156 | +.bd-content table.docutils td a { |
| 157 | + color: var(--brand-violet); |
| 158 | + font-weight: 600; |
| 159 | + text-decoration: none; |
| 160 | + transition: all 0.2s ease; |
| 161 | +} |
| 162 | + |
| 163 | +.bd-content table.docutils td a:hover { |
| 164 | + color: var(--brand-magenta); |
| 165 | + text-shadow: 0 0 10px rgba(217, 70, 239, 0.4); |
| 166 | +} |
0 commit comments