5.0.1 • Published 8 months ago

postcss-selector-prefix v5.0.1

Weekly downloads
48
License
MIT
Repository
github
Last release
8 months ago

PostCSS Selector Prefix

NPM version ci

PostCSS plugin to add a selector prefix to all selectors.

/* Input example */
html {
  font-family: sans-serif;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}
body {
  margin: 0;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section,
summary {
  display: block;
}
/* Output example */
#pefix {
  font-family: sans-serif;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}
#pefix {
  margin: 0;
}
#pefix article,
#pefix aside,
#pefix details,
#pefix figcaption,
#pefix figure,
#pefix footer,
#pefix header,
#pefix hgroup,
#pefix main,
#pefix menu,
#pefix nav,
#pefix section,
#pefix summary {
  display: block;
}

Usage

postcss([require("postcss-selector-prefix")("#prefix")]);
5.0.1

8 months ago

5.0.0

8 months ago

4.0.0

6 years ago

3.0.1

6 years ago

3.0.0

7 years ago

2.1.0

8 years ago

2.0.0

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago