From: martin f. krafft Date: Sat, 2 Sep 2023 08:32:49 +0000 (+0200) Subject: add html stylesheet X-Git-Url: https://git.madduck.net/etc/neomutt.git/commitdiff_plain/ee7555fbc21b3643a4eb4459a7b02c63d8ee4d10 add html stylesheet --- diff --git a/.config/neomutt/htmlmail.css b/.config/neomutt/htmlmail.css new file mode 100644 index 0000000..e60bf8b --- /dev/null +++ b/.config/neomutt/htmlmail.css @@ -0,0 +1,55 @@ +#signature .sig_separator { display: none; } + +body, div.signature { font-family: Lato, "Liberation Sans", sans-serif; } +a { text-decoration:none; color:#3a5dae; } +a:visited { color:#3a5dae; } +a:hover { text-decoration:underline; } +.block { + padding: 0 0.5em; + margin: 0; + font-style: italic; + border-left: 2px solid #eee; +} +.quote, blockquote { + padding: 0 0.5em; + margin: 0; + font-style: italic; + border-left: 2px solid #666; + color: #666; + font-size: 80%; +} +/*.quotelead { + margin-bottom: -1em; + font-size: 80%; +} +.quotechar { display: none; }*/ +.footnote-ref, .footnote-back { text-decoration: none;} +/*.signature { + color: #999; + font-family: monospace; + white-space: pre; + margin: 1em 0 0 0; + font-size: 80%; +}*/ +table, th, td { + border-collapse: collapse; + border: 1px solid #999; +} +th, td { padding: 0.5em; } +.header { + background: #eee; +} +.even { background: #eee; } +h1, h2, h3, h4, h5, h6 { + color: #666; + background-color: #eee; + padding-left: 0.5em +} +h1 { font-size: 130%; } +h2 { font-size: 120%; } +h3 { font-size: 110%; } +h4 { font-size: 107%; } +h5 { font-size: 103%; } +h6 { font-size: 100%; } +/*p { padding: 0 0.5em; } +pre { padding: 0 1em; }*/ diff --git a/.config/neomutt/neomuttrc b/.config/neomutt/neomuttrc index 947d489..d0e6bb8 100644 --- a/.config/neomutt/neomuttrc +++ b/.config/neomutt/neomuttrc @@ -63,4 +63,5 @@ source "test -f $alias_file && cat $alias_file 2>/dev/null || echo unset alias_f #set pager_format="<%a> %* %J (%P)" set my_markdown_extensions="admonition,codehilite,sane_lists,smarty,pymdownx.extra,pymdownx.highlight,pymdownx.critic,pymdownx.keys,pymdownx.magiclink,pymdownx.mark,pymdownx.saneheaders,pymdownx.smartsymbols" -macro compose B " source '$my_confdir/buildmimetree.py --extensions $my_markdown_extensions --tempdir $tmpdir --only-build|' source \$my_mdwn_postprocess_cmd_file" "Convert message into a modern MIME tree with inline images" +macro compose y " source '$my_confdir/buildmimetree.py --extensions $my_markdown_extensions --tempdir $tmpdir --only-build --css-file $my_confdir/htmlmail.css|' source \$my_mdwn_postprocess_cmd_file" "Convert message into a modern MIME tree with inline images" +bind compose Y send-message