From 2019d91711e9c26db20c99fc7381ccfeb2fb309a Mon Sep 17 00:00:00 2001 From: LUCASTUCIOUS Date: Mon, 11 Apr 2022 18:12:42 +0200 Subject: [PATCH 1/2] [V3] Fix note render to pdf --- themes/5ePhb.style.less | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/themes/5ePhb.style.less b/themes/5ePhb.style.less index 0ca89693b..b0ed098c6 100644 --- a/themes/5ePhb.style.less +++ b/themes/5ePhb.style.less @@ -228,7 +228,7 @@ body { border-image-outset : 9px 0px; border-image-width : 11px; padding : 0.13cm 0.16cm; - filter : drop-shadow(1px 4px 6px #888); + box-shadow: 1px 4px 14px #888; .page :where(&) { margin-top : 9px; //Prevent top border getting cut off on colbreak } @@ -257,7 +257,7 @@ body { border-image : @descriptiveBoxImage 12 stretch; border-image-outset : 4px; padding : 0.1em; - filter : drop-shadow(0 0 3px #faf7ea); + box-shadow : 0px 0px 3px #faf7ea; .page :where(&) { margin-top : 4px; //Prevent top border getting cut off on colbreak } @@ -372,7 +372,7 @@ body { border-image-outset : 0px 2px; background-blend-mode : overlay; background-attachment : fixed; - filter : drop-shadow(1px 4px 6px #888); + box-shadow : 1px 4px 6px #888; padding : 4px 2px; margin-left : -0.16cm; margin-right : -0.16cm; @@ -635,7 +635,7 @@ body { top : 50%; left : 50%; transform : translateY(-50%) translateX(-50%) translateZ(-1px); - filter : drop-shadow(0px 0px 1px #C8C5C080) + box-shadow : 0px 0px 1px #C8C5C080; } &.decoration.wide::before { width : calc(100% + 3.3cm); From 164e0a4433db9edf48a40551ebb448dc924d5c9c Mon Sep 17 00:00:00 2001 From: Trevor Buckner Date: Mon, 6 Mar 2023 14:09:59 -0500 Subject: [PATCH 2/2] adjust values based on old original box-shadow sizes Some shadows need to be made bigger to interact with the border-image hanging over the top of the shadow. This just restores those sizes we had before first changing to filter:drop-shadow. See https://github.com/naturalcrit/homebrewery/pull/1577/files --- themes/V3/5ePHB/style.less | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/themes/V3/5ePHB/style.less b/themes/V3/5ePHB/style.less index 61c9900fe..5c4733c6c 100644 --- a/themes/V3/5ePHB/style.less +++ b/themes/V3/5ePHB/style.less @@ -253,7 +253,7 @@ body { border-image-outset : 9px 0px; border-image-width : 11px; padding : 0.13cm 0.16cm; - filter : drop-shadow(1px 4px 6px #888); + box-shadow : 1px 4px 14px #888; .page :where(&) { margin-top : 9px; //Prevent top border getting cut off on colbreak } @@ -282,7 +282,7 @@ body { border-image : @descriptiveBoxImage 12 stretch; border-image-outset : 4px; padding : 0.1em; - filter : drop-shadow(0 0 3px #faf7ea); + box-shadow : 0 0 6px #faf7ea; .page :where(&) { margin-top : 4px; //Prevent top border getting cut off on colbreak } @@ -397,7 +397,7 @@ body { border-image-outset : 0px 2px; background-blend-mode : overlay; background-attachment : fixed; - filter : drop-shadow(1px 4px 6px #888); + box-shadow : 1px 4px 14px #888; padding : 4px 2px; margin-left : -0.16cm; margin-right : -0.16cm; @@ -687,11 +687,11 @@ h5 + table{ all: unset; } .logo { - position : absolute; - top : 0.5cm; - left : 0; - right : 0; - filter : drop-shadow(0 0 0.075cm black); + position : absolute; + top : 0.5cm; + left : 0; + right : 0; + filter :drop-shadow(0 0 0.075cm black); img { height : 2cm; width : 100%; @@ -746,7 +746,7 @@ h5 + table{ filter : drop-shadow(0 0 3px black); } .banner { - filter : drop-shadow(2px 2px 2px #000); + filter : drop-shadow(2px 2px 2px black); position : absolute; left : 0; bottom : 4.2cm;