Skip to content

Instantly share code, notes, and snippets.

@MariusBongarts
Created July 30, 2021 20:25
Show Gist options
  • Save MariusBongarts/ae9fe20d0c3f00c5c23a14730d2ad60e to your computer and use it in GitHub Desktop.
Save MariusBongarts/ae9fe20d0c3f00c5c23a14730d2ad60e to your computer and use it in GitHub Desktop.
MediumHighlighter - styling
const styled = ({ display = "none", left = 0, top = 0 }) => `
#mediumHighlighter {
align-items: center;
background-color: black;
border-radius: 5px;
border: none;
cursor: pointer;
display: ${display};
justify-content: center;
left: ${left}px;
padding: 5px 10px;
position: fixed;
top: ${top}px;
width: 40px;
z-index: 9999;
}
.text-marker {
fill: white;
}
.text-marker:hover {
fill: ${highlightColor};
}
`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment