code blocks; get block title & copy button to appear, further styling needed, also syntax highlighting not working atm

This commit is contained in:
revsuine 2025-04-20 01:23:00 +01:00
parent 3f95624ecf
commit e5c4772cf3
Signed by: revsuine
GPG key ID: 3F257B68F5BC9339
4 changed files with 7 additions and 257 deletions

View file

@ -4,6 +4,7 @@
--background: var(--bg0);
--foreground: var(--fg0);
--accent: var(--green);
--code_background: var(--bg_dim);
--font-size: 1rem;
--line-height: 1.54rem;
--radius: 0px;
@ -254,21 +255,13 @@ kbd {
Ubuntu Mono,
monospace !important;
font-feature-settings: normal;
background: color-mix(in srgb, var(--foreground) 5%, transparent);
background: var(--code_background);
color: var(--accent);
padding: 1px 6px;
margin: 0 2px;
font-size: 0.95rem;
}
kbd {
border-top: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
border-left: 1px solid var(--accent);
border-right: 1px solid var(--accent);
border-bottom: 4px solid var(--accent);
border-radius: 4px;
}
code code {
background: transparent;
padding: 0;