hupili / datavis.studio

data-viz course/ slides/ projects
http://datavis.studio/
6 stars 6 forks source link

how to use .scss? #27

Open dragonmasterhk opened 5 years ago

dragonmasterhk commented 5 years ago

I notice some websites use .scss to write css style seperately instead of putting them together in the head part. I tried to write my own css in the .scss document and added a class in the web page, but it didn't work for the web page, why is that?

Screen Shot 2019-04-17 at 1 52 45 PM
hupili commented 5 years ago

You need a SCSS compiler to turn the .scss into .css file.

That is beyond the scope of our basic frontend training. For quick modifications, you can try those .css files, which you use to include in your HTML header.

dragonmasterhk commented 5 years ago

You need a SCSS compiler to turn the .scss into .css file.

That is beyond the scope of our basic frontend training. For quick modifications, you can try those .css files, which you use to include in your HTML header.

Thanks Pili, I downloaded a SCSS compiler and successfully modified it.

hupili commented 5 years ago

Good to know! Kudos on learning the new tool and SCSS syntax.

Can you put some pointers here for others reference?

i.e. given the information above, others can also reproduce your modification.

dragonmasterhk commented 5 years ago

https://ithelp.ithome.com.tw/articles/10196142