Skip to content

Commit

Permalink
fix(css): more specific selector for prosemirror print css
Browse files Browse the repository at this point in the history
Signed-off-by: Jonas <[email protected]>
  • Loading branch information
mejo- committed Nov 29, 2023
1 parent d6947c8 commit 90ce11e
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions src/css/print.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,40 +44,40 @@
.text-editor__wrapper {
height: fit-content;
position: unset;
}

div.ProseMirror {
h1, h2, h3, h4, h5 {
// orphaned headlines are ugly
break-after: avoid;
}
.image, img, table {
// try no page breaks within tables or images
break-inside: avoid-page;
// Some more indention
max-width: 90%!important;
margin: 5vw auto 5vw 5%!important;
}
div.ProseMirror {
h1, h2, h3, h4, h5 {
// orphaned headlines are ugly
break-after: avoid;
}
.image, img, table {
// try no page breaks within tables or images
break-inside: avoid-page;
// Some more indention
max-width: 90%!important;
margin: 5vw auto 5vw 5%!important;
}

// Add some borders below header and between columns
th {
color: black!important;
font-weight: bold!important;
border-width: 0 1px 2px 0!important;
border-color: gray!important;
border-style: none solid solid none!important;
}
th:last-of-type {
border-width: 0 0 2px 0!important;
}
// Add some borders below header and between columns
th {
color: black!important;
font-weight: bold!important;
border-width: 0 1px 2px 0!important;
border-color: gray!important;
border-style: none solid solid none!important;
}
th:last-of-type {
border-width: 0 0 2px 0!important;
}

td {
border-style: none solid none none!important;
border-width: 1px!important;
border-color: gray!important;
}
td:last-of-type {
border: none!important;
td {
border-style: none solid none none!important;
border-width: 1px!important;
border-color: gray!important;
}
td:last-of-type {
border: none!important;
}
}
}
}
Expand Down

0 comments on commit 90ce11e

Please sign in to comment.