Skip to content
This repository was archived by the owner on Oct 3, 2024. It is now read-only.
This repository was archived by the owner on Oct 3, 2024. It is now read-only.

no "&" nesting selector in plain css #14

@SpiritAxolotl

Description

@SpiritAxolotl

https://developer.mozilla.org/en-US/docs/Web/CSS/Nesting_selector

example use:

pre {
  border-radius: 0;
  box-sizing: border-box;
  padding: 0.5rem;
  margin: 1.25rem 0 0;
  line-height: 1.5;
  overflow-x: auto;
  color-scheme: dark;
  background: rgb(13, 17, 23);
  color: rgb(230, 237, 243);
  width: 100%;
  font-size: x-small;
  overscroll-behavior: none;
  &:first-of-type {
    border-top-left-radius: 0.25rem;
    border-right: 2px solid rgb(57, 57, 57);
  }
  &:last-of-type {
    border-top-right-radius: 0.25rem;
    border-left: 2px solid rgb(57, 57, 57);
  }
}

the output:
Screenshot 2024-05-09 at 4 41 51 PM

just would be cool to have :)

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