From 316be5485e0b06b2b1c7d9b4301b64897b9ab44a Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Wed, 3 Jan 2024 15:22:04 +0000 Subject: [PATCH] Bug 35681: Use CSS class instead of inline style Signed-off-by: David Nind --- installer/install.pl | 4 ++-- .../intranet-tmpl/prog/css/src/installer.scss | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/installer/install.pl b/installer/install.pl index 07e93371df..b8146672c7 100755 --- a/installer/install.pl +++ b/installer/install.pl @@ -558,8 +558,8 @@ sub chk_log { #returns a logfile in $dir or - if that failed - in temp dir sub colorize { my ($report) = @_; my $h = HTML::FromANSI::Tiny->new( - auto_reverse => 0, background => 'white', foreground => 'black', - inline_style => 1, no_plain_tags => 1 + auto_reverse => 0, background => 'white', foreground => 'black', no_plain_tags => 1, + class_prefix => 'updatedatabase-report-' ); my @states = ( 'success', 'error' ); diff --git a/koha-tmpl/intranet-tmpl/prog/css/src/installer.scss b/koha-tmpl/intranet-tmpl/prog/css/src/installer.scss index 273183a3f0..4b14a52a85 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/src/installer.scss +++ b/koha-tmpl/intranet-tmpl/prog/css/src/installer.scss @@ -1,3 +1,4 @@ +@import "variables"; @import "flatpickr"; body { @@ -247,3 +248,19 @@ span.breadcrumbs { color: #727272; font-size: 90%; } + +.updatedatabase-report-red{ + color: $warning-text-color; +} + +.updatedatabase-report-green { + color: $green-text-color; +} + +.updatedatabase-report-yellow { + color: #ce9b1c; +} + +.updatedatabase-report-blue { + color: blue; +} \ No newline at end of file -- 2.30.2