Skip to content

Commit

Permalink
CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Dec 15, 2019
1 parent d979f6f commit 9e94be8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion htdocs/core/lib/functions.lib.php
Expand Up @@ -3099,7 +3099,7 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = false, $
$fakey = 'fa-'.$arrayconvpictotofa[$pictowithouttext];
}
elseif ($pictowithouttext == 'switch_on') {
$facolor = '#227722';
$morecss = 'font-status4';
$fakey = 'fa-'.$arrayconvpictotofa[$pictowithouttext];
}
elseif ($pictowithouttext == 'off') {
Expand Down
6 changes: 4 additions & 2 deletions htdocs/theme/eldy/badges.inc.php
Expand Up @@ -221,14 +221,16 @@ function _createStatusBadgeCss($statusName, $statusVarNamePrefix = '', $commentL

print $cssPrefix . ".badge-status" . $statusName . " {\n";
print " color: " . $thisBadgeTextColor . " !important;\n";

if (in_array($statusName, $TBadgeBorderOnly)) {
print " border-color: " . $thisBadgeBorderColor . ";\n";
}

print " background-color: " . $thisBadgeBackgroundColor . ";\n";
print "}\n";

print $cssPrefix . ".font-status" . $statusName . " {\n";
print " color: " . $thisBadgeBackgroundColor . " !important;\n";
print "}\n";

print $cssPrefix . ".badge-status" . $statusName . ".focus, " . $cssPrefix . ".badge-status" . $statusName . ":focus {\n";
print " outline: 0;\n";
print " box-shadow: 0 0 0 0.2rem " . colorHexToRgb($thisBadgeBackgroundColor, 0.5) . ";\n";
Expand Down
2 changes: 1 addition & 1 deletion htdocs/theme/eldy/theme_vars.inc.php
Expand Up @@ -108,7 +108,7 @@
$badgeStatus1 = '#bc9526';
$badgeStatus2 = '#e6f0f0';
$badgeStatus3 = '#bca52b';
$badgeStatus4 = '#55a590';
$badgeStatus4 = '#55a580';
$badgeStatus5 = '#cad2d2';
$badgeStatus6 = '#cad2d2';
$badgeStatus7 = '#baa32b';
Expand Down
6 changes: 4 additions & 2 deletions htdocs/theme/md/badges.inc.php
Expand Up @@ -210,14 +210,16 @@ function _createStatusBadgeCss($statusName, $statusVarNamePrefix = '', $commentL

print $cssPrefix . ".badge-status" . $statusName . " {\n";
print " color: " . $thisBadgeTextColor . " !important;\n";

if (in_array($statusName, $TBadgeBorderOnly)) {
print " border-color: " . $thisBadgeBorderColor . ";\n";
}

print " background-color: " . $thisBadgeBackgroundColor . ";\n";
print "}\n";

print $cssPrefix . ".font-status" . $statusName . " {\n";
print " color: " . $thisBadgeBackgroundColor . " !important;\n";
print "}\n";

print $cssPrefix . ".badge-status" . $statusName . ".focus, " . $cssPrefix . ".badge-status" . $statusName . ":focus {\n";
print " outline: 0;\n";
print " box-shadow: 0 0 0 0.2rem " . colorHexToRgb($thisBadgeBackgroundColor, 0.5) . ";\n";
Expand Down

0 comments on commit 9e94be8

Please sign in to comment.