talos-access / frontend /src /styles /global.css
Greg
Claude Opus 4.7 (1M context)
revert(schedule-print): roll back tight print sizes and color-adjust
beb5744
Raw History Blame Contribute Delete
1.95 kB
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
* { @apply box-border m-0 p-0; }
body {
@apply antialiased bg-gray-50 text-gray-800;
font-family: 'Ubuntu', system-ui, -apple-system, sans-serif;
line-height: 1.5;
}
a { @apply no-underline text-inherit; }
h1 { @apply text-2xl font-bold text-gray-800; }
h2 { @apply text-lg font-semibold text-gray-800; }
h3 { @apply text-base font-semibold text-gray-800; }
}
@layer utilities {
.spin {
animation: spin 1s linear infinite;
}
@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
}
/* ── Print / PDF styles ─────────────────────────────────────────────────── */
@page {
size: letter landscape;
margin: 0.5in;
}
@media print {
/* Hide everything by default via visibility (preserves layout for our absolute positioning) */
body * { visibility: hidden; }
/* Show only the printable grid and its children */
.schedule-print-area,
.schedule-print-area * { visibility: visible; }
/* Position the print area at the top-left of the page, escaping parent constraints */
.schedule-print-area {
position: absolute !important;
left: 0 !important;
top: 0 !important;
width: 100% !important;
overflow: visible !important;
max-height: none !important;
padding: 0 !important;
}
/* Modal overlay/box: kill background-color so they don't tint anything if visibility leaks */
.print-overlay {
background: transparent !important;
position: static !important;
}
.print-modal-box {
background: transparent !important;
box-shadow: none !important;
max-height: none !important;
overflow: visible !important;
}
/* Header/footer buttons of the modal: must NOT render in print */
.no-print { display: none !important; }
}