27 Oct '14, 2pm
Classical mixin inheritance in Sass - #programming
you only ever pass one argument to a mixin: a Sass map, which defaults to (). you call a mixin named override and pass it that single argument. This essentially tells Sass that this mixin is a child of another mixin, and stores the argument map in a global store. (If the mixin isn’t the end of the inheritance chain, set $is_child to false .) you set default attributes for this child mixin by calling a default mixin and passing it an attribute & value pair. Anywhere along the way, instead of accessing variables directly, you can call fetch to retrieve them from the global storage.