Extract inlined styles

Fixes #2