minetest / serverlist

The global Minetest server list server
GNU Lesser General Public License v2.1
51 stars 28 forks source link

Table alternate colours for rows (tr tags) #36

Closed scr267 closed 4 years ago

scr267 commented 4 years ago

In style.css I would recommend having a nth-child tr configured so that we can have alternating colours per row. This would make it easier to scan the row's data further away on the right hand side.

A code example:

#server_list tr:nth-child(odd) {
    background: #grey;
}
#server_list tr:nth-child(even) {
    background: #white;
}
sfan5 commented 4 years ago

The CSS already did this but the coloring was a little too subtle. fixed in ddcd98a457b6d4d147d89a372fff123d7096014f