From c807ac8ea6914bcd088c05c36cc928a803ef72ce Mon Sep 17 00:00:00 2001 From: Ben Lubar Date: Sun, 7 Aug 2016 18:52:13 -0500 Subject: [PATCH] - make heading/code styles consistent between the composer and the topic view --- .../custom.less | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/plugins/nodebb-plugin-tdwtf-customizations/custom.less b/plugins/nodebb-plugin-tdwtf-customizations/custom.less index 3c57a1b..5749438 100644 --- a/plugins/nodebb-plugin-tdwtf-customizations/custom.less +++ b/plugins/nodebb-plugin-tdwtf-customizations/custom.less @@ -94,6 +94,49 @@ kbd, kbd kbd { text-decoration: overline; } + /* From nodebb-theme-persona */ + h1:first-child, h2:first-child, h3:first-child, h4:first-child, h5:first-child, h6:first-child { + margin-top: 0px; + } + + h1 { + font-size: 22px; + margin: 10px 0; + } + + h2 { + font-size: 20px; + } + + h3 { + text-transform: uppercase; + font-size: 16px; + font-weight: 900; + } + + h4 { + font-size: 17px; + } + + h5 { + font-weight: 800; + text-transform: uppercase; + } + + h4, h5, h6 { + margin-top: 15px; + } + + pre { + max-height: 350px; + + code { + white-space: pre; + word-wrap: normal; + min-width: 100%; + } + } + /* Show abbr and a title contents on mobile */ @media screen and (max-width: 991px) { abbr[title]:after {