Developing a responsive, Retina-friendly site (Part 1)
paulstamatiou.com
paulstamatiou.com
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
is 'maximum-scale=1' prevents zooming. This property fixes a mobile Safari zoom bug when orientation is changed, but the cure is worse than the disease. Leave it out and let people zoom.said that grunt is great, but still a 0.X.something software. if you want a frustration free time, wait some more until everything settles down.
Personally, I've just stuck with 0.3 (despite the constant temptation to check out the latest version!), it's got all the tasks I need for my workflow and it is otherwise flawless.
(the difference in title was "Designing" vs "Developing")
Do media queries based on values like max-width simply assume 1em = 16px universally at default zoom level, or is that something that can be overridden? I mean, em's are not "inherently" 16px at all, that's just what happens to be most browser's default font size.
> However, I've learned that when you test your media queries you will need to reload the page each time you change the zoom level. It's just a nitpick where media queries won't get affected by zoom level adjustments after the page load unlike browser resizes.
I think that's actually a good thing -- if you're adjusting the browser zoom level while you're looking at a page, that's because you want to inspect something more closely. You don't want the whole layout to change. Browsers also conveniently try to keep you looking at roughly the same thing in the scroll-position, even though the whole height of the page may have drastically changed.
Not me. HN is a good example where I have to zoom in to get the text at a decent font size on my phone. I absolutely want the page width to change and to reflow the text.
Mostly, it forces you to consider the context of your media queries, not just specific resolutions or device capabilities. This helps to future-proof your code for new devices and build for difficult-to-test for contexts, like users who always have a browser zoom level set higher than you expect.
This article really helped sell me on the idea and show me the way:
http://blog.cloudfour.com/the-ems-have-it-proportional-media...
(1)I realize this sounds judgmental, I don't mean for it to be. There are plenty of perfectly valid reasons to "just hit a few target devices" using responsive design techniques instead of building a "truly responsive site".
Thanks for the Swiftype shout out, too!
That being said, I love it when people build on top of Jekyll - it's awesome to see how many workflows it can fit into.
A prime is this: http://en.wikipedia.org/wiki/Prime_(symbol)