|
250 | 250 | fill: rgba(255,255,255,.7); |
251 | 251 | } |
252 | 252 |
|
| 253 | +/* ── Sidebar: highlight the currently opened note/page ── */ |
| 254 | +.md-sidebar--primary a.md-nav__link.md-nav__link--active, |
| 255 | +.md-sidebar--primary label.md-nav__link.md-nav__link--active[for="__toc"] { |
| 256 | + margin: 0.12rem 0; |
| 257 | + padding: 0.32rem 0.55rem 0.32rem 0.7rem; |
| 258 | + border-radius: 6px; |
| 259 | + background: rgba(124, 77, 255, 0.1); |
| 260 | + box-shadow: inset 3px 0 0 var(--md-accent-fg-color); |
| 261 | + color: var(--md-accent-fg-color) !important; |
| 262 | + font-weight: 700; |
| 263 | +} |
| 264 | + |
| 265 | +.md-sidebar--primary a.md-nav__link.md-nav__link--active .md-ellipsis, |
| 266 | +.md-sidebar--primary label.md-nav__link.md-nav__link--active[for="__toc"] .md-ellipsis { |
| 267 | + color: inherit; |
| 268 | +} |
| 269 | + |
| 270 | +.md-sidebar--primary a.md-nav__link.md-nav__link--active:hover, |
| 271 | +.md-sidebar--primary label.md-nav__link.md-nav__link--active[for="__toc"]:hover { |
| 272 | + background: rgba(124, 77, 255, 0.16); |
| 273 | +} |
| 274 | + |
| 275 | +[data-md-color-scheme="slate"] .md-sidebar--primary a.md-nav__link.md-nav__link--active, |
| 276 | +[data-md-color-scheme="slate"] .md-sidebar--primary label.md-nav__link.md-nav__link--active[for="__toc"] { |
| 277 | + background: rgba(167, 139, 250, 0.16); |
| 278 | + color: rgba(255, 255, 255, 0.95) !important; |
| 279 | +} |
| 280 | + |
| 281 | +[data-md-color-scheme="slate"] .md-sidebar--primary a.md-nav__link.md-nav__link--active:hover, |
| 282 | +[data-md-color-scheme="slate"] .md-sidebar--primary label.md-nav__link.md-nav__link--active[for="__toc"]:hover { |
| 283 | + background: rgba(167, 139, 250, 0.22); |
| 284 | +} |
| 285 | + |
253 | 286 | /* ── Paper metadata: make arXiv/code links stand out ── */ |
254 | 287 | .md-content a[href*="arxiv.org"], |
255 | 288 | .md-content a[href*="github.com"], |
|
0 commit comments