Skip to content

Commit

Permalink
Support CSS selectors without whitespace for caption size
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamindehli committed Nov 26, 2024
1 parent 1aed4f7 commit d4b126f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/stories/PDF.scss
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ body {

h1,
.h1,
caption[style*="--size:1"],
caption[style*="--size: 1"] {
page-break-after: avoid;
font-size: $font-size-h1;
Expand All @@ -154,6 +155,7 @@ body {
}
h2,
.h2,
caption[style*="--size:2"],
caption[style*="--size: 2"] {
page-break-after: avoid;
font-size: $font-size-h2;
Expand All @@ -173,6 +175,7 @@ body {
}
h3,
.h3,
caption[style*="--size:3"],
caption[style*="--size: 3"] {
page-break-after: avoid;
font-size: $font-size-h3;
Expand All @@ -188,6 +191,7 @@ body {

h4,
.h4,
caption[style*="--size:4"],
caption[style*="--size: 4"],
caption:not([style*="--size"]) {
page-break-after: avoid;
Expand All @@ -203,6 +207,7 @@ body {

h5,
.h5,
caption[style*="--size:5"],
caption[style*="--size: 5"] {
page-break-after: avoid;
font-size: $font-size-h5;
Expand Down Expand Up @@ -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);
Expand All @@ -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);
Expand All @@ -454,13 +461,15 @@ 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);
margin-bottom: calc($margin-bottom-h3 * $scaling-for-signed-documents);
}
h4,
.h4,
caption[style*="--size:4"],
caption[style*="--size: 4"],
caption:not([style*="--size"]) {
font-size: calc($font-size-h4 * $scaling-for-signed-documents);
Expand All @@ -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);
Expand Down

0 comments on commit d4b126f

Please sign in to comment.