On Sat, Jul 21, 2012 at 2:04 AM, Derk-Jan Hartman <d.j.hart...@gmail.com>wrote:
> > On 17 jul. 2012, at 21:23, Jon Robson wrote: > > > The way we deal with main pages on mobile is a big mess in my opinion. > > It also seems during Wikimania that various people share my view on > > this. We should show the same content on mobile as on desktop and stop > > special casing it (There's a bug about this - > > https://bugzilla.wikimedia.org/show_bug.cgi?id=30405) > > Agreed > > > I think the problem here is we'd need to clean up every MediaWiki > > homepage in existence so that they do not use inline styles and have > > mobile specific styles as otherwise if we stop special casing the main > > page these pages will appear broken. > > Yes this is the problem. > > > I would suggest we > > 1) set a deadline for a switch over where we stop the special casing > > on the main page - we can work together during that day to ensure > > pages are mobile ready 2) we change the code so that a querystring > > specialcase=no shows what the main page will look like after the > > switchover > > 3) community works together to move inline styles into a stylesheet > > e.g. MediaWiki:Common.css and alter homepages > > I don't see this as a requirement. We just need to provide alternate CSS > and HTML layout (without fundamentally breaking IE6) and it needs to be > implemented. I'll rephrase this. " community works together to make homepage styles mobile friendly" The problem is that we currently use 50% width boxes and float them on the home page. We **cannot** adapt this for mobile without using stylesheets rather than inline styles... Currently there is already a mobile proof definition in MediaWiki:Common.css for these kind of layouts that we can reuse. > I still don't agree with your comments on removing inline styling. If we > move all inline styling we have on en.wp, we will have a style file of over > 1 MB easily. We need to be more sensible about it. Derk I completely agree with your concerns. My continuous moans about inline styling are simply that we use inline styles rather than stylesheets / style tags which mean we currently mix content with styling and prevent ourselves from doing things > > Perhaps we need transcluded internal stylesheets for these kinds of pages, > so only pages that need this css get this css. > Exactly. However at the current time there is no mechanism for this - hence why I suggested MediaWikiCommon.css as a potential location for these styles for the time being - as this is the only place where we could do it in the current setup. As a side note could we imagine adapting resource loader so that we can use annotations to only serve certain to rules to specific pages? e.g. * @only:Category:Portal */ -- Jon Robson http://jonrobson.me.uk @rakugojon
_______________________________________________ Mobile-l mailing list Mobile-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mobile-l