diff --git a/src/stories/PDF.scss b/src/stories/PDF.scss index 1c21846..a5dfe54 100644 --- a/src/stories/PDF.scss +++ b/src/stories/PDF.scss @@ -139,6 +139,7 @@ body { h1, .h1, + caption[style*="--size:1"], caption[style*="--size: 1"] { page-break-after: avoid; font-size: $font-size-h1; @@ -154,6 +155,7 @@ body { } h2, .h2, + caption[style*="--size:2"], caption[style*="--size: 2"] { page-break-after: avoid; font-size: $font-size-h2; @@ -173,6 +175,7 @@ body { } h3, .h3, + caption[style*="--size:3"], caption[style*="--size: 3"] { page-break-after: avoid; font-size: $font-size-h3; @@ -188,6 +191,7 @@ body { h4, .h4, + caption[style*="--size:4"], caption[style*="--size: 4"], caption:not([style*="--size"]) { page-break-after: avoid; @@ -203,6 +207,7 @@ body { h5, .h5, + caption[style*="--size:5"], caption[style*="--size: 5"] { page-break-after: avoid; font-size: $font-size-h5; @@ -434,6 +439,7 @@ body { } h1, .h1, + caption[style*="--size:1"], caption[style*="--size: 1"] { font-size: calc($font-size-h1 * $scaling-for-signed-documents); margin-top: calc($margin-top-h1 * $scaling-for-signed-documents); @@ -443,6 +449,7 @@ body { } h2, .h2, + caption[style*="--size:2"], caption[style*="--size: 2"] { font-size: calc($font-size-h2 * $scaling-for-signed-documents); margin-top: calc($margin-top-h2 * $scaling-for-signed-documents); @@ -454,6 +461,7 @@ body { } h3, .h3, + caption[style*="--size:3"], caption[style*="--size: 3"] { font-size: calc($font-size-h3 * $scaling-for-signed-documents); margin-top: calc($margin-top-h3 * $scaling-for-signed-documents); @@ -461,6 +469,7 @@ body { } h4, .h4, + caption[style*="--size:4"], caption[style*="--size: 4"], caption:not([style*="--size"]) { font-size: calc($font-size-h4 * $scaling-for-signed-documents); @@ -469,6 +478,7 @@ body { } h5, .h5, + caption[style*="--size:5"], caption[style*="--size: 5"] { font-size: calc($font-size-h5 * $scaling-for-signed-documents); margin-top: calc($margin-top-h5 * $scaling-for-signed-documents);