Skip to content

Combining multiple @element-querries #13

@SlawaGurevich

Description

@SlawaGurevich

Hi guys,

is it possible to combine multiple @element-querries. What I'm thinking of is something like

@element ".button__container" and (min-children:3){ 
  @element ".button" and (min-width:276px) {
    :self {
      width: 100%; 
    }
     
    :parent {      
      flex-basis: 476px;
    }
  }
}

I would like to apply the style to the buttons, but only if the button__container has more than 2 buttons.
However, this doesn't seem to work.

Regards
Slawa

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