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
15 changes: 9 additions & 6 deletions src/components/Common/ProductionWarningBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,15 @@ export default function ProductionWarningBanner() {
}

return (
<div className="sticky top-0 z-50 flex items-center justify-between gap-2 bg-red-600 px-4 py-2 text-white shadow-lg">
<div className="flex items-center gap-2">
<AlertTriangleIcon className="h-5 w-5 shrink-0 animate-pulse" />
<span className="text-sm font-semibold">
{t("production_warning_banner")}
</span>
<div className="pointer-events-none fixed inset-x-0 top-4 z-50 flex justify-center">
<div className="pointer-events-auto group relative animate-pulse">
<div className="absolute -inset-1 rounded-full bg-red-500 opacity-75 blur-sm animate-pulse" />
<div className="relative flex items-center gap-2 rounded-full bg-red-600 px-4 py-2 text-white shadow-lg ring-2 ring-red-400 transition-all hover:scale-105 hover:shadow-xl">
<AlertTriangleIcon className="h-4 w-4 shrink-0 animate-pulse" />
Comment on lines +27 to +30
<span className="text-xs font-bold uppercase tracking-wide">
{t("production_warning_banner")}
</span>
Comment on lines +30 to +33
</div>
Comment on lines +26 to +34
</div>
</div>
);
Expand Down
3 changes: 2 additions & 1 deletion src/style/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,8 @@
}

/* Collapse everything else for single-print (only when multi-print is NOT also active) */
body:has(#single-print):not(:has(#multi-print)) *:not(#single-print):not(#single-print *) {
body:has(#single-print):not(:has(#multi-print))
*:not(#single-print):not(#single-print *) {
height: 0 !important;
min-height: 0 !important;
max-height: 0 !important;
Expand Down
Loading