Reward / Power-up icon as a top-left sticker on the cassette and the video box

Twitch icons of channel point rewards (custom images) and Custom Power-ups are cached
(10 min, refreshed on unknown triggers, never holding an alert more than 2 s) and
attached as alert.icon; cassette.js and video.js show it as a white-outlined sticker
on the top-left corner.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Bashy 2026-11-22 16:14:39 +02:00
parent b3caac7a31
commit 8ac8fe024c
6 changed files with 63 additions and 7 deletions

View file

@ -38,3 +38,8 @@
background:rgba(201,182,228,.85); background-image:repeating-linear-gradient(45deg,#fff6 0 7px,#0000 7px 14px); }
#cassette-alert .strip:before { left:-22px; transform:rotate(-28deg); }
#cassette-alert .strip:after { right:-22px; transform:rotate(24deg); }
/* the reward's / Power-up's Twitch icon as a small sticker on the top-left corner (only when Twitch has one) */
#cassette-alert .ico { position:absolute; left:-30px; top:-28px; width:76px; height:76px; display:flex; align-items:center; justify-content:center; z-index:2; }
#cassette-alert .ico img { max-width:76px; max-height:76px;
filter:drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff) drop-shadow(0 5px 8px rgba(0,0,0,.35)); }