Resolve printing in dark mode and print orientation.
This commit is contained in:
@@ -12,3 +12,47 @@ code {
|
||||
font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
|
||||
monospace;
|
||||
}
|
||||
|
||||
/* Print styles - force light mode */
|
||||
@media print {
|
||||
body.audit-container-print,
|
||||
body.audit-container-print * {
|
||||
background-color: white !important;
|
||||
color: black !important;
|
||||
border-color: #d9d9d9 !important;
|
||||
}
|
||||
|
||||
/* Override Ant Design dark mode styles for print */
|
||||
body.audit-container-print .ant-descriptions-item-label,
|
||||
body.audit-container-print .ant-descriptions-item-content {
|
||||
color: black !important;
|
||||
}
|
||||
|
||||
body.audit-container-print .ant-page-header-heading-title {
|
||||
color: black !important;
|
||||
}
|
||||
|
||||
body.audit-container-print .ant-page-header-heading-sub-title {
|
||||
color: rgba(0, 0, 0, 0.45) !important;
|
||||
}
|
||||
|
||||
body.audit-container-print .ant-alert {
|
||||
background-color: #fff2f0 !important;
|
||||
border-color: #ffccc7 !important;
|
||||
}
|
||||
|
||||
body.audit-container-print .ant-alert-warning {
|
||||
background-color: #fffbe6 !important;
|
||||
border-color: #ffe58f !important;
|
||||
}
|
||||
|
||||
body.audit-container-print .ant-btn {
|
||||
background-color: white !important;
|
||||
border-color: #d9d9d9 !important;
|
||||
color: black !important;
|
||||
}
|
||||
|
||||
body.audit-container-print .ant-tooltip {
|
||||
color: black !important;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user