Comments (7)
This test case? https://github.com/postcss/postcss-custom-selectors/blob/master/test/fixtures/heading/output.css
from postcss-custom-selectors.
Selector is not indented here, please just double check the code I wrote :)
from postcss-custom-selectors.
OK, I see.
from postcss-custom-selectors.
Here I joined selectors using rule.before https://github.com/postcss/postcss-selector-matches/blob/fcd0a36a9f9c9cdc67c3683fae95302d4544816c/src/index.js#L56
from postcss-custom-selectors.
Fix: 74ee82e
@MoOx Please check the code.
from postcss-custom-selectors.
looks like it's a good start :)
from postcss-custom-selectors.
We must used reBLANK_LINE
to remove the extra blank line.
from postcss-custom-selectors.
Related Issues (20)
- Keep original code when a selector is undefined + add a warning HOT 2
- "more complicated things" HOT 3
- Use PostCSS 4.1 API HOT 2
- Two or more consecutive hyphens in selector outputs "undefined" HOT 1
- Wrong output when mixing selectors HOT 10
- Use the postcss-selector-matches HOT 5
- Using multiple custom-selectors in one selector does not work HOT 14
- When customSelectors is empty, console gets polluted HOT 2
- Warning: "The selector X is undefined" HOT 5
- Not valid output HOT 5
- Incompatible with :matches() HOT 1
- custom selectors with nesting HOT 3
- `npm test` crashes
- custom selectors are not applied when used in combination with postcss-nesting HOT 2
- Incorrect indentation and spaces HOT 1
- Iterate over each item in a selector? HOT 1
- Invalid spacing applied to custom-selector lists HOT 2
- Support `.pcss` file extension HOT 1
- usage with a class name selector that contains a double hyphens output a undefined selector HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from postcss-custom-selectors.