Skip to content

Commit

Permalink
feat: Add back light theme, remove newsroom icon
Browse files Browse the repository at this point in the history
Some users may need the light theme due to eyesight problems, so it should be here for accessibility reasons.
  • Loading branch information
VisualEhrmanntraut committed Oct 14, 2024
1 parent b9f1b1c commit 1aa7aa1
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 16 deletions.
2 changes: 0 additions & 2 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ export default defineConfig({
components: {
Head: "~/components/starlight/Head.astro",
MarkdownContent: "~/components/starlight/MarkdownContent.astro",
ThemeProvider: "~/components/starlight/ThemeProvider.astro",
ThemeSelect: "~/components/starlight/ThemeSelect.astro",
SocialIcons: "~/components/starlight/SocialIcons.astro",
},
social: {
Expand Down
13 changes: 7 additions & 6 deletions src/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@ body {

body,
.sidebar > .sidebar-pane {
@apply bg-[#000000] !important;
@apply dark:bg-[#000000] !important;
}

.sidebar > .sidebar-pane {
@apply border-e-[var(--sl-color-gray-6)] !important;
}

header.header {
@apply backdrop-blur-md bg-neutral-900/90 border-b-[var(--sl-color-gray-6)] !important;
@apply backdrop-blur-md dark:bg-neutral-900/90 border-b-[var(--sl-color-gray-6)] !important;
}

dialog {
@apply transition-all opacity-0 translate-y-2 flex pointer-events-none border-solid border rounded-lg border-gray-700 bg-gray-900 !important;
@apply transition-all opacity-0 translate-y-2 flex pointer-events-none border-solid border rounded-lg border-gray-700 dark:bg-gray-900 !important;
}

dialog[open] {
Expand Down Expand Up @@ -74,14 +74,15 @@ code,
}

article.preview {
@apply border-solid border rounded-lg border-gray-800 bg-neutral-900/90 p-4 !important;
@apply border-solid border rounded-lg border-gray-300 dark:border-gray-800 bg-neutral-100/90 dark:bg-neutral-900/90 p-4 !important;
box-shadow: var(--sl-shadow-sm) !important;
}

.link-preview {
--link-preview-corners: 0.5em;
--link-preview-padding-inline: 0.75rem;
@apply border-solid border border-gray-700 bg-gray-900 bg-neutral-800/90 !important;
box-shadow: var(--sl-shadow-sm);
@apply border-solid border border-gray-300 dark:border-gray-800 bg-neutral-100/90 dark:bg-neutral-900/90 !important;
box-shadow: var(--sl-shadow-sm) !important;
}

.link-preview a {
Expand Down
4 changes: 0 additions & 4 deletions src/components/starlight/SocialIcons.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ type SocialConfig = NonNullable<NonNullable<typeof config.social>[Platform]>;
const links = Object.entries(config.social || {}) as [Platform, SocialConfig][];
---

<a href="/newsroom/" rel="me" class="sl-flex">
<span class="sr-only">Newsroom</span>
<Icon name={"ph:newspaper-duotone"} />
</a>
{
links.length > 0 && (
<>
Expand Down
3 changes: 0 additions & 3 deletions src/components/starlight/ThemeProvider.astro

This file was deleted.

1 change: 0 additions & 1 deletion src/components/starlight/ThemeSelect.astro

This file was deleted.

0 comments on commit 1aa7aa1

Please sign in to comment.