Skip to content

To use * selector in a container is dangerous #6

@Dafrok

Description

@Dafrok

The code below makes all elements in the device container to be block level, that's not a good idea I suppose.

.device,
.device * {
  &,
  &::before,
  &::after {
    box-sizing: border-box;
    display: block;
  }
}

.device * {

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