Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(scroll): add page scroll #24

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from
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
7 changes: 7 additions & 0 deletions components/Atoms/Scroll/Scroll.stories.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import Scroll from './Scroll.twig';

export default {
title: 'Design System/Atoms/Scroll'
};

export const base = () => Scroll();
12 changes: 12 additions & 0 deletions components/Atoms/Scroll/Scroll.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<div class="flex gap-12">
<div class="flex grow flex-col gap-4">
<h1 class="h1 text-center mb-4">Page 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>
20 changes: 20 additions & 0 deletions components/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
@import 'tailwindcss/base';
@import 'tailwindcss/components';
@import 'tailwindcss/utilities';

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

body {
Expand All @@ -15,3 +16,22 @@ svg {
width: 100%;
height: 100%;
}

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

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

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

* {
scrollbar-width: thin;
scrollbar-color: var(--grey-dark) var(--grey-lighter);
}