about summary refs log tree commit diff stats
path: root/frontend/static
diff options
context:
space:
mode:
authorAlan Pearce2024-05-05 18:54:32 +0200
committerAlan Pearce2024-05-05 18:54:32 +0200
commit9317874ab59f7bbbb517ea6b38799752bb44b14c (patch)
tree20ea5a7abdb6b0cafbb568733d377a24f9dd3d51 /frontend/static
parent9a7b37e5190d0a712a2188c5d9ca4c5f6e93bf66 (diff)
downloadsearchix-9317874ab59f7bbbb517ea6b38799752bb44b14c.tar.lz
searchix-9317874ab59f7bbbb517ea6b38799752bb44b14c.tar.zst
searchix-9317874ab59f7bbbb517ea6b38799752bb44b14c.zip
style: improve layout and formatting of code samples
Diffstat (limited to 'frontend/static')
-rw-r--r--frontend/static/style.css14
1 files changed, 14 insertions, 0 deletions
diff --git a/frontend/static/style.css b/frontend/static/style.css
index a747adf..d6534b8 100644
--- a/frontend/static/style.css
+++ b/frontend/static/style.css
@@ -1,3 +1,6 @@
+:root {
+  --preformatted: var(--code);
+}
 form {
   display: flex;
   column-gap: 1ex;
@@ -17,6 +20,17 @@ dd {
 
 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);
+}