Add or preserve empty line between CSS rules
See original GitHub issueForgive me if this has been asked before but is there a way to keep spacing between CSS rules when formatting?
.login {
margin-top: 30px;
padding: 30px;
background: rgba(255, 255, 255, 0.7);
}
.login.btn {
border-radius: 0;
background-color: #5C6166;
border-color: #4a4a4a;
}
To:
.login {
margin-top: 30px;
padding: 30px;
background: rgba(255, 255, 255, 0.7);
}
.login.btn {
border-radius: 0;
background-color: #5C6166;
border-color: #4a4a4a;
}
Issue Analytics
- State:
- Created 9 years ago
- Reactions:5
- Comments:16 (4 by maintainers)
Top Results From Across the Web
Preserve empty line between CSS blocks #2621 - GitHub
In JS, Prettier never prints blank lines on its own. It only preserves blank lines from the input JS (with some extra rules)....
Read more >How to add empty line between rules when making CSS from ...
So, the question is: is it possible to configure a sass compiler to make the output css file and preserve the empty line...
Read more >rule-empty-line-before - Stylelint
Require or disallow an empty line before rules. This rule ignores rules that are the very first node in a source. The fix...
Read more >white-space - CSS: Cascading Style Sheets - MDN Web Docs
A line breaking opportunity exists after every preserved white space character, including between white space characters.
Read more >white-space - CSS-Tricks
The CSS white-space property controls how text is handled on the element it is applied to. Let's say you have HTML exactly like...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This would be so great. I wish js-beautify obeyed
sass-lint
more explicitly, but this is the only feature that’s giving me a lot of trouble.@bitwiseman: I opened the new ticket myself since I think it’s highly relevant #1258.