瀏覽代碼

remove a hover blue color

Aykut Saraç 3 年之前
父節點
當前提交
3e5e2987f2
共有 2 個文件被更改,包括 4 次插入5 次删除
  1. 4 0
      src/components/Sidebar/index.tsx
  2. 0 5
      src/constants/globalStyle.ts

+ 4 - 0
src/components/Sidebar/index.tsx

@@ -52,6 +52,10 @@ const StyledElement = styled.div<{ disabled?: boolean }>`
   cursor: pointer;
   cursor: pointer;
   pointer-events: ${({ disabled }) => disabled && "none"};
   pointer-events: ${({ disabled }) => disabled && "none"};
 
 
+  &:hover {
+    filter: brightness(1.3);
+  }
+
   a {
   a {
     text-align: center;
     text-align: center;
     width: 100%;
     width: 100%;

+ 0 - 5
src/constants/globalStyle.ts

@@ -26,11 +26,6 @@ const GlobalStyle = createGlobalStyle`
   a {
   a {
     text-decoration: none;
     text-decoration: none;
     color: unset;
     color: unset;
-
-    &:hover {
-      transition: 0.2s;
-      color: ${({ theme }) => theme.BLURPLE};
-    }
   }
   }
 
 
   button {
   button {