_base_dark.scss 1.1 KB

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