fix: adjust table print styles (#10322)

* fix: adjust editor heading indents

Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>

* fix: print table borders and background

Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>

---------

Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
Alexander Onnikov
2025-12-22 09:43:50 +07:00
committed by GitHub
parent b214ce1276
commit 5d1038a858
2 changed files with 35 additions and 3 deletions
+3 -3
View File
@@ -51,21 +51,21 @@
h1 {
font-size: 1.75rem;
line-height: 150%;
margin-top: 2.75rem;
margin-top: 2.25rem;
margin-bottom: 0.25rem;
}
h2 {
font-size: 1.375rem;
line-height: 150%;
margin-top: 2.25rem;
margin-top: 1.75rem;
margin-bottom: 0.25rem;
}
h3 {
font-size: 1.125rem;
line-height: 150%;
margin-top: 1.5rem;
margin-top: 1.25rem;
margin-bottom: 0.25rem;
}
+32
View File
@@ -15,6 +15,38 @@
@use 'sass:meta';
@media print {
table.proseTable {
border-spacing: 0 !important;
border-collapse: separate !important;
width: 100% !important;
}
table.proseTable td,
table.proseTable th {
border: 0.5px solid var(--text-editor-table-border-color) !important;
padding: 0.25rem !important;
margin: 0 !important;
// ensure cells background colors are printed
-webkit-print-color-adjust: exact !important;
print-color-adjust: exact !important;
}
table.proseTable td:not(:last-child),
table.proseTable th:not(:last-child) {
border-right: none !important;
}
table.proseTable tr:not(:last-child) td,
table.proseTable tr:not(:last-child) th {
border-bottom: none !important;
}
table.proseTable col {
width: auto !important;
}
}
/* Table */
table.proseTable {
--table-selection-border-width: 1px;