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

Stylefmt forces @each after class extension #332

Open
DavidStolk opened this issue Jan 26, 2018 · 0 comments
Open

Stylefmt forces @each after class extension #332

DavidStolk opened this issue Jan 26, 2018 · 0 comments

Comments

@DavidStolk
Copy link

The problem is that we wan't to override the color of a group. But stylefmt forces the @each after the disabled class.
We wan't:

.Button {
    @each $name, $props in $groups {
        &.#{$name} {
            background: lighten(map-get($props, 'color-dark'), 10%);
        }
    }

    &.disabled {
        background: $gray;
    }
}

But stylefmt wants:

.Button {
    &.disabled {
        background: $gray;
    }

    @each $name, $props in $groups {
        &.#{$name} {
            background: lighten(map-get($props, 'color-dark'), 10%);
        }
    }
}

We also don't wan't extend the group class with the disabled class as that will make a loads of unnecessary css lines.
Not sure if this is an issue but we also don't wan't to be forced to use !important.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant