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.
Problem/Motivation
Our CSS standards recommend that CSS is split up into smaller files inline with these categories:
- Base
- Layout
- Component
- Theme
Proposed resolution
Let's split up Sevens style.css into these categories. Let's not fix any problems we fix while moving files.
Remaining tasks
- Review the patch (code). Keep in mind that you should have some knowledge about SMACSS in order to review this patch. Are the files separated correctly?
- Manually review the patch. Does everything look the same when the patch is applied, since only files are moved?
- RTBC!
User interface changes
None
API changes
None
Comment | File | Size | Author |
---|---|---|---|
#11 | 2321505-split-seven-css-11.patch | 84.44 KB | LewisNyman |
#11 | interdiff.txt | 2.11 KB | LewisNyman |
Comments
Comment #1
LewisNymanHere's the patch. Image url paths have been updated. I'm not sure how to make this easier to review.
Comment #2
LewisNymanComment #4
sqndr CreditAttribution: sqndr commentedAdding Needs tests tag, since the tests require an update.
Comment #5
LewisNymanFixing tests and removing install CSS from every page.
Comment #6
LewisNymanJust realised I named the breadcrumb.css incorrectly
Comment #7
LewisNymanSorry, a few missing sheets.
Comment #11
LewisNymanFixing tests
Comment #12
sqndr CreditAttribution: sqndr commentedUpdated the summary.
Comment #13
sqndr CreditAttribution: sqndr commentedLooks good to me. Would love to get this in to start documenting the css.
Comment #14
webchickInteresting that our underlying system tests test stuff in Seven theme, but that's a pre-existing condition. :)
I looked through this pretty carefully and it all seems to be affecting things only in Seven theme, not in any other CSS in core, so should be safe. It's also been RTBC for about a week, which should be ample time for people to raise concerns if there are any.
Committed and pushed to 8.x. Thanks!
Comment #16
jibranSorry it added a CSS regression.
D8 now
D8 before
Comment #17
LewisNymanDid you try a reinstall? I see this on a fresh install:
Comment #18
jibranit is fine with aggregate but not without it.
Aggregate on
Aggregate off
Comment #19
LewisNymanhmm that's weird because mine was without aggregate as well.
Here's a shot from Simplytest.me
Comment #20
jibranNVM it was ABP of my chrome which doesn't allow me to load branding.css see http://stackoverflow.com/questions/23341765/getting-neterr-blocked-by-cl...
It is working fine in firefox and after disabling ABP in chrome.
Sorry for the noise and thank you for your patience @LewisNyman