MediaWiki:CustomDatatable.css: Difference between revisions
From The Seven Sages of Rome
No edit summary Tags: Manual revert Reverted |
No edit summary Tag: Reverted |
||
Line 1: | Line 1: | ||
table.dataTable tbody tr { | table.dataTable tbody tr { | ||
background-color: | background-color: red; /* Optional row background */ | ||
transition: background-color 0.3s ease; | transition: background-color 0.3s ease; | ||
} | } | ||
table.dataTable tbody tr:hover { | table.dataTable tbody tr:hover { | ||
background-color: #f5f5f5 | background-color: #f5f5f5; /* Light grey on hover */ | ||
} | } | ||
table.dataTable tbody tr:nth-child(even) { | table.dataTable tbody tr:nth-child(even) { | ||
background-color: #fafafa | background-color: #fafafa; /* Zebra striping */ | ||
} | } | ||
table.dataTable tbody tr:nth-child(even):hover { | table.dataTable tbody tr:nth-child(even):hover { | ||
background-color: #f0f0f0 | background-color: #f0f0f0; /* Slightly darker on hover for even rows */ | ||
} | } |
Revision as of 08:40, 13 March 2025
table.dataTable tbody tr {
background-color: red; /* Optional row background */
transition: background-color 0.3s ease;
}
table.dataTable tbody tr:hover {
background-color: #f5f5f5; /* Light grey on hover */
}
table.dataTable tbody tr:nth-child(even) {
background-color: #fafafa; /* Zebra striping */
}
table.dataTable tbody tr:nth-child(even):hover {
background-color: #f0f0f0; /* Slightly darker on hover for even rows */
}