diff --git a/htdocs/theme/eldy/badges.inc.php b/htdocs/theme/eldy/badges.inc.php index 00c2a91a29c..f3f311eccca 100644 --- a/htdocs/theme/eldy/badges.inc.php +++ b/htdocs/theme/eldy/badges.inc.php @@ -1,140 +1,142 @@ /* Badge style is based on boostrap framework */ .badge { - display: inline-block; - padding: .1em .35em; - font-size: 80%; - font-weight: 700 !important; - line-height: 1; - text-align: center; - white-space: nowrap; - vertical-align: baseline; - border-radius: .25rem; - transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out; - border-width: 2px; - border-style: solid; - border-color: rgba(255,255,255,0); - box-sizing: border-box; + display: inline-block; + padding: .1em .35em; + font-size: 80%; + font-weight: 700 !important; + line-height: 1; + text-align: center; + white-space: nowrap; + vertical-align: baseline; + border-radius: .25rem; + transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out; + border-width: 2px; + border-style: solid; + border-color: rgba(255,255,255,0); + box-sizing: border-box; } .badge-status { - font-size: 0.95em; - padding: .19em .35em; /* more than 0.19 generate a change into heigth of lines */ + font-size: 0.95em; + padding: .19em .35em; /* more than 0.19 generate a change into heigth of lines */ } .tabBar .arearef .statusref .badge-status, .tabBar .arearefnobottom .statusref .badge-status { - font-size: 1.1em; - padding: .4em .4em; + font-size: 1.1em; + padding: .4em .4em; } /* Force values for small screen 767 */ @media only screen and (max-width: 767px) { .tabBar .arearef .statusref .badge-status, .tabBar .arearefnobottom .statusref .badge-status { - font-size: 0.95em; - padding: .3em .2em; + font-size: 0.95em; + padding: .3em .2em; } } .badge-pill, .tabs .badge { - padding-right: .5em; - padding-left: .5em; - border-radius: 0.25rem; + padding-right: .5em; + padding-left: .5em; + border-radius: 0.25rem; } .badge-dot { - padding: 0; - border-radius: 50%; - padding: 0.45em; - vertical-align: text-top; + padding: 0; + border-radius: 50%; + padding: 0.45em; + vertical-align: text-top; } a.badge:focus, a.badge:hover { - text-decoration: none; + text-decoration: none; } .liste_titre .badge:not(.nochangebackground) { - background-color: ; - color: #fff; + background-color: ; + color: #fff; } span.badgeneutral { - padding: 2px 7px 2px 7px; - background-color: #e4e4e4; - color: #666; - border-radius: 10px; + padding: 2px 7px 2px 7px; + background-color: #e4e4e4; + color: #666; + border-radius: 10px; } /* PRIMARY */ .badge-primary{ - color: #fff !important; - background-color: ; + color: #fff !important; + background-color: ; } a.badge-primary.focus, a.badge-primary:focus { - outline: 0; - box-shadow: 0 0 0 0.2rem ; + outline: 0; + box-shadow: 0 0 0 0.2rem ; } a.badge-primary:focus, a.badge-primary:hover { - color: #fff !important; - background-color: ; + color: #fff !important; + background-color: ; } /* SECONDARY */ .badge-secondary, .tabs .badge { - color: #fff !important; - background-color: ; + color: #fff !important; + background-color: ; } a.badge-secondary.focus, a.badge-secondary:focus { - outline: 0; - box-shadow: 0 0 0 0.2rem ; + outline: 0; + box-shadow: 0 0 0 0.2rem ; } a.badge-secondary:focus, a.badge-secondary:hover { - color: #fff !important; - background-color: ; + color: #fff !important; + background-color: ; } /* SUCCESS */ .badge-success { - color: #fff !important; - background-color: ; + color: #fff !important; + background-color: ; } a.badge-success.focus, a.badge-success:focus { - outline: 0; - box-shadow: 0 0 0 0.2rem ; + outline: 0; + box-shadow: 0 0 0 0.2rem ; } a.badge-success:focus, a.badge-success:hover { - color: #fff !important; - background-color: ; + color: #fff !important; + background-color: ; } /* DANGER */ .badge-danger { - color: #fff !important; - background-color: ; + color: #fff !important; + background-color: ; } a.badge-danger.focus, a.badge-danger:focus { - outline: 0; - box-shadow: 0 0 0 0.2rem ; + outline: 0; + box-shadow: 0 0 0 0.2rem ; } a.badge-danger:focus, a.badge-danger:hover { - color: #fff !important; - background-color: ; + color: #fff !important; + background-color: ; } /* WARNING */ .badge-warning { - color: #fff !important; - background-color: ; + color: #fff !important; + background-color: ; } a.badge-warning.focus, a.badge-warning:focus { - outline: 0; - box-shadow: 0 0 0 0.2rem ; + outline: 0; + box-shadow: 0 0 0 0.2rem ; } a.badge-warning:focus, a.badge-warning:hover { - color: #212529 !important; - background-color: ; + color: #212529 !important; + background-color: ; } /* WARNING colorblind */ @@ -150,53 +152,53 @@ body[class*="colorblind-"] a.badge-warning:focus, a.badge-warning:hover { /* INFO */ .badge-info { - color: #fff !important; - background-color: ; + color: #fff !important; + background-color: ; } a.badge-info.focus, a.badge-info:focus { - outline: 0; - box-shadow: 0 0 0 0.2rem ; + outline: 0; + box-shadow: 0 0 0 0.2rem ; } a.badge-info:focus, a.badge-info:hover { - color: #fff !important; - background-color: ; + color: #fff !important; + background-color: ; } /* LIGHT */ .badge-light { - color: #212529 !important; - background-color: ; + color: #212529 !important; + background-color: ; } a.badge-light.focus, a.badge-light:focus { - outline: 0; - box-shadow: 0 0 0 0.2rem ; + outline: 0; + box-shadow: 0 0 0 0.2rem ; } a.badge-light:focus, a.badge-light:hover { - color: #212529 !important; - background-color: ; + color: #212529 !important; + background-color: ; } /* DARK */ .badge-dark { - color: #fff !important; - background-color: ; + color: #fff !important; + background-color: ; } a.badge-dark.focus, a.badge-dark:focus { - outline: 0; - box-shadow: 0 0 0 0.2rem ; + outline: 0; + box-shadow: 0 0 0 0.2rem ; } a.badge-dark:focus, a.badge-dark:hover { - color: #fff !important; - background-color: ; + color: #fff !important; + background-color: ; } @media only screen and (max-width: 570px) { span.badge.badge-status { - overflow: hidden; - max-width: 130px; - text-overflow: ellipsis; + overflow: hidden; + max-width: 130px; + text-overflow: ellipsis; } } @@ -246,8 +248,12 @@ function _createStatusBadgeCss($statusName, $statusVarNamePrefix = '', $commentL $thisBadgeBackgroundColor = "#fff"; } - if (in_array((string) $statusName, array('0', '5', '9'))) $thisBadgeTextColor = '#999999'; - if (in_array((string) $statusName, array('6'))) $thisBadgeTextColor = '#777777'; + if (in_array((string) $statusName, array('0', '5', '9'))) { + $thisBadgeTextColor = '#999999'; + } + if (in_array((string) $statusName, array('6'))) { + $thisBadgeTextColor = '#777777'; + } print $cssPrefix.".badge-status".$statusName." {\n"; print " color: ".$thisBadgeTextColor." !important;\n"; diff --git a/htdocs/theme/eldy/btn.inc.php b/htdocs/theme/eldy/btn.inc.php index d6a2251b390..8cb51a152d4 100644 --- a/htdocs/theme/eldy/btn.inc.php +++ b/htdocs/theme/eldy/btn.inc.php @@ -1,19 +1,21 @@ +if (!defined('ISLOADEDBYSTEELSHEET')) { + die('Must be call by steelsheet'); +} ?> /*