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

Rework Corner snippet and CSS to allow free rotation

This commit is contained in:
Trevor Buckner
2023-02-02 11:48:30 -05:00
parent 73f141613e
commit 096e281a6c
3 changed files with 34 additions and 17 deletions

View File

@@ -13,11 +13,12 @@ module.exports = {
corner : ()=>{
return dedent`
{{imageMaskCorner${_.random(1, 8)},--offset:0cm,bottom,left
{{imageMaskCorner${_.random(1, 8)},--offsetX:0%,offsetY:0%
![](https://i.imgur.com/1w5khYt.png){height:100%}
}}
<!-- Use offset to shift the edge up or down.
Use top, bottom, left, and right to select a corner -->\n\n`;
<!-- Use --offsetX to shift the mask left or right (you can use cm instead of %)
Use --offsetY to shift the mask up or down
Use --rotation to set rotation angle in degrees. -->\n\n`;
}
};