Created
July 30, 2021 20:25
-
-
Save MariusBongarts/ae9fe20d0c3f00c5c23a14730d2ad60e to your computer and use it in GitHub Desktop.
MediumHighlighter - styling
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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