Created
August 8, 2019 22:57
-
-
Save adrianspacely/85d8bb963b302c6dcc58fbc6a9199c2c to your computer and use it in GitHub Desktop.
Highlighter CSS Styling
This file contains hidden or 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
<p> | |
Did you know that <span class="highlight">all goats</span> like eating their own hats? | |
</p> |
This file contains hidden or 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
/* I found this on https://statamic.com/why and it was beautiful. */ | |
.highlight { | |
background-image: linear-gradient(-100deg,hsla(58,92%,75%,.3),hsla(58,92%,75%,.7) 95%,hsla(58,92%,75%,.1)); | |
border-radius: 1em 0; | |
padding: 0 .35em; | |
margin: 0 -.35em; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment