CSS snippet for better mobile screenshots

A useful tip when adding screenshots to posts or talks is to put them “inside” a device. This gives the screenshot some context. Even though this screenshot already contains Android top & bottom bars, with the added outline it’s immediately obvious it’s from a phone. To add the outline to images I use a simple …