1
0

_base_dark.scss 1.3 KB

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