Skip to content

Commit b54744a

Browse files
authored
filter what you desire (#42)
* filter interaction * filter scope
1 parent 647f81e commit b54744a

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

Diff for: README.md

+12
Original file line numberDiff line numberDiff line change
@@ -138,4 +138,16 @@
138138
</fieldset>
139139
```
140140

141+
#### [filter](https://developer.mozilla.org/CSS/filter) [scope](../../pull/42)
142+
143+
```css
144+
:focus {
145+
--tape-filter: invert(100%);
146+
}
147+
148+
:link:hover {
149+
--tape-filter: hue-rotate(120deg);
150+
}
151+
```
152+
141153
[<tt><b>tape online. :D</b></tt>](https://s9a.github.io/tape/)

Diff for: tape.css

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
--tape-yellow: #eee833;
66
--tape-blue: #11dff1;
77
--tape-green: #44f477;
8+
--tape-filter: none;
89
}
910

1011
@media (prefers-contrast: less) {
@@ -34,6 +35,7 @@
3435
.tape-green,
3536
.tape-yellow,
3637
.tape-white {
38+
filter: var(--tape-filter);
3739
background: var(--tape-hex) !important;
3840
color: var(--tape-black) !important;
3941
}

0 commit comments

Comments
 (0)