Skip to content

Commit

Permalink
CSS demo fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
atomiks committed Oct 14, 2024
1 parent dec8458 commit 38d38fb
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 8 deletions.
5 changes: 5 additions & 0 deletions docs/data/components/scroll-area/ScrollAreaInlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,17 @@ const ScrollAreaViewport = styled(ScrollArea.Viewport)`
width: 100%;
height: 100%;
scrollbar-width: none;
&::-webkit-scrollbar {
display: none;
}
`;

const ScrollAreaScrollbar = styled(ScrollArea.Scrollbar)`
width: 10px;
height: calc(100% - var(--scroll-area-corner-height));
background: rgb(220 220 220);
box-sizing: border-box;
&[data-orientation='horizontal'] {
width: calc(100% - var(--scroll-area-corner-width));
Expand Down
5 changes: 5 additions & 0 deletions docs/data/components/scroll-area/ScrollAreaInlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,17 @@ const ScrollAreaViewport = styled(ScrollArea.Viewport)`
width: 100%;
height: 100%;
scrollbar-width: none;
&::-webkit-scrollbar {
display: none;
}
`;

const ScrollAreaScrollbar = styled(ScrollArea.Scrollbar)`
width: 10px;
height: calc(100% - var(--scroll-area-corner-height));
background: rgb(220 220 220);
box-sizing: border-box;
&[data-orientation='horizontal'] {
width: calc(100% - var(--scroll-area-corner-width));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,18 @@ const ScrollAreaViewport = styled(ScrollArea.Viewport)`
width: 100%;
height: 100%;
scrollbar-width: none;
&::-webkit-scrollbar {
display: none;
}
`;

const ScrollAreaScrollbar = styled(ScrollArea.Scrollbar)`
width: 10px;
padding: 2px;
visibility: hidden;
background: transparent;
box-sizing: border-box;
transition:
opacity 0.2s,
background 0.2s,
Expand All @@ -70,10 +75,6 @@ const ScrollAreaScrollbar = styled(ScrollArea.Scrollbar)`
height: 10px;
}
&[data-scrolling] {
transition: none;
}
&[data-hovering],
&[data-scrolling],
&:hover {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,18 @@ const ScrollAreaViewport = styled(ScrollArea.Viewport)`
width: 100%;
height: 100%;
scrollbar-width: none;
&::-webkit-scrollbar {
display: none;
}
`;

const ScrollAreaScrollbar = styled(ScrollArea.Scrollbar)`
width: 10px;
padding: 2px;
visibility: hidden;
background: transparent;
box-sizing: border-box;
transition:
opacity 0.2s,
background 0.2s,
Expand All @@ -70,10 +75,6 @@ const ScrollAreaScrollbar = styled(ScrollArea.Scrollbar)`
height: 10px;
}
&[data-scrolling] {
transition: none;
}
&[data-hovering],
&[data-scrolling],
&:hover {
Expand Down

0 comments on commit 38d38fb

Please sign in to comment.