mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-06 18:42:40 +00:00
added dedents
This commit is contained in:
@@ -82,9 +82,7 @@ module.exports = [
|
|||||||
{
|
{
|
||||||
name : 'Add Comment',
|
name : 'Add Comment',
|
||||||
icon : 'fas fa-code',
|
icon : 'fas fa-code',
|
||||||
gen : dedent`\n
|
gen : '<!-- This is a comment that will not be rendered into your brew. Hotkey (Ctrl/Cmd + /). -->'
|
||||||
<!-- This is a comment that will not be rendered into your brew. Hotkey (Ctrl/Cmd + /). -->
|
|
||||||
`
|
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -96,28 +94,26 @@ module.exports = [
|
|||||||
{
|
{
|
||||||
name : 'Remove Drop Cap',
|
name : 'Remove Drop Cap',
|
||||||
icon : 'fas fa-remove-format',
|
icon : 'fas fa-remove-format',
|
||||||
gen : '/* Removes Drop Caps */\n' +
|
gen : dedent`/* Removes Drop Caps */
|
||||||
'.phb3 h1+p:first-letter {\n' +
|
.phb3 h1+p:first-letter {
|
||||||
' all: unset;\n' +
|
all: unset;
|
||||||
'}\n'
|
}\n\n`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name : 'Tweak Drop Cap',
|
name : 'Tweak Drop Cap',
|
||||||
icon : 'fas fa-sliders-h',
|
icon : 'fas fa-sliders-h',
|
||||||
gen : '/* Drop Cap settings */\n' +
|
gen : dedent`/* Drop Cap settings */
|
||||||
'.phb3 h1 + p::first-letter {\n' +
|
.phb3 h1 + p::first-letter {
|
||||||
' font-family: SolberaImitationRemake;\n' +
|
font-family: SolberaImitationRemake;
|
||||||
' font-size: 3.5cm;\n' +
|
font-size: 3.5cm;
|
||||||
' background: linear-gradient(-45deg, #322814, #998250, #322814);\n' +
|
background: linear-gradient(-45deg, #322814, #998250, #322814);
|
||||||
' line-height: 1em;\n' +
|
line-height: 1em;
|
||||||
'}\n'
|
}\n\n`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name : 'Add Comment',
|
name : 'Add Comment',
|
||||||
icon : 'fas fa-code',
|
icon : 'fas fa-code',
|
||||||
gen : dedent`\n
|
gen : '/* This is a comment that will not be rendered into your brew. */'
|
||||||
/* This is a comment that will not be rendered into your brew. */
|
|
||||||
`
|
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -370,26 +366,22 @@ module.exports = [
|
|||||||
{
|
{
|
||||||
name : 'A4 Page Size',
|
name : 'A4 Page Size',
|
||||||
icon : 'far fa-file',
|
icon : 'far fa-file',
|
||||||
gen : ['/* A4 Page Size */',
|
gen : dedent`/* A4 Page Size */
|
||||||
'.page{',
|
.page{
|
||||||
' width : 210mm;',
|
width : 210mm;
|
||||||
' height : 296.8mm;',
|
height : 296.8mm;
|
||||||
'}',
|
}\n\n`
|
||||||
''
|
|
||||||
].join('\n')
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name : 'Square Page Size',
|
name : 'Square Page Size',
|
||||||
icon : 'far fa-file',
|
icon : 'far fa-file',
|
||||||
gen : ['/* Square Page Size */',
|
gen : dedent`/* Square Page Size */
|
||||||
'.page {',
|
.page {
|
||||||
' width : 125mm;',
|
width : 125mm;
|
||||||
' height : 125mm;',
|
height : 125mm;
|
||||||
' padding : 12.5mm;',
|
padding : 12.5mm;
|
||||||
' columns : unset;',
|
columns : unset;
|
||||||
'}',
|
}\n\n`
|
||||||
''
|
|
||||||
].join('\n')
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name : 'Ink Friendly',
|
name : 'Ink Friendly',
|
||||||
@@ -407,7 +399,7 @@ module.exports = [
|
|||||||
|
|
||||||
.page img {
|
.page img {
|
||||||
visibility : hidden;
|
visibility : hidden;
|
||||||
}`
|
}\n\n`
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ module.exports = [
|
|||||||
{
|
{
|
||||||
name : 'Add Comment',
|
name : 'Add Comment',
|
||||||
icon : 'fas fa-code',
|
icon : 'fas fa-code',
|
||||||
gen : `\n<!-- This is a comment that will not be rendered into your brew. Hotkey (Ctrl/Cmd + /). -->\n\n`
|
gen : '<!-- This is a comment that will not be rendered into your brew. Hotkey (Ctrl/Cmd + /). -->'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -95,27 +95,27 @@ module.exports = [
|
|||||||
{
|
{
|
||||||
name : 'Remove Drop Cap',
|
name : 'Remove Drop Cap',
|
||||||
icon : 'fas fa-remove-format',
|
icon : 'fas fa-remove-format',
|
||||||
gen : '/* Removes Drop Caps */\n' +
|
gen : dedent`/* Removes Drop Caps */
|
||||||
'.phb h1+p:first-letter {\n' +
|
.phb h1+p:first-letter {
|
||||||
' all: unset;\n' +
|
all: unset;
|
||||||
'}\n'
|
}\n\n`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name : 'Tweak Drop Cap',
|
name : 'Tweak Drop Cap',
|
||||||
icon : 'fas fa-sliders-h',
|
icon : 'fas fa-sliders-h',
|
||||||
gen : '/* Drop Cap Settings */\n' +
|
gen : dedent`/* Drop Cap Settings */
|
||||||
'.phb h1 + p::first-letter {\n' +
|
.phb h1 + p::first-letter {
|
||||||
' float: left;\n' +
|
float: left;
|
||||||
' font-family: Solberry;\n' +
|
font-family: Solberry;
|
||||||
' font-size: 10em;\n' +
|
font-size: 10em;
|
||||||
' color: #222;\n' +
|
color: #222;
|
||||||
' line-height: .8em;\n' +
|
line-height: .8em;
|
||||||
'}\n'
|
}\n\n`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name : 'Add Comment',
|
name : 'Add Comment',
|
||||||
icon : 'fas fa-code',
|
icon : 'fas fa-code',
|
||||||
gen : `\n/* This is a comment that will not be rendered into your brew. */\n\n`
|
gen : '/* This is a comment that will not be rendered into your brew. */'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user