JairoDanielMT's picture
redirige a /docs
7710c1b
raw
history blame
6.16 kB
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8" />
<title>{{ doc.metadata.description or "Documentación de Script" }}</title>
<!-- Fuente corporativa desde Google Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap"
rel="stylesheet"
/>
<style>
/* ----------------------------------------
CONFIGURACIÓN GLOBAL / A4 / MÁRGENES
----------------------------------------- */
@page {
size: A4;
margin: 2.54cm; /* 1 pulgada por cada lado */
}
body {
font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
system-ui, sans-serif;
color: #111827;
font-size: 13px;
line-height: 1.7;
margin: 0;
background: #ffffff;
}
.page {
/* contenedor principal del documento */
}
/* ----------------------------------------
ENCABEZADO / FOOTER
----------------------------------------- */
.doc-header {
margin-bottom: 16px;
padding-bottom: 10px;
border-bottom: 1px solid #e5e7eb;
}
.doc-header-meta {
font-size: 11px;
color: #6b7280;
margin-top: 4px;
}
.doc-footer {
margin-top: 32px;
font-size: 11px;
color: #9ca3af;
text-align: right;
}
/* ----------------------------------------
TITULOS
----------------------------------------- */
h1,
h2,
h3,
h4 {
font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
system-ui, sans-serif;
margin-bottom: 6px;
font-weight: 600;
}
h1 {
font-size: 22px;
color: #0f172a;
letter-spacing: 0.03em;
text-transform: uppercase;
margin-top: 0;
}
h2 {
font-size: 16px;
color: #111827;
border-left: 3px solid #1d4ed8;
padding-left: 10px;
margin-top: 24px;
margin-bottom: 8px;
}
h3 {
font-size: 14px;
color: #111827;
margin-top: 18px;
margin-bottom: 4px;
}
h4 {
font-size: 13px;
color: #374151;
margin-top: 12px;
margin-bottom: 4px;
}
p {
margin: 4px 0 10px;
}
.muted {
color: #6b7280;
font-size: 11px;
}
.section {
margin-top: 16px;
}
/* ----------------------------------------
TARJETAS
----------------------------------------- */
.card-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 10px;
margin: 14px 0;
}
.card {
border: 1px solid #e5e7eb;
border-radius: 6px;
padding: 12px 14px;
background: #f9fafb;
}
.card-title {
font-size: 12px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.04em;
color: #4b5563;
margin-bottom: 6px;
}
/* ----------------------------------------
TABLAS (pensadas para PDF)
----------------------------------------- */
table {
width: 100%;
border-collapse: collapse;
margin: 12px 0 16px;
font-size: 12px;
}
thead {
display: table-header-group; /* Repite encabezados en cada página */
}
tfoot {
display: table-footer-group;
}
tr {
page-break-inside: avoid; /* Evita cortar filas a la mitad */
}
th,
td {
border: 1px solid #e5e7eb;
padding: 6px 8px;
vertical-align: top;
}
th {
background: #eff2f7;
font-weight: 600;
text-transform: uppercase;
font-size: 10px;
letter-spacing: 0.06em;
color: #4b5563;
}
tr:nth-child(even) td {
background: #f9fafb;
}
/* ----------------------------------------
LISTAS
----------------------------------------- */
ul {
padding-left: 20px;
margin: 6px 0 8px;
}
ul li {
margin-bottom: 3px;
}
/* ----------------------------------------
PILLS
----------------------------------------- */
.pill {
display: inline-block;
padding: 3px 8px;
border-radius: 999px;
background: #e5e7eb;
font-size: 10px;
margin-right: 4px;
text-transform: uppercase;
letter-spacing: 0.05em;
color: #374151;
}
/* ----------------------------------------
SUMMARY BOX
----------------------------------------- */
.summary-box {
border-left: 3px solid #2563eb;
background: #eff6ff;
padding: 10px 12px;
border-radius: 4px;
font-size: 12px;
margin: 10px 0 14px;
}
.summary-title {
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
color: #1d4ed8;
margin-bottom: 4px;
}
/* ----------------------------------------
UTILIDADES
----------------------------------------- */
.flex {
display: flex;
}
.justify-between {
justify-content: space-between;
}
.items-center {
align-items: center;
}
.text-right {
text-align: right;
}
.badge {
display: inline-block;
padding: 2px 8px;
border-radius: 999px;
font-size: 10px;
border: 1px solid #d1d5db;
color: #4b5563;
background: #f9fafb;
}
</style>
</head>
<body>
<div class="page">
{% block content %}{% endblock %}
<p class="doc-footer">
Generado automáticamente {{ generated_at }}
</p>
</div>
</body>
</html>