Table of Content
Scss variable
In last section, we put the @media
inside a nested selectors in different groups. This leads to an issue that our breakport, 500px, is difined in more than one place.
Preprocessor allows us to define variable. Here is an example of using Scss that define 2 variables, breakpont and the major color.
What’s next? We’re going to take a look at “Scss mixin”.