2 if (!defined(
'ISLOADEDBYSTEELSHEET')) {
3 die(
'Must be call by steelsheet');
12 font-weight: 700 !important;
16 vertical-align: baseline;
17 border-radius: .25rem;
18 transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
21 border-color: rgba(255,255,255,0);
22 box-sizing: border-box;
29 .tabBar .arearef .statusref .badge-status, .tabBar .arearefnobottom .statusref .badge-status {
34 @media only screen and (max-width: 767px)
36 .tabBar .arearef .statusref .badge-status, .tabBar .arearefnobottom .statusref .badge-status {
42 .badge-pill, .tabs .badge {
45 border-radius: 0.25rem;
52 vertical-align: text-top;
55 a.badge:focus, a.badge:hover {
56 text-decoration: none;
59 .liste_titre .badge:not(.nochangebackground) {
60 background-color: <?php print $badgeSecondary; ?>;
65 padding: 2px 7px 2px 7px;
66 background-color: #e4e4e4;
74 color: #fff !important;
75 background-color: <?php print $badgePrimary; ?>;
77 a.badge-primary.focus, a.badge-primary:focus {
79 box-shadow: 0 0 0 0.2rem <?php print
colorHexToRgb($badgePrimary, 0.5); ?>;
81 a.badge-primary:focus, a.badge-primary:hover {
82 color: #fff !important;
83 background-color: <?php print
colorDarker($badgePrimary, 10); ?>;
87 .badge-secondary, .tabs .badge {
88 color: #fff !important;
89 background-color: <?php print $badgeSecondary; ?>;
91 a.badge-secondary.focus, a.badge-secondary:focus {
93 box-shadow: 0 0 0 0.2rem <?php print
colorHexToRgb($badgeSecondary, 0.5); ?>;
95 a.badge-secondary:focus, a.badge-secondary:hover {
96 color: #fff !important;
97 background-color: <?php print
colorDarker($badgeSecondary, 10); ?>;
102 color: #fff !important;
103 background-color: <?php print $badgeSuccess; ?>;
105 a.badge-success.focus, a.badge-success:focus {
107 box-shadow: 0 0 0 0.2rem <?php print
colorHexToRgb($badgeSuccess, 0.5); ?>;
109 a.badge-success:focus, a.badge-success:hover {
110 color: #fff !important;
111 background-color: <?php print
colorDarker($badgeSuccess, 10); ?>;
116 color: #fff !important;
117 background-color: <?php print $badgeDanger; ?>;
119 a.badge-danger.focus, a.badge-danger:focus {
121 box-shadow: 0 0 0 0.2rem <?php print
colorHexToRgb($badgeDanger, 0.5); ?>;
123 a.badge-danger:focus, a.badge-danger:hover {
124 color: #fff !important;
125 background-color: <?php print
colorDarker($badgeDanger, 10); ?>;
130 color: #fff !important;
131 background-color: <?php print $badgeWarning; ?>;
133 a.badge-warning.focus, a.badge-warning:focus {
135 box-shadow: 0 0 0 0.2rem <?php print
colorHexToRgb($badgeWarning, 0.5); ?>;
137 a.badge-warning:focus, a.badge-warning:hover {
138 color: #212529 !important;
139 background-color: <?php print
colorDarker($badgeWarning, 10); ?>;
143 body[
class*=
"colorblind-"] .badge-warning {
144 background-color: <?php print $colorblind_deuteranopes_badgeWarning; ?>;
146 body[
class*=
"colorblind-"] a.badge-warning.focus,body[
class^=
"colorblind-"] a.badge-warning:focus {
147 box-shadow: 0 0 0 0.2rem <?php print
colorHexToRgb($colorblind_deuteranopes_badgeWarning, 0.5); ?>;
149 body[
class*=
"colorblind-"] a.badge-warning:focus, a.badge-warning:hover {
150 background-color: <?php print
colorDarker($colorblind_deuteranopes_badgeWarning, 10); ?>;
155 color: #fff !important;
156 background-color: <?php print $badgeInfo; ?>;
158 a.badge-info.focus, a.badge-info:focus {
160 box-shadow: 0 0 0 0.2rem <?php print
colorHexToRgb($badgeInfo, 0.5); ?>;
162 a.badge-info:focus, a.badge-info:hover {
163 color: #fff !important;
164 background-color: <?php print
colorDarker($badgeInfo, 10); ?>;
169 color: #212529 !important;
170 background-color: <?php print $badgeLight; ?>;
172 a.badge-light.focus, a.badge-light:focus {
174 box-shadow: 0 0 0 0.2rem <?php print
colorHexToRgb($badgeLight, 0.5); ?>;
176 a.badge-light:focus, a.badge-light:hover {
177 color: #212529 !important;
178 background-color: <?php print
colorDarker($badgeLight, 10); ?>;
183 color: #fff !important;
184 background-color: <?php print $badgeDark; ?>;
186 a.badge-dark.focus, a.badge-dark:focus {
188 box-shadow: 0 0 0 0.2rem <?php print
colorHexToRgb($badgeDark, 0.5); ?>;
190 a.badge-dark:focus, a.badge-dark:hover {
191 color: #fff !important;
192 background-color: <?php print
colorDarker($badgeDark, 10); ?>;
196 @media only screen and (max-width: 570px)
198 span.badge.badge-status {
201 text-overflow: ellipsis;
208 for ($i = 0; $i <= 10; $i++) {
210 _createStatusBadgeCss($i,
'',
"STATUS".$i);
213 _createStatusBadgeCss($i,
'colorblind_deuteranopes_',
"COLORBLIND STATUS".$i,
'body[class*="colorblind-"] ');
216 _createStatusBadgeCss(
'1b',
'',
"STATUS1b");
217 _createStatusBadgeCss(
'4b',
'',
"STATUS4b");
229 function _createStatusBadgeCss($statusName, $statusVarNamePrefix =
'', $commentLabel =
'', $cssPrefix =
'')
232 global ${$statusVarNamePrefix.
'badgeStatus'.$statusName}, ${$statusVarNamePrefix.
'badgeStatus_textColor'.$statusName};
234 if (!empty(${$statusVarNamePrefix.
'badgeStatus'.$statusName})) {
235 print
"\n/* ".strtoupper($commentLabel).
" */\n";
237 $thisBadgeBackgroundColor = $thisBadgeBorderColor = ${$statusVarNamePrefix.
'badgeStatus'.$statusName};
239 $TBadgeBorderOnly = array(
'0',
'1b',
'3',
'4b',
'5',
'7',
'10');
240 $thisBadgeTextColor =
colorIsLight(${$statusVarNamePrefix.
'badgeStatus'.$statusName}) ?
'#212529' :
'#ffffff';
242 if (!empty(${$statusVarNamePrefix.
'badgeStatus_textColor'.$statusName})) {
243 $thisBadgeTextColor = ${$statusVarNamePrefix.
'badgeStatus_textColor'.$statusName};
246 if (in_array((
string) $statusName, $TBadgeBorderOnly)) {
247 $thisBadgeTextColor =
'#212529';
248 $thisBadgeBackgroundColor =
"#fff";
251 if (in_array((
string) $statusName, array(
'0',
'5',
'9'))) {
252 $thisBadgeTextColor =
'#999999';
254 if (in_array((
string) $statusName, array(
'6'))) {
255 $thisBadgeTextColor =
'#777777';
258 print $cssPrefix.
".badge-status".$statusName.
" {\n";
259 print
" color: ".$thisBadgeTextColor.
" !important;\n";
260 if (in_array((
string) $statusName, $TBadgeBorderOnly)) {
261 print
" border-color: ".$thisBadgeBorderColor.
" !important;\n";
263 print
" background-color: ".$thisBadgeBackgroundColor.
" !important;\n";
266 print $cssPrefix.
".font-status".$statusName.
" {\n";
267 print
" color: ".$thisBadgeBackgroundColor.
" !important;\n";
270 print $cssPrefix.
".badge-status".$statusName.
".focus, ".$cssPrefix.
".badge-status".$statusName.
":focus {\n";
271 print
" outline: 0;\n";
272 print
" box-shadow: 0 0 0 0.2rem ".colorHexToRgb($thisBadgeBackgroundColor, 0.5).
" !important;\n";
275 print $cssPrefix.
".badge-status".$statusName.
":focus, ".$cssPrefix.
".badge-status".$statusName.
":hover {\n";
276 print
" color: ".$thisBadgeTextColor.
" !important;\n";
278 if (in_array((
string) $statusName, $TBadgeBorderOnly)) {
279 print
" border-color: ".colorDarker($thisBadgeBorderColor, 10).
" !important;\n";