0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-09 11:32:39 +00:00

Change .coverPage to .frontCover, clean CSS

This commit is contained in:
Trevor Buckner
2023-03-30 17:22:35 -04:00
parent 0fbda91169
commit a1476582b0
3 changed files with 6 additions and 14 deletions

View File

@@ -72,7 +72,7 @@ module.exports = {
front : function() { front : function() {
return dedent` return dedent`
{{coverPage }} {{frontCover}}
{{logo ![](/assets/naturalCritLogo.svg)}} {{logo ![](/assets/naturalCritLogo.svg)}}
@@ -86,7 +86,7 @@ module.exports = {
${_.sample(footnote)} ${_.sample(footnote)}
}} }}
![background image](https://i.imgur.com/Mqx8Vf7.png) ![background image](https://i.imgur.com/IwHRrbF.jpg){position:absolute,bottom:0,left:0,height:100%}
\page`; \page`;
}, },

View File

@@ -678,9 +678,9 @@ h5 + table{
} }
} }
//***************************** //*****************************
// * COVER PAGE // * FRONT COVER PAGE
// *****************************/ // *****************************/
.page:has(.coverPage) { .page:has(.frontCover) {
columns : 1; columns : 1;
text-align : center; text-align : center;
&:after { &:after {
@@ -772,17 +772,9 @@ h5 + table{
width : 100%; width : 100%;
} }
} }
.columnWrapper > p img {
position : absolute;
bottom : 0;
left : 0;
height : 100%;
min-width : 100%;
z-index : -1;
}
} }
//***************************** //*****************************
// * INSIDE COVER PAGE // * INSIDE COVER PAGE
// *****************************/ // *****************************/
.page:has(.insideCover) { .page:has(.insideCover) {
columns : 1; columns : 1;

View File

@@ -2,7 +2,7 @@ const _ = require('lodash');
const dedent = require('dedent-tabs').default; const dedent = require('dedent-tabs').default;
module.exports = { module.exports = {
center :()=>{ center : ()=>{
return dedent` return dedent`
{{imageMaskCenter${_.random(1, 16)},--offsetX:0%,--offsetY:0%,--rotation:0 {{imageMaskCenter${_.random(1, 16)},--offsetX:0%,--offsetY:0%,--rotation:0
![](https://i.imgur.com/GZfjDWV.png){height:100%} ![](https://i.imgur.com/GZfjDWV.png){height:100%}