Skip to content

suggestion: state-not mixin #41

@djurnamn

Description

@djurnamn

when we call the state mixin with name and value there's currently no way of negating it.

for example, instead of doing:

.menu-drawer {
        @include state(drawer, false) {
                display: none;
        }

        @include state(drawer, search) {
                display: none;
        }
}

.search-drawer {
        @include state(drawer, false) {
                display: none;
        }

        @include state(drawer, menu) {
                display: none;
        }
}

maybe we should be able to do something like this:

.menu-drawer {
        @include state-not(drawer, menu) {
                display: none;
        }
}

.search-drawer {
        @include state-not(drawer, search) {
                display: none;
        }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions