From 61067252eb0cb4a0cee0641c99af39986fe117c9 Mon Sep 17 00:00:00 2001 From: Raphael Forment Date: Fri, 9 Feb 2024 11:02:52 +0100 Subject: [PATCH] merge dark and light style (CSS) --- src/app.postcss | 31 +++++++++++++++++--------- src/lib/components/Info.svelte | 4 ++-- src/lib/components/Portrait.svelte | 11 +++++---- src/lib/components/Press.svelte | 10 ++++----- src/lib/components/SoftwareCard.svelte | 10 +++++---- src/routes/+layout.svelte | 4 ++-- src/routes/articles/+page.svelte | 2 +- src/routes/guides/+page.svelte | 2 +- 8 files changed, 43 insertions(+), 31 deletions(-) diff --git a/src/app.postcss b/src/app.postcss index 65ff92a..dd03884 100644 --- a/src/app.postcss +++ b/src/app.postcss @@ -1,8 +1,4 @@ -/* Write your global styles here, in PostCSS syntax */ @tailwind base; - - - @layer utilities { .animate-gradient { @@ -29,47 +25,60 @@ .no-scrollbar::-webkit-scrollbar { display: none; } + /* Hide scrollbar for IE, Edge and Firefox */ .no-scrollbar { -ms-overflow-style: none; /* IE and Edge */ scrollbar-width: none; /* Firefox */ } + .sideli { @apply text-xl ml-0; } + .sidemenu-style { - @apply p-4 w-40 min-h-full bg-neutral-800 dark:bg-base-300 text-base-content overflow-hidden; + @apply p-4 w-40 min-h-full bg-neutral-800 text-base-content overflow-hidden; } + .footer-style { - @apply ml-0 pl-0 pb-4 pt-4 bg-neutral-800 dark:bg-base-300 justify-between pr-16; + @apply ml-0 pl-0 pb-4 pt-4 bg-neutral-800 justify-between pr-16; } + .mobile-menu-link { @apply text-gray-100 hover:text-orange-300 flex md:hidden; } + .sidebar-link { - @apply text-white hover:text-orange-300; + @apply text-white hover:text-orange-300 hover:bg-neutral-700; } + .titlebar-link { @apply text-gray-100 hover:text-orange-300 flex md:hidden; } + .website-title { @apply text-3xl uppercase font-bold bg-gradient-to-r from-orange-300 via-red-300 to-orange-200 text-transparent bg-clip-text animate-gradient } } @layer base { + .inline-picture { - @apply w-24 inline; + @apply w-24 inline; } + a { @apply text-orange-300; } + p { - @apply text-xl; + @apply text-xl text-white; } + li { - @apply list-disc text-xl py-1 ml-8; + @apply list-disc text-xl text-white py-1 ml-8; } + h1 { @apply text-3xl border-b-2 dark:border-b-white border-b-gray-400 py-2 font-extrabold text-transparent bg-clip-text bg-gradient-to-r from-orange-300 to-orange-200; } @@ -90,7 +99,7 @@ @apply my-2 } blockquote { - @apply bg-gray-900 py-4 px-4 mx-4 my-4 border-l-4 text-xl + @apply bg-gray-900 py-4 px-4 mx-4 my-4 border-l-4 text-xl text-white } } @tailwind components; diff --git a/src/lib/components/Info.svelte b/src/lib/components/Info.svelte index dab02b2..9875b09 100644 --- a/src/lib/components/Info.svelte +++ b/src/lib/components/Info.svelte @@ -14,7 +14,7 @@ }); -
+
- {@html info} + {@html info}
diff --git a/src/lib/components/Portrait.svelte b/src/lib/components/Portrait.svelte index d20ad53..74bb3b3 100644 --- a/src/lib/components/Portrait.svelte +++ b/src/lib/components/Portrait.svelte @@ -7,7 +7,7 @@
@@ -16,12 +16,15 @@ src={image} alt="Portrait" /> -
+
{name}
- {description} + {description}
- Site + Site
diff --git a/src/lib/components/Press.svelte b/src/lib/components/Press.svelte index e517ee9..890e260 100644 --- a/src/lib/components/Press.svelte +++ b/src/lib/components/Press.svelte @@ -10,25 +10,23 @@