3 ms·
Yeah...we thought of that too: https://github.com/pixtulate/pixtulate.js https://github.com/pixtulate/pixtulate.js
by canterburry 12y ago
Yeah...we thought of that too:
https://github.com/pixtulate/pixtulate.js https://github.com/pixtulate/pixtulate.js
- geuis 12y agoI don't think this is a solution either. In most cases we don't need multiple images of vastly different sizes. Sizing images can be handled entirely through media queries. We aren't using multiple versions of each image, so there's no need for a js shim.
- masklinn 12y ago> Sizing images can be handled entirely through media queries. Unless something's changed since the last time I looked, media queries are only screenwise so they don't gracefully handle having a block in a small sidebar versus a "central" content section. The sidebar images could actually grow from a big to a small screen (because content is linearised and the "sidebar image" now takes the whole width of a small display, rather than a small part of a big display)
- riskable 12y agoThere's a simple rule I follow to solve that problem: If it goes in the sidebar (or a toolbar) it should be an SVG. It's the only way to ensure it will fit and scale no matter the screen size or device. With media queries you can even ensure that they get spaced properly (need more space between icons on smaller screens). Pictures are they only problem that needs to be solved at this point.