Editing User:Toad64/HomepageGive feedback
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| Line 56: | Line 56: | ||
Using some css code, the background of the Hero Card can its background change when hovered (if not blocked behind the hero image).<syntaxhighlight lang="css"> | Using some css code, the background of the Hero Card can its background change when hovered (if not blocked behind the hero image).<syntaxhighlight lang="css"> | ||
.HeroCard .CardBacker { | .mw-parser-output .HeroCard .CardBacker { | ||
position: absolute; | position: absolute; | ||
inset: 0; | |||
pointer-events: none; | pointer-events: none; | ||
mask-size: 100% 100%; | |||
mask-image: url(/images/1/1c/Card_backer.png); | |||
-webkit-mask-image: url(/images/1/1c/Card_backer.png); | |||
background-color: transparent; | |||
background- | transition: background-color 0.2s ease; | ||
transition: | |||
} | } | ||
. | /* Only triggers the color change when the card is hovered */ | ||
.HeroCard . | .mw-parser-output .HeroCard:hover .CardBacker { | ||
background-color: #42CFB9; | |||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||