Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
20 changes: 0 additions & 20 deletions libs/ui/src/lib/components/scroll-area/scroll-area.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,6 @@ import { cn } from '../../utils';
template: `
<ng-content />
`,
styles: `
[data-slot='scroll-area'] {
scrollbar-width: thin;
scrollbar-color: transparent transparent;
}
[data-slot='scroll-area']:hover {
scrollbar-color: var(--color-border) transparent;
}
[data-slot='scroll-area']::-webkit-scrollbar {
width: 8px;
height: 8px;
}
[data-slot='scroll-area']::-webkit-scrollbar-thumb {
background-color: transparent;
border-radius: 9999px;
}
[data-slot='scroll-area']:hover::-webkit-scrollbar-thumb {
background-color: var(--color-border);
}
`,
encapsulation: ViewEncapsulation.None,
changeDetection: ChangeDetectionStrategy.OnPush,
})
Expand Down
1 change: 1 addition & 0 deletions libs/ui/src/lib/styles/index.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@import url('@angular/cdk/overlay-prebuilt.css');

@import './shadcn.css';
@import './scrollbar.css';
32 changes: 32 additions & 0 deletions libs/ui/src/lib/styles/scrollbar.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
@layer base {
* {
scrollbar-width: thin;
scrollbar-color: var(--color-border) transparent;
}

*::-webkit-scrollbar {
width: 8px;
height: 8px;
}

*::-webkit-scrollbar-thumb {
background-color: var(--color-border);
border-radius: 9999px;
}

[data-slot='scroll-area'] {
scrollbar-color: transparent transparent;
}

[data-slot='scroll-area']:hover {
scrollbar-color: var(--color-border) transparent;
}

[data-slot='scroll-area']::-webkit-scrollbar-thumb {
background-color: transparent;
}

[data-slot='scroll-area']:hover::-webkit-scrollbar-thumb {
background-color: var(--color-border);
}
}