diff --git a/src/components/NoteText/NoteText.svelte b/src/components/NoteText/NoteText.svelte index 5be9f160..ab70a238 100644 --- a/src/components/NoteText/NoteText.svelte +++ b/src/components/NoteText/NoteText.svelte @@ -11,7 +11,7 @@ import Block from '../Block/Block.svelte'; - + {#if text} {@html marked.parse(text)} {/if} diff --git a/src/components/PhotoCarousel/PhotoCarousel.svelte b/src/components/PhotoCarousel/PhotoCarousel.svelte index 57655272..5aa64a37 100644 --- a/src/components/PhotoCarousel/PhotoCarousel.svelte +++ b/src/components/PhotoCarousel/PhotoCarousel.svelte @@ -97,7 +97,7 @@ }; - + -
+
@@ -188,8 +188,8 @@ .photo-slide { figure { span.credit { - bottom: 4px; - left: 10px; + bottom: 0; + left: 0; color: white; text-shadow: -1px -1px 0 #333, 1px -1px 0 #333, -1px 1px 0 #333, 1px 1px 0 #333; @@ -210,8 +210,7 @@ margin: 0 auto; display: flex; justify-content: space-between; - padding: 0px; - padding-top: 4px; + button { display: flex; font-size: 14px; @@ -248,11 +247,11 @@ flex-wrap: nowrap; li { flex-grow: 1; + margin-top: -9px; button { width: 100%; height: 7px; border-radius: 0; - margin: 0 0px; padding: 0; border: 1px solid $theme-colour-background; background: $theme-colour-text-secondary; diff --git a/src/components/PhotoPack/PhotoPack.svelte b/src/components/PhotoPack/PhotoPack.svelte index aae28998..af242a73 100644 --- a/src/components/PhotoPack/PhotoPack.svelte +++ b/src/components/PhotoPack/PhotoPack.svelte @@ -89,11 +89,8 @@ $: rows = groupRows(images, layout); - -
+ +
{#each rows as row, ri}
- - {#each rows as row, ri} - {#each row as img, i} - {#if img.caption} -
- {@html marked(img.caption)} -
- {/if} +
+ + {#each rows as row, ri} + {#each row as img, i} + {#if img.caption} +
+ {@html marked(img.caption)} +
+ {/if} + {/each} {/each} - {/each} -
+ +
@@ -150,14 +149,24 @@ } } - :global { - .photopack-captions-container { - @include \!fmy-2; - div.caption { - p { - @include body-caption; - } - } + .notes { + :global(.photopack-captions-container) { + @include fmy-2; + } + + :global(.photopack-captions-container .caption p) { + @include body-caption; } } + + // :global { + // .photopack-captions-container { + // @include \!fmy-2; + // div.caption { + // p { + // @include body-caption; + // } + // } + // } + // } diff --git a/src/components/ReferralBlock/ReferralBlock.stories.svelte b/src/components/ReferralBlock/ReferralBlock.stories.svelte index d2489767..0eea42d1 100644 --- a/src/components/ReferralBlock/ReferralBlock.stories.svelte +++ b/src/components/ReferralBlock/ReferralBlock.stories.svelte @@ -50,7 +50,7 @@ args="{{ section: '/lifestyle/sports/', number: 4, - cls: 'my-3', + class: 'fmy-5', heading: 'More World Cup coverage', }}" /> diff --git a/src/components/ReferralBlock/ReferralBlock.svelte b/src/components/ReferralBlock/ReferralBlock.svelte index d8f1999f..a5765a37 100644 --- a/src/components/ReferralBlock/ReferralBlock.svelte +++ b/src/components/ReferralBlock/ReferralBlock.svelte @@ -76,7 +76,7 @@ {#if $referrals.length === number} - + {#if heading}
{#if !embedded} - + diff --git a/src/components/SearchInput/SearchInput.svelte b/src/components/SearchInput/SearchInput.svelte index 14f2f9b6..981fc847 100644 --- a/src/components/SearchInput/SearchInput.svelte +++ b/src/components/SearchInput/SearchInput.svelte @@ -26,20 +26,22 @@ } -