Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The CSS files are a little untidy and need a bit of cleaning up.
Comment | File | Size | Author |
---|---|---|---|
#4 | aloha-clean-css-1800010_2.patch | 15.84 KB | psynaptic |
#2 | aloha-clean-css-1800010_1.patch | 15.81 KB | psynaptic |
#1 | aloha-clean-css-1800010.patch | 18.85 KB | psynaptic |
Comments
Comment #1
psynaptic CreditAttribution: psynaptic commentedI haven't changed any behaviour with this patch to keep it easy to review, only code style and general standards.
Comment #2
psynaptic CreditAttribution: psynaptic commentedWrong patch in the last comment!
Comment #3
Wim LeersTrailing period is missing here and elsewhere.
I used lack of newlines to group things. That's not a core practice, I presume?
Why lowercase? I'm not sure where I picked it up, but I've been told this is better + the core standard?
"multisplit" should still be mentioned.
Good :) I missed this one.
This CSS was autogenerated by some design app of @tkoleary, thanks for the excellent clean-up :)
Comment #4
psynaptic CreditAttribution: psynaptic commentedI think trailing period is only necessary if it is a sentence. If it's just a noun then it's not specifically required to be proper English. I have debated this over the space of about a year with some pretty clued-up people (including Morbus) and the consensus is that it's not always needed as explained above.
Come to think of it, I guess these could work with a full stop. I've adjusted the patch.
Either is fine (both are found in core) but I much prefer the less dense version. If you need to group things then by definition they should have a title. I read a book on code style and it said something like "if in doubt, always prefer less dense code". The assumption is that it makes it more readable.
Unfortunately, both upper- and lowercase are used in core (both in the same file no less e.g., modules/block/block.css). Using lowercase is "preferred" by the CSS coding standards.
Makes sense. I will change this to "Format dropdown (multisplit)", then.
Comment #5
jessebeach CreditAttribution: jessebeach commentedLooks solid.
Comment #6
Wim Leers- D7: http://drupalcode.org/project/aloha.git/commit/c4821ba
- D8: http://drupalcode.org/project/aloha.git/commit/da23bea