Skip to content

Commit

Permalink
feat(scroll): scroll update
Browse files Browse the repository at this point in the history
  • Loading branch information
Neox63 committed Jun 24, 2024
1 parent e1a1635 commit cfaed6a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 32 deletions.
11 changes: 0 additions & 11 deletions components/Atoms/Scroll/Scroll.twig
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,4 @@
<div class="w-1/2 mb-4 mx-auto h-[100px] bg-vermillon-light"></div>
</div>
</div>

<div class="flex grow flex-col gap-4 contextual-scroll">
<h1 class="h1 text-center mb-4">Contextual Scroll</h1>

<div class="mx-auto w-full max-h-[300px] overflow-y-auto bg-blue-300 p-4">
<div class="w-1/2 mb-4 mx-auto h-[100px] bg-vermillon-light"></div>
<div class="w-1/2 mb-4 mx-auto h-[100px] bg-vermillon-light"></div>
<div class="w-1/2 mb-4 mx-auto h-[100px] bg-vermillon-light"></div>
<div class="w-1/2 mb-4 mx-auto h-[100px] bg-vermillon-light"></div>
</div>
</div>
</div>
26 changes: 5 additions & 21 deletions components/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,32 +16,16 @@ svg {
height: 100%;
}

*::-webkit-scrollbar {
::-webkit-scrollbar {
width: 7px;
}

*::-webkit-scrollbar-track {
::-webkit-scrollbar-track {
border-radius: 0px;
background-color: #d6d6d6;
background-color: var(--grey-lighter);
}

*::-webkit-scrollbar-thumb {
::-webkit-scrollbar-thumb {
border-radius: 0px;
background-color: #fa533c;
}

.contextual-scroll {
::-webkit-scrollbar {
width: 7px;
}

::-webkit-scrollbar-track {
border-radius: 0px;
background-color: #d6d6d6;
}

::-webkit-scrollbar-thumb {
border-radius: 0px;
background-color: var(--grey-dark);
}
background-color: var(--grey-dark);
}

0 comments on commit cfaed6a

Please sign in to comment.