task(G5): browser print stylesheet - @media print A4 landscape, screen-only chrome hidden, print-area fill, print service with cleanup

This commit is contained in:
Agent Zero
2026-08-29 02:52:12 +02:00
parent a093630d34
commit d9a0dffb05
4 changed files with 162 additions and 0 deletions
+49
View File
@@ -2925,3 +2925,52 @@ body.drawer-open { overflow: hidden; }
border-radius: 4px;
}
.layout-bar-tb:hover { color: #4a90d9; background: rgba(74, 144, 217, 0.15); }
/* ═══════════════════════════════════════════════════════════
Task G5 Browser-Print: @media print zeigt nur den Druckbereich
═══════════════════════════════════════════════════════════ */
@media print {
@page {
size: A4 landscape;
margin: 10mm;
}
/* UI-Chrome im Druck ausblenden */
.screen-only {
display: none !important;
}
/* Druckbereich füllt die Seite */
.print-area {
width: 100% !important;
height: auto !important;
overflow: visible !important;
margin: 0 !important;
padding: 0 !important;
border: none !important;
}
/* Farben/Linien so drucken wie angezeigt */
.print-layout * {
-webkit-print-color-adjust: exact !important;
print-color-adjust: exact !important;
}
/* Body: kein Scroll, weiße Fläche */
body {
background: #fff !important;
overflow: hidden !important;
}
}
.layout-bar-print {
background: transparent;
color: #6b7280;
border: none;
cursor: pointer;
font-size: 13px;
padding: 2px 4px;
border-radius: 4px;
}
.layout-bar-print:hover { color: #4a90d9; background: rgba(74, 144, 217, 0.15); }