Skip to content

Referencing Parent Selectors: & #92

Open
@vincentVDB

Description

@vincentVDB

& must appear at the beginning of a compound selector, but it can be followed by a suffix that will be added to the parent selector. For example:

#main {
  color: black;
  &-sidebar { border: 1px solid; }
}

'-sidebar' should have the same color as 'main'
colorization working properly for '&: hover'

an other mistake with '-on'

&-on {
  background-color: $myColor;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions