diff --git a/client/homebrew/editor/snippetbar/snippets/snippets.js b/client/homebrew/editor/snippetbar/snippets/snippets.js
index d3ef7bce7..15fc5ba14 100644
--- a/client/homebrew/editor/snippetbar/snippets/snippets.js
+++ b/client/homebrew/editor/snippetbar/snippets/snippets.js
@@ -13,7 +13,7 @@ const watercolorGen = require('./watercolor.gen.js');
module.exports = [
{
- groupName : 'Editor',
+ groupName : 'Text Editor',
icon : 'fas fa-pencil-alt',
view : 'text',
snippets : [
@@ -79,35 +79,41 @@ module.exports = [
icon : 'fas fa-book',
gen : TableOfContentsGen
},
+ {
+ name : 'Add Comment',
+ icon : 'fas fa-code',
+ gen : ''
+ },
+ ]
+ },
+ {
+ groupName : 'Style Editor',
+ icon : 'fas fa-pencil-alt',
+ view : 'style',
+ snippets : [
{
name : 'Remove Drop Cap',
icon : 'fas fa-remove-format',
- gen : ''
+ gen : dedent`/* Removes Drop Caps */
+ .page h1+p:first-letter {
+ all: unset;
+ }\n\n`
},
{
name : 'Tweak Drop Cap',
icon : 'fas fa-sliders-h',
- gen : ''
+ gen : dedent`/* Drop Cap settings */
+ .page h1 + p::first-letter {
+ font-family: SolberaImitationRemake;
+ font-size: 3.5cm;
+ background-image: linear-gradient(-45deg, #322814, #998250, #322814);
+ line-height: 1em;
+ }\n\n`
},
{
name : 'Add Comment',
- icon : 'fas fa-code', /* might need to be fa-solid fa-comment-code --not sure, Gazook */
- gen : dedent`\n
-
- `
+ icon : 'fas fa-code',
+ gen : '/* This is a comment that will not be rendered into your brew. */'
},
]
},
@@ -254,36 +260,6 @@ module.exports = [
icon : 'fas fa-table',
view : 'text',
snippets : [
- {
- name : 'Class Table',
- icon : 'fas fa-table',
- gen : ClassTableGen.full('classTable,frame,decoration,wide'),
- },
- {
- name : 'Class Table (unframed)',
- icon : 'fas fa-border-none',
- gen : ClassTableGen.full('classTable,wide'),
- },
- {
- name : '1/2 Class Table',
- icon : 'fas fa-list-alt',
- gen : ClassTableGen.half('classTable,decoration,frame'),
- },
- {
- name : '1/2 Class Table (unframed)',
- icon : 'fas fa-border-none',
- gen : ClassTableGen.half('classTable'),
- },
- {
- name : '1/3 Class Table',
- icon : 'fas fa-border-all',
- gen : ClassTableGen.third('classTable,frame'),
- },
- {
- name : '1/3 Class Table (unframed)',
- icon : 'fas fa-border-none',
- gen : ClassTableGen.third('classTable'),
- },
{
name : 'Table',
icon : 'fas fa-th-list',
@@ -343,6 +319,36 @@ module.exports = [
}}
\n`;
}
+ },
+ {
+ name : 'Class Table',
+ icon : 'fas fa-table',
+ gen : ClassTableGen.full('classTable,frame,decoration,wide'),
+ },
+ {
+ name : 'Class Table (unframed)',
+ icon : 'fas fa-border-none',
+ gen : ClassTableGen.full('classTable,wide'),
+ },
+ {
+ name : '1/2 Class Table',
+ icon : 'fas fa-list-alt',
+ gen : ClassTableGen.half('classTable,decoration,frame'),
+ },
+ {
+ name : '1/2 Class Table (unframed)',
+ icon : 'fas fa-border-none',
+ gen : ClassTableGen.half('classTable'),
+ },
+ {
+ name : '1/3 Class Table',
+ icon : 'fas fa-border-all',
+ gen : ClassTableGen.third('classTable,frame'),
+ },
+ {
+ name : '1/3 Class Table (unframed)',
+ icon : 'fas fa-border-none',
+ gen : ClassTableGen.third('classTable'),
}
]
},
@@ -360,44 +366,36 @@ module.exports = [
{
name : 'A4 Page Size',
icon : 'far fa-file',
- gen : ['/* A4 Page Size */',
- '.page{',
- ' width : 210mm;',
- ' height : 296.8mm;',
- '}',
- ''
- ].join('\n')
+ gen : dedent`/* A4 Page Size */
+ .page{
+ width : 210mm;
+ height : 296.8mm;
+ }\n\n`
},
{
name : 'Square Page Size',
icon : 'far fa-file',
- gen : ['/* Square Page Size */',
- '.page {',
- ' width : 125mm;',
- ' height : 125mm;',
- ' padding : 12.5mm;',
- ' columns : unset;',
- '}',
- ''
- ].join('\n')
+ gen : dedent`/* Square Page Size */
+ .page {
+ width : 125mm;
+ height : 125mm;
+ padding : 12.5mm;
+ columns : unset;
+ }\n\n`
},
{
name : 'Ink Friendly',
icon : 'fas fa-tint',
gen : dedent`
/* Ink Friendly */
- .pages *:is(.page,.monster,.note,.descriptive) {
+ *:is(.page,.monster,.note,.descriptive) {
background : white !important;
- box-shadow : 0px 0px 3px !important;
- }
-
- .page .note:before {
- box-shadow : 0px 0px 3px;
+ filter : drop-shadow(0px 0px 3px #888) !important;
}
.page img {
visibility : hidden;
- }`
+ }\n\n`
},
]
},
diff --git a/client/homebrew/editor/snippetbar/snippetsLegacy/snippets.js b/client/homebrew/editor/snippetbar/snippetsLegacy/snippets.js
index 573af8b2a..40c8405ac 100644
--- a/client/homebrew/editor/snippetbar/snippetsLegacy/snippets.js
+++ b/client/homebrew/editor/snippetbar/snippetsLegacy/snippets.js
@@ -11,7 +11,7 @@ const dedent = require('dedent-tabs').default;
module.exports = [
{
- groupName : 'Editor',
+ groupName : 'Text Editor',
icon : 'fas fa-pencil-alt',
view : 'text',
snippets : [
@@ -78,33 +78,44 @@ module.exports = [
icon : 'fas fa-book',
gen : TableOfContentsGen
},
+ {
+ name : 'Add Comment',
+ icon : 'fas fa-code',
+ gen : ''
+ }
+ ]
+ },
+
+
+ {
+ groupName : 'Style Editor',
+ icon : 'fas fa-pencil-alt',
+ view : 'style',
+ snippets : [
{
name : 'Remove Drop Cap',
icon : 'fas fa-remove-format',
- gen : ''
+ gen : dedent`/* Removes Drop Caps */
+ .phb h1+p:first-letter {
+ all: unset;
+ }\n\n`
},
{
name : 'Tweak Drop Cap',
icon : 'fas fa-sliders-h',
- gen : ''
+ gen : dedent`/* Drop Cap Settings */
+ .phb h1 + p::first-letter {
+ float: left;
+ font-family: Solberry;
+ font-size: 10em;
+ color: #222;
+ line-height: .8em;
+ }\n\n`
},
{
name : 'Add Comment',
icon : 'fas fa-code',
- gen : `\n\n\n`
+ gen : '/* This is a comment that will not be rendered into your brew. */'
}
]
},
diff --git a/themes/5ePhb.style.less b/themes/5ePhb.style.less
index 19492ebef..607a13cca 100644
--- a/themes/5ePhb.style.less
+++ b/themes/5ePhb.style.less
@@ -146,9 +146,9 @@ body {
font-size : 3.5cm;
padding-left : 40px; //Allow background color to extend into margins
margin-left : -40px;
- margin-top :-0.3cm;
- padding-bottom :2px;
- margin-bottom :-20px;
+ margin-top : -0.3cm;
+ padding-bottom : 2px;
+ margin-bottom : -20px;
background-image : linear-gradient(-45deg, #322814, #998250, #322814);
background-clip : text;
-webkit-background-clip : text;