From ef361e8aa0c01b77cf717f1344c41d2c968fc488 Mon Sep 17 00:00:00 2001 From: phl0 Date: Wed, 14 Feb 2024 13:44:11 +0100 Subject: [PATCH] Add mode badges --- application/views/components/hamsat/table.php | 10 +++++++++- assets/css/default/overrides.css | 2 +- assets/css/general.css | 17 ++++++++++++++++- 3 files changed, 26 insertions(+), 3 deletions(-) diff --git a/application/views/components/hamsat/table.php b/application/views/components/hamsat/table.php index bc2b7714..0d4ec264 100644 --- a/application/views/components/hamsat/table.php +++ b/application/views/components/hamsat/table.php @@ -70,9 +70,17 @@ } else if ($row['mhz_direction'] == 'down') { $direction = '↓'; } + $modeclass = ''; + if ($rove['mode'] == 'SSB') { + $modeclass = 'hamsatBgLin'; + } else if ($rove['mode'] == 'Data') { + $modeclass = 'hamsatBgData'; + } else if ($rove['mode'] == 'FM') { + $modeclass = 'hamsatBgFm'; + } ?> - "> + "> diff --git a/assets/css/default/overrides.css b/assets/css/default/overrides.css index 943d0165..ae07e3e7 100644 --- a/assets/css/default/overrides.css +++ b/assets/css/default/overrides.css @@ -60,4 +60,4 @@ thead > tr > td { .dxccsummaryheader:after { background-image: linear-gradient(to right, black 0, black 12ch, black 12ch, black 100%); -} \ No newline at end of file +} diff --git a/assets/css/general.css b/assets/css/general.css index 1443a1e8..4f17f87b 100644 --- a/assets/css/general.css +++ b/assets/css/general.css @@ -767,4 +767,19 @@ label { .dxccsummaryheaderopened:after { content: "\2796"; /* Unicode character for "minus" sign (-) */ -} \ No newline at end of file +} + +.hamsatBgLin { + background-color: rgb(224 242 254) !important; + --bs-badge-color: rgb(2 132 199) !important; +} + +.hamsatBgData { + background-color: rgb(250 232 255) !important; + --bs-badge-color: rgb(192 38 211) !important; +} + +.hamsatBgFm { + background-color: rgb(254 243 199) !important; + --bs-badge-color: rgb(217 119 6) !important; +}