Stylesheet load sequence

32 views
Skip to first unread message

Craig in Calgary

unread,
Apr 15, 2012, 10:29:29 AM4/15/12
to tiddl...@googlegroups.com
I have a TW that includes MPTW palettes and themes as well as several stylesheets in addition to the StyleSheet shadow tiddler, e.g. GrowlStyle, TagsTreeStyleSheet, StyleSheetShortcuts. I understand that the sequence of code and links to other stylesheets within StyleSheet will dictate what CSS is applied TW-wide. But when during the TW load sequence does the CSS in MPTWTeal (or any palette) and MPTWStandardTheme (or any theme) get applied? My problem is knowing where to make CSS tweaks that will apply last as well as removing CSS that is overridden by assignments further down the load sequence. With this configuration, where is the best place to make CSS tweaks, e.g. h1-h6 font-family assignments? Thanks in advance.

Måns

unread,
Apr 15, 2012, 12:37:20 PM4/15/12
to TiddlyWiki
Hi Craig

> I understand that the sequence of code and links to other stylesheets within StyleSheet will dictate what CSS is applied TW-wide.
> But when during the TW load sequence does the CSS in MPTWTeal (or any palette) and MPTWStandardTheme (or any theme) get applied?
> My problem is knowing where to make CSS tweaks that will apply last as well as removing CSS that is overridden by assignments further down the load sequence.
> With this configuration, where is the best place to make CSS tweaks, e.g. h1-h6 font-family assignments?

All mptw systemThemes include the standard StyleSheet tiddler
([[StyleSheet]]) at the bottom of the systemTheme definition.. (as far
as I remember...)

All changes you make to the standard StyleSheet will take precendence
over whatever class is set by the systemTheme, because it is loaded
last..

(I reckon ....)

Cheers Måns Mårtensson
Reply all
Reply to author
Forward
0 new messages