[Proposal] Add support for both: before and after at the same time.
Closed this issue · 10 comments
liorocks commented
We have both, but we have separately:
@include b('list') {
@include before {
color: black;
}
}
and
@include b('list') {
@include after {
color: black;
}
}
Can we create new mixin like this?
@include b('list') {
@include before_after {
color: black;
}
}
Or usage like this would be awesome:
@include b('list') {
@include before, after {
color: black;
}
# or like this
@include before,
@include after {
color:black;
}
}
zgabievi commented
Sass have no support to use mixins separated by comma, if you want to write before and after in one mixin, you can use parse
like this:
@include b('list') {
@include parse(':before', ':after') {
color: black;
}
}
liorocks commented
zgabievi commented
I will make something easier ;)
liorocks commented
For example ?
zgabievi commented
You will be able to define shortcut for several mixins at the same time
liorocks commented
<3
liorocks commented
When ? <3
zgabievi commented
I'm working on it now
zgabievi commented
Now you can use shortcodes ability to make progress faster ;) Also you can use p
instead of parse
. We have both, but to write less, you can use that short way. I'll add shortcodes usage in documentation