style.css 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* Table format like GitHub ----------------------------------------------------------------------------------------- */
  2. th, td {
  3. border: 1px solid var(--md-typeset-table-color);
  4. border-spacing: 0;
  5. border-bottom: none;
  6. border-left: none;
  7. border-top: none;
  8. }
  9. .md-typeset__table {
  10. line-height: 1;
  11. }
  12. .md-typeset__table table:not([class]) {
  13. font-size: .74rem;
  14. border-right: none;
  15. }
  16. .md-typeset__table table:not([class]) td,
  17. .md-typeset__table table:not([class]) th {
  18. padding: 9px;
  19. }
  20. /* light mode alternating table bg colors */
  21. .md-typeset__table tr:nth-child(2n) {
  22. background-color: #f8f8f8;
  23. }
  24. /* dark mode alternating table bg colors */
  25. [data-md-color-scheme="slate"] .md-typeset__table tr:nth-child(2n) {
  26. background-color: hsla(var(--md-hue),25%,25%,1)
  27. }
  28. /* Table format like GitHub ----------------------------------------------------------------------------------------- */
  29. /* Code block vertical scroll */
  30. div.highlight {
  31. max-height: 20rem;
  32. overflow-y: auto; /* for adding a scrollbar when needed */
  33. }