CSS formatting in play templates
Hello!
I have a *.scala.html template for Play2 and some CSS inside it:
<style>
conf-form input:nth-child(n+1) {
margin-top: -1px;
}
.conf-form .btn {
background-color: #17384C;
} </style>
After I press Code->Reformat code, I get:
<style>
.conf-form input : nth-child(n+1) {
margin-top: -1px ;
}
.conf-form.btn {
background-color: #17384C ;
}
</style>
It's not valid layout! .conf-form .btn and .conf-form.btn are different selectors! And this happens every time when I copy this code or complete code block or ...
In CSS formatting rules I have completely different rules, but for Play2 templates Idea uses Velocity language rules.
What should I do?
Please sign in to leave a comment.
https://youtrack.jetbrains.com/issue/SCL-4765 looks related.
Will be fixed in 2.0.5 or 2.1.x
Sorry, in 2.0.5 of what? We have Idea 15.x and Play 2.3.x.