浏览代码

update scrollbar styling

Aykut Saraç 3 年之前
父节点
当前提交
1610a5201b
共有 1 个文件被更改,包括 11 次插入0 次删除
  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;