Page MenuHomePhabricator

Different alternating row colours for tables
Closed, ResolvedPublic

Description

Author: mitchell_neill

Description:
In the SMW+ CSS I noticed:

/* even and odd in tables*/
#content .sortable .even,#content .smwtable .even{
background-color:#FFF;
}

#content .sortable .odd,#content .smwtable .odd{
background-color:#cde6ea;
}

But the values do not seem to be used.

Benjamin Langgut advised on the SMW mailing list that there is currently no assignment of the 'even' and 'odd' classes to the TR element of tables created with the SMWTableResultPrinter.

It would be great if this could be added as it would greatly enhance the look of table query results. People keep telling me my sites look like Excel!

Thanks
Neill.


Version: unspecified
Severity: enhancement

Details

Reference
bz23904

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:01 PM
bzimport set Reference to bz23904.
Unknown Object (User) added a comment.Nov 9 2011, 1:07 AM

A new table output adds row-even and row-odd as css parameter. We tested the following settings in common.css with the result of alternating rows.

/* even and odd in tables*/
.smwtable .row-even {background-color:#FFF;}
.smwtable .row-odd {background-color:#cde6ea;}

Test environment: 1.19alpha (r102469); Semantic MediaWiki (Version 1.7 alpha) (r102469);Semantic Result Formats (Version 1.7 alpha) (r102469)

So I think this issue can be closed.