refactor style to partials