fix: Stacking series problem
This commit is contained in:
parent
9a6c891671
commit
e9af9f019a
|
@ -40,6 +40,7 @@
|
||||||
--shadow: theme('colors.java.800');
|
--shadow: theme('colors.java.800');
|
||||||
--name: theme('colors.java.800');
|
--name: theme('colors.java.800');
|
||||||
--navlink: theme('colors.eucalyptus.400');
|
--navlink: theme('colors.eucalyptus.400');
|
||||||
|
--series: theme('colors.sunglow.700');
|
||||||
}
|
}
|
||||||
|
|
||||||
.dark {
|
.dark {
|
||||||
|
@ -74,6 +75,7 @@
|
||||||
--shadow: theme('colors.java.100');
|
--shadow: theme('colors.java.100');
|
||||||
--name: theme('colors.java.300');
|
--name: theme('colors.java.300');
|
||||||
--navlink: theme('colors.eucalyptus.200');
|
--navlink: theme('colors.eucalyptus.200');
|
||||||
|
--series: theme('colors.sunglow.600');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,6 @@ title: Placeholder 2
|
||||||
date: '2024-09-20'
|
date: '2024-09-20'
|
||||||
description: "This is a placeholder description"
|
description: "This is a placeholder description"
|
||||||
tags: ["a123"]
|
tags: ["a123"]
|
||||||
series: ["placeholder"]
|
series: ["placeholder", "another-series"]
|
||||||
---
|
---
|
||||||
## Content
|
## Content
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import type { Post } from '$lib/types'
|
import type { Post } from '$lib/types'
|
||||||
|
import Dot from "svelte-radix/Dot.svelte";
|
||||||
import DividerVertical from "svelte-radix/DividerVertical.svelte";
|
import DividerVertical from "svelte-radix/DividerVertical.svelte";
|
||||||
export let post: Post;
|
export let post: Post;
|
||||||
|
|
||||||
|
@ -9,10 +10,19 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div id="post-heading">
|
<div id="post-heading">
|
||||||
|
{#if series}
|
||||||
|
<div class="flex flex-row justify-left items-center">
|
||||||
|
{#each series as seriesTag, i}
|
||||||
|
{#if i > 0}
|
||||||
|
<div class="separator text-sm">
|
||||||
|
<Dot />
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
|
<p class="series-tag">{seriesTag}</p>
|
||||||
|
{/each}
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
<h2>
|
<h2>
|
||||||
{#each series as seriesTag}
|
|
||||||
<p class="series-tag">{seriesTag}</p>
|
|
||||||
{/each}
|
|
||||||
{#if inactive}
|
{#if inactive}
|
||||||
<p id="post-title">{post.title}</p>
|
<p id="post-title">{post.title}</p>
|
||||||
{:else}
|
{:else}
|
||||||
|
@ -48,6 +58,6 @@
|
||||||
@apply text-3xl;
|
@apply text-3xl;
|
||||||
}
|
}
|
||||||
.series-tag {
|
.series-tag {
|
||||||
color: theme('colors.sunglow.600');
|
color: var(--series);
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue