Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
222 changes: 222 additions & 0 deletions src/main/resources/report/report.css
Original file line number Diff line number Diff line change
Expand Up @@ -424,3 +424,225 @@
.main-content { padding: 14px 8px; }
.search-wrap input { width: 140px; }
}

/* ── Print stylesheet ── */
@media print {
@page {
size: auto;
margin: 12mm;
}

*, *::before, *::after {
box-shadow: none !important;
text-shadow: none !important;
}

:root, [data-theme="dark"] {
--bg: #ffffff !important;
--surface: #ffffff !important;
--surface2: #fafafa !important;
--text: #212121 !important;
--text-secondary: #616161 !important;
--text-primary: #212121 !important;
--muted: #757575 !important;
--border: #e0e0e0 !important;
--primary: #303f9f !important;
--primary-light: #f0f2f5 !important;
--hover: #f0f2f5 !important;
--good-bg: #e8f5e9 !important;
--warn-bg: #fff3e0 !important;
--bad-bg: #ffebee !important;
--code-bg: #f5f5f5 !important;
--code-text: #212121 !important;
}

html, body {
width: 100% !important;
margin: 0 !important;
padding: 0 !important;
background: #fff !important;
color: #212121 !important;
font-size: 10pt;
line-height: 1.4;
transition: none !important;
-webkit-print-color-adjust: exact !important;
print-color-adjust: exact !important;
}

/* Hide unnecessary interface elements */
.app-bar,
.sidebar,
.filter-bar,
.filter-btn,
.search-wrap,
.dark-toggle,
.copy-failure-btn,
.tag-clear-btn,
.active-tag-pill,
.failures-shortcut,
.lightbox,
.footer {
display: none !important;
}

.layout {
display: block !important;
width: 100% !important;
min-height: 0 !important;
margin: 0 !important;
padding: 0 !important;
}

.main-content {
width: 100% !important;
max-width: 100% !important;
min-width: 0 !important;
margin: 0 !important;
padding: 0 !important;
overflow: visible !important;
}

/* Print all relevant report sections, not just the currently active tab */
.tab-pane {
display: block !important;
visibility: visible !important;
opacity: 1 !important;
page-break-inside: auto;
break-inside: auto;
}

#tab-tests,
#tab-failures {
break-before: page;
page-break-before: always;
margin-top: 24px;
}

.tab-heading {
color: #212121 !important;
font-size: 16pt;
font-weight: 700;
margin-bottom: 12px;
page-break-after: avoid;
break-after: avoid;
}

.card {
background: #ffffff !important;
color: #212121 !important;
box-shadow: none !important;
border: 1px solid #dcdcdc !important;
break-inside: avoid;
page-break-inside: avoid;
margin-bottom: 16px;
}

.card-header,
.card-body,
.card-body-centered,
.detail-panel,
.ai-analysis-body {
background: #ffffff !important;
color: #212121 !important;
}

.card-header {
border-bottom: 1px solid #e0e0e0 !important;
page-break-after: avoid;
break-after: avoid;
}

.table-card,
.table-wrap,
.gantt-wrap {
overflow: visible !important;
}

table {
width: 100% !important;
border-collapse: collapse !important;
page-break-inside: auto;
break-inside: auto;
}

thead {
display: table-header-group !important;
}

tr {
break-inside: avoid;
page-break-inside: avoid;
}

th, td {
color: #212121 !important;
border-color: #e0e0e0 !important;
overflow-wrap: anywhere;
word-break: break-word;
}

.group-header {
background: #f0f2f5 !important;
break-after: avoid;
page-break-after: avoid;
}

.group-header td {
color: #212121 !important;
border-bottom: 2px solid #303f9f !important;
}

.chart-card,
.chart-card canvas,
.gantt-row,
.failure-group,
.step-item,
.detail-row {
break-inside: avoid;
page-break-inside: avoid;
}

/* Expand stack traces completely without scrolling or clipping */
.stack-trace {
max-height: none !important;
overflow: visible !important;
white-space: pre-wrap !important;
overflow-wrap: anywhere !important;
word-break: break-all !important;
background: #f5f5f5 !important;
color: #212121 !important;
border: 1px solid #ddd !important;
}

.error-msg,
.failure-group-msg {
color: #b71c1c !important;
}

.stat-value,
.stat-label,
.meta-label,
.meta-value,
.run-summary,
.failure-why,
.failure-group-tests,
.group-count {
color: #212121 !important;
}

.card:hover {
transform: none !important;
}

a {
color: #212121 !important;
text-decoration: none !important;
}

img, .screenshot-thumb {
max-width: 100% !important;
height: auto !important;
page-break-inside: avoid;
break-inside: avoid;
}
}
Loading