fix(print): ocultar sidebar y eliminar fondos de color al imprimir

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lizandro Guarnizo
2026-08-04 15:49:24 -05:00
co-authored by Claude Sonnet 4.6
parent 400e6ff60b
commit eed3c8abd6
+17
View File
@@ -26,6 +26,23 @@
}
</script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
<style>
@media print {
/* Ocultar sidebar y header */
.fixed { display: none !important; }
header { display: none !important; }
/* Contenido ocupa toda la hoja */
.pl-64 { padding-left: 0 !important; }
main { padding: 0 !important; }
/* Eliminar fondos de color */
* { background: white !important; color: black !important;
box-shadow: none !important; border-color: #ccc !important; }
/* Mantener colores de texto en código */
pre, code { background: #f5f5f5 !important; color: #1a1a1a !important; }
/* Evitar cortes en medio de secciones */
section { page-break-inside: avoid; }
}
</style>
</head>
<body class="h-full">
{% set embedded = request.query_params.get('embed') == '1' %}