Skip to content

Instantly share code, notes, and snippets.

@wjandrea
Created June 14, 2024 20:47
Show Gist options
  • Save wjandrea/05c88af1e3aa8053f01a642f2c97dcad to your computer and use it in GitHub Desktop.
Save wjandrea/05c88af1e3aa8053f01a642f2c97dcad to your computer and use it in GitHub Desktop.
Redactle colour found words
@-moz-document domain("redactle.net") {
/* Redactle colour found words */
.word:not(.redacted):not(.highlight) {
/* Based on the CSS for found words in the sidebar */
--tw-border-opacity: .4;
background-color: hsl(var(--p) / var(--tw-border-opacity));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment