From 23823cd85e470a0c3f5cda0b263eaec6c453d2ec Mon Sep 17 00:00:00 2001 From: Bill Thiede Date: Sun, 2 Feb 2025 09:51:27 -0800 Subject: [PATCH] web: provide CSS overrides for email matching news posts --- web/src/view/mod.rs | 7 ++++++- web/static/overrides.css | 9 +++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/web/src/view/mod.rs b/web/src/view/mod.rs index 0ab5a23..70deb36 100644 --- a/web/src/view/mod.rs +++ b/web/src/view/mod.rs @@ -819,7 +819,12 @@ fn thread( ]] ], ], - div![C!["lg:mt-4"], el_ref(content_el), messages, click_to_top()], + div![ + C!["lg:mt-4", "mail-thread"], + el_ref(content_el), + messages, + click_to_top() + ], /* TODO(wathiede): plumb in orignal id a![ attrs! {At::Href=>api::original(&thread_node.0.as_ref().expect("message missing").id)}, diff --git a/web/static/overrides.css b/web/static/overrides.css index eee1885..0bb7a65 100644 --- a/web/static/overrides.css +++ b/web/static/overrides.css @@ -2,17 +2,23 @@ html { background-color: black; } +.mail-thread a, .news-post a { color: var(--color-link) !important; text-decoration: underline; } +.mail-thread br, .news-post br { display: block; margin-top: 1em; content: " "; } +.mail-thread h1, +.mail-thread h2, +.mail-thread h3, +.mail-thread h4, .news-post h1, .news-post h2, .news-post h3, @@ -21,10 +27,13 @@ html { margin-bottom: 1em !important; } +.mail-thread p, .news-post p { margin-bottom: 1em; } +.mail-thread pre, +.mail-thread code, .news-post pre, .news-post code { font-family: monospace;