Cleanup: Use @while to emit opacity-* and width-* classes

These loops could be combined later to a single pass