From 45bee16976096d5faa8a3552f7d32fec6c1c4dd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Truite=20S=C3=A9ch=C3=A9e?= Date: Sun, 1 Dec 2024 14:07:00 +0100 Subject: [PATCH] fix snowfall on firefox and fix window headers --- src/components/generic/Window.css | 4 ++-- src/components/generic/events/christmas/Snowfall.css | 2 +- src/components/generic/events/christmas/snow.css | 8 ++++++-- src/components/graphics/snowCap.jsx | 2 +- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/components/generic/Window.css b/src/components/generic/Window.css index 9c69315..6afa736 100644 --- a/src/components/generic/Window.css +++ b/src/components/generic/Window.css @@ -230,11 +230,11 @@ /* Position the snow-cap absolutely */ .snow-cap { - position: absolute; + /* position: absolute; bottom: 3px; width: 101%; height: 95px; - pointer-events: none; + pointer-events: none; */ /* Adjust left and right positioning if necessary */ } diff --git a/src/components/generic/events/christmas/Snowfall.css b/src/components/generic/events/christmas/Snowfall.css index cebf893..13ddf03 100644 --- a/src/components/generic/events/christmas/Snowfall.css +++ b/src/components/generic/events/christmas/Snowfall.css @@ -6,7 +6,7 @@ width: 100%; height: 100%; z-index: -1000; - zoom: 1.25; + /* zoom: 1.25; */ } .snow { diff --git a/src/components/generic/events/christmas/snow.css b/src/components/generic/events/christmas/snow.css index dc52106..7ef8727 100644 --- a/src/components/generic/events/christmas/snow.css +++ b/src/components/generic/events/christmas/snow.css @@ -34,12 +34,16 @@ .snow-cap { position: absolute; - bottom: 3px; + bottom: -5px; width: 101%; height: 95px; pointer-events: none; } +.window-header.snowy-element-window { + height: 34px; +} + .snowy-element-window { position: relative; padding: 20px; @@ -54,5 +58,5 @@ .results-header .snow-cap { left: -5px; - bottom: 5px; + /* bottom: 5px; */ } \ No newline at end of file diff --git a/src/components/graphics/snowCap.jsx b/src/components/graphics/snowCap.jsx index e2f74fa..b10833b 100644 --- a/src/components/graphics/snowCap.jsx +++ b/src/components/graphics/snowCap.jsx @@ -84,7 +84,7 @@ export default function SnowCap({ className = "", id = "", alt, ...props }) { - +