From 807f865d8b1ea88db7c640eb201f05993e32f2eb Mon Sep 17 00:00:00 2001
From: Gazook89 <58999374+Gazook89@users.noreply.github.com>
Date: Thu, 12 Aug 2021 07:42:08 -0500
Subject: [PATCH] Match Legacy snippets to v3, remove '
+ gen : ['/* A4 Page Size */',
+ '.phb{',
+ ' width : 210mm;',
+ ' height : 296.8mm;',
+ '}',
+ ''
].join('\n')
},
{
name : 'Square Page Size',
icon : 'far fa-file',
- gen : [''
+ gen : ['/* Square Page Size */',
+ '.page {',
+ ' width:5.25in;',
+ ' height:5.25in;',
+ ' padding:.5in;',
+ ' columns:unset;',
+ '}',
+ ''
].join('\n')
},
{
name : 'Ink Friendly',
icon : 'fas fa-tint',
- gen : ['',
+ gen : ['/* Ink Friendly */',
+ '.pages *:is(.page,.monster,.note,.descriptive) {',
+ ' background:white !important;',
+ ' box-shadow:0px 0px 3px !important;',
+ '}',
+ '',
+ '.page .note:before {',
+ ' box-shadow:0px 0px 3px;',
+ '}',
''
].join('\n')
},
diff --git a/client/homebrew/editor/snippetbar/snippetsLegacy/snippets.js b/client/homebrew/editor/snippetbar/snippetsLegacy/snippets.js
index b66430dbb..5015d371a 100644
--- a/client/homebrew/editor/snippetbar/snippetsLegacy/snippets.js
+++ b/client/homebrew/editor/snippetbar/snippetsLegacy/snippets.js
@@ -271,24 +271,36 @@ module.exports = [
view : 'style',
snippets : [
{
- name : 'A4 PageSize',
+ name : 'A4 Page Size',
icon : 'far fa-file',
- gen : [''
+ '}'
+ ].join('\n')
+ },
+ {
+ name : 'Square Page Size',
+ icon : 'far fa-file',
+ gen : ['/* Square Page Size */',
+ '.phb {',
+ ' width:5.25in;',
+ ' height:5.25in;',
+ ' padding:.5in;',
+ ' columns:unset;',
+ '}',
+ ''
].join('\n')
},
{
name : 'Ink Friendly',
icon : 'fas fa-tint',
- gen : ['',
+ gen : ['/* Ink Friendly */',
+ '.phb, .phb blockquote, .phb hr+blockquote {',
+ ' background : white;',
+ ' box-shadow : 0px 0px 3px;',
+ '}',
''
].join('\n')
},