Highlight inline code snippets better
This commit is contained in:
parent
01a8743034
commit
84d2ecabe5
2 changed files with 4 additions and 2 deletions
|
@ -34,10 +34,10 @@ body
|
||||||
> h1, > h2, > h3, > h4, > h5, > h6 { color: var(--heading-fg) }
|
> h1, > h2, > h3, > h4, > h5, > h6 { color: var(--heading-fg) }
|
||||||
*:first-child { margin-top: 0 }
|
*:first-child { margin-top: 0 }
|
||||||
|
|
||||||
&> p > code
|
> p code
|
||||||
padding 0.1em 0.25em
|
padding 0.1em 0.25em
|
||||||
border-radius 0.25em
|
border-radius 0.25em
|
||||||
background-color rgba(255, 255, 255, 0.03)
|
background-color var(--inline-code-bg)
|
||||||
|
|
||||||
&> header
|
&> header
|
||||||
font-family var(--msff), monospace
|
font-family var(--msff), monospace
|
||||||
|
|
|
@ -52,6 +52,7 @@ light-theme =
|
||||||
--bg #fff
|
--bg #fff
|
||||||
--header-bg #eee
|
--header-bg #eee
|
||||||
--fg #111
|
--fg #111
|
||||||
|
--inline-code-bg #ddd
|
||||||
|
|
||||||
dark-theme =
|
dark-theme =
|
||||||
for k, v in dark-syntax
|
for k, v in dark-syntax
|
||||||
|
@ -62,6 +63,7 @@ dark-theme =
|
||||||
--header-bg #191919
|
--header-bg #191919
|
||||||
--fg #fff
|
--fg #fff
|
||||||
--link-visited-fg #aaa
|
--link-visited-fg #aaa
|
||||||
|
--inline-code-bg #222
|
||||||
|
|
||||||
:root, body.light-theme
|
:root, body.light-theme
|
||||||
{light-theme}
|
{light-theme}
|
||||||
|
|
Loading…
Reference in a new issue