You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be interesting, if the dominant background color of the image coule be extracted automatically, and added to the background shorthand CSS property.
For example, if the dominant color would be black:
If you use this in your CSS:
<%= Media.imageCssSet('bg.jpg', {width: '100%'}) %>
You get this:
background-image: url(/media/static/bg.jpg?width=100%25)
It would be interesting, if the dominant background color of the image coule be extracted automatically, and added to the
background
shorthand CSS property.For example, if the dominant color would be black:
background: #0000 url(/media/static/bg.jpg?width=100%25)
(This should be cached etc.) :)
The text was updated successfully, but these errors were encountered: