As an afterthought to the previous exercise, I posed the question, "How many times have you seen forms that display labels above, or to the right of, fields?" If I were to collect a dime for each answer, I suspect I would be off on some exotic island, rich, and without a care in the world—I've lost count of the number of times I've seen such forms, let alone anyone else who uses the Internet!
There is no excuse for plain, boring forms. To prove this, we're going to create a simple demo using the postcss-transform-shortcut
plugin by Jonathan Neal, available from https://github.com/jonathantneal/postcss-transform-shortcut. It's a straightforward plugin that allows us to specify single properties, which the plugin combines into a single line of code within our style sheet. Let's quickly install it:
First, go ahead and fire up a Node.js command prompt session, then change the working folder to our project area.
At the prompt, enter this command, then press Enter:
npm install...