Show shared title block on HTML and align PDF table chrome.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-20 14:31:11 +03:30
parent e3980c5777
commit 89fa657df8
4 changed files with 81 additions and 27 deletions

View File

@@ -41,24 +41,65 @@ h1, h2, h3 {
line-height: 1.4;
}
h1.title {
font-size: 1.75rem;
margin-bottom: 0.25rem;
}
.subtitle {
font-size: 1.1rem;
color: #444;
margin-top: 0;
}
/* Quarto default title — replaced by .print-title-block (same as PDF) */
#title-block-header,
header#title-block-header,
.quarto-title-block,
.quarto-title,
.quarto-title-meta,
.quarto-title-meta-contents,
header.quarto-title-block,
h1.title,
p.subtitle,
p.author,
.quarto-title-meta-author {
display: none;
}
/* Screen header — same markup/layout as PDF .print-title-block */
.print-title-block {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: flex-start;
width: 100%;
margin: 0 0 1.5rem 0;
direction: ltr;
}
.print-title-block .title-text {
direction: rtl;
text-align: right;
line-height: 1.15;
flex: 1 1 auto;
}
.print-title-block .company-line {
font-size: 1.75rem;
font-weight: bold;
margin: 0;
color: var(--text);
}
.print-title-block .company-line .subtitle {
display: inline;
font-size: 1.15rem;
font-weight: normal;
color: var(--text);
}
.print-title-block .report-title {
font-size: 1.15rem;
font-weight: bold;
margin: 0.2rem 0 0 0;
color: var(--text);
}
.print-title-block .logo {
height: 3.4rem;
width: auto;
}
.report-meta {
margin: 1.5rem 0;
padding: 1rem 1.25rem;
@@ -144,8 +185,10 @@ code {
unicode-bidi: embed;
}
/* Print chrome is injected for WeasyPrint PDF; hide on screen */
/* Running header / sidebar are PDF-only; title block stays visible on screen */
@media screen {
.print-running-header,
.print-sidebar,
.print-only {
display: none !important;
}