From 86a69ecf621efc956245e29db41285a4326468b1 Mon Sep 17 00:00:00 2001 From: TEC Date: Sun, 26 Sep 2021 20:54:09 +0800 Subject: [PATCH] tweak(mu4e): change org-msg ch units to em Because Outlook interprets 90ch as 90px ... nice job Outlook. I also adjusted text size and padding with code snippets while we're tweaking. Close #5439 --- modules/email/mu4e/config.el | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/modules/email/mu4e/config.el b/modules/email/mu4e/config.el index 0c8cf3a42..057de380f 100644 --- a/modules/email/mu4e/config.el +++ b/modules/email/mu4e/config.el @@ -446,7 +446,7 @@ Must be set before org-msg is loaded to take effect.") (span underline ((text-decoration . "underline"))) (li nil (,line-height (margin-bottom . "0px") (margin-top . "2px") - (max-width . "84ch"))) + (max-width . "47em"))) (nil org-ul ((list-style-type . "disc"))) (nil org-ol (,@font ,line-height (margin-bottom . "0px") (margin-top . "0px") (margin-left . "30px") @@ -470,8 +470,9 @@ Must be set before org-msg is loaded to take effect.") (margin . "4px 0px 8px 0px") (padding . "8px 12px") (width . "max-content") - (min-width . "80ch") + (min-width . "50em") (border-radius . "5px") + (font-size . "0.9em") (font-weight . "500") ,monospace-font)) (div org-src-container ((margin-top . "10px"))) @@ -501,7 +502,8 @@ Must be set before org-msg is loaded to take effect.") (kbd nil ((border . "1px solid #d1d5da") (border-radius . "3px") (box-shadow . "inset 0 -1px 0 #d1d5da") (background-color . "#fafbfc") (color . "#444d56") - (padding . "3px 5px") (display . "inline-block"))) + (font-size . "0.85em") + (padding . "1px 4px") (display . "inline-block"))) (div outline-text-4 ((margin-left . "15px"))) (div outline-4 ((margin-left . "10px"))) (h4 nil ((margin-bottom . "0px") (font-size . "11pt"))) @@ -513,7 +515,7 @@ Must be set before org-msg is loaded to take effect.") ,color (font-size . "24pt"))) (p nil ((text-decoration . "none") (line-height . "1.4") (margin-top . "10px") (margin-bottom . "0px") - ,font-size (max-width . "90ch"))) + ,font-size (max-width . "50em"))) (b nil ((font-weight . "500") (color . ,theme-color))) (div nil (,@font (line-height . "12pt")))))))