Skip to content

Commit

Permalink
feat(scroll): add page scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
Neox63 committed Jun 19, 2024
1 parent 0822765 commit 8b81bb2
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 8 deletions.
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 pageScroll = () => Scroll();
8 changes: 8 additions & 0 deletions components/Atoms/Scroll/Scroll.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<h1 class="h1 text-center mb-4">Page Scroll</h1>

<div class="mx-auto w-1/2 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>
46 changes: 38 additions & 8 deletions components/base.css
Original file line number Diff line number Diff line change
@@ -1,17 +1,47 @@
@import "variables.css";
@import "../assets/css/*.css";
@import url("./**/*.css");
@import "tailwindcss/base";
@import "tailwindcss/components";
@import "tailwindcss/utilities";
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,400;0,500;1,400;1,500&display=swap");
@import 'variables.css';
@import '../assets/css/*.css';
@import url('./**/*.css');
@import 'tailwindcss/base';
@import 'tailwindcss/components';
@import 'tailwindcss/utilities';
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,400;0,500;1,400;1,500&display=swap');

body {
font-family: "Poppins", "Roboto", serif;
font-family: 'Poppins', 'Roboto', serif;
color: var(--grey-dark);
}

svg {
width: 100%;
height: 100%;
}

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

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

*::-webkit-scrollbar-track:hover {
background-color: #d6d6d6;
}

*::-webkit-scrollbar-track:active {
background-color: #d6d6d6;
}

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

*::-webkit-scrollbar-thumb:hover {
background-color: #fa533c;
}

*::-webkit-scrollbar-thumb:active {
background-color: #fa533c;
}

0 comments on commit 8b81bb2

Please sign in to comment.