Allow rotation and positioning up and down
@@ -91,6 +91,7 @@ const PrintPage = createClass({
|
||||
|
||||
return <div>
|
||||
<Meta name='robots' content='noindex, nofollow' />
|
||||
<link href={`/themes/${rendererPath}/Blank/style.css`} rel='stylesheet'/>
|
||||
{baseThemePath &&
|
||||
<link href={`/themes/${rendererPath}/${baseThemePath}/style.css`} rel='stylesheet'/>
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
const _ = require('lodash');
|
||||
|
||||
module.exports = ()=>{
|
||||
return `{{imageMask${_.random(1, 6)},top
|
||||

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