Repository navigation
Refactoring grid implementation. - #14410
seven-phases-max wants to merge 1 commit into
Conversation
|
Including the generated |
There was a problem hiding this comment.
|
I'd probably prefer the first method since that doesn't lead to Maybe for v4? But, that all depends on a lot of other things first. |
Cool. So I guess I'll commit the corresponding code (I feel it's already turned to be too confusing to advertise one method but to PR another), so that the whole thing become more consistent before it's closed. |
Done. |
|
Per my earlier comment, I don't want to re-engineer the entire grid system in v3.x. Punting any big changes like this to v4. |
This is a "preview" PR for discussion and feedback. Since there're several possible methods each with its own pros and cons I had to write a small (pseudo)-blog-post about this. Please read.
(Updated) This PR implements
Method #1. The generated CSS should be equal to what it is now, except 5 added dummy classes (.col-any-any,.col-xs-any,.col-sm-any,.col-md-any,.col-lg-any) plus the generated grid classes are (intentionally) reordered. (Note also that all mixins are rewritten and reordered so thediffview does not make any sense).A few questions. I'm not sure if "coding guidelines" questions (specifically "What Less features may we use?") are appropriate here but since this directly affects the code in the PR I guess I'll ask. In particular:
whenguards are always used even where the "Pattern-Matching" would result in more clean and less verbose code: is there any special reason behind this?Thanks.