Skip to content

Commit

Permalink
fix: fixed some problem with arrow
Browse files Browse the repository at this point in the history
Signed-off-by: upsaurav12 . <[email protected]>
  • Loading branch information
upsaurav12 committed Aug 9, 2024
1 parent 83dfca3 commit 278d077
Showing 1 changed file with 12 additions and 17 deletions.
29 changes: 12 additions & 17 deletions src/sections/General/Navigation/navigation.style.js
Original file line number Diff line number Diff line change
Expand Up @@ -650,41 +650,36 @@ const NavigationWrap = styled.header`
position: relative;
height: 50px;
width: 50px;
transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
transform-origin: centre;
display: flex;
justify-content: center;
margin-right: 13px;
transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.plus span {
position: absolute;
width: 100%;
height: 100%;
width: 15px;
height: 10px;
display: flex;
justify-content: center;
margin-top: 18px;
}
.plus span::before,
.plus span::after {
content: '';
position: absolute;
background-color: ${(props) => props.theme.menuColor};
position: absolute;
width: 2.5px; /* Thickness of the arrow lines */
height: 100%; /* Ensure lines cover the full span */
transform-origin: bottom;
background-color: ${(props) => props.theme.menuColor};
}
.plus span::before {
width: 10px;
height: 2.5px; /* Thickness of the horizontal line */
transform: rotate(45deg);
top: 10px;
margin-top: 26%;
margin-left: 16.124%;
}
.plus span::after {
width: 2.5px; /* Thickness of the vertical line */
height: 10px;
transform: rotate(45deg);
margin-top: 42.125%;
margin-left: -14%;
transform: rotate(-45deg);
}
.plus:hover{
Expand Down

0 comments on commit 278d077

Please sign in to comment.