chore: sidebar and brand color styling improvements

This commit is contained in:
Rotimi Best
2024-10-06 19:11:26 +01:00
parent 947181a3c5
commit 985a2cd950
2 changed files with 24 additions and 11 deletions
@@ -230,15 +230,18 @@
</button> </button>
<div <div
class="w-fit h-auto border-2 {isCustomTheme && class="w-fit h-auto border-2 {isCustomTheme
'border-primary-700'} rounded-full relative group" ? 'border-primary-700'
: 'dark:border-neutral-700'} rounded-full relative group"
> >
<!-- plus icon positioned over the color picker --> <!-- plus icon positioned over the color picker -->
<div <div
class="absolute inset-0 flex items-center justify-center pointer-events-none transition-opacity duration-200" class="absolute inset-0 flex items-center justify-center pointer-events-none transition-opacity duration-200"
> >
<svg <svg
class="w-6 h-6 text-{isCustomTheme ? 'white' : 'black'} z-10 opacity-100" class="w-6 h-6 text-{isCustomTheme
? 'white'
: 'black'} dark:text-white z-10 opacity-100"
fill="none" fill="none"
stroke="currentColor" stroke="currentColor"
stroke-width="2" stroke-width="2"
@@ -248,13 +251,7 @@
<path stroke-linecap="round" stroke-linejoin="round" d="M12 4v16m8-8H4"></path> <path stroke-linecap="round" stroke-linejoin="round" d="M12 4v16m8-8H4"></path>
</svg> </svg>
</div> </div>
<ColorPicker <ColorPicker position="responsive" label="" bind:hex on:input={handleCustomTheme} />
position="responsive"
label=""
bind:hex
on:input={handleCustomTheme}
nullable
/>
</div> </div>
</div> </div>
</Column> </Column>
@@ -332,3 +329,17 @@
</Column> </Column>
</Row> </Row>
</Grid> </Grid>
<style>
:global(.dark) {
--cp-text-color: #fff;
--cp-border-color: white;
--cp-text-color: white;
--cp-input-color: #555;
--cp-button-hover-color: #777;
}
:global(.dark .alpha) {
background: #333 !important;
}
</style>
@@ -170,7 +170,9 @@
width="w-[1.2rem]" width="w-[1.2rem]"
height="h-[1.2rem]" height="h-[1.2rem]"
/> />
<p class="text-sm font-medium truncate max-w-full">{$profile.fullname}</p> <p class="text-sm dark:text-white font-medium truncate max-w-full">
{$profile.fullname}
</p>
</div> </div>
<div> <div>
<ChevronRight /> <ChevronRight />