mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-05 23:12:39 +00:00
Add Square Page snippet
Add a snippet to Print menu (renamed to "Page") for a square page. Reduces padding and removes columns as well.
This commit is contained in:
@@ -285,14 +285,14 @@ module.exports = [
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**************** PRINT *************/
|
/**************** PAGE *************/
|
||||||
|
|
||||||
{
|
{
|
||||||
groupName : 'Print',
|
groupName : 'Page',
|
||||||
icon : 'fas fa-print',
|
icon : 'fas fa-print',
|
||||||
snippets : [
|
snippets : [
|
||||||
{
|
{
|
||||||
name : 'A4 PageSize',
|
name : 'A4 Page Size',
|
||||||
icon : 'far fa-file',
|
icon : 'far fa-file',
|
||||||
gen : ['<style>',
|
gen : ['<style>',
|
||||||
' .phb{',
|
' .phb{',
|
||||||
@@ -302,6 +302,19 @@ module.exports = [
|
|||||||
'</style>'
|
'</style>'
|
||||||
].join('\n')
|
].join('\n')
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name : 'Square Page Size',
|
||||||
|
icon : 'far fa-file',
|
||||||
|
gen : ['<style>',
|
||||||
|
' .page {',
|
||||||
|
' width:5.25in;',
|
||||||
|
' height:5.25in;',
|
||||||
|
' padding:.5in;',
|
||||||
|
' columns:unset;',
|
||||||
|
' }',
|
||||||
|
'</style>'
|
||||||
|
].join('\n')
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name : 'Ink Friendly',
|
name : 'Ink Friendly',
|
||||||
icon : 'fas fa-tint',
|
icon : 'fas fa-tint',
|
||||||
|
|||||||
Reference in New Issue
Block a user