Fix css
This commit is contained in:
parent
10f572b400
commit
68cc7f0e89
@ -25,13 +25,13 @@ if (! defined('ISLOADEDBYSTEELSHEET')) die('Must be call by steelsheet'); ?>
|
|||||||
.badge-pill, .tabs .badge {
|
.badge-pill, .tabs .badge {
|
||||||
padding-right: .6em;
|
padding-right: .6em;
|
||||||
padding-left: .6em;
|
padding-left: .6em;
|
||||||
border-radius: 10rem;
|
border-radius: 0.25rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.badge-dot {
|
.badge-dot {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
padding: 0.6em;
|
padding: 0.25rem;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -39,8 +39,10 @@ a.badge:focus, a.badge:hover {
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.liste_titre .badge {
|
||||||
|
background-color: <?php print $badgeSecondary; ?>;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* PRIMARY */
|
/* PRIMARY */
|
||||||
@ -155,7 +157,7 @@ a.badge-dark:focus, a.badge-dark:hover {
|
|||||||
background-color: <?php print colorDarker($badgeDark, 10); ?>;
|
background-color: <?php print colorDarker($badgeDark, 10); ?>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* STATUS BADGES
|
* STATUS BADGES
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -164,32 +166,32 @@ a.badge-dark:focus, a.badge-dark:hover {
|
|||||||
<?php for ($i = 0; $i <= 9; $i++){
|
<?php for ($i = 0; $i <= 9; $i++){
|
||||||
|
|
||||||
print "\n/* STATUS".$i." */\n";
|
print "\n/* STATUS".$i." */\n";
|
||||||
|
|
||||||
$thisBadgeBackgroundColor = $thisBadgeBorderColor = ${'badgeStatus'.$i};
|
$thisBadgeBackgroundColor = $thisBadgeBorderColor = ${'badgeStatus'.$i};
|
||||||
|
|
||||||
|
|
||||||
$TBadgeBorderOnly = array(0,3,5,7);
|
$TBadgeBorderOnly = array(0,3,5,7);
|
||||||
$thisBadgeTextColor = colorIsLight(${'badgeStatus'.$i})?'#212529':'#ffffff';
|
$thisBadgeTextColor = colorIsLight(${'badgeStatus'.$i})?'#212529':'#ffffff';
|
||||||
if(in_array($i, $TBadgeBorderOnly)){
|
if(in_array($i, $TBadgeBorderOnly)){
|
||||||
$thisBadgeTextColor = '#212529';
|
$thisBadgeTextColor = '#212529';
|
||||||
$thisBadgeBackgroundColor = "#fff";
|
$thisBadgeBackgroundColor = "#fff";
|
||||||
}
|
}
|
||||||
|
|
||||||
print ".badge-status".$i." {\n";
|
print ".badge-status".$i." {\n";
|
||||||
print " color: ".$thisBadgeTextColor." !important;\n";
|
print " color: ".$thisBadgeTextColor." !important;\n";
|
||||||
|
|
||||||
if(in_array($i, $TBadgeBorderOnly)){
|
if(in_array($i, $TBadgeBorderOnly)){
|
||||||
print " border-color: ".$thisBadgeBorderColor.";\n";
|
print " border-color: ".$thisBadgeBorderColor.";\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
print " background-color: ".$thisBadgeBackgroundColor.";\n";
|
print " background-color: ".$thisBadgeBackgroundColor.";\n";
|
||||||
print "}\n";
|
print "}\n";
|
||||||
|
|
||||||
print ".badge-status".$i.".focus, .badge-status".$i.":focus {\n";
|
print ".badge-status".$i.".focus, .badge-status".$i.":focus {\n";
|
||||||
print " outline: 0;\n";
|
print " outline: 0;\n";
|
||||||
print " box-shadow: 0 0 0 0.2rem ".colorHexToRgb($thisBadgeBackgroundColor, 0.5).";\n";
|
print " box-shadow: 0 0 0 0.2rem ".colorHexToRgb($thisBadgeBackgroundColor, 0.5).";\n";
|
||||||
print "}\n";
|
print "}\n";
|
||||||
|
|
||||||
print ".badge-status".$i.":focus, .badge-status".$i.":hover {\n";
|
print ".badge-status".$i.":focus, .badge-status".$i.":hover {\n";
|
||||||
print " color: ".$thisBadgeTextColor." !important;\n";
|
print " color: ".$thisBadgeTextColor." !important;\n";
|
||||||
print " background-color: ".colorDarker($thisBadgeBackgroundColor, 10).";\n";
|
print " background-color: ".colorDarker($thisBadgeBackgroundColor, 10).";\n";
|
||||||
|
|||||||
@ -62,7 +62,7 @@ $toolTipFontColor='#333';
|
|||||||
|
|
||||||
// Badges colors
|
// Badges colors
|
||||||
$badgePrimary ='#007bff';
|
$badgePrimary ='#007bff';
|
||||||
$badgeSecondary ='#6c757d';
|
$badgeSecondary ='#999999';
|
||||||
$badgeSuccess ='#28a745';
|
$badgeSuccess ='#28a745';
|
||||||
$badgeDanger ='#dc3545';
|
$badgeDanger ='#dc3545';
|
||||||
$badgeWarning ='#ffc107';
|
$badgeWarning ='#ffc107';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user