impr: improve design consistency/rounding
This commit is contained in:
10 files changed
+65
-38
No files matched your search
@@ -53,8 +53,8 @@
|
||||
|
||||
{#if profile.data?.jwt}
|
||||
{#if !commenting}
|
||||
<EndPlaceholder class="">
|
||||
<Button color="primary" onclick={() => (commenting = true)}>
|
||||
<EndPlaceholder>
|
||||
<Button color="primary" rounding="xl" onclick={() => (commenting = true)}>
|
||||
<Icon src={PlusCircle} size="16" micro />
|
||||
{$t('routes.post.addComment')}
|
||||
</Button>
|
||||
@@ -74,7 +74,12 @@
|
||||
{$t('filter.sort.controversial')}
|
||||
</Option>
|
||||
</Select>
|
||||
<Button size="square-md" onclick={onupdate}>
|
||||
<Button
|
||||
size="custom"
|
||||
class="h-8.5 w-8.5"
|
||||
rounding="xl"
|
||||
onclick={onupdate}
|
||||
>
|
||||
{#snippet prefix()}
|
||||
<Icon src={ArrowPath} size="16" mini />
|
||||
{/snippet}
|
||||
@@ -122,7 +127,7 @@
|
||||
{$t('filter.sort.controversial')}
|
||||
</Option>
|
||||
</Select>
|
||||
<Button size="square-md" onclick={onupdate}>
|
||||
<Button size="custom" class="h-8.5 w-8.5" rounding="xl" onclick={onupdate}>
|
||||
{#snippet prefix()}
|
||||
<Icon src={ArrowPath} size="16" mini />
|
||||
{/snippet}
|
||||
|
||||
@@ -163,8 +163,11 @@
|
||||
<Material
|
||||
color="transparent"
|
||||
class="items-center gap-x-4 color-grid gap-y-2"
|
||||
rounding="2xl"
|
||||
>
|
||||
<h1 class="text-2xl font-bold col-span-2">{$t('routes.theme.accent')}</h1>
|
||||
<Header size="sm" style="grid-column: span 2 / span 2;">
|
||||
{$t('routes.theme.accent')}
|
||||
</Header>
|
||||
<ColorSwatch
|
||||
value={themeData.current.colors.primary?.[900]}
|
||||
onchange={e => {
|
||||
@@ -191,17 +194,27 @@
|
||||
}}
|
||||
class="w-12! h-12! col-span-1"
|
||||
/>
|
||||
<span class="font-semibold text-base">
|
||||
<span class="font-medium text-sm -mt-2">
|
||||
{$t('nav.menu.colorscheme.light')}
|
||||
</span>
|
||||
<span class="font-semibold text-base">
|
||||
<span class="font-medium text-sm -mt-2">
|
||||
{$t('nav.menu.colorscheme.dark')}
|
||||
</span>
|
||||
</Material>
|
||||
<div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-2">
|
||||
<div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-4 mt-4">
|
||||
{#each Object.entries(defaultColors) as [category, value] (category)}
|
||||
<Material color="transparent" class="flex flex-col gap-2">
|
||||
<h1 class="capitalize font-semibold text-lg">{category}</h1>
|
||||
<Material
|
||||
rounding="2xl"
|
||||
color="transparent"
|
||||
class="flex flex-col gap-2"
|
||||
>
|
||||
<Header
|
||||
class="capitalize"
|
||||
size="sm"
|
||||
style="grid-column: span 2 / span 2;"
|
||||
>
|
||||
{category}
|
||||
</Header>
|
||||
<div class="flex flex-row gap-1 flex-wrap items-center space-evenly">
|
||||
{#each Object.entries(value) as [shade] (shade)}
|
||||
<div class="flex flex-col gap-0.5 w-10 group">
|
||||
@@ -219,7 +232,7 @@
|
||||
return true
|
||||
}}
|
||||
/>
|
||||
<span class="font-medium capitalize">{shade}</span>
|
||||
<span class="font-medium -mt-1 capitalize">{shade}</span>
|
||||
</div>
|
||||
{/each}
|
||||
</div>
|
||||
|
||||
@@ -19,20 +19,17 @@
|
||||
class="{theme.id == themeData.data.currentTheme
|
||||
? 'ring-2 ring-inset ring-primary-900 dark:ring-primary-100'
|
||||
: ''} flex relative cursor-pointer h-full flex-col text-left p-0.5"
|
||||
rounding="xl"
|
||||
rounding="2xl"
|
||||
>
|
||||
<div
|
||||
class={[
|
||||
'h-20 w-full rounded-lg rounded-b-none flex flex-row flex-wrap p-3 gap-2',
|
||||
'h-20 w-full rounded-2xl rounded-b-none flex flex-row flex-wrap p-3 gap-2',
|
||||
]}
|
||||
style="background-color: rgb({theme.colors[
|
||||
'zinc'
|
||||
][900]}); color: rgb({theme.colors['zinc'][50]});"
|
||||
>
|
||||
<div
|
||||
style="background-color: rgb({theme.colors['zinc'][50]})"
|
||||
class="text-xs"
|
||||
>
|
||||
<div style="color: rgb({theme.colors['zinc'][50]})" class="text-xs">
|
||||
Lorem ipsum dolor sit amet, consectetur adipisicing elit.
|
||||
</div>
|
||||
<div
|
||||
@@ -73,6 +70,7 @@
|
||||
color="ghost"
|
||||
size="square-md"
|
||||
class="shrink-0"
|
||||
rounding="xl"
|
||||
onclick={() => {
|
||||
modal({
|
||||
actions: [
|
||||
|
||||
Reference in new issue
Block a user