From 6bee508b545af3e575ee79acfe6a1ae16c1de633 Mon Sep 17 00:00:00 2001 From: xcexec Date: Sun, 22 Sep 2024 21:11:31 +0200 Subject: [PATCH] added dark-mode logo-dark.svg; changed various colours on NavBar --- flake.nix | 1 + src/assets/logo-dark.svg | 26 +++++++++++++++++++ src/assets/oruga-tailwindcss.css | 12 +++++++-- src/components/MobilizonLogo.vue | 24 +++++++++++------ src/components/NavBar.vue | 26 +++++++++---------- src/views/Admin/InstancesView.vue | 4 +-- tailwind.config.cjs | 2 +- .../__snapshots__/navbar.spec.ts.snap | 2 +- 8 files changed, 70 insertions(+), 27 deletions(-) create mode 100644 src/assets/logo-dark.svg diff --git a/flake.nix b/flake.nix index 808b48d93..d24c5833c 100644 --- a/flake.nix +++ b/flake.nix @@ -256,6 +256,7 @@ old: { postPatch = '' cp '${logo}' src/assets/logo.svg + cp '${logoDark}' src/assets/logo-dark.svg magick convert \ -resize x16 \ diff --git a/src/assets/logo-dark.svg b/src/assets/logo-dark.svg new file mode 100644 index 000000000..9ca1c8502 --- /dev/null +++ b/src/assets/logo-dark.svg @@ -0,0 +1,26 @@ + + Fomo Logo + + + + + + + + diff --git a/src/assets/oruga-tailwindcss.css b/src/assets/oruga-tailwindcss.css index afc56d64a..ffa8c45cf 100644 --- a/src/assets/oruga-tailwindcss.css +++ b/src/assets/oruga-tailwindcss.css @@ -8,7 +8,7 @@ body { /* Button */ .btn { - @apply font-bold py-2 px-4 bg-mbz-bluegreen hover:bg-mbz-bluegreen-600 text-white rounded h-10 outline-none focus:ring ring-offset-1 ring-offset-slate-50 ring-blue-300; + @apply font-bold py-2 px-4 bg-gray-500 hover:bg-gray-600 text-white rounded h-10 outline-none focus:ring ring-offset-1 ring-offset-slate-50 ring-blue-300; } .btn:hover { @apply text-slate-200; @@ -95,7 +95,15 @@ body { /* Input */ .input { - @apply appearance-none box-border rounded border w-full py-2 px-3 text-black leading-tight dark:bg-zinc-600 dark:placeholder:text-zinc-400 dark:text-zinc-50; + @apply appearance-none box-border rounded w-full py-2 px-3 text-black leading-tight dark:bg-gray-500 dark:placeholder:text-gray-400 dark:text-gray-50; +} +.input { + border-color: black; +} +.input:focus { + border-color: black; + outline: black; + box-shadow: 0 0 0 1px black; } .input-size-small { @apply text-sm; diff --git a/src/components/MobilizonLogo.vue b/src/components/MobilizonLogo.vue index a16e8f9eb..0cfec4706 100644 --- a/src/components/MobilizonLogo.vue +++ b/src/components/MobilizonLogo.vue @@ -1,17 +1,25 @@ diff --git a/src/components/NavBar.vue b/src/components/NavBar.vue index 0825a8925..8b5c6827d 100644 --- a/src/components/NavBar.vue +++ b/src/components/NavBar.vue @@ -1,6 +1,6 @@