From 5ee7c066cadda65ed4211047d8b7ccf385a776d5 Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Fri, 1 Mar 2019 22:49:55 +0100 Subject: [PATCH] Limit width of html parts --- style/debug.css | 43 +++++++++++++++++++++++++++++++++++ templates/body_text_html.html | 2 +- 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 style/debug.css diff --git a/style/debug.css b/style/debug.css new file mode 100644 index 0000000..3e3ce77 --- /dev/null +++ b/style/debug.css @@ -0,0 +1,43 @@ +.partouter { + border-style: solid; + border-width: 1px; + border-color: #0000FF; +} + +.partinner { + border-style: dotted; + border-width: 1px; + border-color: #0000FF; +} + +.partheader { + background-color: #0000FF; + color: #FFFFFF; + font-size: 70%; +} + +th { + text-align: left; +} + +.subject { + font-size: 1.2em; + color: #000088; +} + +.text-enriched { + font-family: monospace; + white-space: pre-wrap; +} + +.signature { + font-size: 0.8rem; +} + +.dubious { + background-color: #888800; +} + +.partinner.html { + max-width: 40rem; +} diff --git a/templates/body_text_html.html b/templates/body_text_html.html index a42fbb4..f55d620 100644 --- a/templates/body_text_html.html +++ b/templates/body_text_html.html @@ -2,7 +2,7 @@
text/html
-
+
{{body}}