web:refactors layout by moving inline styles to external stylesheet

Fixes #648