change-table-background-color.patch

Mizuki ISHIKAWA, 2021-08-17 06:04

Download (1.08 KB)

View differences:

public/javascripts/application.js
1101 1101
    if (table.rows.length < 3) return true;
1102 1102
    var tr = $(table.rows).first();
1103 1103
    if (tr.find("TH").length > 0) {
1104
      tr.addClass('header-row');
1104 1105
      tr.attr('data-sort-method', 'none');
1105 1106
      tr.find("TD").attr('data-sort-method', 'none');
1106 1107
      new Tablesort(table);
public/stylesheets/application.css
1244 1244
  margin-bottom: 1em;
1245 1245
}
1246 1246

  
1247
div.wiki table tr.header-row { background-color: #EEEEEE; }
1248
div.wiki table tr:not(.header-row) { background-color: #fff; }
1249
div.wiki table tr:not(.header-row):hover { background-color:#ffffdd; }
1250

  
1247 1251
div.wiki table, div.wiki td, div.wiki th {
1248 1252
  border: 1px solid #bbb;
1249 1253
  padding: 4px;