best regards,
Stig Meireles Johansen
On Mon, Jul 28, 2008 at 8:38 AM, Brion Vibber <brion(a)wikimedia.org> wrote:
-----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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
Comment: Using GnuPG with Mozilla -
http://enigmail.mozdev.org
iEYEARECAAYFAkiNaXQACgkQwRnhpk1wk44QZwCfUZ6109cRiARhY40z2FXX9ntS
D9gAoMU7ASEP1AOviabAhYTITHVnWumM
=oHdW
-----END PGP SIGNATURE-----
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l