@use 'mixins' as *; // ---------- Prose (rendered markdown) ---------- .prose { font-size: 1.02rem; line-height: 1.75; color: var(--text); overflow-wrap: break-word; > :first-child { margin-top: 0; } > :first-child > :first-child, h1:first-child { margin-top: 0.6em; } h1, h2, h3, h4 { scroll-margin-top: 90px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 730; } h1 { font-size: 1.85rem; margin: 1.4em 0 0.5em; } h2 { font-size: 1.42rem; margin: 2.1em 0 0.55em; padding-bottom: 0.32em; border-bottom: 1px solid var(--border); } h3 { font-size: 1.17rem; margin: 1.7em 0 0.45em; } h4 { font-size: 1.02rem; margin: 1.5em 0 0.4em; } p { margin: 0.95em 0; } a { color: var(--accent); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); transition: border-color 0.15s, color 0.15s; &:hover { color: var(--accent-strong); border-bottom-color: currentColor; } // internal wiki links written as [[Article Title]] &.wikilink { border-bottom-style: dotted; } } strong { font-weight: 730; } ul, ol { padding-left: 1.45em; margin: 0.9em 0; } li { margin: 0.35em 0; &::marker { color: var(--faint); } } blockquote { margin: 1.4em 0; padding: 0.75em 1.2em; border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); border-radius: 0 12px 12px 0; color: var(--muted); p { margin: 0.2em 0; } } hr { border: 0; border-top: 1px solid var(--border); margin: 2.4em 0; } table { display: block; width: max-content; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1.5em 0; font-size: 0.94em; border: 1px solid var(--border); border-radius: 12px; } thead { background: var(--surface-2); } th, td { padding: 0.58em 0.95em; border: 1px solid var(--border); text-align: left; } tbody tr:nth-child(even) { background: color-mix(in srgb, var(--surface) 55%, transparent); } img { max-width: 100%; border-radius: 12px; } kbd { font-family: inherit; font-size: 0.8em; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; background: var(--surface-2); } // inline code code { background: color-mix(in srgb, var(--text) 8%, transparent); border: 1px solid var(--border); padding: 0.12em 0.42em; border-radius: 6px; font-size: 0.86em; } pre { margin: 1.4em 0; padding: 17px 20px; border-radius: 13px; border: 1px solid var(--border); background: var(--code-bg); overflow-x: auto; line-height: 1.65; font-size: 0.875rem; code { background: none; border: 0; padding: 0; font-size: inherit; } } } // code tokens (highlight.js) .hljs-keyword, .hljs-selector-tag, .hljs-doctag { color: var(--tok-key); } .hljs-string, .hljs-regexp, .hljs-addition { color: var(--tok-str); } .hljs-comment { color: var(--tok-com); font-style: italic; } .hljs-number, .hljs-variable, .hljs-template-variable { color: var(--tok-num); } .hljs-title, .hljs-title.function_, .hljs-section { color: var(--tok-fn); } .hljs-built_in, .hljs-type, .hljs-class .hljs-title, .hljs-title.class_ { color: var(--tok-built); } .hljs-literal, .hljs-symbol, .hljs-bullet, .hljs-link { color: var(--tok-lit); } .hljs-attr, .hljs-attribute, .hljs-property, .hljs-meta { color: var(--tok-meta); } .hljs-deletion { color: var(--danger); } // ---------- KaTeX ---------- .katex { font-size: 1.06em; } .prose .katex-display { margin: 1.35em 0; padding: 0.3em 0.2em; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; } .prose .katex-error { color: var(--danger); font-family: inherit; }