automatically keep css selectors unique.
MIT License
Bot releases are hidden (Show)
Published by ChristianMurphy about 7 years ago
This release removes uses of deprecated postcss 5 methods. (#94 thanks to @XhmikosR)
📓 The new postcss 6 API's no longer guarantee that spacing format will be preserved.
📔 spacing format will no longer be considered breaking as part of the sematic versioning of this package.
Published by ChristianMurphy about 7 years ago
Project now follows the conventional commits standard for commit messages and offers commitizen as a way to generate standard commits in a easy to use command line interface npm run cz
.
Documentation has been updated to link to other standards which project adheres to.
Published by ChristianMurphy over 7 years ago
At rules with different vendor prefixes will not be combined. #85
E.G. the following will remain unchanged.
@-webkit-keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
Published by ChristianMurphy over 7 years ago
Duplicated properties can optionally be combined. (#76 thanks to @aldebaran798)
When option is enabled
postcss([require('postcss-combine-duplicated-selectors')({removeDuplicatedProperties: true})])
The following css
.a {
height: 10px;
background: orange;
background: rgba(255, 165, 0, 0.5);
}
will combine into
.a {
height: 10px;
background: rgba(255, 165, 0, 0.5);
}
Published by ChristianMurphy over 7 years ago
Generalizes handling of @media
to support @keyframes
, @viewport
, and other @
rules in CSS.
Published by ChristianMurphy almost 8 years ago
@media
selectors are now processed separately from global selectors. (#6 thanks to @kristoferjoseph)
Meaning
.example {
color: blue;
}
.example {
background: green;
}
@media print {
.example {
color: red;
}
.example {
background: yellow;
}
}
will correctly reduce to
.example {
color: blue;
background: green;
}
@media print {
.example {
color: red;
background: yellow;
}
}
Published by ChristianMurphy about 8 years ago
More internal normalizations are now handled by postcss-selector-parser
Published by ChristianMurphy over 8 years ago
plugin can now be used with postcss-cli.
Published by ChristianMurphy over 8 years ago
Example Javascript in README is now checked against linter.
Published by ChristianMurphy over 8 years ago
Drops support for Node.js 0.12
Allowing more code to be run natively, and less to be transformed by babel.
Published by ChristianMurphy over 8 years ago
Matching selectors that have different text order but same logical meaning are now grouped.
E.G.
.one.two {} .two.one {}
becomes
.one.two {}
Testing
Chores
Published by ChristianMurphy over 8 years ago
Matching selectors with attributes can now be combined.
README now includes a usage guide.
Testing
Linting
Published by ChristianMurphy over 8 years ago
New Tests:
Fix:
Chores:
Published by ChristianMurphy over 8 years ago
Plugin can now group selectors with different spacing between each statement.
Published by ChristianMurphy over 8 years ago
Support for combining groups that have identical selectors.