Skip to content

Instantly share code, notes, and snippets.

@adrianb93
Created August 8, 2019 22:57
Show Gist options
  • Save adrianb93/85d8bb963b302c6dcc58fbc6a9199c2c to your computer and use it in GitHub Desktop.
Save adrianb93/85d8bb963b302c6dcc58fbc6a9199c2c to your computer and use it in GitHub Desktop.
Highlighter CSS Styling
<p>
Did you know that <span class="highlight">all goats</span> like eating their own hats?
</p>
/* 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