From 0c12c8dbc88b4b77175ad54252c62fa85bdaf6bb Mon Sep 17 00:00:00 2001 From: coon Date: Wed, 29 Nov 2023 23:01:03 +0100 Subject: [PATCH] static: use "old school" way for alternate coloring of tables --- static/flexbox/index.html | 30 +++++++++++++++--------------- static/flexbox/sanic.css | 13 +++++++++++++ 2 files changed, 28 insertions(+), 15 deletions(-) diff --git a/static/flexbox/index.html b/static/flexbox/index.html index 8887e7d..b689aef 100644 --- a/static/flexbox/index.html +++ b/static/flexbox/index.html @@ -68,7 +68,7 @@
- +
@@ -80,7 +80,7 @@ - + @@ -88,7 +88,7 @@ - + @@ -96,7 +96,7 @@ - + @@ -104,7 +104,7 @@ - + @@ -112,7 +112,7 @@ - + @@ -120,7 +120,7 @@ - + @@ -128,7 +128,7 @@ - + @@ -202,49 +202,49 @@ - + - + - + - + - + - + - + diff --git a/static/flexbox/sanic.css b/static/flexbox/sanic.css index fc9785a..fc11f96 100644 --- a/static/flexbox/sanic.css +++ b/static/flexbox/sanic.css @@ -25,6 +25,10 @@ table { } +/* This is probably a better way to generate alternate coloring on tables. However, + background color for selected track is overwritten this way. Therefore the "old + school" way of alternate coloring is used for now. + table tr:nth-child(odd) td { background:#1e1f1a; } @@ -32,6 +36,15 @@ table tr:nth-child(odd) td { table tr:nth-child(even) td { background:#171812; } +*/ + +table tr.odd { + background-color: #1e1f1a; +} + +table tr.even { + background-color: #171812; +} #flexbox-container { display: flex;
Position
1 Chakra Love Shines Through (Martin Roth's in Electro Love Remix)undefined 9:29
2 Chakra Love Shines Through (Martin Roth's in Electro Love Remix)undefined 9:29
3 Chakra Love Shines Through (Martin Roth's in Electro Love Remix)undefined 9:29
4 Chakra Love Shines Through (Martin Roth's in Electro Love Remix)undefined 9:29
5 Chakra Love Shines Through (Martin Roth's in Electro Love Remix)undefined 9:29
6 Chakra Love Shines Through (Martin Roth's in Electro Love Remix)undefined 9:29
7 Chakra Love Shines Through (Martin Roth's in Electro Love Remix)
Chakra Love Shines Through (Martin Roth's in Electro Love Remix) undefined undefined 9:29
Chakra Love Shines Through (Martin Roth's in Electro Love Remix) undefined undefined 9:29
Chakra Love Shines Through (Martin Roth's in Electro Love Remix) undefined undefined 9:29
Chakra Love Shines Through (Martin Roth's in Electro Love Remix) undefined undefined 9:29
Chakra Love Shines Through (Martin Roth's in Electro Love Remix) undefined undefined 9:29
Chakra Love Shines Through (Martin Roth's in Electro Love Remix) undefined undefined 9:29
Chakra Love Shines Through (Martin Roth's in Electro Love Remix) undefined