From 78426135c61aeacacf4e8be61d64a3aeeb6393d5 Mon Sep 17 00:00:00 2001 From: Scott Tolksdorf Date: Sat, 20 Aug 2016 13:33:15 -0400 Subject: [PATCH] Note blocks now don't overlap titles --- changelog.md | 1 + client/homebrew/phbStyle/phb.style.less | 4 ++-- phb.standalone.css | 8 ++++++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/changelog.md b/changelog.md index 3842385a8..4ffb9a268 100644 --- a/changelog.md +++ b/changelog.md @@ -9,6 +9,7 @@ - Added in a new coverpage snippet - Homebrewery will now try and onsert a good title for your brew if you don't provide one - Homebrewery now re-renders properly when you zoom +- Fixed the noteblock overlapping into titles (thanks u/dsompura!) ### Friday, 29/07/2016 - v2.2.7 diff --git a/client/homebrew/phbStyle/phb.style.less b/client/homebrew/phbStyle/phb.style.less index a09676acf..7a5736fc7 100644 --- a/client/homebrew/phbStyle/phb.style.less +++ b/client/homebrew/phbStyle/phb.style.less @@ -195,8 +195,8 @@ body { } } //If a note starts a column, give it space at the top to render border - pre+blockquote{ - margin-top : 11px; + pre+blockquote, h2+blockquote, h3+blockquote, h4+blockquote, h5+blockquote { + margin-top : 13px; } //***************************** // * MONSTER STAT BLOCK diff --git a/phb.standalone.css b/phb.standalone.css index 3327cf453..adcf20c11 100644 --- a/phb.standalone.css +++ b/phb.standalone.css @@ -375,8 +375,12 @@ body { font-size: 0.352cm; line-height: 1.1em; } -.phb pre + blockquote { - margin-top: 11px; +.phb pre + blockquote, +.phb h2 + blockquote, +.phb h3 + blockquote, +.phb h4 + blockquote, +.phb h5 + blockquote { + margin-top: 13px; } .phb hr + blockquote { position: relative;