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
Drupal 8 changed the theme system, now CSS files only could be loaded via libraries.
Change record: Themes now use libraries exclusively, not individual stylesheets or JavaScript files
Proposed resolution
Create a library with globalstyling, including all styles from the css folder.
Load the library for each page.
Remaining tasks
-
User interface changes
-
API changes
-
Comment | File | Size | Author |
---|---|---|---|
#4 | libraries_css_issue-2401845-4.patch | 3.07 KB | kunalkapoor |
#2 | busy-css_library-2401845-2.patch | 1.13 KB | lucastockmann |
Comments
Comment #1
lucastockmann CreditAttribution: lucastockmann commentedComment #2
lucastockmann CreditAttribution: lucastockmann commentedAttached patch.
Comment #3
kunalkapoor CreditAttribution: kunalkapoor as a volunteer and at OpenSense Labs commentedI have applied the patch but it is not working properly.
Comment #4
kunalkapoor CreditAttribution: kunalkapoor as a volunteer and at OpenSense Labs commentedI have added a patch for this issue, Please let me know if it works.
Comment #6
kunalkapoor CreditAttribution: kunalkapoor as a volunteer and at OpenSense Labs commentedComment #7
kunalkapoor CreditAttribution: kunalkapoor as a volunteer and at OpenSense Labs commented