diff --git a/src/lib/components/Moment.svelte b/src/lib/components/Moment.svelte index 642074068..10010c78e 100644 --- a/src/lib/components/Moment.svelte +++ b/src/lib/components/Moment.svelte @@ -18,50 +18,49 @@
-
-
- {meta.n} -
- {#if metaExtra} -
-

{metaExtra.title}

-

- {#if title} - {title.year} - {title.name} - {:else} - {meta.title} - {/if} -

-
- {:else} -

+
+
+ {#if metaExtra} +
+

{metaExtra.title}

+

{#if title} {title.year} {title.name} {:else} {meta.title} {/if} -

- {/if} -
    - {#each moments as cur} -
  1. - - {#if cur.n === meta.n} - - {:else} - - {/if} - -
  2. - {/each} -
-
+

+ + {:else} +

+ {#if title} + {title.year} + {title.name} + {:else} + {meta.title} + {/if} +

+ {/if} + +
    + {meta.n} + {#each moments as cur} +
  1. + + {#if cur.n === meta.n} + + {:else} + + {/if} + +
  2. + {/each} +
section { width: 100%; height: 100%; - display: flex; + padding: var(--size-5); margin: 0; - justify-content: center; - align-items: center; - background-color: var(--powder-blue); - & > span { + & h1 { max-inline-size: none; - max-width: var(--size-9); - color: var(--midnight-blue); - text-align: center; - font-size: var(--font-size-4); - background-color: var(--powder-blue); - flex: 1; + padding: var(--size-2); } - & > section { - flex: 1; - display: flex; - flex-direction: column; - width: 100%; - padding: var(--size-4); - margin: 0; - background: var(--midnight-blue); - & h1 { - max-inline-size: none; - text-wrap: auto; - font-weight: 400; - font-size: var(--font-size-5); - height: 50%; - width: 100%; - flex: 1; - text-align: center; - padding-bottom: var(--size-2); - & > span { - font-size: var(--font-size-8); - display: block; - } - } - & h2 { - max-inline-size: none; - text-wrap: auto; - font-weight: 400; - font-size: var(--font-size-4); - height: 50%; - width: 100%; - flex: 1; - text-align: center; - border-top: var(--size-1) solid var(--powder-blue); - padding-top: var(--size-7); - & > span { - font-size: var(--font-size-7); - display: block; - } - } - & ol { - height: 50%; - width: 100%; - flex: 1; + & h2 { + max-inline-size: none; + margin-top: var(--size-2); + padding-top: var(--size-5); + } + & ol { + & span { + margin: -4px 30px 0 0; + color: var(--yellow); } + display: flex; + gap: var(--size-1); + align-items: center; + /*justify-content: center;*/ + padding-top: var(--size-4); } } @@ -192,15 +154,6 @@ width: 100%; } - & ol { - display: flex; - gap: var(--size-1); - padding-inline: var(--header-padding-inline); - align-items: center; - justify-content: center; - padding-top: var(--size-4); - } - & a.active { border: none; }