Skip to content

Commit

Permalink
fix snowfall on firefox and fix window headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Truiteseche committed Dec 1, 2024
1 parent 88b5f5c commit 45bee16
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/components/generic/Window.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/generic/events/christmas/Snowfall.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
width: 100%;
height: 100%;
z-index: -1000;
zoom: 1.25;
/* zoom: 1.25; */
}

.snow {
Expand Down
8 changes: 6 additions & 2 deletions src/components/generic/events/christmas/snow.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -54,5 +58,5 @@

.results-header .snow-cap {
left: -5px;
bottom: 5px;
/* bottom: 5px; */
}
2 changes: 1 addition & 1 deletion src/components/graphics/snowCap.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export default function SnowCap({ className = "", id = "", alt, ...props }) {
</clipPath>
</defs>
</svg>
<svg className={className} style={{ zIndex: 1, left: 0, width: 'auto', top: '25px'}} width="30" height="27" viewBox="0 0 30 27" fill="none" xmlns="http://www.w3.org/2000/svg">
<svg className={className} style={{ zIndex: 1, left: 0, width: 'auto', top: '35px'}} width="30" height="27" viewBox="0 0 30 27" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M3.03001 8.06999C2.99001 8.46999 2.66001 8.92999 2.69001 9.31999C2.74001 9.98999 3.51001 10.42 3.30001 11.12C3.21001 11.43 3.05001 11.63 3.02001 11.98C2.95001 12.99 3.07001 14.11 3.34001 15.08C3.51001 15.69 3.60001 16.18 3.48001 16.81C3.34001 17.5 3.39001 18.18 3.39001 18.87C3.39001 20.37 3.57001 21.81 3.57001 23.31C3.57001 24.29 3.58001 25.2 3.79001 26.14C4.12001 25.88 3.93001 24.91 3.97001 24.55C4.08001 23.55 4.01001 22.48 4.29001 21.52C4.65001 20.32 4.67001 19.06 5.01001 17.85C5.21001 17.14 5.35001 16.21 5.38001 15.48C5.39001 15.16 5.26001 14.72 5.40001 14.43C5.51001 14.21 5.79001 14.09 5.92001 13.88C6.33001 13.24 6.25001 12.27 6.36001 11.55C6.46001 10.85 6.90001 9.95999 6.81001 9.25999C7.35001 9.76999 7.18001 10.92 7.18001 11.56C7.18001 12.79 7.20001 14.02 7.40001 15.23C7.53001 16.03 7.73001 16.74 7.72001 17.56C7.72001 18.3 7.82001 18.93 7.94001 19.64C8.21001 19.39 8.11001 18.66 8.21001 18.3C8.34001 17.85 8.51001 17.41 8.58001 16.95C8.66001 16.46 8.58001 15.98 8.61001 15.49C8.64001 14.66 8.91001 13.79 9.16001 13C9.24001 12.74 9.40001 12.52 9.48001 12.26C9.58001 11.94 9.59001 11.53 9.66001 11.19C9.68001 11.01 9.70001 10.82 9.74001 10.64C9.82001 10.55 9.91001 10.49 10.03 10.44C10.15 10.28 10.21 10.13 10.26 9.93999C10.38 9.38999 10.38 8.68999 10.79 8.25999C11.56 7.43999 12.45 7.98999 13.41 7.76999C13.78 7.68999 14.01 7.35999 14.24 7.08999C14.5 6.77999 14.52 6.79999 14.86 6.68999C15.5 6.48999 16.07 6.23999 16.69 5.95999C17.31 5.66999 17.9 5.90999 18.54 5.77999C19.23 5.63999 19.82 5.04999 20.46 4.76999C20.98 4.53999 21.56 4.04999 22.09 4.25999C22.45 4.39999 22.84 4.68999 23.19 4.85999C24.21 5.33999 24.54 6.68999 24.46 7.72999C24.41 8.31999 24.22 8.97999 24.38 9.57999C24.5 10.03 24.89 10.31 25.09 10.71C25.53 11.62 24.9 12.44 25.09 13.33C25.19 13.8 25.55 14.14 25.62 14.64C25.68 15.1 25.6 15.63 25.6 16.09C25.6 16.64 25.73 17.15 25.79 17.69C25.82 17.99 25.98 18.27 25.97 18.56C25.95 18.22 25.94 17.86 26 17.52C26.2 16.47 26.33 15.42 26.49 14.37C26.58 13.81 26.45 13.22 26.52 12.65C26.56 12.28 26.71 11.94 26.78 11.58C26.9 11.02 26.78 10.44 26.9 9.88999C27.01 9.37999 27.15 8.81999 27.36 8.33999C27.6 7.79999 27.82 7.26999 27.99 6.69999C28.2 5.98999 28.23 5.17999 28.65 4.54999C28.85 4.24999 29.16 4.03999 29.01 3.64999C28.87 3.30999 28.41 3.14999 28.12 2.97999C26.84 2.24999 25.08 2.02999 23.65 1.80999C21.16 1.41999 18.58 0.929992 16.06 0.749992C14.85 0.659992 13.63 0.729992 12.41 0.719992C11.49 0.719992 10.63 0.719992 9.73001 0.889992C8.29001 1.17999 6.82001 1.44999 5.40001 1.78999C4.72001 1.94999 4.13001 2.25999 3.49001 2.49999C2.98001 2.67999 2.43001 2.66999 1.95001 2.91999C1.56001 3.11999 1.02001 3.50999 0.920008 3.96999C0.740008 4.79999 1.87001 4.99999 2.32001 5.47999C3.02001 6.20999 3.10001 7.11999 3.02001 8.07999L3.03001 8.06999Z" fill="url(#paint0_linear_0_1)" />
<path style={{ mixBlendMode: 'multiply' }} opacity="0.52" d="M26.79 11.57C26.91 11.01 26.79 10.43 26.91 9.88C27.02 9.37 27.16 8.81 27.37 8.33C27.61 7.79 27.83 7.26 28 6.69C28.21 5.98 28.24 5.17 28.66 4.54C28.86 4.24 29.17 4.03 29.02 3.64C28.88 3.3 28.42 3.14 28.13 2.97C26.85 2.24 25.09 2.02 23.66 1.8C21.17 1.41 18.59 0.919998 16.07 0.739998C16.03 0.739998 16 0.739998 15.96 0.739998C15.58 0.829998 15.21 0.979997 14.83 1.22C14.33 1.55 13.95 1.95 13.51 2.35C13.3 2.55 13.06 2.85 12.77 2.94C12.34 3.07 11.79 2.8 11.37 2.73C10.48 2.6 9.57001 2.62 8.69001 2.49C7.69001 2.35 6.69001 2.43 5.69001 2.6C4.85001 2.75 3.63001 3.26 3.02001 3.88C2.65001 4.26 2.42001 4.86 2.20001 5.36C2.24001 5.4 2.29001 5.43 2.33001 5.47C2.85001 6.01 3.02001 6.64 3.05001 7.33C3.32001 7.34 3.58001 7.43 3.75001 7.65C4.00001 7.97 3.92001 8.48 4.00001 8.85C4.08001 9.23 4.23001 9.37 4.49001 9.62C4.71001 9.82 5.06001 10.03 5.22001 10.27C5.43001 10.6 5.22001 10.94 5.18001 11.3C5.11001 11.86 5.19001 12.41 5.09001 12.98C4.99001 13.54 4.99001 14.17 4.95001 14.75C4.93001 15.07 4.91001 15.29 4.68001 15.53C4.44001 15.78 4.37001 15.83 4.31001 16.19C4.16001 17.09 4.33001 17.99 4.20001 18.88C4.15001 19.21 4.02001 19.53 3.98001 19.86C3.95001 20.13 4.01001 20.39 3.97001 20.67C3.85001 21.39 3.64001 21.91 3.78001 22.65C3.88001 23.14 3.92001 23.64 4.00001 24.14C4.00001 24.16 4.00001 24.18 4.00001 24.2C4.06001 23.32 4.04001 22.39 4.29001 21.55C4.65001 20.35 4.67001 19.09 5.01001 17.88C5.21001 17.17 5.35001 16.24 5.38001 15.51C5.39001 15.19 5.26001 14.75 5.40001 14.46C5.51001 14.24 5.79001 14.12 5.92001 13.91C6.33001 13.27 6.25001 12.3 6.36001 11.58C6.44001 11.02 6.74001 10.32 6.81001 9.71C6.73001 9.44 6.69001 9.15 6.75001 8.87C6.81001 8.62 6.93001 8.39 7.00001 8.16C7.06001 7.95 7.07001 7.64 7.33001 7.52C7.51001 7.44 7.53001 7.54 7.69001 7.71C7.87001 7.89 8.02001 8.01 8.23001 8.15C8.58001 8.39 8.67001 8.73 8.68001 9.12C8.68001 9.37 8.61001 9.58 8.58001 9.83C8.56001 10.05 8.59001 10.02 8.65001 10.23C8.77001 10.68 8.72001 11.32 8.53001 11.75C8.33001 12.2 8.09001 12.51 8.07001 13.02C8.05001 13.59 8.17001 14.14 8.19001 14.71C8.21001 15.35 8.42001 15.96 8.29001 16.62C8.26001 16.78 8.25001 17.1 8.17001 17.25C8.11001 17.38 8.01001 17.43 7.95001 17.56C7.76001 17.99 7.83001 18.54 7.83001 18.99C7.83001 19.03 7.83001 19.07 7.83001 19.1C7.86001 19.29 7.89001 19.48 7.93001 19.68C8.20001 19.43 8.10001 18.7 8.20001 18.34C8.33001 17.89 8.50001 17.45 8.57001 16.99C8.65001 16.5 8.57001 16.02 8.60001 15.53C8.63001 14.7 8.90001 13.83 9.15001 13.04C9.23001 12.78 9.39001 12.56 9.47001 12.3C9.57001 11.98 9.58001 11.57 9.65001 11.23C9.67001 11.05 9.69001 10.86 9.73001 10.68C9.81001 10.59 9.90001 10.53 10.02 10.48C10.14 10.32 10.2 10.17 10.25 9.98C10.37 9.43 10.37 8.73 10.78 8.3C11.55 7.48 12.44 8.03 13.4 7.81C13.77 7.73 14 7.4 14.23 7.13C14.49 6.82 14.51 6.84 14.85 6.73C15.49 6.53 16.06 6.28 16.68 6C17.3 5.71 17.89 5.95 18.53 5.82C18.6 5.81 18.66 5.78 18.73 5.76C18.75 5.73 18.77 5.71 18.79 5.68C19.07 5.26 19.25 4.82 19.63 4.46C20.34 3.79 21.17 3.84 22.08 3.83C22.34 3.83 22.62 3.79 22.88 3.85C23.16 3.92 23.43 4.09 23.69 4.19C24.33 4.43 24.57 4.69 24.9 5.25C25.04 5.49 25.29 5.58 25.38 5.87C25.43 6.02 25.4 6.08 25.52 6.2C25.6 6.29 25.78 6.36 25.88 6.46C26.78 7.3 26.78 8.64 26.46 9.75C26.34 10.18 26.17 10.6 26.09 11.04C25.97 11.74 25.96 12.5 26 13.2C26.02 13.52 26.2 13.74 26.26 14.04C26.31 14.3 26.26 14.66 26.23 14.91C26.17 15.44 25.99 15.95 26.05 16.47C26.1 16.99 25.92 17.47 25.84 17.98C25.9 18.18 25.97 18.37 25.96 18.57C25.94 18.23 25.93 17.87 25.99 17.53C26.19 16.48 26.32 15.43 26.48 14.38C26.57 13.82 26.44 13.23 26.51 12.66C26.55 12.29 26.7 11.95 26.77 11.59L26.79 11.57Z" fill="url(#paint1_linear_0_1)" />
<defs>
Expand Down

0 comments on commit 45bee16

Please sign in to comment.