Skip to content

Commit c383609

Browse files
authored
integrated looking scrollbars when not in overlay mode (#16)
* integrated looking scrollbars when not in overlay mode * gutted plugin for single custom-scrollbar class * snuck in a scroll animation for the episodes list while i'm makin scroll better * update to latest, update pnpm lock file
1 parent 3c0b02f commit c383609

5 files changed

Lines changed: 29 additions & 37 deletions

File tree

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
"prettier-plugin-astro": "^0.14.1",
4646
"prettier-plugin-tailwindcss": "^0.6.13",
4747
"sharp": "^0.33.5",
48-
"tailwind-scrollbar": "^4.0.2",
4948
"tailwindcss": "^4.1.11",
5049
"typescript": "^5.8.3",
5150
"vite": "^6.3.5"

pnpm-lock.yaml

Lines changed: 2 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/layouts/Layout.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const description = Astro.props.description ?? starpodConfig.description;
3838
---
3939

4040
<!doctype html>
41-
<html class="scrollbar-thin" lang="en">
41+
<html lang="en">
4242
<head>
4343
<meta charset="UTF-8" />
4444
<meta name="viewport" content="width=device-width" />
@@ -110,7 +110,7 @@ const description = Astro.props.description ?? starpodConfig.description;
110110
class="font-inter text-light-text-body dark:bg-dark-background dark:text-dark-text-body antialiased"
111111
>
112112
<header
113-
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"
113+
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"
114114
>
115115
<div class="relative z-10 mx-auto lg:min-h-full lg:flex-auto">
116116
<div

src/styles/global.css

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,37 @@ main:has(+ * + #audio-player .player) {
1010
}
1111
}
1212

13+
html {
14+
color-scheme: light dark;
15+
}
16+
17+
html, .custom-scrollbar {
18+
scrollbar-color: var(--color-light-input-border) transparent;
19+
20+
@media (prefers-color-scheme: dark) {
21+
scrollbar-color: var(--color-dark-input-border) transparent;
22+
}
23+
}
24+
1325
footer:has(+ #audio-player .player) {
1426
@media (max-width: 1024px) {
1527
@apply mb-40;
1628
}
1729
}
1830

31+
[aria-label="EpisodeList"] li {
32+
animation: episode-in linear both;
33+
animation-timeline: view();
34+
animation-range: entry 10% cover 25%;
35+
}
36+
37+
@keyframes episode-in {
38+
from {
39+
opacity: 0;
40+
translate: 0 25px;
41+
}
42+
}
43+
1944
.animated-bottom-border {
2045
@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];
2146
}

src/styles/tailwind.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
@import 'tailwindcss';
22

33
@plugin '@tailwindcss/forms';
4-
@plugin 'tailwind-scrollbar';
54
@plugin '@tailwindcss/typography';
65

76
@theme {

0 commit comments

Comments
 (0)