L
L
lavezzi12015-03-07 06:37:08
css
lavezzi1, 2015-03-07 06:37:08

How does sass work?

As I understand it, it works according to the following scheme: we write code in style.sass, and it is generated using the compiler in style.css, which we bind to the site. So?
Why does he need ruby? Is it possible to use sass to layout a normal site? (do not chop the project). And how to compile in a nutshell please tell me. Google didn't help.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Miranovich, 2015-03-07
@aleks_664

Try the compass compiler, a fairly powerful and handy tool for compiling sass to css, you can find a lot of information about it on google. Sass, as answered above, can be used for any project.

E
Evgeny Elchev, 2015-03-07
@rsi

You are cunning about Google, when you started, you found the necessary information without any problems.
Sass works as you said, you write Sass rules, the compiler turns them into css files, that is, you don’t need to connect files to the Sass site, they are only for you, as a layout designer.
Ruby is needed in this scheme because the compiler is written in ruby. You do not need to write a website on it, it should just be installed in the system.
Also, if you were not too lazy to drive in two words "sass compiler" in the buzz, you would see that there are actually a lot of them (whether they use ruby ​​or not, I don't know, it's like extra information), they are installed by a regular installer and look like a regular program with a quite friendly interface. For some reason everyone praises "Koala", you can try it.
I myself use the native compiler, that is, cut the sass gem. Why? Because I use phpstorm in my work and it can automatically generate css files when changing sass files and it needs a ruby ​​gem.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question