1
0

_base_dark.scss 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. @mixin base_dark {
  2. color: $fg-color-dark;
  3. background-color: $bg-color-dark;
  4. a {
  5. color: $link-color-dark;
  6. }
  7. h1,
  8. h2,
  9. h3,
  10. h4,
  11. h5,
  12. h6 {
  13. color: $alt-fg-color-dark;
  14. &:hover .heading-link {
  15. visibility: visible;
  16. }
  17. .heading-link {
  18. color: $link-color-dark;
  19. font-weight: inherit;
  20. text-decoration: none;
  21. font-size: 80%;
  22. visibility: hidden;
  23. }
  24. .title-link {
  25. color: inherit;
  26. font-weight: inherit;
  27. text-decoration: none;
  28. }
  29. }
  30. code {
  31. background-color: $alt-bg-color-dark;
  32. color: $fg-color-dark;
  33. }
  34. // fix color schemes which do not explicitly set fg-color
  35. .highlight {
  36. pre {
  37. color: $fg-color;
  38. }
  39. }
  40. pre {
  41. code {
  42. background-color: inherit;
  43. color: inherit;
  44. }
  45. }
  46. blockquote {
  47. border-left: 2px solid $alt-bg-color-dark;
  48. }
  49. th,
  50. td {
  51. padding: 1.6rem;
  52. }
  53. table {
  54. border-collapse: collapse;
  55. }
  56. table td,
  57. table th {
  58. border: 2px solid $alt-fg-color-dark;
  59. }
  60. table tr:first-child th {
  61. border-top: 0;
  62. }
  63. table tr:last-child td {
  64. border-bottom: 0;
  65. }
  66. table tr td:first-child,
  67. table tr th:first-child {
  68. border-left: 0;
  69. }
  70. table tr td:last-child,
  71. table tr th:last-child {
  72. border-right: 0;
  73. }
  74. }
  75. body.colorscheme-dark {
  76. @include base_dark();
  77. }
  78. body.colorscheme-auto {
  79. @media (prefers-color-scheme: dark) {
  80. @include base_dark();
  81. }
  82. }