Skip to content

Commit

Permalink
fix: Fix tables and images
Browse files Browse the repository at this point in the history
  • Loading branch information
ewuerger committed Aug 8, 2024
1 parent 8984404 commit 2e4d8fa
Showing 1 changed file with 23 additions and 10 deletions.
33 changes: 23 additions & 10 deletions extensions/sbb-pdf-exporter/DBS Stylesheet.css
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,6 @@
content: none;
display: none;
}

table:first-of-type {
width: 100%;
table-layout: fixed;
}

table:first-of-type td {
width: 50% !important;
overflow: hidden;
}
}

@page {
Expand All @@ -97,31 +87,37 @@
@top-left {
content: element(top-left);
display: none;
padding-bottom: -25px;
}

@top-center {
content: element(top-center);
width: 100%;
padding-bottom: -25px;
}

@top-right {
content: element(top-right);
display: none;
padding-bottom: -25px;
}

@bottom-left {
content: element(bottom-left);
display: none;
padding-top: 25px;
}

@bottom-center {
content: element(bottom-center);
width: 100%;
padding-top: 25px;
}

@bottom-right {
content: element(bottom-right);
display: none;
padding-top: 25px;
}
}

Expand Down Expand Up @@ -194,6 +190,16 @@
break-after: avoid;
}

/*
table:first-of-type {
table-layout: fixed !important;
}
table:first-of-type td {
width: 50% !important;
overflow: hidden;
}*/

table {
width: 100%;
table-layout: auto;
Expand Down Expand Up @@ -253,6 +259,9 @@ ol {
}

a {
max-width: 100%;
height: auto;
display: block;
text-decoration: none;
color: #197FA2;
}
Expand Down Expand Up @@ -280,6 +289,10 @@ td>a {
display: block;
}

td>a>img {
width: 100% !important;
}

.header,
.footer {
display: none;
Expand Down

0 comments on commit 2e4d8fa

Please sign in to comment.