crabmail

Static HTML email archive viewer in Rust
git clone git://git.alexwennerberg.com/crabmail
Log | Files | Refs | README | LICENSE

commit 32670a61d53cc398acd3dc2cb17e8d0caa3ad2a7
parent bfe4fb431b732af7bded8975bfa0ec8deca8679d
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Sat, 19 Mar 2022 11:19:52 -0700

clean up style

Diffstat:
Msrc/models.rs | 2+-
Msrc/style.css | 3++-
Msrc/templates/html.rs | 4++--
3 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/models.rs b/src/models.rs @@ -134,7 +134,7 @@ impl StrMessage { let id = msg.get_message_id().unwrap_or(""); let subject = msg.get_subject().unwrap_or("(No Subject)"); let invalid_email = Addr::new(None, "invalid-email"); - let preview = match msg.get_body_preview(100) { + let preview = match msg.get_body_preview(80) { Some(b) => b.to_string(), None => String::new(), }; diff --git a/src/style.css b/src/style.css @@ -1,6 +1,6 @@ :root { --main-text: white; - --light-text: #CCC; + --light-text: #BBB; --link: #21e6c1; --background: #1b222c; --emph-background: #1a1a1a; @@ -45,6 +45,7 @@ table { border-spacing: 0.5em 0.1em; } .monospace { font-family: monospace; + font-size: 1rem; } .right { text-align: right; diff --git a/src/templates/html.rs b/src/templates/html.rs @@ -49,8 +49,8 @@ impl List { <div class='message-sum'> <a class="bigger" href="threads/{path_id}.html">{subject}</a> <br> - {preview}<br> - {from} | {replies} replies | {date} + <div class="monospace">{preview}</div> + <b>{from}</b> | {replies} replies | {date}<hr> "#, &[ (