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.
Currently all layout CSS is provided by the actual layout, there are no settings to modify a layouts CSS from within the theme settings.
I think we should provide the ability to set a max-width from within theme settings. Many users will not need to tweak the actual layouts (there will be many to choose from by the time this theme and D8 ships) but they may want to set an overall max-width.
Its quite easy to provide for also and can either be included on the actual Layouts tab or part of an "Modify layout values" sort of Extension.
Comments
Comment #1
Jeff Burnz CreditAttribution: Jeff Burnz commentedTagging.
Comment #2
Jeff Burnz CreditAttribution: Jeff Burnz commentedI'm leaving this as a feature request, I would like some feedback before going ahead with this idea. I've tried to keep any sort of CSS generation out of the D8 version and am reasonably hesitant with such features.
However, in the recent survey it's looking like the Custom CSS feature is very popular, so thats likely to stay as an extension, which means CSS generation (at least saving of files and loading etc). I have to have a long think about how features like this will work - they are one of the more tricky things to support when considering deployment, migration etc. I may well go back to writing such things into the head style tags but that is a bit ugly IMO, another route is to stick the files in the actual theme all the time and never in /files/.
Comment #2.0
Jeff Burnz CreditAttribution: Jeff Burnz commentedspelling error.
Comment #3
Jeff Burnz CreditAttribution: Jeff Burnz commentedYou can set a max-width, choose the unit and value in layout Options.