Project

General

Profile

Actions

Feature #15286

closed

Improve creation of themes: Allow theme depending context_menu.css

Added by Anonymous over 10 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Themes
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:

Description

I want to make some minor changes to the default theme.

I created a new theme folder and put my application.css into these folder's stylesheets directory.
With an @import in the application.css I import the default's theme application.css so I could override css settings after the import. Works fine for the content that is defined in the original application.css

I also want to change the color of selected table lines in the ticket view but these css definitions are included into the context_menu.css

There does not seem to be a way to override context_menu.css in putting a new context_menu.css into the stylesheets directory.

Of course I can try to override css definitions in my applications.css but context_menu.css is included after application.css and so the application.css modifications are useless if they try to override context_menu.css classes and attributes.

I think there would be two ways to make creating "child themes" easier
- include a context_menu.css instead of original context_menu.css if file exists in stylesheets folder (this would be great!!!)
- include contest_menu.css before application.css is included ( IIRC the last definition of a class is the one that is used)

Actions #1

Updated by Jean-Philippe Lang over 10 years ago

  • Status changed from New to Closed

- include a context_menu.css instead of original context_menu.css if file exists in stylesheets folder (this would be great!!!)

This is how it works, you just need to create a context_menu.css in the stylesheets directory of your theme. It will be loaded instead of the default one.

Actions

Also available in: Atom PDF