-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Did a little refactoring on how stylesheets are set up and linked in SkinTemplate skins (MonoBook & friends), which cleans up some icky template code with the IE conditional styles and enables the ability to configure a handheld stylesheet.
I wrote up some quick notes here:
http://leuksman.com/log/2008/07/27/handheld-css-variants/
Currently live I'm specifying the Chick skin's style as a handheld variant for MonoBook. This in theory will only be picked up by browsers which ignore the 'screen' style already, and it doesn't disrupt basic loading much.
(Variants friendly to iPhone and Opera Mini's fancy display mode might be nice, but need a lot more work.)
There's some open questions about which style pages should be explicitly listed as for 'screen' and which should be left for all media -- screen, print, and handheld. Behavior now may be slightly different than previous (I think I list more as 'screen'-specific than before), but can be easily tweaked.
Note you can now do &handheld=yes like the &printable=yes for a preview. Yay!
Also, use of <link> consistently in place of @import means Firefox (at least) will be willing to save styles to disk along with the .html file. Yay!
- -- brion