🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

postcss-pseudo-elements-content

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-pseudo-elements-content

PostCSS plugin adds `content: ''` to `:before` and `:after` pseudo-elements

2.0.1
latest
Version published
Weekly downloads
81
42.11%
Maintainers
1
Weekly downloads
 
Created

PostCSS Pseudo Elements Content

Build Status npm

PostCSS plugin adds content: '' to :before and :after pseudo-elements.

.foo:before-c {
  display: block;
  width: 10px;
  height: 10px;
}
.bar .baz:after-c {
}
.foo:before {
  display: block;
  width: 10px;
  height: 10px;
  content: '';
}
.bar .baz:after {
  content: '';
}

Usage

postcss([ require('postcss-pseudo-elements-content') ])

See PostCSS docs for examples for your environment.

FAQs

Package last updated on 09 Oct 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts