add style to md

This commit is contained in:
ATM john 2019-08-11 09:46:40 +02:00
parent 53721ae606
commit 3a21805a02
3 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,7 @@
<?php
if (! defined('ISLOADEDBYSTEELSHEET')) die('Must be call by steelsheet');
include dol_buildpath($path.'/theme/eldy/progress.inc.php', 0); // actually md use same style as eldy theme
?>
/* <style type="text/css" > */

View File

@ -690,6 +690,23 @@ textarea.centpercent {
opacity: 0.7;
}
.text-warning{
color : <?php print $textWarning ; ?>
}
body[class*="colorblind-"] .text-warning{
color : <?php print $colorblind_deuteranopes_textWarning ; ?>
}
.text-success{
color : <?php print $textSuccess ; ?>
}
body[class*="colorblind-"] .text-success{
color : <?php print $colorblind_deuteranopes_textSuccess ; ?>
}
.text-danger{
color : <?php print $textDanger ; ?>
}
/* Themes for badges */
.badge {
display: inline-block;
@ -5860,6 +5877,8 @@ border-top-right-radius: 6px;
include dol_buildpath($path.'/theme/'.$theme.'/dropdown.inc.php', 0);
include dol_buildpath($path.'/theme/'.$theme.'/progress.inc.php', 0);
if (is_object($db)) $db->close();

View File

@ -54,3 +54,10 @@ $colortext='0,0,0';
$colortextlink='0,0,120';
$fontsize='14';
$fontsizesmaller='11';
// text color
$textSuccess ='#28a745';
$colorblind_deuteranopes_textSuccess ='#37de5d';
$textDanger ='#dc3545';
$textWarning ='#f39c12';
$colorblind_deuteranopes_textWarning = $textWarning; // currently not tested with a color blind people so use default color