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.

261 lines
4.2 KiB

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