dolibarr  17.0.4
info-box.inc.php
1 <?php
2 if (!defined('ISLOADEDBYSTEELSHEET')) {
3  die('Must be call by steelsheet');
4 } ?>
5 /* <style type="text/css" > */
6 
7 /*
8  * Component: Info Box
9  * -------------------
10  */
11 
12 .info-box-module.--external span.info-box-icon-version {
13  background: rgba(0,0,0,0.2);
14 }
15 
16 .info-box-module.--external.--need-update span.info-box-icon-version{
17  background: #bc9525;
18 }
19 
20 .info-box {
21  display: block;
22  position: relative;
23  min-height: 90px;
24  background: var(--colorbacklineimpair2);
25  width: 100%;
26  box-shadow: 1px 1px 15px rgba(192, 192, 192, 0.2);
27  border-radius: 2px;
28  border: 1px solid #e9e9e9;
29  margin-bottom: 15px;
30 }
31 .info-box.info-box-sm {
32  min-height: 80px;
33  margin-bottom: 10px;
34  /* background: #fff; */
35 }
36 .opened-dash-board-wrap .info-box, .opened-dash-board-wrap .info-box .info-box-icon {
37  border-radius: 0 0 0 15px;
38 }
39 /*.opened-dash-board-wrap .box-flex-item {
40  border-radius: 10px;
41 }*/
42 
43 .info-box-more {
44  float: right;
45  top: 5px;
46  position: absolute;
47  right: 8px;
48 }
49 
50 .info-box small {
51  font-size: 14px;
52 }
53 .info-box .progress {
54  background: rgba(0, 0, 0, 0.2);
55  margin: 5px -10px 5px -10px;
56  height: 2px;
57 }
58 .info-box .progress,
59 .info-box .progress .progress-bar {
60  border-radius: 0;
61 }
62 
63 .info-box .progress .progress-bar {
64  float: left;
65  width: 0;
66  height: 100%;
67  font-size: 12px;
68  line-height: 20px;
69  color: #fff;
70  text-align: center;
71  background-color: #337ab7;
72  -webkit-box-shadow: inset 0 -1px 0 rgba(0,0,0,.15);
73  box-shadow: inset 0 -1px 0 rgba(0,0,0,.15);
74  -webkit-transition: width .6s ease;
75  -o-transition: width .6s ease;
76  transition: width .6s ease;
77 }
78 .info-box-icon {
79  border-top-left-radius: 2px;
80  border-top-right-radius: 0;
81  border-bottom-right-radius: 0;
82  border-bottom-left-radius: 2px;
83  display: block;
84  overflow: hidden;
85  float: left;
86  height: 90px;
87  width: 88px;
88  text-align: center;
89  font-size: 2.8em;
90  line-height: 90px;
91  background: var(--colorbacktitle1) !important;
92 }
93 
94 .info-box-module .info-box-icon {
95  padding-top: 5px;
96  padding-bottom: 5px;
97 }
98 .info-box-sm .info-box-icon {
99  height: 96px; /* must match height of info-box-sm .info-box-content */
100  width: 78px;
101  font-size: 25px;
102  line-height: 92px;
103 }
104 .opened-dash-board-wrap .info-box .info-box-icon {
105  font-size: 2em;
106 }
107 .opened-dash-board-wrap .info-box-sm .info-box-icon {
108  border-radius: 0 0 0 20px;
109  line-height: 80px;
110 }
111 .info-box-module .info-box-icon {
112  height: 98px;
113 }
114 .info-box-icon > img {
115  max-width: 85%;
116 }
117 .info-box-module .info-box-icon > img {
118  max-width: 60%;
119 }
120 
121 a.info-box-text.info-box-text-a {
122  display: table-cell;
123 }
124 a.info-box-text-a i.fa.fa-exclamation-triangle {
125  font-size: 0.9em;
126 }
127 
128 .info-box-icon-text{
129  box-sizing: border-box;
130  display: block;
131  position: absolute;
132  width: 90px;
133  bottom: 0px;
134  color: #ffffff;
135  background-color: rgba(0,0,0,0.1);
136  cursor: default;
137 
138  font-size: 10px;
139  line-height: 15px;
140  padding: 0px 3px;
141  text-align: center;
142  opacity: 0;
143  -webkit-transition: opacity 0.5s, visibility 0s 0.5s;
144  transition: opacity 0.5s, visibility 0s 0.5s;
145 }
146 
147 .info-box-icon-version {
148  box-sizing: border-box;
149  display: block;
150  position: absolute;
151  width: 90px;
152  bottom: 0px;
153  color: #ffffff;
154  background-color: rgba(0,0,0,0.1);
155  cursor: default;
156 
157  font-size: 10px;
158  line-height: 1.5em;
159  padding: 4px 3px;
160  text-align: center;
161  opacity: 1;
162  -webkit-transition: opacity 0.5s, visibility 0s 0.5s;
163  transition: opacity 0.5s, visibility 0s 0.5s;
164 }
165 
166 .box-flex-item.info-box-module.--disabled {
167  /* opacity: 0.6; */
168 }
169 
170 .info-box-actions {
171  position: absolute;
172  right: 0;
173  bottom: 0;
174 }
175 
176 <?php if (empty($conf->global->MAIN_DISABLE_GLOBAL_BOXSTATS) && !empty($conf->global->MAIN_INCLUDE_GLOBAL_STATS_IN_OPENED_DASHBOARD)) { ?>
177 .info-box-icon-text{
178  opacity: 1;
179 }
180 <?php } ?>
181 
182 .info-box-sm .info-box-icon-text, .info-box-sm .info-box-icon-version {
183  overflow: hidden;
184  width: 80px;
185 }
186 .info-box:hover .info-box-icon-text {
187  opacity: 1;
188 }
189 
190 .info-box-content {
191  padding: 5px 10px;
192  margin-left: 84px;
193 }
194 .info-box-sm .info-box-content {
195  margin-left: 80px;
196  height: 86px; /* 96 - margins of .info-box-sm .info-box-content */
197 }
198 .info-box-sm .info-box-module-enabled {
199  /* background: linear-gradient(0.35turn, #fff, #fff, #f6faf8, #e4efe8) */
200  background: var(--infoboxmoduleenabledbgcolor);
201 }
202 .info-box-content-warning span.font-status4 {
203  color: #bc9526 !important;
204 }
205 /*.info-box-sm .info-box-content-warning {
206  background: #ffd7a3;
207 }*/
208 /*.info-box-icon.info-box-icon-module-enabled {
209  background: #e4f0e4 !important;
210 }*/
211 
212 .info-box-number {
213  display: block;
214  font-weight: bold;
215  font-size: 18px;
216 }
217 .progress-description,
218 .info-box-text,
219 .info-box-title{
220  display: block;
221  font-size: 12px;
222  white-space: nowrap;
223  overflow: hidden;
224  text-overflow: ellipsis;
225 }
226 .info-box-title{
227  text-transform: uppercase;
228  font-weight: bold;
229  margin-bottom: 3px; /* not too much space so we can add another lines */
230  opacity: 0.6;
231  /* color: var(--colortexttitlenotab); */
232 }
233 .info-box-text{
234  font-size: 0.92em;
235 }
236 .info-box-text:first-letter{text-transform: uppercase}
237 a.info-box-text{ text-decoration: none;}
238 
239 
240 .info-box-more {
241  display: block;
242 }
243 .progress-description {
244  margin: 0;
245 }
246 
247 
248 
249 
250 
251 /* ICONS INFO BOX */
252 <?php
253 include_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
254 
255 $prefix = '';
256 if (!empty($conf->global->THEME_INFOBOX_COLOR_ON_BACKGROUND)) {
257  $prefix = 'background-';
258 }
259 
260 if (!isset($conf->global->THEME_SATURATE_RATIO)) {
261  $conf->global->THEME_SATURATE_RATIO = 0.7;
262 }
263 if (GETPOSTISSET('THEME_SATURATE_RATIO')) {
264  $conf->global->THEME_SATURATE_RATIO = GETPOST('THEME_SATURATE_RATIO', 'int');
265 }
266 
267 ?>
268 .info-box-icon {
269  <?php if ($prefix) { ?>
270  color: #fff !important;
271  <?php } ?>
272  opacity: 0.95;
273  <?php if (isset($conf->global->THEME_SATURATE_RATIO)) { ?>
274  filter: saturate(<?php echo $conf->global->THEME_SATURATE_RATIO; ?>);
275  <?php } ?>
276 }
277 
278 .customer-back {
279  background-color: #55955d !important;
280  color: #FFF !important;
281  padding: 2px;
282  margin: 2px;
283  border-radius: 3px;
284 }
285 .vendor-back {
286  background-color: #599caf !important;
287  color: #FFF !important;
288  padding: 2px;
289  margin: 2px;
290  border-radius: 3px;
291 }
292 .user-back {
293  background-color: #79633f !important;
294  color: #FFF !important;
295  padding: 2px;
296  margin: 2px;
297  border-radius: 3px;
298 }
299 .member-company-back {
300  padding: 2px 7px 2px 7px;
301  background-color: #e4e4e4;
302  color: #666;
303  border-radius: 10px;
304  white-space: nowrap;
305 }
306 .member-individual-back {
307  padding: 2px 7px 2px 7px;
308  background-color: #e4e4e4;
309  color: #666;
310  border-radius: 10px;
311  white-space: nowrap;
312 }
313 
314 
315 .bg-infobox-project{
316  <?php echo $prefix; ?>color: #6c6aa8 !important;
317 }
318 .bg-infobox-action{
319  <?php echo $prefix; ?>color: #b06080 !important;
320 }
321 .bg-infobox-propal, .bg-infobox-facture, .bg-infobox-commande {
322  <?php echo $prefix; ?>color: #65953d !important;
323 }
324 .bg-infobox-supplier_proposal, .bg-infobox-invoice_supplier, .bg-infobox-order_supplier {
325  <?php echo $prefix; ?>color: #599caf !important;
326 }
327 .bg-infobox-contrat, .bg-infobox-ticket{
328  <?php echo $prefix; ?>color: #3bbfa8 !important;
329 }
330 .bg-infobox-bank_account{
331  <?php echo $prefix; ?>color: #b0bb39 !important;
332 }
333 .bg-infobox-adherent, .bg-infobox-member {
334  <?php echo $prefix; ?>color: #79633f !important;
335 }
336 .bg-infobox-expensereport{
337  <?php echo $prefix; ?>color: #79633f !important;
338 }
339 .bg-infobox-holiday{
340  <?php echo $prefix; ?>color: #755114 !important;
341 }
342 
343 .infobox-adherent, .infobox-member {
344  color: #79633f !important;
345 }
346 .infobox-project{
347  color: #6c6aa8 !important;
348 }
349 .infobox-action{
350  color: #b06080 !important;
351 }
352 /* Color for customer object */
353 .infobox-propal:not(.error),
354 .infobox-facture:not(.error),
355 .infobox-commande:not(.error) {
356  color: #65953d !important;
357 }
358 /* Color for vendor object */
359 .infobox-supplier_proposal:not(.error),
360 .infobox-invoice_supplier:not(.error),
361 .infobox-order_supplier:not(.error) {
362  color: #599caf !important;
363 }
364 .infobox-contrat, .infobox-ticket{
365  color: #3bbfa8 !important;
366 }
367 .infobox-bank_account{
368  color: #b0bb39 !important;
369 }
370 .infobox-adherent, .infobox-member {
371  color: #79633f !important;
372 }
373 .infobox-expensereport{
374  color: #79633f !important;
375 }
376 .infobox-holiday{
377  color: #755114 !important;
378 }
379 
380 
381 .fa-dol-action:before {
382  content: "\f073";
383 }
384 .fa-dol-propal:before,
385 .fa-dol-supplier_proposal:before {
386  content: "\f573";
387 }
388 .fa-dol-facture:before,
389 .fa-dol-invoice_supplier:before {
390  content: "\f571";
391 }
392 .fa-dol-project:before {
393  content: "\f542";
394 }
395 .fa-dol-commande:before,
396 .fa-dol-order_supplier:before {
397  content: "\f570";
398 }
399 .fa-dol-contrat:before {
400  content: "\f0f2";
401 }
402 .fa-dol-ticket:before {
403  content: "\f3ff";
404 }
405 .fa-dol-bank_account:before {
406  content: "\f19c";
407 }
408 .fa-dol-member:before {
409  content: "\f007";
410 }
411 .fa-dol-expensereport:before {
412  content: "\f555";
413 }
414 .fa-dol-holiday:before {
415  content: "\f5ca";
416 }
417 
418 
419 /* USING FONTAWESOME FOR WEATHER */
420 .info-box-weather .info-box-icon{
421  background: var(--colorbacktitle1) !important;
422 }
423 .fa-weather-level0:before{
424  content: "\f185";
425  color : #cfbf00;
426 }
427 .fa-weather-level1:before{
428  content: "\f6c4";
429  color : #bc9526;
430 }
431 .fa-weather-level2:before{
432  content: "\f743";
433  color : #b16000;
434 }
435 .fa-weather-level3:before{
436  content: "\f740";
437  color : #b04000;
438 }
439 .fa-weather-level4:before{
440  content: "\f0e7";
441  color : #b01000;
442 }
443 
444 
445 .box-flex-container{
446  display: flex; /* or inline-flex */
447  flex-direction: row;
448  flex-wrap: wrap;
449  width: calc(100% + 14px);
450  margin: 0 -8px 0 -8px;
451  /*justify-content: space-between;*/
452 }
453 
454 .box-flex-grow-zero{
455  flex-grow: 0 !important;
456 }
457 
458 .box-flex-item{
459  flex-grow : 1;
460  flex-shrink: 1;
461  flex-basis: auto;
462 
463  width: 280px;
464  margin: 5px 8px 0px 8px;
465 }
466 .box-flex-item.filler{
467  margin: 0px 0px 0px 15px !important;
468  height: 0;
469 }
470 
471 .info-box-title {
472  width: calc(100% - 20px);
473 }
474 .info-box-module {
475  min-width: 350px;
476  max-width: 350px;
477 }
478 
479 @media only screen and (max-width: 1740px) {
480  .info-box-module {
481  min-width: 315px;
482  max-width: 315px;
483  }
484 }
485 
486 @media only screen and (max-width: 767px) {
487  .info-box-module {
488  min-width: 260px;
489  }
490 }
491 
492 .info-box-module .info-box-content {
493  height: 98px;
494 }
495 /* Disabled. This break the responsive on smartphone
496 .box{
497  overflow: visible;
498 }
499 */
500 
501 @media only screen and (max-width: 767px)
502 {
503  .box-flex-container {
504  margin: 0 0 0 0px !important;
505  width: 100% !important;
506  justify-content: space-between;
507  }
508  .info-box-module {
509  width: 100%;
510  max-width: unset;
511  }
512 
513  .info-box-sm .info-box-icon-text, .info-box-sm .info-box-icon-version {
514  width: 60px;
515  }
516  .info-box-sm .info-box-icon {
517  width: 60px;
518  }
519  .info-box-sm .info-box-content {
520  margin-left: 60px;
521  }
522  .info-box {
523  border: 1px solid #e0e0e0;
524  }
525 }
print *****$script_file(".$version.") pid cd cd cd description as description
Only used if Module[ID]Desc translation string is not found.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
GETPOSTISSET($paramname)
Return true if we are in a context of submitting the parameter $paramname from a POST of a form.
div float
Buy price without taxes.
Definition: style.css.php:913