Allow rotation and positioning up and down
@@ -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'/>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||

|
{height:100%}
|
||||||
}}\n\n`;
|
}}\n\n`;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 50 KiB |
BIN
themes/assets/waterColorMasks/edge/0001.webp
Normal file
|
After Width: | Height: | Size: 34 KiB |
|
Before Width: | Height: | Size: 86 KiB |
BIN
themes/assets/waterColorMasks/edge/0002.webp
Normal file
|
After Width: | Height: | Size: 56 KiB |
|
Before Width: | Height: | Size: 74 KiB |
BIN
themes/assets/waterColorMasks/edge/0003.webp
Normal file
|
After Width: | Height: | Size: 52 KiB |
|
Before Width: | Height: | Size: 52 KiB |
BIN
themes/assets/waterColorMasks/edge/0004.webp
Normal file
|
After Width: | Height: | Size: 41 KiB |
|
Before Width: | Height: | Size: 58 KiB |
BIN
themes/assets/waterColorMasks/edge/0005.webp
Normal file
|
After Width: | Height: | Size: 41 KiB |
|
Before Width: | Height: | Size: 64 KiB |
BIN
themes/assets/waterColorMasks/edge/0006.webp
Normal file
|
After Width: | Height: | Size: 44 KiB |
|
Before Width: | Height: | Size: 34 KiB |
BIN
themes/assets/waterColorMasks/edge/0007.webp
Normal file
|
After Width: | Height: | Size: 25 KiB |
|
Before Width: | Height: | Size: 47 KiB |
BIN
themes/assets/waterColorMasks/edge/0008.webp
Normal file
|
After Width: | Height: | Size: 33 KiB |
|
Before Width: | Height: | Size: 61 KiB |
|
Before Width: | Height: | Size: 44 KiB |
|
Before Width: | Height: | Size: 44 KiB |
|
Before Width: | Height: | Size: 55 KiB |
|
Before Width: | Height: | Size: 74 KiB |
|
Before Width: | Height: | Size: 62 KiB |
|
Before Width: | Height: | Size: 94 KiB |
|
Before Width: | Height: | Size: 131 KiB |
|
Before Width: | Height: | Size: 79 KiB |
|
Before Width: | Height: | Size: 82 KiB |
|
Before Width: | Height: | Size: 81 KiB |
|
Before Width: | Height: | Size: 108 KiB |
|
Before Width: | Height: | Size: 134 KiB |
|
Before Width: | Height: | Size: 133 KiB |
|
Before Width: | Height: | Size: 108 KiB |
|
Before Width: | Height: | Size: 120 KiB |
|
Before Width: | Height: | Size: 98 KiB |
|
Before Width: | Height: | Size: 92 KiB |
|
Before Width: | Height: | Size: 130 KiB |