Skip to content

Commit

Permalink
Build package
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamindehli committed Nov 29, 2024
1 parent fafaf86 commit 795efde
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 34 deletions.
77 changes: 53 additions & 24 deletions dist/components/PDF.scss
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ $padding-horizontal-table-data: 4px;
$padding-vertical-no-border-table-header: 0px;
$padding-vertical-no-border-table-data: 2px;

$column-gap-grid: 20px;

$scaling-for-signed-documents: 1.10802;

html,
Expand Down Expand Up @@ -239,32 +241,40 @@ body {
list-style: none;
}
}
&[style*="--title-width"] {
display: flex;
flex-flow: row wrap;
align-items: end;
dt {
width: var(--title-width);
}
dd {
flex-basis: calc(100% - var(--title-width));
flex-grow: 1;
&[style*="--display-type: inline"],
&:not([style*="--display-type"]) {
&[style*="--title-width"] {
display: flex;
flex-flow: row wrap;
align-items: end;
dt {
width: var(--title-width);
}
dd {
flex-basis: calc(100% - var(--title-width));
flex-grow: 1;
}
}
}
&:not([style*="--title-width"]) {
dt {
display: inline;
&::before {
display: block;
content: "";
&:not([style*="--title-width"]) {
dt {
display: inline;
&::before {
display: block;
content: "";
}
&::after {
display: inline;
content: " ";
}
}
&::after {
dd {
display: inline;
content: " ";
}
}
}
&[style*="--display-type: stacked"] {
dd {
display: inline;
margin-bottom: $margin-bottom-list;
}
}
}
Expand Down Expand Up @@ -344,6 +354,13 @@ body {
}
}

.grid {
display: grid;
justify-content: space-between;
grid-template-columns: repeat(var(--columns), 1fr);
column-gap: $column-gap-grid;
}

blockquote {
background: var(--color-secondary-x-light, colors.$color-secondary-x-light);
border-left: $border-left-width-blockquote solid var(--color-border, colors.$color-border);
Expand Down Expand Up @@ -495,12 +512,20 @@ body {
dd {
margin: calc($margin-vertical-description-list * $scaling-for-signed-documents) 0;
}
&[style*="--title-width"] {
dt {
width: calc(var(--title-width) * $scaling-for-signed-documents);
&[style*="--display-type: inline"],
&:not([style*="--display-type"]) {
&[style*="--title-width"] {
dt {
width: calc(var(--title-width) * $scaling-for-signed-documents);
}
dd {
flex-basis: calc(100% - (var(--title-width) * $scaling-for-signed-documents));
}
}
}
&[style*="--display-type: stacked"] {
dd {
flex-basis: calc(100% - (var(--title-width) * $scaling-for-signed-documents));
margin-bottom: calc($margin-bottom-list * $scaling-for-signed-documents);
}
}
}
Expand Down Expand Up @@ -546,6 +571,10 @@ body {
}
}

.grid {
column-gap: calc($column-gap-grid * $scaling-for-signed-documents);
}

blockquote {
background: var(--color-secondary-x-light, colors.$color-secondary-x-light);
border-left: calc($border-left-width-blockquote * $scaling-for-signed-documents) solid
Expand Down
33 changes: 24 additions & 9 deletions dist/style/pdf.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/style/pdf.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 795efde

Please sign in to comment.