From 707d11b675286e6979a29ef7e7330065c34483dd Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Mon, 25 Nov 2013 10:31:24 -0600 Subject: [PATCH] css: Fix trailing padding on threads And also fix font display for <pre> sections created from plain/text thread posts --- css/thread.css | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/css/thread.css b/css/thread.css index 83f24571c..5bfa8cde5 100644 --- a/css/thread.css +++ b/css/thread.css @@ -396,7 +396,21 @@ line-height: 1.25rem; } -.thread-body div:not(.caption), +/* Adjust plain/text messages posted as <pre> in the thread body to show in + * a more normal font. Other <pre> elements in the ticket thread body should + * be shown with the ususal monospace font + */ +.thread-body > div > pre:first-child { + font-family: sans-serif; +} + +/* Avoid extra padding at the bottom of the thread body element */ +.thread-body :last-child, +.thread-body > div { + margin-bottom: 0 !important; +} + +.thread-body > div div:not(.caption), .thread-body p, .thread-body ul, .thread-body ol, -- GitLab