Skip to content

Commit 9cfaa1c

Browse files
committed
use opacity instead of brightness for ruleid
1 parent 58a23e1 commit 9cfaa1c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/components/RuleID.astro

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,17 @@ const { id } = props.parse(Astro.props);
2222

2323
<style>
2424
button {
25-
transition: all 100ms ease;
25+
transition: opacity 100ms ease;
26+
27+
opacity: 0.5;
2628

2729
&:hover {
2830
cursor: copy;
29-
filter: brightness(1.5);
31+
opacity: 0.75;
3032
}
3133

3234
&:active {
33-
filter: brightness(1.75);
35+
opacity: 1;
3436
}
3537
}
3638
</style>

0 commit comments

Comments
 (0)