Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Additional class when you use @extend #2945

Open
fameches opened this issue Jul 21, 2020 · 0 comments
Open

Additional class when you use @extend #2945

fameches opened this issue Jul 21, 2020 · 0 comments

Comments

@fameches
Copy link

I use nested classes with &- syntax and @extend and I got on 8 line: .menu-image .menu-image-closed instead of just .menu-image-closed . node-sass 4.14.1
566aac86-3720-4c90-abdc-b89991299098 (1)

.menu {
    &-image {
        .common-image-button {
            @media (max-width: 123) {
                transform: scale(0.8, 0.8);
            }
        }

        .common-image-button-closed {
            @extend .common-image-button;
            display: none;
            width: 38px;
            height: 38px;
        }

        &-closed {
            @extend .common-image-button-closed;
             display: block;
        }

        &-opened {
            @extend .common-image-button-closed;
        }
    }
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant