Skip to content

Commit

Permalink
Unfuck scrollable shadows in dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
andresgutgon committed Dec 9, 2024
1 parent 6f1cd0e commit 7019e8c
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions packages/web-ui/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,17 @@

.scrollable-indicator {
background:
linear-gradient(white 30%, rgba(255, 255, 255, 0)),
linear-gradient(rgba(255, 255, 255, 0), white 0%) 0 100%,
radial-gradient(
farthest-side at 50% 0,
rgba(0, 0, 0, 0.2),
rgba(0, 0, 0, 0)
),
linear-gradient(hsl(var(--background)) 30%, hsl(var(--background) / 0)),
linear-gradient(hsl(var(--background)), hsl(var(--background)) 0%) 0 100%,
radial-gradient(farthest-side at 50% 0, rgba(0, 0, 0, 0.2), transparent),
radial-gradient(
farthest-side at 50% 100%,
rgba(0, 0, 0, 0.2),
hsl(var(--background-shadow) / 0.2),
rgba(0, 0, 0, 0)
)
0 100%;
background-repeat: no-repeat;
background-color: white;
background-color: hsl(var(--background));
background-size:
100% 60px,
100% 60px,
Expand Down Expand Up @@ -71,6 +67,7 @@
@layer base {
:root {
--background: 0 0% 100%;
--background-shadow: 0 0% 0%;
--background-code: 0 0% 98%;
--background-gray: 0 0% 99%;
--foreground: 223 70% 4%;
Expand Down Expand Up @@ -124,6 +121,7 @@
--background-code: 0 0% 11%;
--background-gray: 0 0% 10%;
--background: 0 0% 7%;
--background-shadow: 0 0% 100%;
--foreground: 0 0% 98%;

--card: 0 0% 3.9%;
Expand Down

0 comments on commit 7019e8c

Please sign in to comment.