Skip to content

Commit

Permalink
Merge pull request #3619 from dfinity/fix-roadmap-bars
Browse files Browse the repository at this point in the history
fix roadmap scrollbar
  • Loading branch information
reigj1 authored Oct 17, 2024
2 parents 596c71b + fa97b35 commit 97f4b2b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions src/css/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,17 @@ div[class^="announcementBarContent"] {
}
}

.hide-scrollbar {
/*FireFox*/
scrollbar-width: none;
/*IE10+*/
-ms-overflow-style: -ms-autohiding-scrollbar;
}
.hide-scrollbar::-webkit-scrollbar {
/*Chrome, Safari, Edge*/
display: none;
}

@tailwind base;
@tailwind components;
@tailwind utilities;
2 changes: 1 addition & 1 deletion src/pages/roadmap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ const RoadmapPage: React.FC = () => {
ref={scrollRefs[indexTheme]}
data-scroll={indexTheme}
aria-label="milestones"
className="flex gap-2 md:gap-6 items-stretch overflow-x-auto snap-mandatory snap-x pt-10 pb-20 -mb-2 w-full scrollbar-hide box-border pl-[var(--offcut)] pr-[var(--offcut)]"
className="flex gap-2 md:gap-6 items-stretch overflow-x-auto snap-mandatory snap-x pt-10 pb-20 -mb-2 w-full hide-scrollbar box-border pl-[var(--offcut)] pr-[var(--offcut)]"
style={
{
scrollbarWidth: "none",
Expand Down

0 comments on commit 97f4b2b

Please sign in to comment.