all repos — searchix @ 9317874ab59f7bbbb517ea6b38799752bb44b14c

Search engine for NixOS, nix-darwin, home-manager and NUR users

style: improve layout and formatting of code samples

Alan Pearce
commit

9317874ab59f7bbbb517ea6b38799752bb44b14c

parent

9a7b37e5190d0a712a2188c5d9ca4c5f6e93bf66

1 file changed, 14 insertions(+), 0 deletions(-)

changed files
M frontend/static/style.cssfrontend/static/style.css
@@ -1,3 +1,6 @@
+:root { + --preformatted: var(--code); +} form { display: flex; column-gap: 1ex;
@@ -17,6 +20,17 @@ }
dl { display: grid; + align-items: baseline; + grid-row-gap: 1ch; grid-template-rows: 1fr; grid-template-columns: max-content 1fr; } + +pre { + margin: unset; + padding: 1ch 1.4ch; +} + +pre:has(> code) { + background: var(--bg); +}