Przeglądaj źródła

update scrollbar styling

Aykut Saraç 3 lat temu
rodzic
commit
1610a5201b
1 zmienionych plików z 11 dodań i 0 usunięć
  1. 11 0
      src/constants/globalStyle.ts

+ 11 - 0
src/constants/globalStyle.ts

@@ -12,6 +12,17 @@ const GlobalStyle = createGlobalStyle`
     font-size: 16px;
   }
 
+
+  ::-webkit-scrollbar {
+    width: 8px;
+    background: ${({ theme }) => theme.BLACK_SECONDARY};
+  }
+
+  ::-webkit-scrollbar-thumb {
+    border-radius: 5px;
+    background-color: ${({ theme }) => theme.SILVER_DARK};
+  }
+
   a {
     text-decoration: none;
     color: unset;