From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo-Andres Hofmann To: development@lists.ipfire.org Subject: [PATCH v2 2/6] zoneconf.cgi: Modify CSS to allow additional rows Date: Thu, 18 Feb 2021 15:30:12 +0100 Message-ID: <20210218143016.972-2-hofmann@leo-andres.de> In-Reply-To: <20210218143016.972-1-hofmann@leo-andres.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5163643794142571188==" List-Id: --===============5163643794142571188== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Simplify borders, load more colors from header and add dividers Signed-off-by: Leo-Andres Hofmann --- html/cgi-bin/zoneconf.cgi | 42 ++++++++++++++++++++++++++++----------- 1 file changed, 30 insertions(+), 12 deletions(-) diff --git a/html/cgi-bin/zoneconf.cgi b/html/cgi-bin/zoneconf.cgi index bf46ab0c7..13543d244 100644 --- a/html/cgi-bin/zoneconf.cgi +++ b/html/cgi-bin/zoneconf.cgi @@ -32,39 +32,59 @@ my $extraHead =3D < td:first-child { width: 11em; } + #zoneconf tr.nic-row > td:first-child { + background-color: darkgray; + } + #zoneconf tr.nic-row { + border-bottom: 0.5px solid $Header::bordercolour; + } =20 /* alternating row background color */ + #zoneconf tr { + background-color: $Header::table2colour; + } #zoneconf tr:nth-child(2n+3) { - background-color: #F0F0F0; + background-color: $Header::table1colour; } =20 + /* special cell colors */ #zoneconf td.green { background-color: $Header::colourgreen; } @@ -83,8 +103,6 @@ my $extraHead =3D < - + END ; @@ -359,7 +377,7 @@ foreach (@zones) { } =20 print <$uc
+
\n"; - print "\t\t\n"; + print "\t\n"; + print "\t\t\n"; =20 # Iterate through all zones and check if the current NIC is assigned to it foreach (@zones) { --=20 2.27.0.windows.1 --===============5163643794142571188==--
$uc
$nic
$mac
$nic
$mac