Skip to content



A rolling discussion tonight regarding media queries (breakpoints) and the units to use. em, px, rem? This ( article suggests that em behaves the most consistently across all browsers, but then digging into the comments, there’s a counter argument for px.

I like to use em/rem for elements that are truly relatively scaled. So things like borders and absolutely positioned elements I generally stick to px units.

Personally, I prefer px. em and rem are both relative units, units that scale based on font-size set by the user (or defaulted in the browser). Now take mobile: what if the user is using enlarged fonts. If the media queries (breakpoints) are also scaled because of the units used, how will that impact mobile?

Feels like I need to experiment more around this, but to quote a colleague…

just do what you want and let the browsers deal with the headache

…which frankly, sometimes is a good call.

More… wide…

Screenshot of improved UI for WordPress theme
More… wide.

It’s fleshing coming at a personal project with the learning of some of the big Agency projects of the last couple of years. The techniques learned scale well for this smaller project, but there’s also loads of room for improvement as ever.

Today had a fight with filtering Categories in WordPress. WordPress won. But I will not be beaten forever!


  • I’ve pulled all of the colours from the Sheru experimental theme so it uses just 3 base colours now. The rest are processed on the fly.
  • The site is no longer restricted-width (well, to a point)
  • Content now scales
  • All that gloomy black is gone. Bring on the brightness.
  • Prep for SVG icons.

Live editing

Live editing of themes inside WordPress admin is the scariest thing (but, y’know, awesome). Could so easily fry a site, and it scares me even more to think the number of custom themes must out there in the hands of clients with this feature enabled. Carnage.

So, cough, throwing caution to the wind, made a couple of live edits to this blogs bog-standard theme to filter out these posts from the far more interesting (?) code-tips etc on the front page. Also hid “recent posts” for now. The Project Sheru theme will allow filtering of those, but for now… it didn’t crash.

This is definitely not gitflow.

Project Sheru

Project Sheru: A Pattern Library based modern WordPress theme (and playpen).

  • Truly mobile first (code, UX, UI)
  • Truly responsive (natural visual breakpoints)
  • Accessible (screen reading, WCAG AA+ and ADA)
  • Modern development workflow (grunt + sass, handlebars patterns, clean theme)
  • Prototyping via CodePen
  • GitFlow on GibHub of WordPress theme and Pattern Library

This project has been time boxed for 2 months (February – March).

End Titles

Successfully migrated to the new server. It had been languishing for far too long on ancient 1 and 1 hosting.

Sirin and I really enjoyed running that film blog for a couple of years. We are intending to bring it back in Summer 2017, but it’ll have to wait until after Project Sheru and other projects.