CSS Use var in theme for picto warning
This commit is contained in:
parent
9e94be8bac
commit
c00bdca31b
@ -723,7 +723,7 @@ if (empty($conf->global->MAIN_DISABLE_GLOBAL_WORKBOARD)) {
|
||||
|
||||
$textLate = '';
|
||||
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 .= '</span>';
|
||||
}
|
||||
|
||||
@ -95,7 +95,7 @@ a.badge-success:focus, a.badge-success:hover {
|
||||
/* DANGER */
|
||||
.badge-danger {
|
||||
color: #fff !important;
|
||||
background-color: <?php print $badgeDanger; ?>;
|
||||
background-color: <?php print $badgeDanger; ?>;
|
||||
}
|
||||
a.badge-danger.focus, a.badge-danger:focus {
|
||||
outline: 0;
|
||||
@ -108,7 +108,7 @@ a.badge-danger:focus, a.badge-danger:hover {
|
||||
|
||||
/* WARNING */
|
||||
.badge-warning {
|
||||
color: #212529 !important;
|
||||
color: #fff !important;
|
||||
background-color: <?php print $badgeWarning; ?>;
|
||||
}
|
||||
a.badge-warning.focus, a.badge-warning:focus {
|
||||
|
||||
@ -1399,7 +1399,7 @@ div.nopadding {
|
||||
}
|
||||
.pictowarning {
|
||||
/* vertical-align: text-bottom; */
|
||||
color: #9f4705;
|
||||
color: <?php echo $badgeWarning ?>;
|
||||
}
|
||||
.pictomodule {
|
||||
width: 14px;
|
||||
|
||||
@ -147,7 +147,7 @@ if (! defined('ISLOADEDBYSTEELSHEET')) die('Must be call by steelsheet'); ?>
|
||||
}
|
||||
.progress-bar-green,
|
||||
.progress-bar-success {
|
||||
background-color: #00a65a;
|
||||
background-color: <?php echo $badgeSuccess ?>;
|
||||
}
|
||||
.progress-striped .progress-bar-green,
|
||||
.progress-striped .progress-bar-success {
|
||||
@ -167,7 +167,7 @@ if (! defined('ISLOADEDBYSTEELSHEET')) die('Must be call by steelsheet'); ?>
|
||||
}
|
||||
.progress-bar-yellow,
|
||||
.progress-bar-warning {
|
||||
background-color: #bc9526;
|
||||
background-color: <?php echo $badgeWarning ?>;
|
||||
}
|
||||
.progress-striped .progress-bar-yellow,
|
||||
.progress-striped .progress-bar-warning {
|
||||
@ -177,7 +177,7 @@ if (! defined('ISLOADEDBYSTEELSHEET')) die('Must be call by steelsheet'); ?>
|
||||
}
|
||||
.progress-bar-red,
|
||||
.progress-bar-danger {
|
||||
background-color: #dd4b39;
|
||||
background-color: <?php echo $badgeDanger ?>;
|
||||
}
|
||||
.progress-striped .progress-bar-red,
|
||||
.progress-striped .progress-bar-danger {
|
||||
|
||||
@ -80,17 +80,17 @@ $toolTipFontColor = '#333';
|
||||
// text color
|
||||
$textSuccess = '#28a745';
|
||||
$colorblind_deuteranopes_textSuccess = '#37de5d';
|
||||
$textDanger = '#dc3545';
|
||||
$textWarning = '#bc9526';
|
||||
$textWarning = '#a37c0d'; // See $badgeWarning
|
||||
$textDanger = '#9f4705'; // See $badgeDanger
|
||||
$colorblind_deuteranopes_textWarning = $textWarning; // currently not tested with a color blind people so use default color
|
||||
|
||||
|
||||
// Badges colors
|
||||
$badgePrimary = '#007bff';
|
||||
$badgeSecondary = '#cccccc';
|
||||
$badgeSuccess = '#28a745';
|
||||
$badgeDanger = '#9f4705';
|
||||
$badgeWarning = '#ffc107';
|
||||
$badgeSuccess = '#55a580';
|
||||
$badgeWarning = '#a37c0d'; // See $textDanger bc9526
|
||||
$badgeDanger = '#9f4705'; // See $textDanger
|
||||
$badgeInfo = '#aaaabb';
|
||||
$badgeDark = '#343a40';
|
||||
$badgeLight = '#f8f9fa';
|
||||
@ -108,7 +108,7 @@ $badgeStatus0 = '#cbd3d3';
|
||||
$badgeStatus1 = '#bc9526';
|
||||
$badgeStatus2 = '#e6f0f0';
|
||||
$badgeStatus3 = '#bca52b';
|
||||
$badgeStatus4 = '#55a580';
|
||||
$badgeStatus4 = '#55a580'; // Color ok
|
||||
$badgeStatus5 = '#cad2d2';
|
||||
$badgeStatus6 = '#cad2d2';
|
||||
$badgeStatus7 = '#baa32b';
|
||||
|
||||
@ -108,7 +108,7 @@ a.badge-danger:focus, a.badge-danger:hover {
|
||||
|
||||
/* WARNING */
|
||||
.badge-warning {
|
||||
color: #212529 !important;
|
||||
color: #fff !important;
|
||||
background-color: <?php print $badgeWarning; ?>;
|
||||
}
|
||||
a.badge-warning.focus, a.badge-warning:focus {
|
||||
|
||||
@ -1605,7 +1605,7 @@ div.nopadding {
|
||||
}
|
||||
.pictowarning {
|
||||
/* vertical-align: text-bottom; */
|
||||
color: #9f4705;
|
||||
color: <?php echo $badgeWarning; ?>;
|
||||
}
|
||||
.pictomodule {
|
||||
width: 14px;
|
||||
|
||||
@ -73,16 +73,16 @@ $fontsizesmaller = '11';
|
||||
// text color
|
||||
$textSuccess = '#28a745';
|
||||
$colorblind_deuteranopes_textSuccess = '#37de5d';
|
||||
$textDanger = '#dc3545';
|
||||
$textWarning = '#f39c12';
|
||||
$textWarning = '#a37c0d'; // See $badgeWarning
|
||||
$textDanger = '#8c4446'; // See $badgeDanger
|
||||
$colorblind_deuteranopes_textWarning = $textWarning; // currently not tested with a color blind people so use default color
|
||||
|
||||
// Badges colors
|
||||
$badgePrimary = '#007bff';
|
||||
$badgeSecondary = '#999999';
|
||||
$badgeSuccess = '#28a745';
|
||||
$badgeDanger = '#8c4446';
|
||||
$badgeWarning = '#ffc107';
|
||||
$badgeWarning = '#a37c0d'; // See $textWarning
|
||||
$badgeDanger = '#8c4446'; // See $textDanger
|
||||
$badgeInfo = '#17a2b8';
|
||||
$badgeDark = '#343a40';
|
||||
$badgeLight = '#f8f9fa';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user