|
1 | 1 | <script lang="ts"> |
2 | | - import { base } from '$app/paths'; |
3 | 2 | import appleIconHref from '$assets/icons/apple-touch-icon.png'; |
4 | 3 | import faviconHref from '$assets/icons/favicon.png'; |
5 | 4 | import manifestHref from '$assets/manifestUrl.json'; |
6 | | - import '$lib/app.css'; |
| 5 | + import '$lib/styles/app.css'; |
| 6 | + import AudioPlaybackSpeed from '$lib/components/AudioPlaybackSpeed.svelte'; |
7 | 7 | import CollectionSelector from '$lib/components/CollectionSelector.svelte'; |
8 | 8 | import FontSelector from '$lib/components/FontSelector.svelte'; |
9 | 9 | import NoteDialog from '$lib/components/NoteDialog.svelte'; |
| 10 | + import PlanStopDialog from '$lib/components/PlanStopDialog.svelte'; |
10 | 11 | import Sidebar from '$lib/components/Sidebar.svelte'; |
11 | 12 | import TextAppearanceSelector from '$lib/components/TextAppearanceSelector.svelte'; |
12 | 13 | import catalog from '$lib/data/catalogData'; |
|
26 | 27 | s, |
27 | 28 | theme |
28 | 29 | } from '$lib/data/stores'; |
29 | | - import '$lib/app.css'; |
30 | | - import AudioPlaybackSpeed from '$lib/components/AudioPlaybackSpeed.svelte'; |
31 | | - import PlanStopDialog from '$lib/components/PlanStopDialog.svelte'; |
32 | 30 | import { onMount } from 'svelte'; |
33 | 31 | import { fromStore } from 'svelte/store'; |
34 | 32 |
|
|
39 | 37 | query: '?url' |
40 | 38 | }) as Record<string, string>; |
41 | 39 |
|
| 40 | + const overrideStyles = import.meta.glob('./override-*.css', { |
| 41 | + import: 'default', |
| 42 | + eager: true, |
| 43 | + base: '/src/lib/styles', |
| 44 | + query: '?url' |
| 45 | + }) as Record<string, string>; |
| 46 | +
|
42 | 47 | let { children } = $props(); |
43 | 48 |
|
44 | 49 | const isSAB = config.programType == 'SAB'; |
|
122 | 127 | {#if $refs.initialized} |
123 | 128 | <link rel="stylesheet" href={styles[`./sab-bc-${$refs.collection}.css`]} /> |
124 | 129 | {/if} |
125 | | - <link rel="stylesheet" href="{base}/override-sab.css" /> |
126 | 130 | {/if} |
| 131 | + <link |
| 132 | + rel="stylesheet" |
| 133 | + href={overrideStyles[`./override-${config.programType.toLowerCase()}.css`]} |
| 134 | + /> |
127 | 135 | </svelte:head> |
128 | 136 |
|
129 | 137 | {#if showPage} |
|
0 commit comments