From 3ed4ceb7a343ceb45789dcde6db2f6bcf920c465 Mon Sep 17 00:00:00 2001 From: Trevor Buckner Date: Tue, 20 Jul 2021 19:50:23 -0400 Subject: [PATCH] Fix description box snippet --- client/homebrew/editor/snippetbar/snippets/snippets.js | 4 ++-- themes/5ePhb.style.less | 9 ++++++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/client/homebrew/editor/snippetbar/snippets/snippets.js b/client/homebrew/editor/snippetbar/snippets/snippets.js index fca5a539b..42039dfc0 100644 --- a/client/homebrew/editor/snippetbar/snippets/snippets.js +++ b/client/homebrew/editor/snippetbar/snippets/snippets.js @@ -159,12 +159,12 @@ module.exports = [ icon : 'fas fa-comment-alt', gen : function(){ return [ - '
', + '{{descriptive', '##### Time to Drop Knowledge', 'Use notes to point out some interesting information. ', '', '**Tables and lists** both work within a note.', - '
' + '}}' ].join('\n'); }, }, diff --git a/themes/5ePhb.style.less b/themes/5ePhb.style.less index cd37bc185..979856167 100644 --- a/themes/5ePhb.style.less +++ b/themes/5ePhb.style.less @@ -464,7 +464,7 @@ body { // ************************************/ .page .descriptive{ display : block-inline; - margin-bottom : 1em; + margin-top : 1.3em; background-color : #faf7ea; font-family : ScalySansRemake; border-style : solid; @@ -472,6 +472,10 @@ body { border-image : @descriptiveBoxImage 12 stretch; border-image-outset : 4px; box-shadow : 0px 0px 6px #faf7ea; + padding : 0.1em; + & + * { + margin-top : 1.3em; + } p{ display : block; padding-bottom : 0px; @@ -480,6 +484,9 @@ body { p + p { padding-top : .8em; } + p:last-of-type { + margin-bottom : 0em; + } em { font-family : ScalySansRemake; font-style : italic;