Is it possible to define a default value for @content
just as one would do with arguments?
For instance something like:
@mixin foo {
@content: width:100%;
}
Is it possible to define a default value for @content
just as one would do with arguments?
For instance something like:
@mixin foo {
@content: width:100%;
}
try this:
or this:
No,
@content
is not a variable. You cannot set a default value to it. You cannot manipulate or examine it.If Alessandro's answer is unsuitable for your needs, you'll need to create an extra mixin to get the results you desire: