githubEdit

PostCSS Pseudo Class Any Link

NPM Versionarrow-up-right CSS Standard Statusarrow-up-right Build Statusarrow-up-right Support Chatarrow-up-right

PostCSS Pseudo Class Any Linkarrow-up-right lets you :any-link pseudo-class in CSS, following the Selectorsarrow-up-right specification.

nav :any-link > span {
  background-color: yellow;
}

/* becomes */

nav :link > span, nav :visited > span {
  background-color: yellow;
}

nav :any-link > span {
  background-color: yellow;
}

From the proposalarrow-up-right:

The :any-link pseudo-class represents an element that acts as the source anchor of a hyperlink. It matches an element if the element would match :link or :visited.

Usage

Add PostCSS Pseudo Class Any Linkarrow-up-right to your project:

Use PostCSS Pseudo Class Any Linkarrow-up-right to process your CSS:

Or use it as a PostCSSarrow-up-right plugin:

PostCSS Pseudo Class Any Linkarrow-up-right runs in all Node environments, with special instructions for:

Options

preserve

The preserve option determines whether the original :any-link rule is preserved. By default, it is preserved.

Last updated

Was this helpful?