Closed chillu closed 5 years ago
All done. A few notes
If a banner is linkable, it has no shadow, then when hovered, it gets a shadow and shifts -2px. Is that correct? It looks a bit weird. The shadow is a bit much.
Used my best judgment for darkening the gradient:
background: linear-gradient(
64deg,
desaturate(lighten(adjust-hue($color, -26.4%), 0%), 38%) 0%,
desaturate(lighten(adjust-hue($color, 0%), 11%), 0%) 100%
);
Taken a look over @unclecheese 's shoulder and the transition looks good on hover. We're not 100% on the gradient colours but for now, they will need to do.
Moved from https://github.com/silverstripe/silverstripe-elemental-bannerblock/issues/28 /cc @clarkepaul
transform: translateY(-2px);
transition: transform .3s,box-shadow .3s,
for when it's not hovered to create a smooth transition for when it is hovered.Pull requests