dolibarr/htdocs/theme/eldy/info-box.inc.php

704 lines
14 KiB
PHP
Raw Permalink Normal View History

2019-08-01 12:33:19 +02:00
<?php
add baseline exclude for phpstan (#31632) * add baseline exclude for phpstan * update * update * update * update * update * merge * restore one filter * delete old errors * fix * fix * fix * $moreforfilter can t be empty * fix * enable check * refresh baseline * add phpdoc * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix --------- Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-11-04 23:53:20 +01:00
/* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
add baseline exclude for phpstan (#31632) * add baseline exclude for phpstan * update * update * update * update * update * merge * restore one filter * delete old errors * fix * fix * fix * $moreforfilter can t be empty * fix * enable check * refresh baseline * add phpdoc * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix --------- Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-11-04 23:53:20 +01:00
*/
2021-02-26 13:31:09 +01:00
if (!defined('ISLOADEDBYSTEELSHEET')) {
die('Must be call by steelsheet');
add baseline exclude for phpstan (#31632) * add baseline exclude for phpstan * update * update * update * update * update * merge * restore one filter * delete old errors * fix * fix * fix * $moreforfilter can t be empty * fix * enable check * refresh baseline * add phpdoc * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix --------- Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-11-04 23:53:20 +01:00
}
/**
* @var Conf $conf
*/
// Expected to be defined by including parent
'
@phan-var-force string $right
@phan-var-force string $left
';
add baseline exclude for phpstan (#31632) * add baseline exclude for phpstan * update * update * update * update * update * merge * restore one filter * delete old errors * fix * fix * fix * $moreforfilter can t be empty * fix * enable check * refresh baseline * add phpdoc * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix --------- Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-11-04 23:53:20 +01:00
?>
2025-01-13 12:31:08 +01:00
/* IDE Hack <style type="text/css"> */
2019-08-01 12:33:19 +02:00
/*
* Component: Info Box
* -------------------
*/
2021-04-18 20:12:24 +02:00
.info-box-module.--external span.info-box-icon-version {
2022-05-24 20:56:03 +02:00
background: rgba(0,0,0,0.2);
}
2021-04-18 20:12:24 +02:00
.info-box-module.--external.--need-update span.info-box-icon-version{
background: #bc9525;
}
2019-08-01 12:33:19 +02:00
.info-box {
display: block;
2021-02-26 13:31:09 +01:00
position: relative;
2024-04-03 13:35:34 +02:00
min-height: 94px; /* must be same height than info-box-icon */
2022-04-29 11:50:55 +02:00
background: var(--colorbacklineimpair2);
2019-08-01 12:33:19 +02:00
width: 100%;
box-shadow: 1px 1px 12px rgba(192, 192, 192, 0.2);
2021-02-26 13:31:09 +01:00
border-radius: 2px;
border: 1px solid #e9e9e9;
2019-08-01 12:33:19 +02:00
margin-bottom: 15px;
}
2020-07-20 03:29:22 +02:00
.info-box.info-box-sm {
2021-02-26 13:31:09 +01:00
min-height: 80px;
margin-bottom: 10px;
/* background: #fff; */
2019-08-13 15:54:32 +02:00
}
2022-01-10 05:07:09 +01:00
.opened-dash-board-wrap .info-box, .opened-dash-board-wrap .info-box .info-box-icon {
border-radius: 0 0 0 15px;
2020-07-20 03:29:22 +02:00
}
2022-01-10 05:07:09 +01:00
/*.opened-dash-board-wrap .box-flex-item {
border-radius: 10px;
}*/
2020-05-27 22:35:55 +02:00
.info-box-more {
2021-02-26 13:31:09 +01:00
float: right;
top: 5px;
position: absolute;
right: 8px;
2020-05-27 22:35:55 +02:00
}
2019-08-13 15:54:32 +02:00
2019-08-01 12:33:19 +02:00
.info-box small {
font-size: 14px;
}
2023-04-07 23:51:41 +02:00
.info-box:not(.info-box-kanban) .progress {
2019-08-01 12:33:19 +02:00
background: rgba(0, 0, 0, 0.2);
margin: 5px -10px 5px -10px;
height: 2px;
}
.info-box .progress,
.info-box .progress .progress-bar {
border-radius: 0;
}
2019-08-02 12:22:26 +02:00
2023-04-07 23:51:41 +02:00
.info-box:not(.info-box-kanban) .progress .progress-bar {
2023-12-19 21:48:22 +01:00
float: left;
width: 0;
height: 100%;
font-size: 12px;
line-height: 20px;
color: #fff;
text-align: center;
background-color: #337ab7;
-webkit-box-shadow: inset 0 -1px 0 rgba(0,0,0,.15);
box-shadow: inset 0 -1px 0 rgba(0,0,0,.15);
-webkit-transition: width .6s ease;
-o-transition: width .6s ease;
transition: width .6s ease;
2019-08-01 12:33:19 +02:00
}
.info-box-icon {
border-top-left-radius: 2px;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
border-bottom-left-radius: 2px;
display: block;
2021-02-26 13:31:09 +01:00
overflow: hidden;
2019-08-01 12:33:19 +02:00
float: left;
2024-04-03 13:35:34 +02:00
line-height: 94px; /* must be same height as min-height of .info-box */
height: 94px; /* must be same height as min-height of .info-box */
2022-01-10 05:07:09 +01:00
width: 88px;
2019-08-01 12:33:19 +02:00
text-align: center;
2022-01-10 05:07:09 +01:00
font-size: 2.8em;
2022-04-29 11:50:55 +02:00
background: var(--colorbacktitle1) !important;
2020-08-14 21:11:55 +02:00
}
.info-box-module .info-box-icon {
2021-02-26 13:31:09 +01:00
padding-top: 5px;
padding-bottom: 5px;
2019-08-01 12:33:19 +02:00
}
2023-05-11 11:03:26 +02:00
.info-box-sm .info-box-icon, .info-box-sm .info-box-img {
2023-05-13 22:09:19 +02:00
height: 98px !important; /* must match height of info-box-sm .info-box-content */
2021-02-26 13:31:09 +01:00
width: 78px;
font-size: 25px;
line-height: 92px;
2019-08-13 15:54:32 +02:00
}
2022-12-07 16:59:19 +01:00
.info-box-order {
border-top-left-radius: 2px;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
border-bottom-left-radius: 2px;
display: block;
overflow: hidden;
float: left;
height: 115px;
width: 88px;
text-align: center;
font-size: 2.3em;
line-height: 115px;
margin-right: 10px;
background: var(--colorbacktitle1) !important;
}
2022-01-21 14:02:26 +01:00
.opened-dash-board-wrap .info-box .info-box-icon {
font-size: 2em;
2020-07-20 03:29:22 +02:00
}
2020-05-16 14:47:12 +02:00
.opened-dash-board-wrap .info-box-sm .info-box-icon {
2022-01-21 14:02:26 +01:00
border-radius: 0 0 0 20px;
2021-02-26 13:31:09 +01:00
line-height: 80px;
2019-08-13 15:54:32 +02:00
}
.info-box-module .info-box-icon {
2020-05-27 22:35:55 +02:00
height: 98px;
}
2019-08-01 12:33:19 +02:00
.info-box-icon > img {
2022-12-08 11:43:35 +01:00
max-width: 85%;
2019-08-01 12:33:19 +02:00
}
2020-04-06 18:21:13 +02:00
.info-box-module .info-box-icon > img {
2021-02-26 13:31:09 +01:00
max-width: 60%;
2020-04-06 18:21:13 +02:00
}
2020-08-05 19:39:38 +02:00
a.info-box-text.info-box-text-a {
2023-04-10 02:05:26 +02:00
/* display: table-cell; */
display: contents;
2020-08-05 19:39:38 +02:00
}
a.info-box-text-a i.fa.fa-exclamation-triangle {
2021-02-26 13:31:09 +01:00
font-size: 0.9em;
2020-08-05 19:39:38 +02:00
}
2023-04-10 02:48:44 +02:00
.info-box-line {
line-height: 1.35em;
}
2023-10-18 17:23:49 +02:00
.info-box-line-text {
overflow: hidden;
2023-12-19 21:48:22 +01:00
width: calc(100% - 92px);
max-width: calc(100% - 82px);
2023-10-18 17:23:49 +02:00
text-overflow: ellipsis;
}
2023-04-10 02:48:44 +02:00
.info-box-icon-text {
2021-02-26 13:31:09 +01:00
box-sizing: border-box;
display: block;
position: absolute;
width: 90px;
bottom: 0px;
color: #ffffff;
background-color: rgba(0,0,0,0.1);
cursor: default;
font-size: 10px;
line-height: 15px;
padding: 0px 3px;
text-align: center;
opacity: 0;
-webkit-transition: opacity 0.5s, visibility 0s 0.5s;
transition: opacity 0.5s, visibility 0s 0.5s;
2019-09-22 11:57:33 +02:00
}
.info-box-icon-version {
2021-02-26 13:31:09 +01:00
box-sizing: border-box;
display: block;
position: absolute;
width: 90px;
bottom: 0px;
color: #ffffff;
background-color: rgba(0,0,0,0.1);
cursor: default;
font-size: 10px;
2021-10-28 14:28:04 +02:00
line-height: 1.5em;
padding: 4px 3px;
2021-02-26 13:31:09 +01:00
text-align: center;
opacity: 1;
-webkit-transition: opacity 0.5s, visibility 0s 0.5s;
transition: opacity 0.5s, visibility 0s 0.5s;
}
2021-10-28 14:28:04 +02:00
2021-04-18 20:12:24 +02:00
.box-flex-item.info-box-module.--disabled {
2021-02-26 13:31:09 +01:00
/* opacity: 0.6; */
}
2020-04-08 17:56:24 +02:00
.info-box-actions {
position: absolute;
2021-02-26 13:31:09 +01:00
right: 0;
bottom: 0;
}
2022-12-06 16:11:14 +01:00
/* customize section img box on list of products */
.info-box-img {
height: 105px !important;
width: 88px;
border-top-left-radius: 2px;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
border-bottom-left-radius: 2px;
display: block;
overflow: hidden;
float: left;
text-align: center;
font-size: 2.8em;
line-height: 90px;
margin-right: 5px;
background: var(--colorbacktitle1) !important;
}
.info-box-img > img {
width: 90%;
position: relative;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
2023-11-27 12:08:48 +01:00
<?php if (!getDolGlobalString('MAIN_DISABLE_GLOBAL_BOXSTATS') && getDolGlobalString('MAIN_INCLUDE_GLOBAL_STATS_IN_OPENED_DASHBOARD')) { ?>
.info-box-icon-text{
2021-02-26 13:31:09 +01:00
opacity: 1;
}
<?php } ?>
2022-12-08 11:43:35 +01:00
.info-box-sm .info-box-icon-text, .info-box-sm .info-box-icon-version {
2021-02-26 13:31:09 +01:00
overflow: hidden;
width: 80px;
2019-09-22 11:57:33 +02:00
}
2022-12-08 11:43:35 +01:00
.info-box:hover .info-box-icon-text {
2021-02-26 13:31:09 +01:00
opacity: 1;
2019-09-22 11:57:33 +02:00
}
2019-08-01 12:33:19 +02:00
.info-box-content {
2023-12-19 21:48:22 +01:00
padding-top: 5px;
padding-bottom: 5px;
padding-left: 10px;
padding-right: 5px;
2020-05-27 22:35:55 +02:00
margin-left: 84px;
2019-08-01 12:33:19 +02:00
}
2022-12-08 11:43:35 +01:00
.info-box-sm .info-box-content {
2021-02-26 13:31:09 +01:00
margin-left: 80px;
2023-05-13 22:09:19 +02:00
height: 88px; /* 96 - margins of .info-box-sm .info-box-content */
2019-08-13 15:54:32 +02:00
}
2020-08-03 16:31:52 +02:00
.info-box-sm .info-box-module-enabled {
2021-05-11 22:09:45 +02:00
/* background: linear-gradient(0.35turn, #fff, #fff, #f6faf8, #e4efe8) */
background: var(--infoboxmoduleenabledbgcolor);
2020-08-03 16:31:52 +02:00
}
2020-08-03 17:39:18 +02:00
.info-box-content-warning span.font-status4 {
color: #bc9526 !important;
2020-05-27 22:35:55 +02:00
}
2019-08-01 12:33:19 +02:00
.info-box-number {
display: block;
font-weight: bold;
font-size: 18px;
}
.progress-description,
2019-08-01 17:40:14 +02:00
.info-box-text,
.info-box-title{
2019-08-01 12:33:19 +02:00
display: block;
2019-08-01 15:18:42 +02:00
font-size: 12px;
2019-08-01 12:33:19 +02:00
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
2019-08-01 17:40:14 +02:00
.info-box-title{
2019-08-01 12:33:19 +02:00
text-transform: uppercase;
2019-08-01 17:40:14 +02:00
font-weight: bold;
2020-06-01 12:35:27 +02:00
margin-bottom: 3px; /* not too much space so we can add another lines */
2020-10-31 04:50:26 +01:00
opacity: 0.6;
/* color: var(--colortexttitlenotab); */
2019-08-01 12:33:19 +02:00
}
2019-08-19 09:46:22 +02:00
.info-box-text{
font-size: 0.92em;
}
2024-04-24 01:11:31 +02:00
/* Force values for small screen 480 */
@media only screen and (max-width: 480px)
{
.info-box-text {
2025-02-20 19:12:03 +01:00
font-size: 0.85em;
2024-04-24 01:11:31 +02:00
}
.info-box-line {
line-height: 1.25em;
}
}
2019-08-01 17:40:14 +02:00
.info-box-text:first-letter{text-transform: uppercase}
a.info-box-text{ text-decoration: none;}
2019-08-01 12:33:19 +02:00
.info-box-more {
display: block;
}
.progress-description {
margin: 0;
}
2019-08-02 12:22:26 +02:00
2020-08-03 16:31:52 +02:00
2019-09-03 11:42:47 +02:00
/* ICONS INFO BOX */
2019-08-18 03:42:38 +02:00
<?php
2019-08-18 04:56:48 +02:00
include_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
2019-10-23 20:12:29 +02:00
$prefix = '';
2023-11-27 12:08:48 +01:00
if (getDolGlobalString('THEME_INFOBOX_COLOR_ON_BACKGROUND')) {
2021-02-26 13:31:09 +01:00
$prefix = 'background-';
}
2019-10-23 20:12:29 +02:00
2021-02-26 13:31:09 +01:00
if (!isset($conf->global->THEME_SATURATE_RATIO)) {
2025-01-23 22:13:19 +01:00
$conf->global->THEME_SATURATE_RATIO = 0.8;
2021-02-26 13:31:09 +01:00
}
if (GETPOSTISSET('THEME_SATURATE_RATIO')) {
2025-01-23 22:13:19 +01:00
$conf->global->THEME_SATURATE_RATIO = GETPOSTFLOAT('THEME_SATURATE_RATIO');
2021-02-26 13:31:09 +01:00
}
2020-05-16 14:47:12 +02:00
2019-08-18 03:42:38 +02:00
?>
2019-10-23 20:12:29 +02:00
.info-box-icon {
<?php if ($prefix) { ?>
color: #fff !important;
<?php } ?>
2021-02-26 13:31:09 +01:00
opacity: 0.95;
2025-01-23 22:13:19 +01:00
<?php if (getDolGlobalString('THEME_SATURATE_RATIO')) { ?>
filter: saturate(<?php echo getDolGlobalString('THEME_SATURATE_RATIO'); ?>);
2021-02-26 13:31:09 +01:00
<?php } ?>
2019-10-23 20:12:29 +02:00
}
.nonature-back {
background-color: #EEE;
padding: 2px;
margin: 2px;
border-radius: 3px;
}
.prospect-back {
2024-09-20 02:02:06 +02:00
background-color: #a7c5b0 !important;
color: #FFF !important;
padding: 2px;
margin: 2px;
border-radius: 3px;
}
2020-06-22 04:10:13 +02:00
.customer-back {
2020-09-16 14:37:05 +02:00
background-color: #55955d !important;
2020-06-22 04:10:13 +02:00
color: #FFF !important;
padding: 2px;
margin: 2px;
border-radius: 3px;
}
.vendor-back {
background-color: #599caf !important;
color: #FFF !important;
padding: 2px;
margin: 2px;
border-radius: 3px;
}
.user-back {
background-color: #79633f !important;
color: #FFF !important;
padding: 2px;
margin: 2px;
border-radius: 3px;
}
2022-11-04 00:13:52 +01:00
.member-company-back {
2024-09-04 20:51:20 +02:00
padding: 2px;
margin: 2px;
background-color: #e4e4e4;
color: #666;
2024-09-04 20:51:20 +02:00
border-radius: 3px;
white-space: nowrap;
2022-11-04 00:13:52 +01:00
}
.member-individual-back {
2024-09-04 20:51:20 +02:00
padding: 2px;
margin: 2px;
background-color: #e4e4e4;
color: #666;
2024-09-04 20:51:20 +02:00
border-radius: 3px;
white-space: nowrap;
2022-11-04 00:13:52 +01:00
}
2020-08-07 20:10:31 +02:00
2020-04-20 02:48:05 +02:00
.bg-infobox-project{
2020-05-26 22:30:11 +02:00
<?php echo $prefix; ?>color: #6c6aa8 !important;
2019-08-01 15:18:42 +02:00
}
2020-04-20 02:48:05 +02:00
.bg-infobox-action{
2020-08-17 20:55:02 +02:00
<?php echo $prefix; ?>color: #b06080 !important;
2019-08-01 12:33:19 +02:00
}
2020-06-22 04:10:13 +02:00
.bg-infobox-propal, .bg-infobox-facture, .bg-infobox-commande {
2021-02-27 17:15:40 +01:00
<?php echo $prefix; ?>color: #65953d !important;
2019-08-01 15:18:42 +02:00
}
2020-06-22 04:10:13 +02:00
.bg-infobox-supplier_proposal, .bg-infobox-invoice_supplier, .bg-infobox-order_supplier {
2020-05-26 22:30:11 +02:00
<?php echo $prefix; ?>color: #599caf !important;
2019-08-01 15:18:42 +02:00
}
2020-04-20 02:48:05 +02:00
.bg-infobox-contrat, .bg-infobox-ticket{
2020-09-15 14:45:51 +02:00
<?php echo $prefix; ?>color: #3bbfa8 !important;
2019-08-01 15:18:42 +02:00
}
2020-04-20 02:48:05 +02:00
.bg-infobox-bank_account{
2020-08-17 17:37:44 +02:00
<?php echo $prefix; ?>color: #b0bb39 !important;
2019-08-01 15:18:42 +02:00
}
2020-05-23 14:38:37 +02:00
.bg-infobox-adherent, .bg-infobox-member {
2020-05-26 22:30:11 +02:00
<?php echo $prefix; ?>color: #79633f !important;
2019-08-01 15:18:42 +02:00
}
2020-04-20 02:48:05 +02:00
.bg-infobox-expensereport{
2020-05-26 22:30:11 +02:00
<?php echo $prefix; ?>color: #79633f !important;
2019-08-01 15:18:42 +02:00
}
2020-04-20 02:48:05 +02:00
.bg-infobox-holiday{
2020-05-26 22:30:11 +02:00
<?php echo $prefix; ?>color: #755114 !important;
}
2024-06-19 02:09:59 +02:00
/* Disable colors on left vmenu */
2024-06-19 02:58:06 +02:00
a.vmenu span, span.vmenu, span.vmenu span {
2024-06-20 13:43:55 +02:00
/* To force no color on picto in left menu */
/* color: var(--colortextbackvmenu) !important; */
2024-06-19 02:09:59 +02:00
}
2020-05-26 22:30:11 +02:00
.infobox-adherent, .infobox-member {
color: #79633f;
2020-05-26 22:30:11 +02:00
}
.infobox-project{
color: #6c6aa8;
2020-05-26 22:30:11 +02:00
}
.infobox-action{
color: #b06080;
2020-05-26 22:30:11 +02:00
}
2021-02-27 17:15:40 +01:00
/* Color for customer object */
2022-09-23 09:21:19 +02:00
.infobox-propal:not(.error),
.infobox-facture:not(.error),
.infobox-commande:not(.error) {
color: #65953d;
2020-05-26 22:30:11 +02:00
}
2021-02-27 17:15:40 +01:00
/* Color for vendor object */
2022-09-23 09:21:19 +02:00
.infobox-supplier_proposal:not(.error),
.infobox-invoice_supplier:not(.error),
.infobox-order_supplier:not(.error) {
color: #599caf;
2020-05-26 22:30:11 +02:00
}
.infobox-contrat, .infobox-ticket{
color: #3bbfa8;
2020-05-26 22:30:11 +02:00
}
.infobox-bank_account{
color: #b0bb39;
2020-05-26 22:30:11 +02:00
}
.infobox-adherent, .infobox-member {
color: #79633f;
2020-05-26 22:30:11 +02:00
}
.infobox-expensereport{
color: #79633f;
2020-05-26 22:30:11 +02:00
}
.infobox-holiday{
color: #755114;
2019-08-01 15:18:42 +02:00
}
2019-08-01 12:33:19 +02:00
.fa-dol-action:before {
content: "\f073";
}
2019-08-01 15:18:42 +02:00
.fa-dol-propal:before,
.fa-dol-supplier_proposal:before {
2020-04-20 02:48:05 +02:00
content: "\f573";
2019-08-01 15:18:42 +02:00
}
.fa-dol-facture:before,
.fa-dol-invoice_supplier:before {
content: "\f571";
2019-08-01 12:33:19 +02:00
}
.fa-dol-project:before {
2021-03-20 20:02:58 +01:00
content: "\f542";
2019-08-01 12:33:19 +02:00
}
2019-08-01 15:18:42 +02:00
.fa-dol-commande:before,
.fa-dol-order_supplier:before {
content: "\f570";
}
.fa-dol-contrat:before {
2021-03-20 20:02:58 +01:00
content: "\f0f2";
2019-08-01 15:18:42 +02:00
}
2020-04-12 16:36:25 +02:00
.fa-dol-ticket:before {
content: "\f3ff";
}
2019-08-01 15:18:42 +02:00
.fa-dol-bank_account:before {
content: "\f19c";
}
2020-05-22 00:50:13 +02:00
.fa-dol-member:before {
2021-03-20 20:02:58 +01:00
content: "\f007";
2019-08-01 15:18:42 +02:00
}
.fa-dol-expensereport:before {
content: "\f555";
}
.fa-dol-holiday:before {
content: "\f5ca";
}
2019-08-01 12:33:19 +02:00
2019-08-02 12:22:26 +02:00
/* USING FONTAWESOME FOR WEATHER */
.info-box-weather .info-box-icon{
2022-12-27 13:18:38 +01:00
background: var(--colorbacktitle1) !important;
2019-08-02 12:22:26 +02:00
}
.fa-weather-level0:before{
content: "\f185";
2020-09-15 12:07:15 +02:00
color : #cfbf00;
2019-08-02 12:22:26 +02:00
}
.fa-weather-level1:before{
content: "\f6c4";
2020-09-15 12:07:15 +02:00
color : #bc9526;
2019-08-02 12:22:26 +02:00
}
.fa-weather-level2:before{
2020-09-15 12:07:15 +02:00
content: "\f743";
color : #b16000;
2019-08-02 12:22:26 +02:00
}
.fa-weather-level3:before{
content: "\f740";
2020-09-15 12:07:15 +02:00
color : #b04000;
2019-08-02 12:22:26 +02:00
}
.fa-weather-level4:before{
content: "\f0e7";
2020-09-15 12:07:15 +02:00
color : #b01000;
2019-08-02 12:22:26 +02:00
}
2019-08-01 12:33:19 +02:00
.box-flex-container{
display: flex; /* or inline-flex */
flex-direction: row;
flex-wrap: wrap;
2020-05-21 13:06:36 +02:00
width: calc(100% + 14px);
margin: 0 -8px 0 -8px;
2019-08-01 12:33:19 +02:00
/*justify-content: space-between;*/
}
.box-flex-container-columns {
display: flex; /* or inline-flex */
flex-direction: row;
flex-wrap: nowrap;
justify-content: space-between;
}
.box-flex-container-column {
flex-grow: 1;
}
.box-flex-container-column:not(:last-of-type) {
border-right: 1px solid #AAA;
}
.box-flex-container-column.kanban {
flex: 1;
}
.kanban.kanbancollapsed {
flex: unset;
width: 80px;
}
.kanban.kanbancollapsed .kanbanlabel, .text-vertical {
writing-mode: vertical-rl;
}
2019-08-01 12:33:19 +02:00
2023-11-06 00:35:32 +01:00
.box-flex-grow-zero {
flex-grow: 0 !important;
}
2023-11-06 00:35:32 +01:00
.box-flex-item {
2019-08-01 17:40:14 +02:00
flex-grow : 1;
2019-08-01 12:33:19 +02:00
flex-shrink: 1;
flex-basis: auto;
2024-04-01 15:04:20 +02:00
width: 290px;
2019-08-01 12:33:19 +02:00
}
2023-11-06 00:35:32 +01:00
.box-flex-item.filler {
2019-08-01 17:40:14 +02:00
height: 0;
}
.box-flex-item, .kanbanlabel {
2024-05-29 20:10:11 +02:00
margin-top: 5px;
margin-<?php echo $right; ?>: 20px;
margin-bottom: 0px;
margin-<?php echo $left; ?>: 10px;
2023-11-06 00:35:32 +01:00
}
.kanbanlabel {
background: var(--colorbacktitle1);
padding: 5px;
margin-bottom: 10px;
border-radius: 5px;
}
2024-05-29 22:19:52 +02:00
.kanban .box-flex-item {
2024-10-27 02:14:11 +01:00
line-height: 1.4em;
}
.kanban .box-flex-item-5lines {
2024-10-26 21:13:43 +02:00
line-height: 1.2em;
2024-05-29 22:19:52 +02:00
}
2024-05-29 20:10:11 +02:00
2024-06-20 17:16:53 +02:00
/* css for small kanban */
.box-flex-item-small {
width: 200px !important;
}
.box-flex-item-small .info-box-sm .info-box-content {
margin-left: 0;
}
.box-flex-item-small .info-box-icon.bg-infobox-action {
display: none;
}
2020-07-24 13:44:32 +02:00
.info-box-title {
width: calc(100% - 20px);
}
2020-03-27 01:59:17 +01:00
.info-box-module {
min-width: 350px;
2021-02-26 13:31:09 +01:00
max-width: 350px;
2020-03-27 01:59:17 +01:00
}
2023-01-13 14:13:52 +01:00
.fright {
float:right;
}
2020-07-24 13:44:32 +02:00
@media only screen and (max-width: 1740px) {
.info-box-module {
2021-02-26 13:31:09 +01:00
min-width: 315px;
max-width: 315px;
2020-07-24 13:44:32 +02:00
}
2020-06-15 16:08:48 +02:00
}
2024-04-03 12:25:06 +02:00
@media only screen and (max-width: 768px) {
2020-06-15 16:08:48 +02:00
.info-box-module {
min-width: 260px;
}
2024-04-03 12:25:06 +02:00
.box-flex-item {
width: 280px;
}
}
2024-06-15 18:55:17 +02:00
@media only screen and (max-width: 570px)
{
.box-flex-item {
margin: 3px 8px 3px 8px !important;
}
}
2024-04-03 12:25:06 +02:00
@media only screen and (max-width: 480px) {
.info-box-module {
min-width: 250px;
}
.box-flex-item {
width: 250px;
}
2020-06-15 16:08:48 +02:00
}
2024-04-03 12:25:06 +02:00
2020-03-27 01:59:17 +01:00
.info-box-module .info-box-content {
2020-08-14 21:11:55 +02:00
height: 98px;
2020-03-27 01:59:17 +01:00
}
2019-08-18 07:05:49 +02:00
/* Disabled. This break the responsive on smartphone
2019-08-06 11:27:36 +02:00
.box{
overflow: visible;
}
2019-08-18 07:05:49 +02:00
*/
2020-02-02 18:10:28 +01:00
2024-04-24 01:11:31 +02:00
@media only screen and (max-width: 768px)
2020-02-02 18:10:28 +01:00
{
.box-flex-container {
2021-02-26 13:31:09 +01:00
margin: 0 0 0 0px !important;
width: 100% !important;
2024-06-15 18:55:17 +02:00
/* justify-content: space-between; */
2020-02-02 18:10:28 +01:00
}
2020-03-27 01:59:17 +01:00
.info-box-module {
2020-04-08 17:56:24 +02:00
width: 100%;
max-width: unset;
2020-03-27 01:59:17 +01:00
}
2022-01-06 18:16:02 +01:00
.info-box-sm .info-box-icon-text, .info-box-sm .info-box-icon-version {
width: 60px;
}
.info-box-sm .info-box-icon {
width: 60px;
}
.info-box-sm .info-box-content {
margin-left: 60px;
}
2020-10-27 12:49:14 +01:00
.info-box {
border: 1px solid #e0e0e0;
}
2023-12-19 21:48:22 +01:00
.info-box-content {
padding-top: 5px;
padding-bottom: 5px;
padding-left: 10px;
padding-right: 2px;
}
2025-02-20 19:12:03 +01:00
/*
2023-12-19 21:48:22 +01:00
.info-box-line-text {
2024-04-24 01:11:31 +02:00
width: calc(100% - 98px);
max-width: calc(100% - 88px);
2023-12-19 21:48:22 +01:00
}
2025-02-20 19:12:03 +01:00
*/
2020-10-27 12:49:14 +01:00
}