|
@@ -229,7 +229,6 @@ _createStatusBadgeCss('4b', '', "STATUS4b");
|
|
|
*/
|
|
|
function _createStatusBadgeCss($statusName, $statusVarNamePrefix = '', $commentLabel = '', $cssPrefix = '')
|
|
|
{
|
|
|
-
|
|
|
global ${$statusVarNamePrefix.'badgeStatus'.$statusName}, ${$statusVarNamePrefix.'badgeStatus_textColor'.$statusName};
|
|
|
|
|
|
if (!empty(${$statusVarNamePrefix.'badgeStatus'.$statusName})) {
|
|
@@ -256,16 +255,21 @@ function _createStatusBadgeCss($statusName, $statusVarNamePrefix = '', $commentL
|
|
|
$thisBadgeTextColor = '#777777';
|
|
|
}
|
|
|
|
|
|
+ // badge-statusX
|
|
|
print $cssPrefix.".badge-status".$statusName." {\n";
|
|
|
print " color: ".$thisBadgeTextColor." !important;\n";
|
|
|
if (in_array((string) $statusName, $TBadgeBorderOnly)) {
|
|
|
print " border-color: ".$thisBadgeBorderColor." !important;\n";
|
|
|
}
|
|
|
- print " background-color: ".$thisBadgeBackgroundColor." !important;\n";
|
|
|
+ if ($thisBadgeBackgroundColor != '') {
|
|
|
+ print " background-color: ".$thisBadgeBackgroundColor." !important;\n";
|
|
|
+ }
|
|
|
print "}\n";
|
|
|
|
|
|
print $cssPrefix.".font-status".$statusName." {\n";
|
|
|
- print " color: ".$thisBadgeBackgroundColor." !important;\n";
|
|
|
+ if ($thisBadgeBackgroundColor != '') {
|
|
|
+ print " color: ".$thisBadgeBackgroundColor." !important;\n";
|
|
|
+ }
|
|
|
print "}\n";
|
|
|
|
|
|
print $cssPrefix.".badge-status".$statusName.".focus, ".$cssPrefix.".badge-status".$statusName.":focus {\n";
|
|
@@ -273,6 +277,7 @@ function _createStatusBadgeCss($statusName, $statusVarNamePrefix = '', $commentL
|
|
|
print " box-shadow: 0 0 0 0.2rem ".colorHexToRgb($thisBadgeBackgroundColor, 0.5)." !important;\n";
|
|
|
print "}\n";
|
|
|
|
|
|
+ // badge-statusX:focus
|
|
|
print $cssPrefix.".badge-status".$statusName.":focus, ".$cssPrefix.".badge-status".$statusName.":hover {\n";
|
|
|
print " color: ".$thisBadgeTextColor." !important;\n";
|
|
|
//print " background-color: " . colorDarker($thisBadgeBackgroundColor, 10) . ";\n";
|