code blocks; get block title & copy button to appear, further styling needed, also syntax highlighting not working atm
This commit is contained in:
parent
3f95624ecf
commit
e5c4772cf3
4 changed files with 7 additions and 257 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue