Skip to content

Commit

Permalink
Make sure scrollbars always are visible
Browse files Browse the repository at this point in the history
  • Loading branch information
kristoferlund committed Aug 11, 2023
1 parent 06bc2f1 commit 98cbc58
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions packages/frontend/src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,28 @@
@import 'tailwindcss/utilities';
@import './custom-utilities.css';

/* This will style the scrollbar thumb */
::-webkit-scrollbar-thumb {
background-color: #888; /* Color of the draggable scrolling handle */
border-radius: 0.25rem; /* Roundness of the draggable scrolling handle */
}

/* This will style the scrollbar track */
::-webkit-scrollbar-track {
background: #f1f1f1; /* Color of the background (track) of the scrollbar */
}

/* This styles the scrollbar itself */
::-webkit-scrollbar {
width: 0.5rem; /* Width of the scrollbar */
height: 0.5rem; /* Height of horizontal scrollbars, if any */
}

/* On hover, the scrollbar thumb changes color */
::-webkit-scrollbar-thumb:hover {
background: #555;
}

@layer base {
* {
@apply dark:border-slate-700;
Expand Down

0 comments on commit 98cbc58

Please sign in to comment.