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.
Part of the CSS Cleanup: #1968914: [META] Sprint CSS cleanup
Overview of Goals
Make it easy to remove unwanted design assumptions in the theme layer, while maintaining critical functionality.
Prevent unneeded administrative styles from loading on the front end.
Make CSS and related markup more efficient and less intrusive to improve the themer experience.
Comment | File | Size | Author |
---|---|---|---|
#3 | color-module-css-cleanup-1969132-3.patch | 2.78 KB | rteijeiro |
#1 | 1969132-color_module-css-clean-up-1.patch | 3.85 KB | oresh |
Comments
Comment #1
oresh CreditAttribution: oresh commentedFirst attempt.
Replacing id with class in css - reducing selectors weight.
Comment #2
djbobbydrake CreditAttribution: djbobbydrake commentedI would not remove the IDs form the markup, nor replace the ID selectors with css selectors on the JS side, because ID selectors are much more efficient than class selectors on the JS side. The changes in the css files are okay, though.
Comment #3
rteijeiro CreditAttribution: rteijeiro commentedJust updated the patch according the #2 suggestions.
Comment #4
rvilarStart working on this
Comment #5
rteijeiro CreditAttribution: rteijeiro commentedThis issue is continued in #2027217: Clean up the CSS for Color module.
Comment #6
Sumit kumar CreditAttribution: Sumit kumar commented3: color-module-css-cleanup-1969132-3.patch queued for re-testing.
this patch is not working on my localhost
Comment #8
tompagabor CreditAttribution: tompagabor commented