0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-08 11:52:44 +00:00

Fix description box snippet

This commit is contained in:
Trevor Buckner
2021-07-20 19:50:23 -04:00
parent 64d133f8f6
commit 3ed4ceb7a3
2 changed files with 10 additions and 3 deletions

View File

@@ -159,12 +159,12 @@ module.exports = [
icon : 'fas fa-comment-alt', icon : 'fas fa-comment-alt',
gen : function(){ gen : function(){
return [ return [
'<div class=\'descriptive\'>', '{{descriptive',
'##### Time to Drop Knowledge', '##### Time to Drop Knowledge',
'Use notes to point out some interesting information. ', 'Use notes to point out some interesting information. ',
'', '',
'**Tables and lists** both work within a note.', '**Tables and lists** both work within a note.',
'</div>' '}}'
].join('\n'); ].join('\n');
}, },
}, },

View File

@@ -464,7 +464,7 @@ body {
// ************************************/ // ************************************/
.page .descriptive{ .page .descriptive{
display : block-inline; display : block-inline;
margin-bottom : 1em; margin-top : 1.3em;
background-color : #faf7ea; background-color : #faf7ea;
font-family : ScalySansRemake; font-family : ScalySansRemake;
border-style : solid; border-style : solid;
@@ -472,6 +472,10 @@ body {
border-image : @descriptiveBoxImage 12 stretch; border-image : @descriptiveBoxImage 12 stretch;
border-image-outset : 4px; border-image-outset : 4px;
box-shadow : 0px 0px 6px #faf7ea; box-shadow : 0px 0px 6px #faf7ea;
padding : 0.1em;
& + * {
margin-top : 1.3em;
}
p{ p{
display : block; display : block;
padding-bottom : 0px; padding-bottom : 0px;
@@ -480,6 +484,9 @@ body {
p + p { p + p {
padding-top : .8em; padding-top : .8em;
} }
p:last-of-type {
margin-bottom : 0em;
}
em { em {
font-family : ScalySansRemake; font-family : ScalySansRemake;
font-style : italic; font-style : italic;