Skip to content

Commit

Permalink
Flip element vertically rather than overriding rotation
Browse files Browse the repository at this point in the history
  • Loading branch information
ezwelty authored and wbazant committed Nov 27, 2024
1 parent 6217af7 commit 81fbbe1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/map/GeolocationDot.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ import {

const Heading = styled.div`
position: absolute;
top: 0;
bottom: 0;
left: -35px;
transform-origin: top center;
transform: rotate(${({ heading }) => -heading}deg);
transform-origin: bottom center;
transform: rotate(${({ heading }) => heading}deg);
height: 55px;
width: 70px;
clip-path: polygon(35% 0%, 65% 0%, 100% 100%, 0% 100%);
clip-path: polygon(35% 100%, 65% 100%, 100% 0%, 0% 0%);
// Fix gradient in Safari: https://css-tricks.com/thing-know-gradients-transparent-black/
background: linear-gradient(
to bottom,
to top,
${({ theme }) => theme.orange},
${({ theme }) => rgba(theme.orange, 0)}
);
Expand Down

0 comments on commit 81fbbe1

Please sign in to comment.