Quellcode durchsuchen

update scrollbar styling

Aykut Saraç vor 3 Jahren
Ursprung
Commit
1610a5201b
1 geänderte Dateien mit 11 neuen und 0 gelöschten Zeilen
  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;