On Sun, Aug 3, 2008 at 4:15 AM, Stephen Bain stephen.bain@gmail.com wrote:
On Sun, Aug 3, 2008 at 11:46 AM, Stephen Bain stephen.bain@gmail.com wrote:
I believe that the iPhone runs Safari 3, which supports CSS3 media queries, so it should be possible to create an iPhone compatible variant of the current MediaWiki skins simply through the css. Given that Monobook is achieved entirely with css positioning anyway, it should be fairly straightforward to implement.
Digging into the code, I see that SkinTemplate::transformCssMedia() appears to redirect the iPhone to use the "handheld" stylesheet if $wgHandheldForIPhone is set to true?
In this case all that is necessary would be to define a handheld stylesheet for the particular skin, and the iPhone will use it?
Probably. But that has two (IMHO major) disadvantages: * It won't allow using the "full" skin on the iPhone, which is sometimes what you want * It still uses screen-based layout, which usually results in text too small to read or wrapped in some tiny column. You'll have to zoom in/out a lot, which is annoying. My approach offers a native (or close enough) iPhone interface that takes the special features and limitations of the device into account to create a more pleasant user experience.
Magnus