From e0e6ef29a24cce75465511f3e3ce96fba68ab781 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Wed, 30 Jun 2021 19:57:31 +0100 Subject: [PATCH] Add custom scrollbars to client apps --- .../client/src/components/ClientApp.svelte | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/packages/client/src/components/ClientApp.svelte b/packages/client/src/components/ClientApp.svelte index 014ec1e053..32725898c7 100644 --- a/packages/client/src/components/ClientApp.svelte +++ b/packages/client/src/components/ClientApp.svelte @@ -108,4 +108,25 @@ position: relative; border: 1px solid var(--spectrum-global-color-gray-300); } + + /* Custom scrollbars */ + :global(::-webkit-scrollbar) { + width: 8px; + height: 8px; + } + :global(::-webkit-scrollbar-track) { + background: var(--spectrum-alias-background-color-default); + } + :global(::-webkit-scrollbar-thumb) { + background-color: var(--spectrum-global-color-gray-400); + border-radius: 4px; + } + :global(::-webkit-scrollbar-corner) { + background: var(--spectrum-alias-background-color-default); + } + :global(*) { + scrollbar-width: thin; + scrollbar-color: var(--spectrum-global-color-gray-400) + var(--spectrum-alias-background-color-default); + }