dolibarr 21.0.0-alpha
info-box.inc.php
1<?php
2if (!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: 94px; /* must be same height than info-box-icon */
24 background: var(--colorbacklineimpair2);
25 width: 100%;
26 box-shadow: 1px 1px 12px 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 line-height: 94px; /* must be same height as min-height of .info-box */
87 height: 94px; /* must be same height as min-height of .info-box */
88 width: 88px;
89 text-align: center;
90 font-size: 2.8em;
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
137a.info-box-text.info-box-text-a {
138 /* display: table-cell; */
139 display: contents;
140}
141a.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.info-box-line-text {
149 overflow: hidden;
150 width: calc(100% - 92px);
151 max-width: calc(100% - 82px);
152 text-overflow: ellipsis;
153}
154
155.info-box-icon-text {
156 box-sizing: border-box;
157 display: block;
158 position: absolute;
159 width: 90px;
160 bottom: 0px;
161 color: #ffffff;
162 background-color: rgba(0,0,0,0.1);
163 cursor: default;
164
165 font-size: 10px;
166 line-height: 15px;
167 padding: 0px 3px;
168 text-align: center;
169 opacity: 0;
170 -webkit-transition: opacity 0.5s, visibility 0s 0.5s;
171 transition: opacity 0.5s, visibility 0s 0.5s;
172}
173
174.info-box-icon-version {
175 box-sizing: border-box;
176 display: block;
177 position: absolute;
178 width: 90px;
179 bottom: 0px;
180 color: #ffffff;
181 background-color: rgba(0,0,0,0.1);
182 cursor: default;
183
184 font-size: 10px;
185 line-height: 1.5em;
186 padding: 4px 3px;
187 text-align: center;
188 opacity: 1;
189 -webkit-transition: opacity 0.5s, visibility 0s 0.5s;
190 transition: opacity 0.5s, visibility 0s 0.5s;
191}
192
193.box-flex-item.info-box-module.--disabled {
194 /* opacity: 0.6; */
195}
196
197.info-box-actions {
198 position: absolute;
199 right: 0;
200 bottom: 0;
201}
202
203/* customize section img box on list of products */
204.info-box-img {
205 height: 105px !important;
206 width: 88px;
207 border-top-left-radius: 2px;
208 border-top-right-radius: 0;
209 border-bottom-right-radius: 0;
210 border-bottom-left-radius: 2px;
211 display: block;
212 overflow: hidden;
213 float: left;
214 text-align: center;
215 font-size: 2.8em;
216 line-height: 90px;
217 margin-right: 5px;
218 background: var(--colorbacktitle1) !important;
219}
220.info-box-img > img {
221 width: 90%;
222 position: relative;
223 top: 50%;
224 left: 50%;
225 transform: translate(-50%, -50%);
226}
227
228<?php if (!getDolGlobalString('MAIN_DISABLE_GLOBAL_BOXSTATS') && getDolGlobalString('MAIN_INCLUDE_GLOBAL_STATS_IN_OPENED_DASHBOARD')) { ?>
229.info-box-icon-text{
230 opacity: 1;
231}
232<?php } ?>
233
234.info-box-sm .info-box-icon-text, .info-box-sm .info-box-icon-version {
235 overflow: hidden;
236 width: 80px;
237}
238.info-box:hover .info-box-icon-text {
239 opacity: 1;
240}
241
242.info-box-content {
243 padding-top: 5px;
244 padding-bottom: 5px;
245 padding-left: 10px;
246 padding-right: 5px;
247 margin-left: 84px;
248}
249.info-box-sm .info-box-content {
250 margin-left: 80px;
251 height: 88px; /* 96 - margins of .info-box-sm .info-box-content */
252}
253.info-box-sm .info-box-module-enabled {
254 /* background: linear-gradient(0.35turn, #fff, #fff, #f6faf8, #e4efe8) */
255 background: var(--infoboxmoduleenabledbgcolor);
256}
257.info-box-content-warning span.font-status4 {
258 color: #bc9526 !important;
259}
260
261.info-box-number {
262 display: block;
263 font-weight: bold;
264 font-size: 18px;
265}
266.progress-description,
267.info-box-text,
268.info-box-title{
269 display: block;
270 font-size: 12px;
271 white-space: nowrap;
272 overflow: hidden;
273 text-overflow: ellipsis;
274}
275.info-box-title{
276 text-transform: uppercase;
277 font-weight: bold;
278 margin-bottom: 3px; /* not too much space so we can add another lines */
279 opacity: 0.6;
280 /* color: var(--colortexttitlenotab); */
281}
282.info-box-text{
283 font-size: 0.92em;
284}
285/* Force values for small screen 480 */
286@media only screen and (max-width: 480px)
287{
288 .info-box-text {
289 font-size: 0.82em;
290 }
291 .info-box-line {
292 line-height: 1.25em;
293 }
294}
295.info-box-text:first-letter{text-transform: uppercase}
296a.info-box-text{ text-decoration: none;}
297
298
299.info-box-more {
300 display: block;
301}
302.progress-description {
303 margin: 0;
304}
305
306
307
308
309
310/* ICONS INFO BOX */
311<?php
312include_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
313
314$prefix = '';
315if (getDolGlobalString('THEME_INFOBOX_COLOR_ON_BACKGROUND')) {
316 $prefix = 'background-';
317}
318
319if (!isset($conf->global->THEME_SATURATE_RATIO)) {
320 $conf->global->THEME_SATURATE_RATIO = 0.7;
321}
322if (GETPOSTISSET('THEME_SATURATE_RATIO')) {
323 $conf->global->THEME_SATURATE_RATIO = GETPOSTINT('THEME_SATURATE_RATIO');
324}
325
326?>
327.info-box-icon {
328 <?php if ($prefix) { ?>
329 color: #fff !important;
330 <?php } ?>
331 opacity: 0.95;
332 <?php if (isset($conf->global->THEME_SATURATE_RATIO)) { ?>
333 filter: saturate(<?php echo $conf->global->THEME_SATURATE_RATIO; ?>);
334 <?php } ?>
335}
336
337.nonature-back {
338 background-color: #EEE;
339 padding: 2px;
340 margin: 2px;
341 border-radius: 3px;
342}
343.prospect-back {
344 background-color: #a7c5b0 !important;
345 color: #FFF !important;
346 padding: 2px;
347 margin: 2px;
348 border-radius: 3px;
349}
350.customer-back {
351 background-color: #55955d !important;
352 color: #FFF !important;
353 padding: 2px;
354 margin: 2px;
355 border-radius: 3px;
356}
357.vendor-back {
358 background-color: #599caf !important;
359 color: #FFF !important;
360 padding: 2px;
361 margin: 2px;
362 border-radius: 3px;
363}
364.user-back {
365 background-color: #79633f !important;
366 color: #FFF !important;
367 padding: 2px;
368 margin: 2px;
369 border-radius: 3px;
370}
371.member-company-back {
372 padding: 2px;
373 margin: 2px;
374 background-color: #e4e4e4;
375 color: #666;
376 border-radius: 3px;
377 white-space: nowrap;
378}
379.member-individual-back {
380 padding: 2px;
381 margin: 2px;
382 background-color: #e4e4e4;
383 color: #666;
384 border-radius: 3px;
385 white-space: nowrap;
386}
387
388
389.bg-infobox-project{
390 <?php echo $prefix; ?>color: #6c6aa8 !important;
391}
392.bg-infobox-action{
393 <?php echo $prefix; ?>color: #b06080 !important;
394}
395.bg-infobox-propal, .bg-infobox-facture, .bg-infobox-commande {
396 <?php echo $prefix; ?>color: #65953d !important;
397}
398.bg-infobox-supplier_proposal, .bg-infobox-invoice_supplier, .bg-infobox-order_supplier {
399 <?php echo $prefix; ?>color: #599caf !important;
400}
401.bg-infobox-contrat, .bg-infobox-ticket{
402 <?php echo $prefix; ?>color: #3bbfa8 !important;
403}
404.bg-infobox-bank_account{
405 <?php echo $prefix; ?>color: #b0bb39 !important;
406}
407.bg-infobox-adherent, .bg-infobox-member {
408 <?php echo $prefix; ?>color: #79633f !important;
409}
410.bg-infobox-expensereport{
411 <?php echo $prefix; ?>color: #79633f !important;
412}
413.bg-infobox-holiday{
414 <?php echo $prefix; ?>color: #755114 !important;
415}
416
417/* Disable colors on left vmenu */
418a.vmenu span, span.vmenu, span.vmenu span {
419 /* To force no color on picto in left menu */
420 /* color: var(--colortextbackvmenu) !important; */
421}
422
423.infobox-adherent, .infobox-member {
424 color: #79633f;
425}
426.infobox-project{
427 color: #6c6aa8;
428}
429.infobox-action{
430 color: #b06080;
431}
432/* Color for customer object */
433.infobox-propal:not(.error),
434.infobox-facture:not(.error),
435.infobox-commande:not(.error) {
436 color: #65953d;
437}
438/* Color for vendor object */
439.infobox-supplier_proposal:not(.error),
440.infobox-invoice_supplier:not(.error),
441.infobox-order_supplier:not(.error) {
442 color: #599caf;
443}
444.infobox-contrat, .infobox-ticket{
445 color: #3bbfa8;
446}
447.infobox-bank_account{
448 color: #b0bb39;
449}
450.infobox-adherent, .infobox-member {
451 color: #79633f;
452}
453.infobox-expensereport{
454 color: #79633f;
455}
456.infobox-holiday{
457 color: #755114;
458}
459
460
461.fa-dol-action:before {
462 content: "\f073";
463}
464.fa-dol-propal:before,
465.fa-dol-supplier_proposal:before {
466 content: "\f573";
467}
468.fa-dol-facture:before,
469.fa-dol-invoice_supplier:before {
470 content: "\f571";
471}
472.fa-dol-project:before {
473 content: "\f542";
474}
475.fa-dol-commande:before,
476.fa-dol-order_supplier:before {
477 content: "\f570";
478}
479.fa-dol-contrat:before {
480 content: "\f0f2";
481}
482.fa-dol-ticket:before {
483 content: "\f3ff";
484}
485.fa-dol-bank_account:before {
486 content: "\f19c";
487}
488.fa-dol-member:before {
489 content: "\f007";
490}
491.fa-dol-expensereport:before {
492 content: "\f555";
493}
494.fa-dol-holiday:before {
495 content: "\f5ca";
496}
497
498
499/* USING FONTAWESOME FOR WEATHER */
500.info-box-weather .info-box-icon{
501 background: var(--colorbacktitle1) !important;
502}
503.fa-weather-level0:before{
504 content: "\f185";
505 color : #cfbf00;
506}
507.fa-weather-level1:before{
508 content: "\f6c4";
509 color : #bc9526;
510}
511.fa-weather-level2:before{
512 content: "\f743";
513 color : #b16000;
514}
515.fa-weather-level3:before{
516 content: "\f740";
517 color : #b04000;
518}
519.fa-weather-level4:before{
520 content: "\f0e7";
521 color : #b01000;
522}
523
524
525.box-flex-container{
526 display: flex; /* or inline-flex */
527 flex-direction: row;
528 flex-wrap: wrap;
529 width: calc(100% + 14px);
530 margin: 0 -8px 0 -8px;
531 /*justify-content: space-between;*/
532}
533.box-flex-container-columns {
534 display: flex; /* or inline-flex */
535 flex-direction: row;
536 flex-wrap: nowrap;
537 justify-content: space-between;
538}
539.box-flex-container-column {
540 flex-grow: 1;
541 }
542.box-flex-container-column:not(:last-of-type) {
543 border-right: 1px solid #AAA;
544}
545.box-flex-container-column.kanban {
546 flex: 1;
547}
548.kanban.kanbancollapsed {
549 flex: unset;
550 width: 80px;
551}
552.kanban.kanbancollapsed .kanbanlabel, .text-vertical {
553 writing-mode: vertical-rl;
554}
555
556.box-flex-grow-zero {
557 flex-grow: 0 !important;
558}
559
560.box-flex-item {
561 flex-grow : 1;
562 flex-shrink: 1;
563 flex-basis: auto;
564 width: 290px;
565}
566.box-flex-item.filler {
567 height: 0;
568}
569.box-flex-item, .kanbanlabel {
570 margin-top: 5px;
571 margin-<?php echo $right; ?>: 20px;
572 margin-bottom: 0px;
573 margin-<?php echo $left; ?>: 10px;
574}
575.kanbanlabel {
576 background: var(--colorbacktitle1);
577 padding: 5px;
578 margin-bottom: 10px;
579 border-radius: 5px;
580}
581.kanban .box-flex-item {
582 line-height: 1.4em;
583}
584.kanban .box-flex-item-5lines {
585 line-height: 1.2em;
586}
587
588/* css for small kanban */
589.box-flex-item-small {
590 width: 200px !important;
591}
592.box-flex-item-small .info-box-sm .info-box-content {
593 margin-left: 0;
594}
595.box-flex-item-small .info-box-icon.bg-infobox-action {
596 display: none;
597}
598
599
600.info-box-title {
601 width: calc(100% - 20px);
602}
603.info-box-module {
604 min-width: 350px;
605 max-width: 350px;
606}
607.fright {
608 float:right;
609}
610@media only screen and (max-width: 1740px) {
611 .info-box-module {
612 min-width: 315px;
613 max-width: 315px;
614 }
615}
616
617@media only screen and (max-width: 768px) {
618 .info-box-module {
619 min-width: 260px;
620 }
621 .box-flex-item {
622 width: 280px;
623 }
624}
625
626@media only screen and (max-width: 570px)
627{
628 .box-flex-item {
629 margin: 3px 8px 3px 8px !important;
630 }
631}
632
633@media only screen and (max-width: 480px) {
634 .info-box-module {
635 min-width: 250px;
636 }
637 .box-flex-item {
638 width: 250px;
639 }
640}
641
642
643
644
645.info-box-module .info-box-content {
646 height: 98px;
647}
648/* Disabled. This break the responsive on smartphone
649.box{
650 overflow: visible;
651}
652*/
653
654@media only screen and (max-width: 768px)
655{
656 .box-flex-container {
657 margin: 0 0 0 0px !important;
658 width: 100% !important;
659 /* justify-content: space-between; */
660 }
661 .info-box-module {
662 width: 100%;
663 max-width: unset;
664 }
665
666 .info-box-sm .info-box-icon-text, .info-box-sm .info-box-icon-version {
667 width: 60px;
668 }
669 .info-box-sm .info-box-icon {
670 width: 60px;
671 }
672 .info-box-sm .info-box-content {
673 margin-left: 60px;
674 }
675 .info-box {
676 border: 1px solid #e0e0e0;
677 }
678
679 .info-box-content {
680 padding-top: 5px;
681 padding-bottom: 5px;
682 padding-left: 10px;
683 padding-right: 2px;
684 }
685 .info-box-line-text {
686 width: calc(100% - 98px);
687 max-width: calc(100% - 88px);
688 }
689}
print $object position
Definition edit.php:195
print $script_file $mode $langs defaultlang(is_numeric($duration_value) ? " delay=". $duration_value :"").(is_numeric($duration_value2) ? " after cd cd cd description as description
Only used if Module[ID]Desc translation string is not found.
GETPOSTINT($paramname, $method=0)
Return the value of a $_GET or $_POST supervariable, converted into integer.
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.
a disabled
if(preg_match('/crypted:/i', $dolibarr_main_db_pass)||!empty($dolibarr_main_db_encrypted_pass)) $conf db type
Definition repair.php:137