Skip to content

Commit

Permalink
filter what you desire (#42)
Browse files Browse the repository at this point in the history
* filter interaction
* filter scope
  • Loading branch information
ryanve authored Nov 22, 2021
1 parent 647f81e commit b54744a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,16 @@
</fieldset>
```

#### [filter](https://developer.mozilla.org/CSS/filter) [scope](../../pull/42)

```css
:focus {
--tape-filter: invert(100%);
}

:link:hover {
--tape-filter: hue-rotate(120deg);
}
```

[<tt><b>tape online. :D</b></tt>](https://s9a.github.io/tape/)
2 changes: 2 additions & 0 deletions tape.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
--tape-yellow: #eee833;
--tape-blue: #11dff1;
--tape-green: #44f477;
--tape-filter: none;
}

@media (prefers-contrast: less) {
Expand Down Expand Up @@ -34,6 +35,7 @@
.tape-green,
.tape-yellow,
.tape-white {
filter: var(--tape-filter);
background: var(--tape-hex) !important;
color: var(--tape-black) !important;
}
Expand Down

0 comments on commit b54744a

Please sign in to comment.