CSS Use var in theme for picto warning

This commit is contained in:
Laurent Destailleur 2019-12-15 20:58:44 +01:00
parent 9e94be8bac
commit c00bdca31b
8 changed files with 19 additions and 19 deletions

View File

@ -723,7 +723,7 @@ if (empty($conf->global->MAIN_DISABLE_GLOBAL_WORKBOARD)) {
$textLate = ''; $textLate = '';
if ($board->nbtodolate > 0) { if ($board->nbtodolate > 0) {
$textLate .= ' <span title="'.dol_htmlentities($textLateTitle).'" class="classfortooltip badge badge-danger">'; $textLate .= ' <span title="'.dol_htmlentities($textLateTitle).'" class="classfortooltip badge badge-warning">';
$textLate .= '<i class="fa fa-exclamation-triangle"></i> '.$board->nbtodolate; $textLate .= '<i class="fa fa-exclamation-triangle"></i> '.$board->nbtodolate;
$textLate .= '</span>'; $textLate .= '</span>';
} }

View File

@ -95,7 +95,7 @@ a.badge-success:focus, a.badge-success:hover {
/* DANGER */ /* DANGER */
.badge-danger { .badge-danger {
color: #fff !important; color: #fff !important;
background-color: <?php print $badgeDanger; ?>; background-color: <?php print $badgeDanger; ?>;
} }
a.badge-danger.focus, a.badge-danger:focus { a.badge-danger.focus, a.badge-danger:focus {
outline: 0; outline: 0;
@ -108,7 +108,7 @@ a.badge-danger:focus, a.badge-danger:hover {
/* WARNING */ /* WARNING */
.badge-warning { .badge-warning {
color: #212529 !important; color: #fff !important;
background-color: <?php print $badgeWarning; ?>; background-color: <?php print $badgeWarning; ?>;
} }
a.badge-warning.focus, a.badge-warning:focus { a.badge-warning.focus, a.badge-warning:focus {

View File

@ -1399,7 +1399,7 @@ div.nopadding {
} }
.pictowarning { .pictowarning {
/* vertical-align: text-bottom; */ /* vertical-align: text-bottom; */
color: #9f4705; color: <?php echo $badgeWarning ?>;
} }
.pictomodule { .pictomodule {
width: 14px; width: 14px;

View File

@ -147,7 +147,7 @@ if (! defined('ISLOADEDBYSTEELSHEET')) die('Must be call by steelsheet'); ?>
} }
.progress-bar-green, .progress-bar-green,
.progress-bar-success { .progress-bar-success {
background-color: #00a65a; background-color: <?php echo $badgeSuccess ?>;
} }
.progress-striped .progress-bar-green, .progress-striped .progress-bar-green,
.progress-striped .progress-bar-success { .progress-striped .progress-bar-success {
@ -167,7 +167,7 @@ if (! defined('ISLOADEDBYSTEELSHEET')) die('Must be call by steelsheet'); ?>
} }
.progress-bar-yellow, .progress-bar-yellow,
.progress-bar-warning { .progress-bar-warning {
background-color: #bc9526; background-color: <?php echo $badgeWarning ?>;
} }
.progress-striped .progress-bar-yellow, .progress-striped .progress-bar-yellow,
.progress-striped .progress-bar-warning { .progress-striped .progress-bar-warning {
@ -177,7 +177,7 @@ if (! defined('ISLOADEDBYSTEELSHEET')) die('Must be call by steelsheet'); ?>
} }
.progress-bar-red, .progress-bar-red,
.progress-bar-danger { .progress-bar-danger {
background-color: #dd4b39; background-color: <?php echo $badgeDanger ?>;
} }
.progress-striped .progress-bar-red, .progress-striped .progress-bar-red,
.progress-striped .progress-bar-danger { .progress-striped .progress-bar-danger {

View File

@ -80,17 +80,17 @@ $toolTipFontColor = '#333';
// text color // text color
$textSuccess = '#28a745'; $textSuccess = '#28a745';
$colorblind_deuteranopes_textSuccess = '#37de5d'; $colorblind_deuteranopes_textSuccess = '#37de5d';
$textDanger = '#dc3545'; $textWarning = '#a37c0d'; // See $badgeWarning
$textWarning = '#bc9526'; $textDanger = '#9f4705'; // See $badgeDanger
$colorblind_deuteranopes_textWarning = $textWarning; // currently not tested with a color blind people so use default color $colorblind_deuteranopes_textWarning = $textWarning; // currently not tested with a color blind people so use default color
// Badges colors // Badges colors
$badgePrimary = '#007bff'; $badgePrimary = '#007bff';
$badgeSecondary = '#cccccc'; $badgeSecondary = '#cccccc';
$badgeSuccess = '#28a745'; $badgeSuccess = '#55a580';
$badgeDanger = '#9f4705'; $badgeWarning = '#a37c0d'; // See $textDanger bc9526
$badgeWarning = '#ffc107'; $badgeDanger = '#9f4705'; // See $textDanger
$badgeInfo = '#aaaabb'; $badgeInfo = '#aaaabb';
$badgeDark = '#343a40'; $badgeDark = '#343a40';
$badgeLight = '#f8f9fa'; $badgeLight = '#f8f9fa';
@ -108,7 +108,7 @@ $badgeStatus0 = '#cbd3d3';
$badgeStatus1 = '#bc9526'; $badgeStatus1 = '#bc9526';
$badgeStatus2 = '#e6f0f0'; $badgeStatus2 = '#e6f0f0';
$badgeStatus3 = '#bca52b'; $badgeStatus3 = '#bca52b';
$badgeStatus4 = '#55a580'; $badgeStatus4 = '#55a580'; // Color ok
$badgeStatus5 = '#cad2d2'; $badgeStatus5 = '#cad2d2';
$badgeStatus6 = '#cad2d2'; $badgeStatus6 = '#cad2d2';
$badgeStatus7 = '#baa32b'; $badgeStatus7 = '#baa32b';

View File

@ -108,7 +108,7 @@ a.badge-danger:focus, a.badge-danger:hover {
/* WARNING */ /* WARNING */
.badge-warning { .badge-warning {
color: #212529 !important; color: #fff !important;
background-color: <?php print $badgeWarning; ?>; background-color: <?php print $badgeWarning; ?>;
} }
a.badge-warning.focus, a.badge-warning:focus { a.badge-warning.focus, a.badge-warning:focus {

View File

@ -1605,7 +1605,7 @@ div.nopadding {
} }
.pictowarning { .pictowarning {
/* vertical-align: text-bottom; */ /* vertical-align: text-bottom; */
color: #9f4705; color: <?php echo $badgeWarning; ?>;
} }
.pictomodule { .pictomodule {
width: 14px; width: 14px;

View File

@ -73,16 +73,16 @@ $fontsizesmaller = '11';
// text color // text color
$textSuccess = '#28a745'; $textSuccess = '#28a745';
$colorblind_deuteranopes_textSuccess = '#37de5d'; $colorblind_deuteranopes_textSuccess = '#37de5d';
$textDanger = '#dc3545'; $textWarning = '#a37c0d'; // See $badgeWarning
$textWarning = '#f39c12'; $textDanger = '#8c4446'; // See $badgeDanger
$colorblind_deuteranopes_textWarning = $textWarning; // currently not tested with a color blind people so use default color $colorblind_deuteranopes_textWarning = $textWarning; // currently not tested with a color blind people so use default color
// Badges colors // Badges colors
$badgePrimary = '#007bff'; $badgePrimary = '#007bff';
$badgeSecondary = '#999999'; $badgeSecondary = '#999999';
$badgeSuccess = '#28a745'; $badgeSuccess = '#28a745';
$badgeDanger = '#8c4446'; $badgeWarning = '#a37c0d'; // See $textWarning
$badgeWarning = '#ffc107'; $badgeDanger = '#8c4446'; // See $textDanger
$badgeInfo = '#17a2b8'; $badgeInfo = '#17a2b8';
$badgeDark = '#343a40'; $badgeDark = '#343a40';
$badgeLight = '#f8f9fa'; $badgeLight = '#f8f9fa';