Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

for each breakpoint mixin #31

Open
ArmorDarks opened this issue Oct 10, 2014 · 2 comments
Open

for each breakpoint mixin #31

ArmorDarks opened this issue Oct 10, 2014 · 2 comments
Milestone

Comments

@ArmorDarks
Copy link
Owner

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 ArmorDarks modified the milestones: 2.0.0, 2.0.0-alpha, 2.0.0-beta Oct 10, 2014
@ArmorDarks
Copy link
Owner Author

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

Ref: sass/sass#626

ArmorDarks referenced this issue Mar 1, 2016
…oints, more control:

- Added option `$ekzo-enable-responsive-helpers-for-breakpoints` which allows to list breakpoints for which will be automatically generated helper classes
- Added mixin `ekzo-each-breakpoint()` for fast inclusion of certain classes for each breakpoint, listed in `$ekzo-enable-responsive-helpers-for-breakpoints`
- Added `ekzo-temp()` function and global variable `$ekzo__temp` which allows to pass value from mixins into `@content`. See `ekzo-each-breakpoint()` for example. Hacky.
- [BREAKING] `$ekzo-breakpoints` now represented as flat map. Change option `$ekzo-enable-responsive-helpers-for-breakpoints` to disable generation of helper classes for certain breakpoints.
@ArmorDarks
Copy link
Owner Author

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 ArmorDarks modified the milestone: backlog Jan 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant