0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-02 12:52:38 +00:00

Allow rotation and positioning up and down

This commit is contained in:
Trevor Buckner
2022-09-25 21:43:40 -04:00
parent d079985e6c
commit b8d7d1a8e4
38 changed files with 38 additions and 37 deletions

View File

@@ -91,6 +91,7 @@ const PrintPage = createClass({
return <div> return <div>
<Meta name='robots' content='noindex, nofollow' /> <Meta name='robots' content='noindex, nofollow' />
<link href={`/themes/${rendererPath}/Blank/style.css`} rel='stylesheet'/>
{baseThemePath && {baseThemePath &&
<link href={`/themes/${rendererPath}/${baseThemePath}/style.css`} rel='stylesheet'/> <link href={`/themes/${rendererPath}/${baseThemePath}/style.css`} rel='stylesheet'/>
} }

View File

@@ -1,7 +1,7 @@
const _ = require('lodash'); const _ = require('lodash');
module.exports = ()=>{ module.exports = ()=>{
return `{{imageMask${_.random(1, 6)},top return `{{imageMask${_.random(1, 6)},--offset:0cm,--rotation:0
![](https://assets1.ignimgs.com/2019/05/29/dndmobile-br-1559158957902_160w.jpg?width=1280) ![](https://assets1.ignimgs.com/2019/05/29/dndmobile-br-1559158957902_160w.jpg?width=1280){height:100%}
}}\n\n`; }}\n\n`;
}; };

View File

@@ -172,34 +172,34 @@ body {
/* Image Masks */ /* Image Masks */
[class*="imageMask"] { [class*="imageMask"] {
position:absolute; position : absolute;
height: 100%; height : 200%;
width: 279.4mm; // Page height width : 200%;
left:0px; left : 50%;
bottom:0px; bottom : 50%;
--rotation : 0; --rotation : 0;
--revealer : none; --revealer : none;
--checkerboard : none; --checkerboard : none;
-webkit-mask-image : var(--wc), var(--revealer); -webkit-mask-image : var(--wc), var(--revealer);
-webkit-mask-repeat : no-repeat; -webkit-mask-repeat : repeat-x;
-webkit-mask-size : 100% 100%; -webkit-mask-size : 50%;
mask-image : var(--wc); -webkit-mask-position : 50% calc(50% - var(--offset));
mask-repeat : no-repeat; mask-image : var(--wc);
mask-size : 100% 100%; mask-repeat : repeat-x;
background-image: var(--checkerboard); mask-size : 50%;
background-size: 20px; mask-position : 50% calc(50% - var(--offset));
z-index : -1; background-image : var(--checkerboard);
//background-image : url(/assets/watercolorMasks/testBackground.jpg); background-size : 20px;
//background-size : 0px; // Hide the background so it can be inherited into :before z-index : -1;
transform : rotate(calc(1deg * var(--rotation))); transform : translateY(50%) translateX(-50%) rotate(calc(1deg * var(--rotation)));
transition : transform 2s; transition : transform 2s;
& > :not(img) { & > p:has(img) {
position : absolute; position : absolute;
bottom : 0; width : 50%;
left : 0; height : 50%;
width : 100%; bottom : 50%;
height : 100%; left : 50%;
transform : rotate(calc(-1deg * var(--rotation))); transform : translateX(-50%) translateY(50%) rotate(calc(-1deg * var(--rotation)));
transition : transform 2s; transition : transform 2s;
} }
& img { & img {
@@ -221,8 +221,6 @@ body {
} }
&.right { &.right {
--rotation : -90; --rotation : -90;
left : unset;
right : 0px;
& img {right: 0;} & img {right: 0;}
} }
&.revealImage { &.revealImage {
@@ -231,12 +229,14 @@ body {
} }
} }
.imageMask1 { --wc : url(/assets/waterColorMasks/edge/0001.png); } .imageMask1 { --wc : url(/assets/waterColorMasks/edge/0001.webp); }
.imageMask2 { --wc : url(/assets/waterColorMasks/edge/0002.png); } .imageMask2 { --wc : url(/assets/waterColorMasks/edge/0002.webp); }
.imageMask3 { --wc : url(/assets/waterColorMasks/edge/0003.png); } .imageMask3 { --wc : url(/assets/waterColorMasks/edge/0003.webp); }
.imageMask4 { --wc : url(/assets/waterColorMasks/edge/0004.png); } .imageMask4 { --wc : url(/assets/waterColorMasks/edge/0004.webp); }
.imageMask5 { --wc : url(/assets/waterColorMasks/edge/0005.png); } .imageMask5 { --wc : url(/assets/waterColorMasks/edge/0005.webp); }
.imageMask6 { --wc : url(/assets/waterColorMasks/edge/0006.png); } .imageMask6 { --wc : url(/assets/waterColorMasks/edge/0006.webp); }
.imageMask7 { --wc : url(/assets/waterColorMasks/edge/0007.webp); }
.imageMask8 { --wc : url(/assets/waterColorMasks/edge/0008.webp); }
//************************************ //************************************
// * CODE BLOCKS // * CODE BLOCKS

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 131 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 81 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 134 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 133 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 120 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 98 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 130 KiB