Problem/Motivation
All CSS is divided into module/admin/theme (aka MAT) files. This division allowed theme developers to be selective over which CSS they choose to load, functional CSS or "look and feel" CSS.
After #2489460: [Meta] Move module.theme.css files to Classy or Seven, theme developers no longer need to have this distinction at the file level, they can choose to use Classy as a base theme. We can split the CSS files into self-contained component files, which means they are easier to maintain, find, and load granularly.
Proposed resolution
Split and rename the system.module.css and system.theme.css files in modules and Classy into separate component files -> [component-name].css
Remaining tasks
User interface changes
None
API changes
None
Comments
Comment #1
lewisnymanComment #2
davidhernandezComment #3
andypostis this still valid?
Comment #4
davidhernandezJust thinking off the top of my head, I think we can still split up the files in core but leave them alone in Stable for BC. We'd have to be careful with the libraries though and make sure they get correctly overridden by Stable.
Comment #5
andypostBut keeping them in stable will require to override them in seven, isn't it?
Is there issue to discuss how to proceed with css refactorings after 8.0?
Comment #6
davidhernandezThe split can happen, but I don't think we can move them. Or we would have to move them to Stable to free them from core. Anything more than that is probably a non-BC break.
Comment #7
davidhernandezCorrection, they should already be in Stable so there is nothing to move. We can split the files that are in Stable. That would be a breaking change, regardless of libraries. People can target the individual files.
Comment #21
smustgrave commentedThank you for creating this issue to improve Drupal.
We are working to decide if this task is still relevant to a currently supported version of Drupal. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or is no longer relevant. Your thoughts on this will allow a decision to be made.
Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.
Thanks!
Comment #22
smustgrave commentedSince there's been no follow up and no child issues that are open I think it can be closed. If more work needs to be done think follow ups could cover it.