Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I change the CSS output formatting style for SASS

Tags:

css

sass

ruby

I have read this document regarding setting the options but cannot seem to do it. I've been inside the environment.rb class but not sure what I am doing with the Symbol => Object as I am unfamiliar with Ruby. Can anyone help?

like image 796
hallodom Avatar asked Apr 18 '11 21:04

hallodom


People also ask

How do I change a style in SCSS?

Instead, try compiling it quickly and edit the CSS files after you compiled it. You can use free compilers online, for example https://www.cssportal.com/scss-to-css/. If you would like to start a project with SCSS where you compile it, you can indeed use the GULP setup provided by Bootstrap.

How many output style are there in Sass?

Sass has four different CSS output style.

Can you write CSS in Sass?

Syntactically Awesome StyleSheets also known as SASS is a powerful tool for the frontend developers providing an edge when working on CSS. With its many benefits among the one to write CSS with utmost ease when maintaining large projects, it also assists in writing dry CSS.

How do I add a style to SCSS?

The structure of SCSS rules First, choose one or more elements using IDs, classes, or other CSS selectors. Then, add styles. In this example, we select the elements with button class and add some properties. This is valid as CSS code as well as SCSS code.


1 Answers

Try this: sass --watch style.scss:style.css --styleOPTION where OPTION is one of these: compressed, compact, nested, or expanded.

Example for compressed:sass --watch style.scss:style.css --stylecompressed

like image 197
ialphan Avatar answered Sep 28 '22 03:09

ialphan