|
504 | 504 | margin: .8em 0; |
505 | 505 | border-collapse: collapse; |
506 | 506 | width: 100%; |
507 | | - border: 1px solid var(--pywry-table-border); |
| 507 | + border: 1px solid var(--pywry-table-border) !important; |
508 | 508 | border-radius: 6px; |
509 | 509 | overflow: hidden; |
510 | 510 | } |
511 | 511 |
|
512 | 512 | .md-typeset table th, |
513 | 513 | .md-typeset table td { |
514 | | - padding: .6em .85em; |
515 | | - border: 1px solid var(--pywry-table-border); |
| 514 | + padding: .6em .85em !important; |
| 515 | + border: 1px solid var(--pywry-table-border) !important; |
516 | 516 | } |
517 | 517 |
|
518 | | -.md-typeset table th { |
| 518 | +/* ── Dark scheme tables ── */ |
| 519 | +[data-md-color-scheme="slate"] .md-typeset table:not([class]) th, |
| 520 | +[data-md-color-scheme="slate"] .md-typeset table th { |
519 | 521 | font-weight: 600; |
520 | 522 | text-transform: uppercase; |
521 | 523 | font-size: .72rem; |
522 | 524 | letter-spacing: .04em; |
523 | | - background: var(--pywry-table-header-bg); |
524 | | - color: var(--pywry-table-header-fg); |
| 525 | + background-color: #282c3e !important; |
| 526 | + color: #c8c8d4 !important; |
525 | 527 | } |
526 | 528 |
|
527 | | -.md-typeset table td { |
528 | | - background: var(--pywry-table-row-bg); |
| 529 | +[data-md-color-scheme="slate"] .md-typeset table:not([class]) td, |
| 530 | +[data-md-color-scheme="slate"] .md-typeset table td { |
| 531 | + background-color: #1e2130 !important; |
| 532 | +} |
| 533 | + |
| 534 | +[data-md-color-scheme="slate"] .md-typeset table:not([class]) tbody tr:nth-child(even) td, |
| 535 | +[data-md-color-scheme="slate"] .md-typeset table tbody tr:nth-child(even) td { |
| 536 | + background-color: #232636 !important; |
| 537 | +} |
| 538 | + |
| 539 | +[data-md-color-scheme="slate"] .md-typeset table:not([class]) tbody tr:hover td, |
| 540 | +[data-md-color-scheme="slate"] .md-typeset table tbody tr:hover td { |
| 541 | + background-color: rgba(71,200,219,.12) !important; |
| 542 | +} |
| 543 | + |
| 544 | +/* ── Light scheme tables ── */ |
| 545 | +[data-md-color-scheme="default"] .md-typeset table:not([class]) th, |
| 546 | +[data-md-color-scheme="default"] .md-typeset table th { |
| 547 | + font-weight: 600; |
| 548 | + text-transform: uppercase; |
| 549 | + font-size: .72rem; |
| 550 | + letter-spacing: .04em; |
| 551 | + background-color: #e2e4ec !important; |
| 552 | + color: #1e293b !important; |
| 553 | +} |
| 554 | + |
| 555 | +[data-md-color-scheme="default"] .md-typeset table:not([class]) td, |
| 556 | +[data-md-color-scheme="default"] .md-typeset table td { |
| 557 | + background-color: #ffffff !important; |
529 | 558 | } |
530 | 559 |
|
531 | | -.md-typeset table tbody tr:nth-child(even) td { |
532 | | - background: var(--pywry-table-row-alt-bg); |
| 560 | +[data-md-color-scheme="default"] .md-typeset table:not([class]) tbody tr:nth-child(even) td, |
| 561 | +[data-md-color-scheme="default"] .md-typeset table tbody tr:nth-child(even) td { |
| 562 | + background-color: #f4f5f9 !important; |
533 | 563 | } |
534 | 564 |
|
535 | | -.md-typeset table tbody tr:hover td { |
536 | | - background: var(--pywry-table-row-hover-bg); |
| 565 | +[data-md-color-scheme="default"] .md-typeset table:not([class]) tbody tr:hover td, |
| 566 | +[data-md-color-scheme="default"] .md-typeset table tbody tr:hover td { |
| 567 | + background-color: rgba(8,145,178,.08) !important; |
537 | 568 | } |
538 | 569 |
|
539 | 570 | /* ================================================================= |
|
0 commit comments