Skip to main content

+context

+component('button')
+register
+context('.modal')

+default
display: inline-block
background-color: grey

+context('.modal')
display: block




button {
display: inline-block;
background-color: grey;
}
.modal button {
display: block;
}

The mixins and functions used in the code above: component, default, context, register, mode.