dolibarr 19.0.3
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: 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
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/*.info-box-sm .info-box-content-warning {
261 background: #ffd7a3;
262}*/
263/*.info-box-icon.info-box-icon-module-enabled {
264 background: #e4f0e4 !important;
265}*/
266
267.info-box-number {
268 display: block;
269 font-weight: bold;
270 font-size: 18px;
271}
272.progress-description,
273.info-box-text,
274.info-box-title{
275 display: block;
276 font-size: 12px;
277 white-space: nowrap;
278 overflow: hidden;
279 text-overflow: ellipsis;
280}
281.info-box-title{
282 text-transform: uppercase;
283 font-weight: bold;
284 margin-bottom: 3px; /* not too much space so we can add another lines */
285 opacity: 0.6;
286 /* color: var(--colortexttitlenotab); */
287}
288.info-box-text{
289 font-size: 0.92em;
290}
291.info-box-text:first-letter{text-transform: uppercase}
292a.info-box-text{ text-decoration: none;}
293
294
295.info-box-more {
296 display: block;
297}
298.progress-description {
299 margin: 0;
300}
301
302
303
304
305
306/* ICONS INFO BOX */
307<?php
308include_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
309
310$prefix = '';
311if (getDolGlobalString('THEME_INFOBOX_COLOR_ON_BACKGROUND')) {
312 $prefix = 'background-';
313}
314
315if (!isset($conf->global->THEME_SATURATE_RATIO)) {
316 $conf->global->THEME_SATURATE_RATIO = 0.7;
317}
318if (GETPOSTISSET('THEME_SATURATE_RATIO')) {
319 $conf->global->THEME_SATURATE_RATIO = GETPOST('THEME_SATURATE_RATIO', 'int');
320}
321
322?>
323.info-box-icon {
324 <?php if ($prefix) { ?>
325 color: #fff !important;
326 <?php } ?>
327 opacity: 0.95;
328 <?php if (isset($conf->global->THEME_SATURATE_RATIO)) { ?>
329 filter: saturate(<?php echo $conf->global->THEME_SATURATE_RATIO; ?>);
330 <?php } ?>
331}
332
333.customer-back {
334 background-color: #55955d !important;
335 color: #FFF !important;
336 padding: 2px;
337 margin: 2px;
338 border-radius: 3px;
339}
340.vendor-back {
341 background-color: #599caf !important;
342 color: #FFF !important;
343 padding: 2px;
344 margin: 2px;
345 border-radius: 3px;
346}
347.user-back {
348 background-color: #79633f !important;
349 color: #FFF !important;
350 padding: 2px;
351 margin: 2px;
352 border-radius: 3px;
353}
354.member-company-back {
355 padding: 2px 7px 2px 7px;
356 background-color: #e4e4e4;
357 color: #666;
358 border-radius: 10px;
359 white-space: nowrap;
360}
361.member-individual-back {
362 padding: 2px 7px 2px 7px;
363 background-color: #e4e4e4;
364 color: #666;
365 border-radius: 10px;
366 white-space: nowrap;
367}
368
369
370.bg-infobox-project{
371 <?php echo $prefix; ?>color: #6c6aa8 !important;
372}
373.bg-infobox-action{
374 <?php echo $prefix; ?>color: #b06080 !important;
375}
376.bg-infobox-propal, .bg-infobox-facture, .bg-infobox-commande {
377 <?php echo $prefix; ?>color: #65953d !important;
378}
379.bg-infobox-supplier_proposal, .bg-infobox-invoice_supplier, .bg-infobox-order_supplier {
380 <?php echo $prefix; ?>color: #599caf !important;
381}
382.bg-infobox-contrat, .bg-infobox-ticket{
383 <?php echo $prefix; ?>color: #3bbfa8 !important;
384}
385.bg-infobox-bank_account{
386 <?php echo $prefix; ?>color: #b0bb39 !important;
387}
388.bg-infobox-adherent, .bg-infobox-member {
389 <?php echo $prefix; ?>color: #79633f !important;
390}
391.bg-infobox-expensereport{
392 <?php echo $prefix; ?>color: #79633f !important;
393}
394.bg-infobox-holiday{
395 <?php echo $prefix; ?>color: #755114 !important;
396}
397
398.infobox-adherent, .infobox-member {
399 color: #79633f;
400}
401.infobox-project{
402 color: #6c6aa8;
403}
404.infobox-action{
405 color: #b06080;
406}
407/* Color for customer object */
408.infobox-propal:not(.error),
409.infobox-facture:not(.error),
410.infobox-commande:not(.error) {
411 color: #65953d;
412}
413/* Color for vendor object */
414.infobox-supplier_proposal:not(.error),
415.infobox-invoice_supplier:not(.error),
416.infobox-order_supplier:not(.error) {
417 color: #599caf;
418}
419.infobox-contrat, .infobox-ticket{
420 color: #3bbfa8;
421}
422.infobox-bank_account{
423 color: #b0bb39;
424}
425.infobox-adherent, .infobox-member {
426 color: #79633f;
427}
428.infobox-expensereport{
429 color: #79633f;
430}
431.infobox-holiday{
432 color: #755114;
433}
434
435
436.fa-dol-action:before {
437 content: "\f073";
438}
439.fa-dol-propal:before,
440.fa-dol-supplier_proposal:before {
441 content: "\f573";
442}
443.fa-dol-facture:before,
444.fa-dol-invoice_supplier:before {
445 content: "\f571";
446}
447.fa-dol-project:before {
448 content: "\f542";
449}
450.fa-dol-commande:before,
451.fa-dol-order_supplier:before {
452 content: "\f570";
453}
454.fa-dol-contrat:before {
455 content: "\f0f2";
456}
457.fa-dol-ticket:before {
458 content: "\f3ff";
459}
460.fa-dol-bank_account:before {
461 content: "\f19c";
462}
463.fa-dol-member:before {
464 content: "\f007";
465}
466.fa-dol-expensereport:before {
467 content: "\f555";
468}
469.fa-dol-holiday:before {
470 content: "\f5ca";
471}
472
473
474/* USING FONTAWESOME FOR WEATHER */
475.info-box-weather .info-box-icon{
476 background: var(--colorbacktitle1) !important;
477}
478.fa-weather-level0:before{
479 content: "\f185";
480 color : #cfbf00;
481}
482.fa-weather-level1:before{
483 content: "\f6c4";
484 color : #bc9526;
485}
486.fa-weather-level2:before{
487 content: "\f743";
488 color : #b16000;
489}
490.fa-weather-level3:before{
491 content: "\f740";
492 color : #b04000;
493}
494.fa-weather-level4:before{
495 content: "\f0e7";
496 color : #b01000;
497}
498
499
500.box-flex-container{
501 display: flex; /* or inline-flex */
502 flex-direction: row;
503 flex-wrap: wrap;
504 width: calc(100% + 14px);
505 margin: 0 -8px 0 -8px;
506 /*justify-content: space-between;*/
507}
508
509.box-flex-grow-zero {
510 flex-grow: 0 !important;
511}
512
513.box-flex-item {
514 flex-grow : 1;
515 flex-shrink: 1;
516 flex-basis: auto;
517 width: 280px;
518}
519.box-flex-item.filler {
520 height: 0;
521}
522.box-flex-item, .box-flex-item.filler {
523 margin: 5px 10px 0px 10px;
524}
525
526.info-box-title {
527 width: calc(100% - 20px);
528}
529.info-box-module {
530 min-width: 350px;
531 max-width: 350px;
532}
533.fright {
534 float:right;
535}
536@media only screen and (max-width: 1740px) {
537 .info-box-module {
538 min-width: 315px;
539 max-width: 315px;
540 }
541}
542
543@media only screen and (max-width: 767px) {
544 .info-box-module {
545 min-width: 260px;
546 }
547}
548
549.info-box-module .info-box-content {
550 height: 98px;
551}
552/* Disabled. This break the responsive on smartphone
553.box{
554 overflow: visible;
555}
556*/
557
558@media only screen and (max-width: 767px)
559{
560 .box-flex-container {
561 margin: 0 0 0 0px !important;
562 width: 100% !important;
563 justify-content: space-between;
564 }
565 .info-box-module {
566 width: 100%;
567 max-width: unset;
568 }
569
570 .info-box-sm .info-box-icon-text, .info-box-sm .info-box-icon-version {
571 width: 60px;
572 }
573 .info-box-sm .info-box-icon {
574 width: 60px;
575 }
576 .info-box-sm .info-box-content {
577 margin-left: 60px;
578 }
579 .info-box {
580 border: 1px solid #e0e0e0;
581 }
582
583 .info-box-content {
584 padding-top: 5px;
585 padding-bottom: 5px;
586 padding-left: 10px;
587 padding-right: 2px;
588 }
589 .info-box-line-text {
590 width: calc(100% - 92px);
591 max-width: calc(100% - 82px);
592 }
593}
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.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
getDolGlobalString($key, $default='')
Return dolibarr global constant string value.
rtl background position