From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo-Andres Hofmann To: development@lists.ipfire.org Subject: [PATCH 2/4] zoneconf.cgi: Modify CSS to allow additional rows Date: Tue, 22 Dec 2020 21:06:44 +0100 Message-ID: <20201222200646.1609-2-hofmann@leo-andres.de> In-Reply-To: <20201222200646.1609-1-hofmann@leo-andres.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6755058855363667024==" List-Id: --===============6755058855363667024== 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 --===============6755058855363667024==--
$uc
$nic
$mac
$nic
$mac