Opened 11 years ago
Last modified 10 years ago
#11126 closed enhancement
Some templates could override layout (and theme) stylesheets with own stylesheets — at Initial Version
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | 1.1.2 |
Component: | rendering | Version: | 1.0.1 |
Severity: | trivial | Keywords: | layout template stylesheet css |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Some templates put css stylesheets after layout stylesheets. That means that templates stylesheets can override styles defined in themes. Other templates add their own stylesheets through add_stylesheet
. In this way layout stylesheets are written in head
tag after them (so they override styles). I think that the last behavior is the valid one (and the first one is due to changes not yet committed).
Templates that I can see with ¿old behavior?:
- /trac/prefs/templates/prefs_pygments.html
- trac/templates/about.html
- trac/templates/error.html
- trac/templates/diff_view.html
- trac/ticket/templates/milestone_delete.html
- trac/ticket/templates/milestone_edit.html
I have attached a patch that change some (error.html
and prefs_pygments.html
are too complex for me) of these templates to add_stylesheet
behavior.
Modify some templates to converge to
add_stylesheet
behavior