diff --git a/src/app.css b/src/app.css index 0fbbe43..41e84e0 100644 --- a/src/app.css +++ b/src/app.css @@ -48,6 +48,11 @@ } /* Content */ + main.main-leather, + article.article-leather { + @apply bg-primary-0 dark:bg-primary-1000 text-gray-800 dark:text-gray-300; + } + div.note-leather, p.note-leather, section.note-leather { @@ -114,6 +119,25 @@ @apply hover:bg-primary-100 dark:hover:bg-primary-800; } + /* Textarea */ + div.textarea-leather { + @apply bg-gray-200 dark:bg-gray-800 border-gray-400 dark:border-gray-600; + } + + div.textarea-leather > div:nth-child(1), + div.toolbar-leather { + @apply border-none; + } + + div.textarea-leather > div:nth-child(2) { + @apply bg-gray-100 dark:bg-gray-900; + } + + div.textarea-leather, + div.textarea-leather textarea { + @apply text-gray-800 dark:text-gray-300; + } + /* Tooltip */ div.tooltip-leather { @apply text-gray-800 dark:text-gray-300; diff --git a/src/lib/components/Preview.svelte b/src/lib/components/Preview.svelte index 2072aff..27cde4f 100644 --- a/src/lib/components/Preview.svelte +++ b/src/lib/components/Preview.svelte @@ -2,6 +2,8 @@ import Pharos from "$lib/parser"; import { Heading, P } from "flowbite-svelte"; + export let sectionClass: string = ''; + export let parser: Pharos; export let rootIndexId: string; export let depth: number = 0; @@ -27,9 +29,9 @@ }; -
+
{#if depth < 4} - {title} + {title} {#each orderedChildren as id, index} {#if childIndices.includes(id)} diff --git a/src/routes/new/edit/+page.svelte b/src/routes/new/edit/+page.svelte index 2c3c26d..015baf4 100644 --- a/src/routes/new/edit/+page.svelte +++ b/src/routes/new/edit/+page.svelte @@ -1,5 +1,5 @@ -
-
-
- New Article - {#if isEditing} +
+
+ New Article + {#if isEditing} + - {:else} - + + {:else} +
+ {#if rootIndexId} - + {/if} - {/if} -
- -
+ + {/if} + +