style.css 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. :root {
  2. --accent: #745016;
  3. --accent-hover: #000000;
  4. --toa: #ffffff;
  5. --text: #292929;
  6. --bg: #fafafa;
  7. --border: #737373;
  8. --link: #005b85;
  9. --link-on-dark: #1ab6ff;
  10. --visited: #680bea;
  11. --terminal-bg: #292929;
  12. --terminal-text: #cdb360;
  13. --dark-bg: #212121;
  14. --text-on-dark: #fafafa;
  15. --yellow: #db9d3b;
  16. --black: #292929;
  17. }
  18. @media (prefers-color-scheme: dark) {
  19. :root {
  20. --accent: #db9d3b;
  21. --accent-hover: #ffffff;
  22. --toa: #000000;
  23. --text: #fafafa;
  24. --bg: #292929;
  25. --border: #919191;
  26. --link: #38c0ff;
  27. --link-on-dark: #1ab6ff;
  28. --visited: #c7a4f9;
  29. --terminal-bg: #292929;
  30. --terminal-text: #cdb360;
  31. --dark-bg: #212121;
  32. --text-on-dark: #fafafa;
  33. --yellow: #db9d3b;
  34. --black: #292929;
  35. }
  36. }
  37. * {
  38. box-sizing: border-box;
  39. color: var(--text);
  40. background: var(--bg);
  41. }
  42. a {
  43. color: var(--link);
  44. text-decoration-color: var(--link);
  45. }
  46. a:visited {
  47. color: var(--visited);
  48. text-decoration-color: var(--visited);
  49. }
  50. a:hover, a:focus, a:visited:focus, a:visited:hover {
  51. color: var(--accent);
  52. text-decoration-color: var(--accent);
  53. }
  54. p {
  55. max-width: 80ch;
  56. font-family: "IBM Plex Serif", serif;
  57. }
  58. pre {
  59. font-family: Iosevka, monospace;
  60. background: var(--terminal-bg);
  61. color: var(--terminal-text);
  62. overflow: scroll;
  63. white-space: pre;
  64. max-width: 80ch;
  65. border: 2px solid var(--border);
  66. display: block;
  67. padding: 1rem;
  68. margin-bottom: 1rem;
  69. }
  70. code {
  71. font-family: Iosevka, monospace;
  72. background: var(--terminal-bg);
  73. color: var(--terminal-text);
  74. overflow: scroll;
  75. white-space: pre;
  76. }
  77. section {
  78. margin-bottom: 2rem;
  79. width: 85%;
  80. background: var(--dark-bg);
  81. color: var(--text-on-dark);
  82. padding-left: 1rem;
  83. padding-right: 1rem;
  84. padding-bottom: .5rem;
  85. }
  86. section > a {
  87. text-decoration: none;
  88. }
  89. section > a > h3 {
  90. background: var(--dark-bg);
  91. color: var(--link-on-dark);
  92. padding: .5rem 0;
  93. border-bottom: 1px solid #e9ecef;
  94. display: flex;
  95. flex-wrap: wrap;
  96. text-decoration: underline;
  97. }
  98. section > a:hover > h3,
  99. section > a:focus > h3,
  100. section > a:visited:focus > h3,
  101. section > a:visited:hover > h3 {
  102. color: var(--accent);
  103. }
  104. section > a:visited > h3 {
  105. color: var(--visited);
  106. }
  107. section > a > p {
  108. margin-top: .5rem;
  109. font-size: 1rem;
  110. background: var(--dark-bg);
  111. color: var(--text-on-dark);
  112. }
  113. button, input[type=submit] {
  114. background: var(--accent);
  115. color: var(--toa);
  116. border: var(--text) 1px solid;
  117. cursor: pointer;
  118. }
  119. button:hover, button:active, button:focus,
  120. input[type=submit]:hover, input[type=submit]:active, input[type=submit]:focus {
  121. background: var(--accent-hover);
  122. }
  123. button > a, button > a:hover, button > a:focus, button > a:visited:focus, button > a:visited:hover{
  124. background: inherit;
  125. color: var(--toa);
  126. text-decoration: none;
  127. }
  128. h1, h2, h3, h4, h5, h6 {
  129. font-family: "Fira Sans", sans-serif;
  130. }
  131. body {
  132. margin: 1rem;
  133. display: flex;
  134. flex-wrap: wrap;
  135. }
  136. header {
  137. font-weight: bold;
  138. width: 100%;
  139. font-size: 3rem;
  140. font-family: "Fira Sans", sans-serif;
  141. }
  142. nav {
  143. width: 100%;
  144. margin-bottom: 2rem;
  145. font-family: Iosevka, monospace;
  146. }
  147. nav > ul {
  148. margin: .5rem 0;
  149. padding: 0;
  150. list-style-type: none;
  151. }
  152. nav > ul > li {
  153. display: inline;
  154. }
  155. main {
  156. max-width: 92%;
  157. flex-grow: 11;
  158. margin: 0 1rem 2rem 1rem;
  159. }
  160. input {
  161. border: var(--border) 1px solid;
  162. display: block;
  163. margin: .25rem 0 .75rem 0;
  164. }
  165. label {
  166. display: block;
  167. font-family: "Fira Sans", sans-serif;
  168. }
  169. aside {
  170. width: 200px;
  171. flex-grow: 1;
  172. }
  173. aside > a {
  174. display: block;
  175. font-family: Iosevka, monospace;
  176. margin-top: .1rem;
  177. margin-bottom: .5rem;
  178. }
  179. aside > label {
  180. display: block;
  181. padding-top: 1rem;
  182. }
  183. aside > hr + label {
  184. padding-top: 0;
  185. }
  186. .warning * {
  187. background: var(--yellow);
  188. color: var(--black);
  189. }