Commit f7d1225c authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

enh: codespan styling

parent 3dc90b85
......@@ -158,3 +158,17 @@ input[type='number'] {
.password {
-webkit-text-security: disc;
}
.codespan {
color: #eb5757;
border-width: 0px;
padding: 3px 8px;
font-size: 0.8em;
font-weight: 600;
}
[data-theme='light'] .codespan {
background-color: #f0f0f0;
}
[data-theme='dark'] .codespan {
background-color: #111;
}
......@@ -31,7 +31,7 @@
<svelte:self id={`${id}-em`} tokens={token.tokens} />
</em>
{:else if token.type === 'codespan'}
<code>{unescapeHtml(token.text.replaceAll('&amp;', '&'))}</code>
<code class="codespan">{unescapeHtml(token.text.replaceAll('&amp;', '&'))}</code>
{:else if token.type === 'br'}
<br />
{:else if token.type === 'del'}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment