variables.css 2.6 KB

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