variables.css 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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. my{
  43. display: none;
  44. }
  45. roman{
  46. display: none;
  47. }
  48. han{
  49. display: none;
  50. }
  51. .tai tai{
  52. font-weight: bolder;
  53. display: block;
  54. }
  55. .my my{
  56. font-weight: bolder;
  57. display: block;
  58. }
  59. .roman roman{
  60. font-weight: bolder;
  61. display: block;
  62. /*font-size: 1.8rem;*/
  63. }
  64. .han han{
  65. /*font-weight: bolder;*/
  66. display: block;
  67. }
  68. .zh zh{
  69. /*font-weight: bolder;*/
  70. display: block;
  71. margin-bottom: 1rem;
  72. }
  73. .all tai{
  74. display: block;
  75. }
  76. .all roman{
  77. display: block;
  78. }
  79. .all zh{
  80. display: block;
  81. margin-bottom: 1rem;
  82. }
  83. @media (prefers-color-scheme: dark) {
  84. .all.no-js {
  85. --bg: hsl(200, 7%, 8%);
  86. --fg: #98a3ad;
  87. --sidebar-bg: #292c2f;
  88. --sidebar-fg: #a1adb8;
  89. --sidebar-non-existant: #505254;
  90. --sidebar-active: #3473ad;
  91. --sidebar-spacer: #393939;
  92. --scrollbar: var(--sidebar-fg);
  93. --icons: #43484d;
  94. --icons-hover: #b3c0cc;
  95. --links: #2b79a2;
  96. --inline-code-color: #c5c8c6;
  97. --theme-popup-bg: #141617;
  98. --theme-popup-border: #43484d;
  99. --theme-hover: #1f2124;
  100. --quote-bg: hsl(234, 21%, 18%);
  101. --quote-border: hsl(234, 21%, 23%);
  102. --table-border-color: hsl(200, 7%, 13%);
  103. --table-header-bg: hsl(200, 7%, 28%);
  104. --table-alternate-bg: hsl(200, 7%, 11%);
  105. --searchbar-border-color: #aaa;
  106. --searchbar-bg: #b7b7b7;
  107. --searchbar-fg: #000;
  108. --searchbar-shadow-color: #aaa;
  109. --searchresults-header-fg: #666;
  110. --searchresults-border-color: #98a3ad;
  111. --searchresults-li-bg: #2b2b2f;
  112. --search-mark-bg: #355c7d;
  113. }
  114. }