feat: color overhaul
This commit is contained in:
1 parent
8fc452951b
commit
e5fbf7493c
22 files changed
+234
-243
No files matched your search
@@ -41,7 +41,7 @@
|
||||
</script>
|
||||
|
||||
<nav
|
||||
class="flex flex-row gap-2 items-center sticky top-0 bg-slate-100/80
|
||||
class="flex flex-row gap-2 items-center sticky top-0 bg-slate-50/80
|
||||
dark:bg-black/80 backdrop-blur-3xl w-full mx-auto px-4 py-2 z-50 box-border h-16"
|
||||
>
|
||||
<div class="flex flex-row gap-2 items-center mr-auto">
|
||||
@@ -92,9 +92,7 @@
|
||||
<Button
|
||||
href="/admin"
|
||||
aria-label="Admin"
|
||||
class="max-md:w-9 max-md:h-8 max-md:!p-0
|
||||
dark:text-zinc-300 text-slate-700 hover:text-inherit hover:dark:text-inherit
|
||||
hover:bg-slate-200 relative hover:border-slate-300"
|
||||
class="max-md:w-9 max-md:h-8 max-md:!p-0 relative"
|
||||
>
|
||||
<Icon src={CommandLine} mini size="16" slot="prefix" />
|
||||
<span class="hidden md:inline">Admin</span>
|
||||
@@ -104,8 +102,7 @@
|
||||
<Button
|
||||
href="/moderation"
|
||||
aria-label="Moderation"
|
||||
class="max-md:w-9 max-md:h-8 max-md:!p-0 dark:text-zinc-300 text-slate-700
|
||||
hover:text-inherit hover:bg-slate-200 hover:dark:text-inherit relative hover:border-slate-300"
|
||||
class="max-md:w-9 max-md:h-8 max-md:!p-0 dark:text-zinc-300 text-slate-700 relative"
|
||||
>
|
||||
{#if $profile?.user?.reports ?? 0 > 0}
|
||||
<div
|
||||
@@ -119,8 +116,7 @@
|
||||
<Button
|
||||
href="/search"
|
||||
aria-label="Search"
|
||||
class="max-md:w-9 max-md:h-8 max-md:!p-0
|
||||
dark:text-zinc-300 text-slate-700 hover:text-inherit hover:dark:text-inherit hover:bg-slate-200 hover:border-slate-300"
|
||||
class="max-md:w-9 max-md:h-8 max-md:!p-0"
|
||||
>
|
||||
<Icon mini src={MagnifyingGlass} width={16} slot="prefix" />
|
||||
<span class="hidden md:inline">Search</span>
|
||||
@@ -128,9 +124,7 @@
|
||||
<Button
|
||||
href="/communities"
|
||||
aria-label="Communities"
|
||||
class="max-md:w-9 max-md:h-8 max-md:!p-0
|
||||
dark:text-zinc-300 text-slate-700 hover:text-inherit
|
||||
hover:dark:text-inherit hover:bg-slate-200 hover:border-slate-300"
|
||||
class="max-md:w-9 max-md:h-8 max-md:!p-0"
|
||||
>
|
||||
<Icon mini src={GlobeAlt} size="16" slot="prefix" />
|
||||
<span class="hidden md:inline">Explore</span>
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
animate:flip={{ duration: 500, easing: expoOut }}
|
||||
>
|
||||
<Button
|
||||
class="hover:bg-slate-200 w-full h-max {expanded ? '' : '!p-1.5'}"
|
||||
class="font-normal w-full h-max {expanded ? '' : '!p-1.5'}"
|
||||
color="tertiary"
|
||||
alignment="left"
|
||||
href="/c/{follow.name}@{new URL(follow.actor_id).hostname}"
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
|
||||
switching = false
|
||||
}}
|
||||
class="w-full hover:bg-slate-200 {expanded ? '' : '!p-1.5'}"
|
||||
class="w-full {expanded ? '' : '!p-1.5'}"
|
||||
>
|
||||
<ProfileAvatar
|
||||
profile={prof}
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
<nav
|
||||
class="hidden sm:flex flex-col pl-4 pr-4 py-4 overflow-auto sticky top-16 bottom-0
|
||||
gap-1 max-h-[calc(100svh-4rem)] w-full bg-slate-100 dark:bg-black
|
||||
gap-1 max-h-[calc(100svh-4rem)] w-full bg-slate-50 dark:bg-black
|
||||
{$userSettings.expandSidebar
|
||||
? 'max-w-[25%] resize-x min-w-[12rem]'
|
||||
: 'w-max max-w-max min-w-max'}"
|
||||
@@ -28,7 +28,7 @@
|
||||
<Button
|
||||
on:click={() =>
|
||||
($userSettings.expandSidebar = !$userSettings.expandSidebar)}
|
||||
class="w-max !p-2 hover:bg-slate-200"
|
||||
class="w-max !p-2"
|
||||
aria-label="Collapse sidebar"
|
||||
>
|
||||
<Icon
|
||||
|
||||
@@ -9,7 +9,9 @@
|
||||
color="tertiary"
|
||||
alignment="left"
|
||||
on:click
|
||||
class="hover:bg-slate-200 {expanded ? '' : '!p-1.5'} {$$props.class}"
|
||||
class="hover:bg-slate-100 font-normal {expanded
|
||||
? ''
|
||||
: '!p-1.5'} {$$props.class}"
|
||||
>
|
||||
<slot />
|
||||
</Button>
|
||||
Reference in new issue
Block a user