variables.css 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. /* Globals */
  2. :root {
  3. --sidebar-width: min(300px,50vw);
  4. --anchorbar-width: max(-300px,-50vw);
  5. --page-padding: 15px;
  6. --content-max-width: 750px;
  7. --menu-bar-height: 50px;
  8. }
  9. /* Themes */
  10. .light,.all,.tai,.roman,.han,.zh{
  11. --bg: hsl(0, 0%, 100%);
  12. --fg: hsl(0, 0%, 0%);
  13. --sidebar-bg: #fafafa;
  14. --sidebar-fg: hsl(0, 0%, 0%);
  15. --sidebar-non-existant: #aaaaaa;
  16. --sidebar-active: #1f1fff;
  17. --sidebar-spacer: #f4f4f4;
  18. --scrollbar: #8F8F8F;
  19. --icons: #747474;
  20. --icons-hover: #000000;
  21. --links: #20609f;
  22. --inline-code-color: #301900;
  23. --theme-popup-bg: #fafafa;
  24. --theme-popup-border: #cccccc;
  25. --theme-hover: #e6e6e6;
  26. --quote-bg: hsl(197, 37%, 96%);
  27. --quote-border: hsl(197, 37%, 91%);
  28. --table-border-color: hsl(0, 0%, 95%);
  29. --table-header-bg: hsl(0, 0%, 80%);
  30. --table-alternate-bg: hsl(0, 0%, 97%);
  31. --searchbar-border-color: #aaa;
  32. --searchbar-bg: #fafafa;
  33. --searchbar-fg: #000;
  34. --searchbar-shadow-color: #aaa;
  35. --searchresults-header-fg: #666;
  36. --searchresults-border-color: #888;
  37. --searchresults-li-bg: #e4f2fe;
  38. --search-mark-bg: #a2cff5;
  39. }
  40. tai{
  41. display: none;
  42. }
  43. roman{
  44. display: none;
  45. }
  46. han{
  47. display: none;
  48. }
  49. .tai tai{
  50. font-weight: bolder;
  51. display: block;
  52. }
  53. .roman roman{
  54. font-weight: bolder;
  55. display: block;
  56. font-size: 1.8rem;
  57. }
  58. .han han{
  59. font-weight: bolder;
  60. display: block;
  61. }
  62. .zh zh{
  63. font-weight: bolder;
  64. display: block;
  65. margin-bottom: 1rem;
  66. }
  67. .all tai{
  68. display: block;
  69. }
  70. .all roman{
  71. display: block;
  72. }
  73. .all zh{
  74. display: block;
  75. margin-bottom: 1rem;
  76. }
  77. @media (prefers-color-scheme: dark) {
  78. .all.no-js {
  79. --bg: hsl(200, 7%, 8%);
  80. --fg: #98a3ad;
  81. --sidebar-bg: #292c2f;
  82. --sidebar-fg: #a1adb8;
  83. --sidebar-non-existant: #505254;
  84. --sidebar-active: #3473ad;
  85. --sidebar-spacer: #393939;
  86. --scrollbar: var(--sidebar-fg);
  87. --icons: #43484d;
  88. --icons-hover: #b3c0cc;
  89. --links: #2b79a2;
  90. --inline-code-color: #c5c8c6;
  91. --theme-popup-bg: #141617;
  92. --theme-popup-border: #43484d;
  93. --theme-hover: #1f2124;
  94. --quote-bg: hsl(234, 21%, 18%);
  95. --quote-border: hsl(234, 21%, 23%);
  96. --table-border-color: hsl(200, 7%, 13%);
  97. --table-header-bg: hsl(200, 7%, 28%);
  98. --table-alternate-bg: hsl(200, 7%, 11%);
  99. --searchbar-border-color: #aaa;
  100. --searchbar-bg: #b7b7b7;
  101. --searchbar-fg: #000;
  102. --searchbar-shadow-color: #aaa;
  103. --searchresults-header-fg: #666;
  104. --searchresults-border-color: #98a3ad;
  105. --searchresults-li-bg: #2b2b2f;
  106. --search-mark-bg: #355c7d;
  107. }
  108. }