From 2bc5cb601451fcb905fe3f442630e44cddcb567d Mon Sep 17 00:00:00 2001 From: philipp Date: Mon, 19 Feb 2024 19:24:12 +0100 Subject: [PATCH] instead of using 'header' styles by default and change everything else, it's now switched around: default are non-header styles, only 'absatz'-ul's are styled separately --- src/main.rs | 2 ++ templates/style.css | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index 73856f1..676465a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -21,9 +21,11 @@ fn print_content(content: Content) -> String { ret.push_str(""); } Content::Multi(l) => { + ret.push_str("
"); for item in l { ret.push_str(&print_content(item)); } + ret.push_str("
"); } } diff --git a/templates/style.css b/templates/style.css index 4858b14..810d19b 100644 --- a/templates/style.css +++ b/templates/style.css @@ -95,21 +95,21 @@ details summary { line-height: unset; } -ul { +.par > ul { margin: var(--pico-spacing) 0; padding: 0; } -ul > li { +.par > ul > li { list-style: none; margin: 1rem 0; } -ul > ul { +ul { padding: 0 2rem; } -ul > ul > li { +li { list-style: square; }