mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-06 01:22:44 +00:00
V & H spacing, wide block, image snippets
This commit is contained in:
@@ -27,18 +27,34 @@ module.exports = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name : 'Vertical Spacing',
|
name : 'Vertical Spacing',
|
||||||
icon : 'fas fa-times-circle',
|
icon : 'fas fa-arrows-alt-v',
|
||||||
gen : ''
|
gen : '\n::::\n'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name : 'Horizontal Spacing',
|
||||||
|
icon : 'fas fa-arrows-alt-h',
|
||||||
|
gen : ' {{width="100px"}} '
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name : 'Wide Block',
|
name : 'Wide Block',
|
||||||
icon : 'fas fa-times-circle',
|
icon : 'fas fa-window-maximize',
|
||||||
gen : ''
|
gen : dedent`\n
|
||||||
|
{{wide
|
||||||
|
Everything in here will be extra wide. Tables, text, everything!
|
||||||
|
Beware though, CSS columns can behave a bit weird sometimes. You may
|
||||||
|
have to rely on the automatic column-break rather than \`\column\` if
|
||||||
|
you mix columns and wide blocks on the same page.
|
||||||
|
}}
|
||||||
|
\n`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name : 'Image',
|
name : 'Image',
|
||||||
icon : 'fas fa-times-circle',
|
icon : 'fas fa-image',
|
||||||
gen : ''
|
gen : dedent`
|
||||||
|
<img
|
||||||
|
src='https://s-media-cache-ak0.pinimg.com/736x/4a/81/79/4a8179462cfdf39054a418efd4cb743e.jpg'
|
||||||
|
style='width:325px'/>
|
||||||
|
Credit: Kyounghwan Kim`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name : 'Background Image',
|
name : 'Background Image',
|
||||||
|
|||||||
@@ -528,8 +528,8 @@ body {
|
|||||||
.block {
|
.block {
|
||||||
break-inside : avoid;
|
break-inside : avoid;
|
||||||
}
|
}
|
||||||
.inline-block {
|
.inline {
|
||||||
display : block;
|
display : inline-block;
|
||||||
}
|
}
|
||||||
div {
|
div {
|
||||||
column-gap : 0.5cm; //Default spacing if a div uses multicolumns
|
column-gap : 0.5cm; //Default spacing if a div uses multicolumns
|
||||||
|
|||||||
Reference in New Issue
Block a user