Table of Content
Scss mixin
Mixin lets us reuse common code in different places.
We can define styles like this:
Or we may provide argument:
Then we can use our mixin in different places:
Here is an example on how we can use the mixin to create a toggable debugging border.
In the .col
and nav li
:
What’s next? We’re going to take a look at “Using loop to define grid”.