Sass :compact

Last Updated:

Example

Sass :compact is one of the sass's output style. It puts each CSS rule on its own single line.

Note: Ruby Sass is deprecated, whereas node-sass does not support :compact output styling.

Example

basic.scss
body { text-align: right; a, a:visited { padding: 0 3px; color: #222222; } a:hover { color: #B00909; } }

Execute the following command.

Command Prompt
sass --watch scss/basic.scss:css/basic.css --style compact
Basic.css
body { text-align: right; } body a, body a:visited { padding: 0 3px; color: #222222; } body a:hover { color: #B00909; }

Share this Page

Meet the Author