web: provide CSS overrides for email matching news posts

This commit is contained in:
Bill Thiede 2025-02-02 09:51:27 -08:00
parent 30b5d0ff9f
commit 23823cd85e
2 changed files with 15 additions and 1 deletions

View File

@ -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 /* TODO(wathiede): plumb in orignal id
a![ a![
attrs! {At::Href=>api::original(&thread_node.0.as_ref().expect("message missing").id)}, attrs! {At::Href=>api::original(&thread_node.0.as_ref().expect("message missing").id)},

View File

@ -2,17 +2,23 @@ html {
background-color: black; background-color: black;
} }
.mail-thread a,
.news-post a { .news-post a {
color: var(--color-link) !important; color: var(--color-link) !important;
text-decoration: underline; text-decoration: underline;
} }
.mail-thread br,
.news-post br { .news-post br {
display: block; display: block;
margin-top: 1em; margin-top: 1em;
content: " "; content: " ";
} }
.mail-thread h1,
.mail-thread h2,
.mail-thread h3,
.mail-thread h4,
.news-post h1, .news-post h1,
.news-post h2, .news-post h2,
.news-post h3, .news-post h3,
@ -21,10 +27,13 @@ html {
margin-bottom: 1em !important; margin-bottom: 1em !important;
} }
.mail-thread p,
.news-post p { .news-post p {
margin-bottom: 1em; margin-bottom: 1em;
} }
.mail-thread pre,
.mail-thread code,
.news-post pre, .news-post pre,
.news-post code { .news-post code {
font-family: monospace; font-family: monospace;