xess.css 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. :root {
  2. --body-sans-font: Geist, sans-serif;
  3. --body-preformatted-font: Iosevka Curly Iaso, monospace;
  4. --body-title-font: Podkova, serif;
  5. --background: #1d2021;
  6. --text: #f9f5d7;
  7. --text-selection: #d3869b;
  8. --preformatted-background: #3c3836;
  9. --link-foreground: #b16286;
  10. --link-background: #282828;
  11. --blockquote-border-left: 1px solid #bdae93;
  12. --progress-bar-outline: #b16286 solid 4px;
  13. --progress-bar-fill: #b16286;
  14. }
  15. @media (prefers-color-scheme: light) {
  16. :root {
  17. --background: #f9f5d7;
  18. --text: #1d2021;
  19. --text-selection: #d3869b;
  20. --preformatted-background: #ebdbb2;
  21. --link-foreground: #b16286;
  22. --link-background: #fbf1c7;
  23. --blockquote-border-left: 1px solid #655c54;
  24. }
  25. }
  26. @font-face {
  27. font-family: "Geist";
  28. font-style: normal;
  29. font-weight: 100 900;
  30. font-display: swap;
  31. src: url("./static/geist.woff2") format("woff2");
  32. }
  33. @font-face {
  34. font-family: "Podkova";
  35. font-style: normal;
  36. font-weight: 400 800;
  37. font-display: swap;
  38. src: url("./static/podkova.woff2") format("woff2");
  39. }
  40. @font-face {
  41. font-family: "Iosevka Curly";
  42. font-style: monospace;
  43. font-display: swap;
  44. src: url("./static/iosevka-curly.woff2") format("woff2");
  45. }
  46. main {
  47. font-family: var(--body-sans-font);
  48. max-width: 50rem;
  49. padding: 2rem;
  50. margin: auto;
  51. }
  52. ::selection {
  53. background: var(--text-selection);
  54. }
  55. body {
  56. background: var(--background);
  57. color: var(--text);
  58. }
  59. body,
  60. html {
  61. height: 100%;
  62. display: flex;
  63. justify-content: center;
  64. align-items: center;
  65. margin-left: auto;
  66. margin-right: auto;
  67. }
  68. .centered-div {
  69. text-align: center;
  70. }
  71. #status {
  72. font-variant-numeric: tabular-nums;
  73. }
  74. .centered-div {
  75. text-align: center;
  76. }
  77. #status {
  78. font-variant-numeric: tabular-nums;
  79. }
  80. #progress {
  81. display: none;
  82. width: min(20rem, 90%);
  83. height: 2rem;
  84. border-radius: 1rem;
  85. overflow: hidden;
  86. margin: 1rem 0 2rem;
  87. outline-offset: 2px;
  88. outline: var(--progress-bar-outline);
  89. }
  90. .bar-inner {
  91. background-color: var(--progress-bar-fill);
  92. height: 100%;
  93. width: 0;
  94. transition: width 0.25s ease-in;
  95. }
  96. @media (prefers-reduced-motion: no-preference) {
  97. .bar-inner {
  98. transition: width 0.25s ease-in;
  99. }
  100. }
  101. pre {
  102. background-color: var(--preformatted-background);
  103. padding: 1em;
  104. border: 0;
  105. font-family: var(--body-preformatted-font);
  106. }
  107. a,
  108. a:active,
  109. a:visited {
  110. color: var(--link-foreground);
  111. background-color: var(--link-background);
  112. }
  113. h1,
  114. h2,
  115. h3,
  116. h4,
  117. h5 {
  118. margin-bottom: 0.1rem;
  119. font-family: var(--body-title-font);
  120. }
  121. blockquote {
  122. border-left: var(--blockquote-border-left);
  123. margin: 0.5em 10px;
  124. padding: 0.5em 10px;
  125. }
  126. footer {
  127. text-align: center;
  128. }