the code for my website (https://www.annwan.me)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

259 lines
4.1 KiB

10 months ago
  1. /* Fonts */
  2. :root {
  3. --font-monospace: "Fira Mono", monospace;
  4. }
  5. body {
  6. font-family: var(--font-monospace);
  7. font-size: 16px;
  8. line-height: 1.5rem;
  9. }
  10. /* Headings */
  11. h1,
  12. h2,
  13. h3,
  14. h4,
  15. h5,
  16. h6 {
  17. font-size: 1rem;
  18. margin: 1.5rem 0 0 0;
  19. font-weight: 600;
  20. }
  21. h1+h2,
  22. h1+h3,
  23. h1+h4,
  24. h1+h5,
  25. h1+h6,
  26. h2+h3,
  27. h2+h4,
  28. h2+h5,
  29. h2+h6,
  30. h3+h4,
  31. h3+h5,
  32. h3+h6,
  33. h4+h5,
  34. h4+h6,
  35. h5+h6 {
  36. margin: 0;
  37. }
  38. h1:before { content: "# "; }
  39. h2:before { content: "## "; }
  40. h3:before { content: "### "; }
  41. h4:before { content: "#### "; }
  42. h5:before { content: "##### "; }
  43. h6:before { content: "###### "; }
  44. h1:before,
  45. h2:before,
  46. h3:before,
  47. h4:before,
  48. h5:before,
  49. h6:before {
  50. color: var(--muted);
  51. }
  52. h1:first-child {
  53. margin-top: 0;
  54. }
  55. /* Paragraphs */
  56. p {
  57. margin: 0 0 1.5rem 0;
  58. }
  59. /* Links */
  60. a:link, a:visited {
  61. color: var(--link);
  62. }
  63. a:hover, a:active, a.active {
  64. color: var(--hover);
  65. }
  66. /* Lists */
  67. ul {
  68. margin: 0 0 1.5rem 0;
  69. padding-left: 1.25rem;
  70. }
  71. ol {
  72. margin: 0 0 1.5rem 0;
  73. padding-left: 1.75rem;
  74. }
  75. ul ul,
  76. ul ol,
  77. ol ul,
  78. ol ol {
  79. margin: 0;
  80. }
  81. ul li::marker {
  82. content: '∗\00A0';
  83. color: var(--muted);
  84. }
  85. ol li::marker {
  86. color: var(--muted);
  87. }
  88. li.nomarker {
  89. display: block;
  90. }
  91. dt {
  92. margin: 0;
  93. font-weight: bold;
  94. }
  95. dd {
  96. margin: 0 0 0 1.5rem;
  97. font-style: italic;
  98. }
  99. dd + dt {
  100. margin-top: 1.5rem;
  101. }
  102. dl {
  103. margin: 0 0 1.5rem 0;
  104. }
  105. /* Blockquotes */
  106. blockquote {
  107. position: relative;
  108. margin: 0 0 1.5rem 1.5rem;
  109. }
  110. blockquote::before {
  111. position: absolute;
  112. left: -1.5rem;
  113. content: ">";
  114. color: var(--muted);
  115. }
  116. .twitter-tweet::before {
  117. content: "\f099";
  118. font-family: "Font Awesome 5 Brands";
  119. font-weight: 400;
  120. }
  121. /* Code */
  122. pre,
  123. code,
  124. kbd,
  125. samp {
  126. background: var(--inner-bg) !important;
  127. font-family: var(--font-monospace);
  128. color: var(--off-fg);
  129. }
  130. pre {
  131. overflow-x: auto;
  132. padding: 1.5rem;
  133. margin: 0 0 1.5rem 0;
  134. }
  135. /* Fix overflow when config markup.highlight.lineNos is true */
  136. /* See https://github.com/joeroe/risotto/issues/41 */
  137. .highlight div {
  138. overflow-x: auto;
  139. }
  140. /* Emphasis */
  141. b,
  142. strong {
  143. font-weight: 600;
  144. }
  145. /* Highlighting */
  146. ::selection,
  147. mark {
  148. background-color: var(--highlight);
  149. color: var(--bg);
  150. }
  151. /* Other typographic elements */
  152. hr {
  153. border: 0;
  154. margin-bottom: 1.5rem;
  155. }
  156. hr:after {
  157. content: '---';
  158. color: var(--muted);
  159. }
  160. /* Prevent super/sub from affecting line height */
  161. sup, sub {
  162. vertical-align: baseline;
  163. position: relative;
  164. top: -0.25rem;
  165. font-size: unset;
  166. }
  167. sub {
  168. top: 0.25rem;
  169. }
  170. /* Tables */
  171. table {
  172. border-spacing: 0;
  173. margin: 0 0 1.5rem 0;
  174. overflow-wrap: anywhere;
  175. }
  176. th, td {
  177. padding: 0 .75rem;
  178. vertical-align: top;
  179. }
  180. th:first-child, td:first-child {
  181. padding-left: 0;
  182. }
  183. th {
  184. text-align: inherit;
  185. }
  186. /* Figures */
  187. img {
  188. max-width: 100%;
  189. height: auto;
  190. }
  191. /* Colour classes */
  192. .base00 { color: var(--base00); }
  193. .base01 { color: var(--base01); }
  194. .base02 { color: var(--base02); }
  195. .base03 { color: var(--base03); }
  196. .base04 { color: var(--base04); }
  197. .base05 { color: var(--base05); }
  198. .base06 { color: var(--base06); }
  199. .base07 { color: var(--base07); }
  200. .base08 { color: var(--base08); }
  201. .base09 { color: var(--base09); }
  202. .base0A { color: var(--base0A); }
  203. .base0B { color: var(--base0B); }
  204. .base0C { color: var(--base0C); }
  205. .base0D { color: var(--base0D); }
  206. .base0E { color: var(--base0E); }
  207. .base0F { color: var(--base0F); }
  208. .bg-base00 { background-color: var(--base00); }
  209. .bg-base01 { background-color: var(--base01); }
  210. .bg-base02 { background-color: var(--base02); }
  211. .bg-base03 { background-color: var(--base03); }
  212. .bg-base04 { background-color: var(--base04); }
  213. .bg-base05 { background-color: var(--base05); }
  214. .bg-base06 { background-color: var(--base06); }
  215. .bg-base07 { background-color: var(--base07); }
  216. .bg-base08 { background-color: var(--base08); }
  217. .bg-base09 { background-color: var(--base09); }
  218. .bg-base0A { background-color: var(--base0A); }
  219. .bg-base0B { background-color: var(--base0B); }
  220. .bg-base0C { background-color: var(--base0C); }
  221. .bg-base0D { background-color: var(--base0D); }
  222. .bg-base0E { background-color: var(--base0E); }
  223. .bg-base0F { background-color: var(--base0F); }