dolibarr  19.0.0-dev
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:not(.info-box-kanban) .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:not(.info-box-kanban) .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, .info-box-sm .info-box-img {
99  height: 98px !important; /* must match height of info-box-sm .info-box-content */
100  width: 78px;
101  font-size: 25px;
102  line-height: 92px;
103 }
104 .info-box-order {
105  border-top-left-radius: 2px;
106  border-top-right-radius: 0;
107  border-bottom-right-radius: 0;
108  border-bottom-left-radius: 2px;
109  display: block;
110  overflow: hidden;
111  float: left;
112  height: 115px;
113  width: 88px;
114  text-align: center;
115  font-size: 2.3em;
116  line-height: 115px;
117  margin-right: 10px;
118  background: var(--colorbacktitle1) !important;
119 }
120 .opened-dash-board-wrap .info-box .info-box-icon {
121  font-size: 2em;
122 }
123 .opened-dash-board-wrap .info-box-sm .info-box-icon {
124  border-radius: 0 0 0 20px;
125  line-height: 80px;
126 }
127 .info-box-module .info-box-icon {
128  height: 98px;
129 }
130 .info-box-icon > img {
131  max-width: 85%;
132 }
133 .info-box-module .info-box-icon > img {
134  max-width: 60%;
135 }
136 
137 a.info-box-text.info-box-text-a {
138  /* display: table-cell; */
139  display: contents;
140 }
141 a.info-box-text-a i.fa.fa-exclamation-triangle {
142  font-size: 0.9em;
143 }
144 
145 .info-box-line {
146  line-height: 1.35em;
147 }
148 
149 .info-box-icon-text {
150  box-sizing: border-box;
151  display: block;
152  position: absolute;
153  width: 90px;
154  bottom: 0px;
155  color: #ffffff;
156  background-color: rgba(0,0,0,0.1);
157  cursor: default;
158 
159  font-size: 10px;
160  line-height: 15px;
161  padding: 0px 3px;
162  text-align: center;
163  opacity: 0;
164  -webkit-transition: opacity 0.5s, visibility 0s 0.5s;
165  transition: opacity 0.5s, visibility 0s 0.5s;
166 }
167 
168 .info-box-icon-version {
169  box-sizing: border-box;
170  display: block;
171  position: absolute;
172  width: 90px;
173  bottom: 0px;
174  color: #ffffff;
175  background-color: rgba(0,0,0,0.1);
176  cursor: default;
177 
178  font-size: 10px;
179  line-height: 1.5em;
180  padding: 4px 3px;
181  text-align: center;
182  opacity: 1;
183  -webkit-transition: opacity 0.5s, visibility 0s 0.5s;
184  transition: opacity 0.5s, visibility 0s 0.5s;
185 }
186 
187 .box-flex-item.info-box-module.--disabled {
188  /* opacity: 0.6; */
189 }
190 
191 .info-box-actions {
192  position: absolute;
193  right: 0;
194  bottom: 0;
195 }
196 
197 /* customize section img box on list of products */
198 .info-box-img {
199  height: 105px !important;
200  width: 88px;
201  border-top-left-radius: 2px;
202  border-top-right-radius: 0;
203  border-bottom-right-radius: 0;
204  border-bottom-left-radius: 2px;
205  display: block;
206  overflow: hidden;
207  float: left;
208  text-align: center;
209  font-size: 2.8em;
210  line-height: 90px;
211  margin-right: 5px;
212  background: var(--colorbacktitle1) !important;
213 }
214 .info-box-img > img {
215  width: 90%;
216  position: relative;
217  top: 50%;
218  left: 50%;
219  transform: translate(-50%, -50%);
220 }
221 
222 <?php if (empty($conf->global->MAIN_DISABLE_GLOBAL_BOXSTATS) && !empty($conf->global->MAIN_INCLUDE_GLOBAL_STATS_IN_OPENED_DASHBOARD)) { ?>
223 .info-box-icon-text{
224  opacity: 1;
225 }
226 <?php } ?>
227 
228 .info-box-sm .info-box-icon-text, .info-box-sm .info-box-icon-version {
229  overflow: hidden;
230  width: 80px;
231 }
232 .info-box:hover .info-box-icon-text {
233  opacity: 1;
234 }
235 
236 .info-box-content {
237  padding: 5px 10px;
238  margin-left: 84px;
239 }
240 .info-box-sm .info-box-content {
241  margin-left: 80px;
242  height: 88px; /* 96 - margins of .info-box-sm .info-box-content */
243 }
244 .info-box-sm .info-box-module-enabled {
245  /* background: linear-gradient(0.35turn, #fff, #fff, #f6faf8, #e4efe8) */
246  background: var(--infoboxmoduleenabledbgcolor);
247 }
248 .info-box-content-warning span.font-status4 {
249  color: #bc9526 !important;
250 }
251 /*.info-box-sm .info-box-content-warning {
252  background: #ffd7a3;
253 }*/
254 /*.info-box-icon.info-box-icon-module-enabled {
255  background: #e4f0e4 !important;
256 }*/
257 
258 .info-box-number {
259  display: block;
260  font-weight: bold;
261  font-size: 18px;
262 }
263 .progress-description,
264 .info-box-text,
265 .info-box-title{
266  display: block;
267  font-size: 12px;
268  white-space: nowrap;
269  overflow: hidden;
270  text-overflow: ellipsis;
271 }
272 .info-box-title{
273  text-transform: uppercase;
274  font-weight: bold;
275  margin-bottom: 3px; /* not too much space so we can add another lines */
276  opacity: 0.6;
277  /* color: var(--colortexttitlenotab); */
278 }
279 .info-box-text{
280  font-size: 0.92em;
281 }
282 .info-box-text:first-letter{text-transform: uppercase}
283 a.info-box-text{ text-decoration: none;}
284 
285 
286 .info-box-more {
287  display: block;
288 }
289 .progress-description {
290  margin: 0;
291 }
292 
293 
294 
295 
296 
297 /* ICONS INFO BOX */
298 <?php
299 include_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
300 
301 $prefix = '';
302 if (!empty($conf->global->THEME_INFOBOX_COLOR_ON_BACKGROUND)) {
303  $prefix = 'background-';
304 }
305 
306 if (!isset($conf->global->THEME_SATURATE_RATIO)) {
307  $conf->global->THEME_SATURATE_RATIO = 0.7;
308 }
309 if (GETPOSTISSET('THEME_SATURATE_RATIO')) {
310  $conf->global->THEME_SATURATE_RATIO = GETPOST('THEME_SATURATE_RATIO', 'int');
311 }
312 
313 ?>
314 .info-box-icon {
315  <?php if ($prefix) { ?>
316  color: #fff !important;
317  <?php } ?>
318  opacity: 0.95;
319  <?php if (isset($conf->global->THEME_SATURATE_RATIO)) { ?>
320  filter: saturate(<?php echo $conf->global->THEME_SATURATE_RATIO; ?>);
321  <?php } ?>
322 }
323 
324 .customer-back {
325  background-color: #55955d !important;
326  color: #FFF !important;
327  padding: 2px;
328  margin: 2px;
329  border-radius: 3px;
330 }
331 .vendor-back {
332  background-color: #599caf !important;
333  color: #FFF !important;
334  padding: 2px;
335  margin: 2px;
336  border-radius: 3px;
337 }
338 .user-back {
339  background-color: #79633f !important;
340  color: #FFF !important;
341  padding: 2px;
342  margin: 2px;
343  border-radius: 3px;
344 }
345 .member-company-back {
346  padding: 2px 7px 2px 7px;
347  background-color: #e4e4e4;
348  color: #666;
349  border-radius: 10px;
350  white-space: nowrap;
351 }
352 .member-individual-back {
353  padding: 2px 7px 2px 7px;
354  background-color: #e4e4e4;
355  color: #666;
356  border-radius: 10px;
357  white-space: nowrap;
358 }
359 
360 
361 .bg-infobox-project{
362  <?php echo $prefix; ?>color: #6c6aa8 !important;
363 }
364 .bg-infobox-action{
365  <?php echo $prefix; ?>color: #b06080 !important;
366 }
367 .bg-infobox-propal, .bg-infobox-facture, .bg-infobox-commande {
368  <?php echo $prefix; ?>color: #65953d !important;
369 }
370 .bg-infobox-supplier_proposal, .bg-infobox-invoice_supplier, .bg-infobox-order_supplier {
371  <?php echo $prefix; ?>color: #599caf !important;
372 }
373 .bg-infobox-contrat, .bg-infobox-ticket{
374  <?php echo $prefix; ?>color: #3bbfa8 !important;
375 }
376 .bg-infobox-bank_account{
377  <?php echo $prefix; ?>color: #b0bb39 !important;
378 }
379 .bg-infobox-adherent, .bg-infobox-member {
380  <?php echo $prefix; ?>color: #79633f !important;
381 }
382 .bg-infobox-expensereport{
383  <?php echo $prefix; ?>color: #79633f !important;
384 }
385 .bg-infobox-holiday{
386  <?php echo $prefix; ?>color: #755114 !important;
387 }
388 
389 .infobox-adherent, .infobox-member {
390  color: #79633f !important;
391 }
392 .infobox-project{
393  color: #6c6aa8 !important;
394 }
395 .infobox-action{
396  color: #b06080 !important;
397 }
398 /* Color for customer object */
399 .infobox-propal:not(.error),
400 .infobox-facture:not(.error),
401 .infobox-commande:not(.error) {
402  color: #65953d !important;
403 }
404 /* Color for vendor object */
405 .infobox-supplier_proposal:not(.error),
406 .infobox-invoice_supplier:not(.error),
407 .infobox-order_supplier:not(.error) {
408  color: #599caf !important;
409 }
410 .infobox-contrat, .infobox-ticket{
411  color: #3bbfa8 !important;
412 }
413 .infobox-bank_account{
414  color: #b0bb39 !important;
415 }
416 .infobox-adherent, .infobox-member {
417  color: #79633f !important;
418 }
419 .infobox-expensereport{
420  color: #79633f !important;
421 }
422 .infobox-holiday{
423  color: #755114 !important;
424 }
425 
426 
427 .fa-dol-action:before {
428  content: "\f073";
429 }
430 .fa-dol-propal:before,
431 .fa-dol-supplier_proposal:before {
432  content: "\f573";
433 }
434 .fa-dol-facture:before,
435 .fa-dol-invoice_supplier:before {
436  content: "\f571";
437 }
438 .fa-dol-project:before {
439  content: "\f542";
440 }
441 .fa-dol-commande:before,
442 .fa-dol-order_supplier:before {
443  content: "\f570";
444 }
445 .fa-dol-contrat:before {
446  content: "\f0f2";
447 }
448 .fa-dol-ticket:before {
449  content: "\f3ff";
450 }
451 .fa-dol-bank_account:before {
452  content: "\f19c";
453 }
454 .fa-dol-member:before {
455  content: "\f007";
456 }
457 .fa-dol-expensereport:before {
458  content: "\f555";
459 }
460 .fa-dol-holiday:before {
461  content: "\f5ca";
462 }
463 
464 
465 /* USING FONTAWESOME FOR WEATHER */
466 .info-box-weather .info-box-icon{
467  background: var(--colorbacktitle1) !important;
468 }
469 .fa-weather-level0:before{
470  content: "\f185";
471  color : #cfbf00;
472 }
473 .fa-weather-level1:before{
474  content: "\f6c4";
475  color : #bc9526;
476 }
477 .fa-weather-level2:before{
478  content: "\f743";
479  color : #b16000;
480 }
481 .fa-weather-level3:before{
482  content: "\f740";
483  color : #b04000;
484 }
485 .fa-weather-level4:before{
486  content: "\f0e7";
487  color : #b01000;
488 }
489 
490 
491 .box-flex-container{
492  display: flex; /* or inline-flex */
493  flex-direction: row;
494  flex-wrap: wrap;
495  width: calc(100% + 14px);
496  margin: 0 -8px 0 -8px;
497  /*justify-content: space-between;*/
498 }
499 
500 .box-flex-grow-zero{
501  flex-grow: 0 !important;
502 }
503 
504 .box-flex-item{
505  flex-grow : 1;
506  flex-shrink: 1;
507  flex-basis: auto;
508 
509  width: 280px;
510  margin: 5px 8px 0px 8px;
511 }
512 .box-flex-item.filler{
513  margin: 0px 0px 0px 15px !important;
514  height: 0;
515 }
516 
517 .info-box-title {
518  width: calc(100% - 20px);
519 }
520 .info-box-module {
521  min-width: 350px;
522  max-width: 350px;
523 }
524 .fright {
525  float:right;
526 }
527 @media only screen and (max-width: 1740px) {
528  .info-box-module {
529  min-width: 315px;
530  max-width: 315px;
531  }
532 }
533 
534 @media only screen and (max-width: 767px) {
535  .info-box-module {
536  min-width: 260px;
537  }
538 }
539 
540 .info-box-module .info-box-content {
541  height: 98px;
542 }
543 /* Disabled. This break the responsive on smartphone
544 .box{
545  overflow: visible;
546 }
547 */
548 
549 @media only screen and (max-width: 767px)
550 {
551  .box-flex-container {
552  margin: 0 0 0 0px !important;
553  width: 100% !important;
554  justify-content: space-between;
555  }
556  .info-box-module {
557  width: 100%;
558  max-width: unset;
559  }
560 
561  .info-box-sm .info-box-icon-text, .info-box-sm .info-box-icon-version {
562  width: 60px;
563  }
564  .info-box-sm .info-box-icon {
565  width: 60px;
566  }
567  .info-box-sm .info-box-content {
568  margin-left: 60px;
569  }
570  .info-box {
571  border: 1px solid #e0e0e0;
572  }
573 }
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.
rtl background position
div float
Buy price without taxes.
Definition: style.css.php:921