Make sure the glow effect on discards is just as bright for trash #6

Merged
max merged 1 commit from timotree/deck-website:trash-glow into main 2025-09-16 12:38:48 +02:00
Collaborator

Prior to this change, the glow effect on discards was affected by the opacity of the card, so was transparent for trash cards. This change makes the glow equally bright for trash and non-trash discards, so they are both easy to visually scan for. To enable this, the card is split into two elements so that the opacity of one does not affect the glow (box-shadow) of the other.

Before
Screenshot of the site without trash glow
After
Screenshot of the site with trash glow

Prior to this change, the glow effect on discards was affected by the opacity of the card, so was transparent for trash cards. This change makes the glow equally bright for trash and non-trash discards, so they are both easy to visually scan for. To enable this, the card is split into two elements so that the opacity of one does not affect the glow (`box-shadow`) of the other. Before ![Screenshot of the site without trash glow](/attachments/39df03c8-f3d4-4c76-a51f-0af96a5a2a97) After ![Screenshot of the site with trash glow](/attachments/028e43c4-2465-4104-a118-0ca458120a36)
Prior to this change, the glow effect on discards was affected by the opacity of the card,
so was transparent for trash cards.
This change makes the glow equally bright for trash and non-trash discards,
so they are both easy to visually scan for.
To enable this, the card is split into two elements so that the opacity of one does not affect
the glow (`box-shadow`) of the other.
Owner

Thanks, seems good

Thanks, seems good
max merged commit 26e43403db into main 2025-09-16 12:38:48 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Hanabi/deck-website!6
No description provided.