Initial commit
@@ -1,7 +1,8 @@
|
|||||||
/* eslint-disable max-lines */
|
/* eslint-disable max-lines */
|
||||||
|
|
||||||
const WatercolorGen = require('./snippets/watercolor.gen.js');
|
const WatercolorGen = require('./snippets/watercolor.gen.js');
|
||||||
const dedent = require('dedent-tabs').default;
|
const ImageMaskGen = require('./snippets/imageMask.gen.js');
|
||||||
|
const dedent = require('dedent-tabs').default;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -102,6 +103,11 @@ module.exports = [
|
|||||||
icon : 'fas fa-fill-drip',
|
icon : 'fas fa-fill-drip',
|
||||||
gen : WatercolorGen,
|
gen : WatercolorGen,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name : 'Watercolor Image Mask',
|
||||||
|
icon : 'fas fa-fill-drip',
|
||||||
|
gen : ImageMaskGen,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name : 'Watermark',
|
name : 'Watermark',
|
||||||
icon : 'fas fa-id-card',
|
icon : 'fas fa-id-card',
|
||||||
|
|||||||
7
themes/V3/Blank/snippets/imageMask.gen.js
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
const _ = require('lodash');
|
||||||
|
|
||||||
|
module.exports = ()=>{
|
||||||
|
return `{{imageMask${_.random(1, 6)},top
|
||||||
|

|
||||||
|
}}\n\n`;
|
||||||
|
};
|
||||||
@@ -170,6 +170,78 @@ body {
|
|||||||
.watercolor11 { --wc : @watercolor11; }
|
.watercolor11 { --wc : @watercolor11; }
|
||||||
.watercolor12 { --wc : @watercolor12; }
|
.watercolor12 { --wc : @watercolor12; }
|
||||||
|
|
||||||
|
/* Image Masks */
|
||||||
|
[class*="imageMask"] {
|
||||||
|
position:absolute;
|
||||||
|
height: 100%;
|
||||||
|
width: 279.4mm; // Page height
|
||||||
|
left:0px;
|
||||||
|
bottom:0px;
|
||||||
|
--revealer : 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%;
|
||||||
|
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;
|
||||||
|
bottom : 0;
|
||||||
|
left : 0;
|
||||||
|
width : 100%;
|
||||||
|
height : 100%;
|
||||||
|
transform : rotate(calc(-1deg * var(--rotation)));
|
||||||
|
transition : transform 2s;
|
||||||
|
}
|
||||||
|
& img {
|
||||||
|
position : absolute;
|
||||||
|
display : block;
|
||||||
|
}
|
||||||
|
&:before {
|
||||||
|
content:'';
|
||||||
|
position:absolute;
|
||||||
|
display:block;
|
||||||
|
height:100%;
|
||||||
|
width:100%;
|
||||||
|
bottom:0px;
|
||||||
|
background-image:inherit;
|
||||||
|
background-position: bottom 0px left 0px;
|
||||||
|
background-size:100% 100%;
|
||||||
|
background-repeat:no-repeat;
|
||||||
|
transform : rotate(calc(-1deg * var(--rotation)));
|
||||||
|
transition : transform 2s;
|
||||||
|
}
|
||||||
|
&.bottom {
|
||||||
|
--rotation : 0;
|
||||||
|
}
|
||||||
|
&.top {
|
||||||
|
--rotation : 180;
|
||||||
|
}
|
||||||
|
&.left {
|
||||||
|
--rotation : 90;
|
||||||
|
}
|
||||||
|
&.right {
|
||||||
|
--rotation : -90;
|
||||||
|
left : unset;
|
||||||
|
right : 0px;
|
||||||
|
}
|
||||||
|
&.revealImage {
|
||||||
|
--revealer : linear-gradient(0deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,0.2));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.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); }
|
||||||
|
|
||||||
//************************************
|
//************************************
|
||||||
// * CODE BLOCKS
|
// * CODE BLOCKS
|
||||||
// ************************************/
|
// ************************************/
|
||||||
|
|||||||
BIN
themes/assets/testBackground.jpg
Normal file
|
After Width: | Height: | Size: 1.1 MiB |
BIN
themes/assets/waterColorMasks/edge/0001.png
Normal file
|
After Width: | Height: | Size: 50 KiB |
BIN
themes/assets/waterColorMasks/edge/0002.png
Normal file
|
After Width: | Height: | Size: 86 KiB |
BIN
themes/assets/waterColorMasks/edge/0003.png
Normal file
|
After Width: | Height: | Size: 74 KiB |
BIN
themes/assets/waterColorMasks/edge/0004.png
Normal file
|
After Width: | Height: | Size: 52 KiB |
BIN
themes/assets/waterColorMasks/edge/0005.png
Normal file
|
After Width: | Height: | Size: 58 KiB |
BIN
themes/assets/waterColorMasks/edge/0006.png
Normal file
|
After Width: | Height: | Size: 64 KiB |
BIN
themes/assets/waterColorMasks/edge/0007.png
Normal file
|
After Width: | Height: | Size: 34 KiB |
BIN
themes/assets/waterColorMasks/edge/0008.png
Normal file
|
After Width: | Height: | Size: 47 KiB |
BIN
themes/assets/waterColorMasks/edge/0009.png
Normal file
|
After Width: | Height: | Size: 61 KiB |
BIN
themes/assets/waterColorMasks/edge/0010.png
Normal file
|
After Width: | Height: | Size: 44 KiB |
BIN
themes/assets/waterColorMasks/edge/0011.png
Normal file
|
After Width: | Height: | Size: 44 KiB |
BIN
themes/assets/waterColorMasks/edge/0012.png
Normal file
|
After Width: | Height: | Size: 55 KiB |
BIN
themes/assets/waterColorMasks/edge/0013.png
Normal file
|
After Width: | Height: | Size: 74 KiB |
BIN
themes/assets/waterColorMasks/edge/0014.png
Normal file
|
After Width: | Height: | Size: 62 KiB |
BIN
themes/assets/waterColorMasks/edge/0015.png
Normal file
|
After Width: | Height: | Size: 94 KiB |
BIN
themes/assets/waterColorMasks/edge/0016.png
Normal file
|
After Width: | Height: | Size: 131 KiB |
BIN
themes/assets/waterColorMasks/edge/0017.png
Normal file
|
After Width: | Height: | Size: 79 KiB |
BIN
themes/assets/waterColorMasks/edge/0018.png
Normal file
|
After Width: | Height: | Size: 82 KiB |
BIN
themes/assets/waterColorMasks/edge/0019.png
Normal file
|
After Width: | Height: | Size: 81 KiB |
BIN
themes/assets/waterColorMasks/edge/0020.png
Normal file
|
After Width: | Height: | Size: 108 KiB |
BIN
themes/assets/waterColorMasks/edge/0021.png
Normal file
|
After Width: | Height: | Size: 134 KiB |
BIN
themes/assets/waterColorMasks/edge/0022.png
Normal file
|
After Width: | Height: | Size: 133 KiB |
BIN
themes/assets/waterColorMasks/edge/0023.png
Normal file
|
After Width: | Height: | Size: 108 KiB |
BIN
themes/assets/waterColorMasks/edge/0024.png
Normal file
|
After Width: | Height: | Size: 120 KiB |
BIN
themes/assets/waterColorMasks/edge/0025.png
Normal file
|
After Width: | Height: | Size: 98 KiB |
BIN
themes/assets/waterColorMasks/edge/0026.png
Normal file
|
After Width: | Height: | Size: 92 KiB |
BIN
themes/assets/waterColorMasks/edge/0027.png
Normal file
|
After Width: | Height: | Size: 130 KiB |