diff --git a/src/components/PhotoPack/PhotoPack.svelte b/src/components/PhotoPack/PhotoPack.svelte index f2381627..70a4d363 100644 --- a/src/components/PhotoPack/PhotoPack.svelte +++ b/src/components/PhotoPack/PhotoPack.svelte @@ -90,22 +90,29 @@ -
+
{#each rows as row, ri}
{#each row as img, i} -
+
{img.altText} {#if !img.altText} -
altText
+
altText
{/if}
{/each} @@ -118,7 +125,7 @@ {#each rows as row, ri} {#each row as img, i} {#if img.caption} -
+
{@html marked(img.caption)}
{/if} @@ -133,33 +140,16 @@ @import '../../scss/mixins'; div.photopack-container { - display: block; - width: 100%; - margin-bottom: 10px; div.photopack-row { - display: flex; - justify-content: space-between; figure { - flex: 1; - margin: 0; - padding: 0; - position: relative; img { - margin: 0; - width: 100%; - height: 100%; object-fit: cover; } div.alt-warning { - @include font-sans; - padding: 5px 10px; background-color: red; color: white; - position: absolute; top: 0; right: 0; - font-size: 14px; - line-height: 16px; } } } @@ -167,17 +157,15 @@ div.captions-container { div.caption { - margin: 0 0 0.6rem; &:last-of-type { margin-bottom: 0; } :global(p) { - font-size: 0.85rem; - line-height: 1.1rem; - @include font-sans; + @include text-xs; + @include leading-tight; + @include font-note; @include text-secondary; margin: 0; - font-weight: 300; } } }