Skip to content

Commit

Permalink
fix fuzzy style hover bug
Browse files Browse the repository at this point in the history
  • Loading branch information
fishjar committed Sep 2, 2023
1 parent 6bb742f commit 536b58b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/views/Content/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import styled from "styled-components";

const LineSpan = styled.span`
opacity: 0.6;
-webkit-opacity: 0.6;
text-decoration-line: underline;
text-decoration-style: ${(props) => props.$lineStyle};
text-decoration-color: ${(props) => props.$lineColor};
Expand All @@ -29,23 +30,22 @@ const LineSpan = styled.span`
-webkit-text-underline-offset: 0.3em;
&:hover {
opacity: 1;
-webkit-opacity: 1;
}
`;

const FuzzySpan = styled.span`
filter: blur(5px);
transition: filter 0.2s ease-in-out;
&hover: {
-webkit-filter: blur(5px);
&:hover {
filter: none;
-webkit-filter: none;
}
`;

const HighlightSpan = styled.span`
color: #fff;
background-color: ${(props) => props.$bgColor};
&hover: {
filter: none;
}
`;

const DiySpan = styled.span`
Expand Down

0 comments on commit 536b58b

Please sign in to comment.