#2885 - Split the global.css file

  • By
  • Added
  • 9 views
Identifier #2885
Issue type Trivial issue (does not break functionality)
Title Split the global.css file
Status Closed (duplicate)
Tags

Risk: General incompatibility (custom)

Handling member Chris Graham
Addon core_themeing
Description I find it difficult to use the global.css file across multiple themes because the global.css file contains not only global CSS classes, but also the theme colors. As a result, if I wish to edit a global.css class to take effect on all themes, I have to edit each individual theme's global.css file. This is a time consuming task.

Instead, split the CSS file into two separate files. Global.css, which does not contain any theme color data, and is specific to default theme (thus global for all themes) unless a user specifically edits it and makes a custom override. Then make another css file (maybe "theme.css" or something) that contains just the theme colors etc. And this css file is specific to each theme.
Steps to reproduce

Funded? No
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".

Rating

Unrated