Skip to content

Commit

Permalink
Merge pull request #30 from ostyjs/scrollbar
Browse files Browse the repository at this point in the history
Enhance Scrollbar
  • Loading branch information
sepehr-safari authored Jan 17, 2025
2 parents ea19231 + 1ff814e commit 53e4b53
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-osty",
"version": "0.7.2",
"version": "0.7.3",
"type": "module",
"license": "MIT",
"author": "Sepehr Safari",
Expand Down
2 changes: 1 addition & 1 deletion templates/nostribe/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "nostribe",
"private": true,
"version": "0.0.3",
"version": "0.0.4",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
20 changes: 20 additions & 0 deletions templates/nostribe/src/app/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
--ring: 0 0% 3.9%;

--radius: 0.5rem;

--scrollbar-width: 0.5rem;
--scrollbar-color: 0 0% 0% / 0.2;
--scrollbar-color-hover: 0 0% 0% / 0.4;
}

.dark {
Expand Down Expand Up @@ -63,6 +67,9 @@
--border: 0 0% 14.9%;
--input: 0 0% 14.9%;
--ring: 0 0% 83.1%;

--scrollbar-color: 0 0% 100% / 0.2;
--scrollbar-color-hover: 0 0% 100% / 0.4;
}
}

Expand Down Expand Up @@ -98,3 +105,16 @@
@apply text-sm font-medium leading-none;
}
}

::-webkit-scrollbar {
width: var(--scrollbar-width);
}

::-webkit-scrollbar-thumb {
border-radius: var(--radius);
background: hsla(var(--scrollbar-color));
}

::-webkit-scrollbar-thumb:hover {
background: hsla(var(--scrollbar-color-hover));
}

0 comments on commit 53e4b53

Please sign in to comment.