Skip to content

Commit

Permalink
feat: Initial new stylesheet
Browse files Browse the repository at this point in the history
  • Loading branch information
ewuerger committed Aug 8, 2024
1 parent 1038a67 commit 8984404
Showing 1 changed file with 41 additions and 16 deletions.
57 changes: 41 additions & 16 deletions extensions/sbb-pdf-exporter/DBS Stylesheet.css
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,19 @@
display: none;
}

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

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

@page {
margin: 90px 60px 90px 80px;
margin: 60px 40px 60px 40px;
border-bottom: 1px solid #aaa;

@top-left {
Expand Down Expand Up @@ -189,6 +195,8 @@
}

table {
width: 100%;
table-layout: auto;
border-collapse: collapse;
break-inside: auto;
break-before: avoid;
Expand All @@ -198,6 +206,11 @@
break-before: avoid;
}

table td {
overflow: hidden;
word-break: break-word;
}

/* table tr:first-child { */
/* page-break-after: avoid; */
/* break-after: avoid; */
Expand Down Expand Up @@ -246,13 +259,17 @@ a {

table {
width: 100%;
table-layout: fixed;
table-layout: auto;
}

table td {
overflow: hidden;
}

table th {
break-before: avoid;
}

th {
background: #eee;
}
Expand All @@ -272,7 +289,7 @@ td>a {
}

.header {
margin-top: 40px;
margin-top: 20px;
border: none;
}

Expand All @@ -295,43 +312,51 @@ ul.toc {
padding: 0;
line-height: 12pt;
font-size: 9pt;
}

ul.toc,
ul.toc ul {
list-style-type: none;
}

ul.toc ul {
padding-inline-start: .6em;
margin-top: .2em;
margin-bottom: .2em;
list-style-type: none;
}

ul.toc li {
/*border-bottom: 1px dotted black;*/
}
/* ul.toc li {
border-bottom: 1px dotted black;
} */

ul.toc li>a {
text-decoration: none;
color: inherit;
display: grid;
grid-template-columns: auto max-content;
align-items: end;
display: flex;
justify-content: space-between;
align-items: center;
}

ul.toc li a .number {
ul.toc li .number {
margin-right: .4em;
}

ul.toc li>a.page-number {
float: right;
float: none;
margin-left: auto;
}

ul.toc li>a.page-number::after {
content: target-counter(attr(href), page);
}

ul.toc li>a::before {
content: attr(data-chapter);
margin-right: 1em;
white-space: nowrap;
}

ul.toc li>a:hover {
text-decoration: underline;
}

table {
max-width: 100%;
float: none !important;
Expand Down

0 comments on commit 8984404

Please sign in to comment.