SASS Tutorial #6 - Importing Files

preview_player
Показать описание
Hey gang, in this SASS tutorial, I'll be showing you how we can split our SCSS file into modules (or other .scss files) and then import them into our main file. This way, we can keep all of our SASS for certain things together.

----- COURSE LINKS:

---------------------------------------------------------------------------------------------
You can find more front-end development tutorials on CSS, HTML, JavaScript, jQuery, WordPress & more on the channel homepage...

========== JavaScript for Beginners Playlist ==========

============ CSS for Beginners Playlist =============

============== The Net Ninja =====================

================== Social Links ==================

Рекомендации по теме
Комментарии
Автор

I've bought a few books, and attended quite a few lectures when I got a Web Design certificate, and I've got to say that your lectures are of equal or of even greater quality.

I'm currently in the process of taking my web design skills from a hobby to a profession. And I really have to thank you for the effort you're putting into these tutorials, and for sharing your skills and knowledge in general.

Thank you!!!

etymol
Автор

If you don't prefix your sass/scss files with an underscore (i.e. _mixins.scss, _reset.scss, etc..), then you will end up with multiple css files when compiled.

brandonharris
Автор

Straight to the point and easy to follow. Thanks for doing this series.

ChrisSmith-rrng
Автор

If you don't want to compile a certain file just and an underscore to the name (eg: _variables.scss, _mixins.scss, etc.)

adriandinca
Автор

Visual Studio Code has an extension for SCSS that compiles it on save without any additional software.

skrumb
Автор

I know that you don't need to add "_" in the file name, when you are importing, but don't they need to be named in the folders "_variables.scss", "_mixins.scss" etc. because they are partials ?

VKestas
Автор

Something I've seen is that you have to put your mixins before where they are displayed

MalikKlinker
Автор

So sensei, since we compiling to one file, wont css load the whole file first before rendering our webpage? and if it does that wont it affect performance if the website is big. In such a case, won't it be better to compile to multiple files?

djsamke
Автор

dont u need to add _file.scss to create this as this is a partial. ?

Alphadec
Автор

Hey, what auto completion extension are you using?

xXxArgMaggotxXx
Автор

Why not call them partials? Although modules is more common sense.

ACTISAMAL