fix tables in PDF

This commit is contained in:
tildearrow 2023-09-10 23:58:37 -05:00
parent 9da4e1c236
commit 53a4edb759

View file

@ -184,13 +184,13 @@ if __name__ == "__main__":
} }
a[href^='#']:after { a[href^='#']:after {
content: target-counter(attr(href),page); content: target-counter(attr(href),page);
font-weight: regular; font-weight: normal;
font-size: 0.5em; font-size: 0.5em;
color: #555; color: #555;
} }
a[href^='http']:after { a[href^='http']:after {
content: ' (' attr(href) ') '; content: ' (' attr(href) ') ';
font-weight: regular; font-weight: normal;
color: #555; color: #555;
} }
#cover { #cover {
@ -215,7 +215,6 @@ if __name__ == "__main__":
table { table {
display: block; display: block;
width: 100%%; width: 100%%;
width: max-content;
max-width: 100%%; max-width: 100%%;
overflow: auto; overflow: auto;
border-collapse: collapse; border-collapse: collapse;
@ -225,14 +224,17 @@ if __name__ == "__main__":
border-top: 1pt solid #aaa; border-top: 1pt solid #aaa;
} }
th, td { th, td {
padding: 3pt 6pt; padding: 2pt 3pt;
border: 1pt solid #ccc; border: 1pt solid #ccc;
} }
th { th {
hyphens: none; hyphens: none;
padding: 2pt 4pt; padding: 2pt 4pt;
text-transform: uppercase; text-transform: uppercase;
font-size: .8em font-size: .8em;
}
td {
font-size: 11pt;
} }
@page { @page {
size: a4; size: a4;