Skip to content

Can't locate the exact line of nested rules. #1

Open

Description

@leedorian

If you inspect a table cell, the style rule will be locate at the first level of nested selectors, not the exact rule.

.table-striped {
  > tbody {
    > tr:nth-child(odd) {
      > td,
      > th {
        background-color: @table-bg-accent;
      }
    }
  }
}

It will locate at .table-striped, not background-color: @table-bg-accent; . So if you wrap all selectors in a parent selector, all rules will be locate at first line of that less file.

#parent{
    .child{
        .grandchild{

        }
    }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions