Split Your Styles into Smaller Chunks with Partials 5

Split Your Styles into Smaller Chunks with Partials 5
0
#1

Tell us what’s happening:
Now I’m totally clueless. I’m not using an underscore or anything like that to make it seem like I’m using one. What in the world is going on with my codes?

Your code so far


// The main.scss file

@import 'variables.scss'


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36 Avast/73.0.1258.87.

Link to the challenge:
https://learn.freecodecamp.org/front-end-libraries/sass/split-your-styles-into-smaller-chunks-with-partials

#2

Re-read this part of the lesson again

For example, if all your mixins are saved in a partial named “_mixins.scss”, and they are needed in the “main.scss” file, this is how to use them in the main file:

// In the main.scss file

@import ‘mixins’

#3

So, the answer would be @import ‘variables.scss’ ? I’m so confused by it.

#4

Well no, you’ve already tried that and it didn’t work.
Look at the lesson again. Besides the underscore being removed, what else is being removed from _mixins.scss?

1 Like
#5

I’m not sure what’s being removed from

_mixins.scss

#6

I’ll quote the lesson again…
// In the main.scss file

@import ‘mixins’

so let’s pretend instead of ‘mixins’ it’s ‘variables’

Your answer was @import ‘variables.scss’

Does that look like the answer they gave as a sample @import mixins?

#7

I’m sorry, but I still don’t understand. My learning disability is kicking in big time, and it’s hard for me to understand things that seem difficult for me…

#8

Yes, I understand you have a learning disability but you didn’t get into college with a learning disability by people giving you answers directly. You know how to learn.

I’ll do this again. In the lesson they used ‘mixins’ so it looked like ‘_mixins.scss’. The import was coded as @import mixins

The only thing different in the lesson is that instead of the partial being called ‘_mixins.scss’ the partial is called ‘_variables.scss’

So, not only was the underscore dropped but the extension was dropped too. Can you see that?

#9

Actually, I did get in college to where they gave me answers directly to help me out. I tell all of my professors that I have a major learning disability, and they always help me out, plus, I get tutoring, too, to help with assignments that I don’t understand.

And as for your question, I can not see that. My mind is going crazy with this lesson, and it’s confusing me even more thinking about it.

#10

Okay, I’ll try one more time. In the lesson they show,
the partial is named _mixins.scss and to use it it’s @import mixins

You are given a partial name _variables.scss The only difference between the two is ‘mixins’ and ‘variables’ So how would you write the import statement? (You already know that @import variables.scss is incorrect.)

#11

I’m not sure, @Roma. You are making things more confusing for me. My learning disability is kicking in big time, and I can’t even understand coding anymore…

#12

I’m sorry @LBDemaree, I’ll stop. Maybe we both need to sleep on it.
All I’m saying, and have said, is that all you have to do is change the word mixins to variables and the test will pass.
I was trying to explain the why too.

#13

I understand that, but, when my learning disability gets horrible, I struggle so much that I start going into full panic mode. Mental illness and learning disability does not mix well at all.