Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Compound Parent/Reverse Nesting Selector

  • Dear Generate Team,
    Are you planning to implement an extension to the Compound selector, which will allow to use ancestor context?
    For example:
    Editing .my-selector+ New → SELECTOR (Compound selector: Checked):
    .dark-mode &

    which should be compiled to:
    .dark-mode .my-selector { … }

    It would be great if I can decide whether to keep or not* the nesting syntax, for example:

    .my-selector {
      color: blue;
      .dark-mode & {
        color: white;
      }
    }

    * compiled to legacy syntax.

  • Hi there,

    Thanks for the feedback!

    This is something we’ve looked at, but there’s no timeline for implementation yet.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.