Skip to content

Commit

Permalink
fix: fix pubpage text color changing with system preference.
Browse files Browse the repository at this point in the history
This was causing an unexpected contrast problem
when viewing page with different preferences.
  • Loading branch information
zicklag committed Dec 9, 2024
1 parent c21c29c commit ad1e146
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/lib/themes/minimal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
</script>

<svelte:head>
<link rel="stylesheet" href="https://unpkg.com/pico.css/dist/pico.min.css" />
<link rel="stylesheet" href="pico.min.css" />
</svelte:head>

{#if profile}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/themes/retro.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
</script>

<svelte:head>
<link rel="stylesheet" href="https://unpkg.com/pico.css/dist/pico.min.css" />
<link rel="stylesheet" href="pico.min.css" />
</svelte:head>

{#if profile}
Expand Down
6 changes: 5 additions & 1 deletion src/lib/themes/weird.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@
};
</script>

<svelte:head>
<link rel="stylesheet" href="pico.min.css" />
</svelte:head>

{#if profile}
{#if editingAvatar != ''}
<AvatarEditor
Expand All @@ -78,7 +82,7 @@
/>
{/if}

<main>
<main data-theme="dark">
<section>
<EditLinks
label={linkLabel}
Expand Down
2 changes: 0 additions & 2 deletions src/routes/(subsites)/subsite/[username]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@
<svelte:head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="color-scheme" content="light dark" />
<link rel="stylesheet" href="pico.min.css" />
<link rel="stylesheet" href="https://unpkg.com/open-props" />
<title>{display_name}</title>
</svelte:head>
Expand Down

0 comments on commit ad1e146

Please sign in to comment.