mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-03-10 20:31:47 +00:00
WebUI: Use CSS to alternate row colors in transferlist
Keep the old code for IE < 9, the majority of the browsers shouldn't need it. Also, keep the CSS code in one place.
This commit is contained in:
parent
8a4028fc84
commit
0b6d5c662a
@ -29,6 +29,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#myTable tr:nth-child(even),
|
||||||
|
#filesTable tr:nth-child(even),
|
||||||
#properties #torrentFiles tr.alt,
|
#properties #torrentFiles tr.alt,
|
||||||
#properties #trackers tr.alt,
|
#properties #trackers tr.alt,
|
||||||
#transferList tr.alt {
|
#transferList tr.alt {
|
||||||
@ -49,6 +51,8 @@
|
|||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#myTable tr:hover,
|
||||||
|
#filesTable tr:hover,
|
||||||
#properties #torrentFiles tr.over,
|
#properties #torrentFiles tr.over,
|
||||||
#properties #trackers tr.over,
|
#properties #trackers tr.over,
|
||||||
#transferList tr.over {
|
#transferList tr.over {
|
||||||
|
@ -350,15 +350,6 @@ ul.filterList li:hover a {
|
|||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#filesTable tr:nth-child(even) {
|
|
||||||
background-color: #eee;
|
|
||||||
}
|
|
||||||
|
|
||||||
#filesTable tr:hover {
|
|
||||||
background-color: #e60;
|
|
||||||
color: white;
|
|
||||||
}
|
|
||||||
|
|
||||||
#addTrackersPlus {
|
#addTrackersPlus {
|
||||||
width: 16px;
|
width: 16px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
@ -63,6 +63,9 @@ var dynamicTable = new Class({
|
|||||||
},
|
},
|
||||||
|
|
||||||
altRow : function () {
|
altRow : function () {
|
||||||
|
if (!MUI.ieLegacySupport)
|
||||||
|
return;
|
||||||
|
|
||||||
var trs = this.table.getElements('tr');
|
var trs = this.table.getElements('tr');
|
||||||
trs.each(function (el, i) {
|
trs.each(function (el, i) {
|
||||||
if (i % 2) {
|
if (i % 2) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user