ekzo icon indicating copy to clipboard operation
ekzo copied to clipboard

`for each breakpoint` mixin

Open ArmorDarks opened this issue 11 years ago • 2 comments

Merge constructions like

@if $ekzo-enable-responsive-widths {

    @each $breakpoint, $value in $ekzo-breakpoints {
        @include ekzo-breakpoint($breakpoint) {
            @include ekzo-widths('#{$breakpoint}-');
        }
    }

} // endif

into single each-breakpoint() mixin

ArmorDarks avatar Oct 10 '14 16:10 ArmorDarks

Impossible to implement since so far Sass doesn't have way to call mixins:

Ref: https://github.com/sass/sass/issues/626

ArmorDarks avatar Feb 26 '16 23:02 ArmorDarks

Partially implemented, but via global variable hack and additional ekzo-temp() function.

It's still requires to have @content, since there is no way to call mixin with unknown name.

ArmorDarks avatar Mar 01 '16 16:03 ArmorDarks