Mobile Wikifang

Discuss anything that involves Wikifang, the Telefang Wiki, here.
kmeisthax
Posts: 119
Joined: Sat Dec 04, 2010 3:20 pm

Re: Mobile Wikifang

Post by kmeisthax »

I've done true responsive tables, but it's damn near impossible to do so generically. You need to decide on a static breakpoint which will always be wrong; and there's special concessions that have to be made in your markup so that the table headings are visible in the content. The idea is to abuse the display attribute to turn every row into it's own table; then inject column headings using the ::before psuedo-element and attr() to pull the heading content from a data-attribute on each cell. Which would have to be automatically injected by a MediaWiki extension or after-the-fact JavaScript... and then there's all sorts of issues with colwidth attributes which actually are the one thing you can't override in CSS.

The CSS framework Bootstrap handles this in a far less impressive manner. Their responsive table implementation just places the entire table in horizontal scroll overflow, so mobile users can scroll left and right to see the other columns, while the table itself stays in frame. It's still clunky as hell, but at least is doable. We'd probably also want some kind of sticky headings solution as well, since tables can be longer than most phones.
User avatar
Sanqui
Posts: 734
Joined: Sun Dec 16, 2007 12:25 am

Re: Mobile Wikifang

Post by Sanqui »

We'll probably want to turn the horizontal evolution trees into vertical ones.
DaVince
Posts: 112
Joined: Sat Dec 28, 2013 8:10 am

Re: Mobile Wikifang

Post by DaVince »

wrote:The CSS framework Bootstrap handles this in a far less impressive manner. Their responsive table implementation just places the entire table in horizontal scroll overflow, so mobile users can scroll left and right to see the other columns, while the table itself stays in frame. It's still clunky as hell, but at least is doable. We'd probably also want some kind of sticky headings solution as well, since tables can be longer than most phones.
I actually like the sound of this. I believe it's also done this way on Wikipedia, and while not great, it seems sufficient, especially when tables are kept horizontally compact to begin with.
Post Reply