Articles in Development

CSS Specificity of *

I’ve been writing CSS for years. Sometimes — ashamed as I am to admit — I get snobby and feel I know it better than the back of my hand. This morning sent a shot of reality with something as simple as CSS specificity. In fact, many developers I work with were also surprised to learn this little bit of knowledge.

Iframe tables cause overflow scrolling on iOS

At Shopify, we have something we call the assets gem. It’s a collection of our core styles that we can use on any project not hosted directly in our admin. Many of our channels (Amazon, Facebook, etc) use this assets gem in their projects which are then loaded in an iframe inside of our admin.

Automate iTerm 2 Setup With Alfred Workflow

I rarely restart my computer, mainly because I hate having to set up all my iTerm tabs again. On any given day, it usually looks something like this:


I like to use the split screen feature to run tasks in one and GitHub commands in the other. I also like to label each tab for easy reference. Doing this manually is a little more cumbersome than I’d like, so I fixed up an Alfred workflow so now all I have to do is use a quick keyword trigger:

Alfred iTerm2 Workflow

Instagram API Limits Valid Use Cases

As of November 17th, 2015, Instagram updated their Platform Policy and instituted a Permission Review that is mandatory for any app or plugin that uses their API. The changes are wide reaching, addressing issues their development team surely had high on the list of things to tackle to give their platform more structure and stability. Unfortunately for those using the API, it places tight restrictions on what it can be used for.

SVG Icon Workflow with Gulp and Shopify

We are no longer developing our free Shopify themes to support IE8 and it has been fantastic so far. No more media query polyfills (an absolute nightmare when dealing with a CDN – though Gavin Ballard figured it out) and no more fear of CSS3 selectors has been great. One of my favourite perks, however, is leaving behind icon fonts and moving toward SVG icons.

We’re currently using a few Gulp tasks for our themes development process right now, but in this post I’ll focus on how we generate an SVG sprite sheet with the help of Gulp and gulp-svg-sprite and gulp-cheerio.