Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
"prettier-plugin-astro": "^0.14.1",
"prettier-plugin-tailwindcss": "^0.6.13",
"sharp": "^0.33.5",
"tailwind-scrollbar": "^4.0.2",
"tailwindcss": "^4.1.11",
"typescript": "^5.8.3",
"vite": "^6.3.5"
Expand Down
4 changes: 2 additions & 2 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const description = Astro.props.description ?? starpodConfig.description;
---

<!doctype html>
<html class="scrollbar-thin" lang="en">
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
Expand Down Expand Up @@ -110,7 +110,7 @@ const description = Astro.props.description ?? starpodConfig.description;
class="font-inter text-light-text-body dark:bg-dark-background dark:text-dark-text-body antialiased"
>
<header
class="scrollbar-thin lg:fixed lg:inset-y-0 lg:left-0 lg:flex lg:w-112 lg:items-start lg:overflow-y-auto xl:w-120"
class="custom-scrollbar lg:fixed lg:inset-y-0 lg:left-0 lg:flex lg:w-112 lg:items-start lg:overflow-y-auto xl:w-120"
>
<div class="relative z-10 mx-auto lg:min-h-full lg:flex-auto">
<div
Expand Down
25 changes: 25 additions & 0 deletions src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,37 @@ main:has(+ * + #audio-player .player) {
}
}

html {
color-scheme: light dark;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm completely ignorant here. What is this doing?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this signals to the browser that your page is light/dark ready and in response the browser will apply a light or dark browser stylesheet. the most notable visual changes are in inputs and scrollbars.

a good example here

}

html, .custom-scrollbar {
scrollbar-color: var(--color-light-input-border) transparent;

@media (prefers-color-scheme: dark) {
scrollbar-color: var(--color-dark-input-border) transparent;
}
}

footer:has(+ #audio-player .player) {
@media (max-width: 1024px) {
@apply mb-40;
}
}

[aria-label="EpisodeList"] li {
animation: episode-in linear both;
animation-timeline: view();
animation-range: entry 10% cover 25%;
}

@keyframes episode-in {
from {
opacity: 0;
translate: 0 25px;
}
}

.animated-bottom-border {
@apply border-b after:block after:h-[1px] after:w-0 after:bg-gradient-to-r after:from-[#C6B2FF] after:to-[#8D67FF] after:transition-all after:duration-500 after:ease-in-out hover:after:w-full dark:border-dark-border dark:after:from-[#43C9F5] dark:after:to-[#B4EDFF];
}
Expand Down
1 change: 0 additions & 1 deletion src/styles/tailwind.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
@import 'tailwindcss';

@plugin '@tailwindcss/forms';
@plugin 'tailwind-scrollbar';
@plugin '@tailwindcss/typography';

@theme {
Expand Down
Loading