Project

General

Profile

Patch #35772 » change-table-background-color.patch

Mizuki ISHIKAWA, 2021-08-17 06:04

View differences:

public/javascripts/application.js
if (table.rows.length < 3) return true;
var tr = $(table.rows).first();
if (tr.find("TH").length > 0) {
tr.addClass('header-row');
tr.attr('data-sort-method', 'none');
tr.find("TD").attr('data-sort-method', 'none');
new Tablesort(table);
public/stylesheets/application.css
margin-bottom: 1em;
}
div.wiki table tr.header-row { background-color: #EEEEEE; }
div.wiki table tr:not(.header-row) { background-color: #fff; }
div.wiki table tr:not(.header-row):hover { background-color:#ffffdd; }
div.wiki table, div.wiki td, div.wiki th {
border: 1px solid #bbb;
padding: 4px;
(3-3/5)