move post preview style to css