From 966c8fc18c74172e4bddf6510d96f78d524d598d Mon Sep 17 00:00:00 2001 From: Daniel Bulant Date: Sun, 10 Apr 2022 22:08:47 +0200 Subject: [PATCH] fix for the 3% of people --- src/lib/components/navbar.svelte | 8 ++++++++ src/lib/components/project.svelte | 5 +++++ src/lib/components/technologyDetails.svelte | 15 +++++++++++++-- src/routes/index.svelte | 9 +++++++++ 4 files changed, 35 insertions(+), 2 deletions(-) diff --git a/src/lib/components/navbar.svelte b/src/lib/components/navbar.svelte index 026b8e4..233cea8 100644 --- a/src/lib/components/navbar.svelte +++ b/src/lib/components/navbar.svelte @@ -38,6 +38,14 @@ background: rgba(255,255,255, 0.2); backdrop-filter: blur(10px); } + @supports (-moz-appearance:none) { + .bar { + background: rgba(255,255,255,0.9) !important; + } + .dark.bar { + background: rgba(28, 28, 33, 0.9) !important; + } + } @media (max-width: 400px) { .bar { width: 100vw; diff --git a/src/lib/components/project.svelte b/src/lib/components/project.svelte index 57e28dc..88e9bdf 100644 --- a/src/lib/components/project.svelte +++ b/src/lib/components/project.svelte @@ -81,6 +81,11 @@ background-color: rgba(0,0,0,0.2); color: rgb(214, 214, 214); } + @supports (-moz-appearance:none) { + .desc { + background: rgba(0,0,0,0.9) !important; + } + } .desc.extradark { background-color: rgba(0,0,0,0.4); } diff --git a/src/lib/components/technologyDetails.svelte b/src/lib/components/technologyDetails.svelte index 9325865..44e1d10 100644 --- a/src/lib/components/technologyDetails.svelte +++ b/src/lib/components/technologyDetails.svelte @@ -1,4 +1,6 @@ -
shouldClose = true} on:mousemove={() => shouldClose = false} on:mouseup={close}> +
shouldClose = true} on:mousemove={() => shouldClose = false} on:mouseup={close}>
{#if selected === "typescript"}

Typescript

@@ -138,7 +140,16 @@ border-radius: 15px; cursor: pointer; background: rgba(255,255,255,0.1); + box-shadow: 0.6px 1.3px 1.3px hsl(0deg 0% 0% / 0.48); } + @supports (-moz-appearance:none) { + .dialog { + background: rgba(255,255,255,0.9) !important; + } + .dark.dialog { + background: rgba(70,70,70,0.97) !important; + } + } h2 { margin-top: 0; margin-block-start: 0; @@ -158,7 +169,7 @@ .a:hover { text-decoration: underline; } - :global(.dark .dialog) { + .dark.dialog { background: rgba(255,255,255,0.2); } .dialog.selected { diff --git a/src/routes/index.svelte b/src/routes/index.svelte index 4ec9041..8a96afc 100644 --- a/src/routes/index.svelte +++ b/src/routes/index.svelte @@ -62,6 +62,7 @@
+

Firefox (and it's 3.4% users) doesn't support background blur. This website is better viewed on a more modern browser.

@@ -221,6 +222,14 @@