Last modified: 2011-11-09 01:07:08 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T25904, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 23904 - Different alternating row colours for tables
Different alternating row colours for tables
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Markus Krötzsch
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-06-11 11:17 UTC by Neill Mitchell
Modified: 2011-11-09 01:07 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Neill Mitchell 2010-06-11 11:17:34 UTC
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.
Comment 1 MWJames 2011-11-09 01:07:08 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links