@swr-data-lab/components 2.26.0 → 2.26.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
<script lang="ts">import {
|
|
1
|
+
<script lang="ts">import {} from 'svelte';
|
|
2
2
|
import Caption from '../Caption/Caption.svelte';
|
|
3
|
-
let theme = getContext('theme');
|
|
4
3
|
const { title, subtitle, eyebrow, imageModules, updated, bylines = [] } = $props();
|
|
5
4
|
const updated_on = updated ? (updated instanceof Date ? updated : new Date(updated)) : null;
|
|
6
5
|
</script>
|
|
7
6
|
|
|
8
|
-
<header class=
|
|
7
|
+
<header class="container">
|
|
9
8
|
{#if eyebrow}
|
|
10
9
|
<p class="eyebrow">{eyebrow}</p>
|
|
11
10
|
{/if}
|
|
@@ -46,10 +45,7 @@ const updated_on = updated ? (updated instanceof Date ? updated : new Date(updat
|
|
|
46
45
|
margin: 0 auto;
|
|
47
46
|
margin-bottom: 1rem;
|
|
48
47
|
max-width: 44rem;
|
|
49
|
-
text-shadow: 0 0
|
|
50
|
-
}
|
|
51
|
-
.container.theme-dark {
|
|
52
|
-
text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
|
|
48
|
+
text-shadow: 0 0 6px var(--color-pageFill);
|
|
53
49
|
}
|
|
54
50
|
|
|
55
51
|
.eyebrow {
|
|
@@ -74,7 +70,6 @@ const updated_on = updated ? (updated instanceof Date ? updated : new Date(updat
|
|
|
74
70
|
line-height: 1.4;
|
|
75
71
|
font-size: var(--fs-base);
|
|
76
72
|
font-weight: 400;
|
|
77
|
-
text-shadow: none;
|
|
78
73
|
hyphens: auto;
|
|
79
74
|
}
|
|
80
75
|
|