1
0

_base_dark.scss 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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. pre code {
  31. background-color: inherit;
  32. color: inherit;
  33. }
  34. code {
  35. background-color: $lighter-alt-bg-color-dark;
  36. color: $fg-color-dark;
  37. }
  38. blockquote {
  39. border-left: 2px solid $alt-bg-color-dark;
  40. }
  41. th,
  42. td {
  43. padding: 1.6rem;
  44. }
  45. table {
  46. border-collapse: collapse;
  47. }
  48. table td,
  49. table th {
  50. border: 2px solid $alt-fg-color-dark;
  51. }
  52. table tr:first-child th {
  53. border-top: 0;
  54. }
  55. table tr:last-child td {
  56. border-bottom: 0;
  57. }
  58. table tr td:first-child,
  59. table tr th:first-child {
  60. border-left: 0;
  61. }
  62. table tr td:last-child,
  63. table tr th:last-child {
  64. border-right: 0;
  65. }
  66. }
  67. body.colorscheme-dark {
  68. @include base_dark();
  69. }
  70. body.colorscheme-auto {
  71. @media (prefers-color-scheme: dark) {
  72. @include base_dark();
  73. }
  74. }