Convert layout styles into mixin