-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Non-standard at-rules #2770
Comments
Yes, I'm afraid currently Less supports only this kind of unknown at-rules:
|
No way to escape to literal CSS in LESS? :^( |
An in-place root (e.g. something out of either .emit-at-root(@literal) {
@namespace ~"whatever; @{literal}";
}
.emit-at-root("@lost foo bar"); |
Not As for |
Okay thanks. |
Yeap, custom at-rules is still a best way to extend CSS syntax for PostCSS plugins. |
Perhaps, but according to real-world usage, custom at-rules occur all the time by browser vendors. If you're using Less + PostCSS, the most compatible way would be to have Less at the top of your chain, I would think, and not send PostCSS settings into the Less parser. |
LESS is at the top of the chain. It's breaking a W3C valid rule. |
@corysimmons Oh. You said the @-rule shouldn't be parsed. What you meant is that it should parse it, but it shouldn't try to evaluate it as a valid @-rule. There, you are a correct. This is a bug. I would be surprised if this hasn't already been marked as a bug somewhere already. @seven-phases-max That hack is pretty fugly. 😬 |
👍 |
You think that's ugly? Try this on for size: .emit-root-literal(@literal) {
& {
@plugin "literal.js";
@ruleset: literal(~"@{literal}");
@ruleset();
}
} That's a plugin function which emits a specially doctored detached ruleset which bubbles a specially doctored at-directive to the top of the tree, which has a specially doctored (...) Yeah... I'm not particularly proud of that one, but it gets the job done when I need it. |
@rjgotten Cripes, let's fix this. |
It'd be nice if there was syntax to support multiline strings as well. |
Maybe emit warnings on such @ rules. For example, |
@matthew-dean, @SomMeri I looked into the code and the fix should not be too hard though it's a bit tricky... |
Maybe we could allow arbitrary expression between an unknown at-rule and final |
Any progress? |
👍 💯 🎉 |
Please release |
looking forward to release |
@seven-phases-max Would you be willing to handle releasing for a new version? |
@matthew-dean I can't as I'm still away with the only old Mac, and here most of node and npm tasks are quite tedious. |
@seven-phases-max Do we have documentation on the process? |
@matthew-dean It's just: |
@matthew-dean @seven-phases-max Don't you need a key or password or something like that to publish to npm? In any case, I will have time Wednesday, but not before. If nobody releases till then and npm credentials are available (through some secure channel), I can do it then. |
Yes we do (I thought @matthew-dean has, if he does not we won't be able to publish of course). |
I thought people just had to be added as owners of a package? https://docs.npmjs.com/cli/owner Is there some cool feature where they're required to type in their password each time they publish? Btw, thanks for your work on this! 💯 |
I updated the version in git, but don't have npm access. Looks like the only 2 npm package owners are @cloudhead and @lukeapage, so one of them would either need to push to npm or add another owner. |
@seven-phases-max Is there an easy / straightforward way to update the changelog? Or is pretty much a manual process of looking through commits? |
Btw, I've sent a message to Luke and Alexis, so we should be able to make something happen soon. ^_^ |
There's some git command that will list the descriptions of all commits after specified release/tag. |
Thanks! |
Sorry for lack of action, I've given npm permission to @matthew-dean, let me know your npm username @seven-phases-max if you want it too remember that the version needs changing in two places before grunt dist is run. That should really be documented.. |
Why not just |
2.6.0 is released! |
@stevenvachon its been in the low priority list forever.. i guess the issue is the browser version.. either including the package.json in the browser build or a different solution. Probably the simple version would be okay.. |
@lukeapage Giving @seven-phases-max npm access is not a bad idea either, just so that releasing isn't a bottleneck. Do you think you could whip up a short doc of the steps for releasing? I'm pretty sure they were covered this time, but good to have around. |
Thanks everyone. Very happy and excited with this release! No more *.css for my |
And I learned a lot in the process! lol |
@seven-phases-max added |
peterramsing/lost#197 (comment)
It seems like LESS parses non-standard at-rules. http://codepen.io/corysimmons/pen/OMmqwE?editors=010
http://www.w3.org/TR/css-syntax-3/#at-rule
According to spec, it would seem like LESS shouldn't try to parse at-rules.
@ai Are PostCSS users still recommended to use at-rules to create global settings?
The text was updated successfully, but these errors were encountered: