0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-31 13:02:38 +00:00

update v3 drop cap tweak to match new styling

and change v3 drop cap to use only `background` rather than `background-image` so that the tweak snippet can easily change between gradient and just a regular color.

and re-order table menu so that the regular table snippet is at top.
This commit is contained in:
Gazook89
2021-09-05 15:40:08 -05:00
parent cf5a1cee24
commit 3063337eb2
3 changed files with 43 additions and 44 deletions

View File

@@ -106,11 +106,10 @@ module.exports = [
icon : 'fas fa-sliders-h', icon : 'fas fa-sliders-h',
gen : '/* Drop Cap settings */\n' + gen : '/* Drop Cap settings */\n' +
'.phb3 h1 + p::first-letter {\n' + '.phb3 h1 + p::first-letter {\n' +
' float: left;\n' +
' font-family: SolberaImitationRemake;\n' + ' font-family: SolberaImitationRemake;\n' +
' font-size: 3.5cm;\n' + ' font-size: 3.5cm;\n' +
' color: #222;\n' + ' background: linear-gradient(-45deg, #322814, #998250, #322814);\n' +
' line-height: .8em;\n' + ' line-height: 1em;\n' +
'}\n' '}\n'
}, },
{ {
@@ -265,36 +264,6 @@ module.exports = [
icon : 'fas fa-table', icon : 'fas fa-table',
view : 'text', view : 'text',
snippets : [ 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', name : 'Table',
icon : 'fas fa-th-list', icon : 'fas fa-th-list',
@@ -354,6 +323,36 @@ module.exports = [
}} }}
\n`; \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'),
} }
] ]
}, },

View File

@@ -204,16 +204,6 @@ module.exports = [
icon : 'fas fa-table', icon : 'fas fa-table',
view : 'text', view : 'text',
snippets : [ snippets : [
{
name : 'Class Table',
icon : 'fas fa-table',
gen : ClassTableGen.full,
},
{
name : 'Half Class Table',
icon : 'fas fa-list-alt',
gen : ClassTableGen.half,
},
{ {
name : 'Table', name : 'Table',
icon : 'fas fa-th-list', icon : 'fas fa-th-list',
@@ -275,6 +265,16 @@ module.exports = [
'</div>\n\n', '</div>\n\n',
].join('\n'); ].join('\n');
}, },
},
{
name : 'Class Table',
icon : 'fas fa-table',
gen : ClassTableGen.full,
},
{
name : 'Half Class Table',
icon : 'fas fa-list-alt',
gen : ClassTableGen.half,
} }
] ]
}, },

View File

@@ -145,7 +145,7 @@ body {
margin-top :-0.3cm; margin-top :-0.3cm;
padding-bottom :2px; padding-bottom :2px;
margin-bottom :-20px; margin-bottom :-20px;
background-image : linear-gradient(-45deg, #322814, #998250, #322814); background : linear-gradient(-45deg, #322814, #998250, #322814);
background-clip : text; background-clip : text;
-webkit-background-clip : text; -webkit-background-clip : text;
color : rgba(0, 0, 0, 0); color : rgba(0, 0, 0, 0);