| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451 |
- <?php
- if (!defined('ISLOADEDBYSTEELSHEET')) die('Must be call by steelsheet'); ?>
- /* <style type="text/css" > */
- /*
- * Component: Info Box
- * -------------------
- */
- .info-box-module-external span.info-box-icon-version {
- background: #bbb;
- }
- .info-box {
- display: block;
- position: relative;
- min-height: 90px;
- /* background: #fff; */
- width: 100%;
- box-shadow: 1px 1px 15px rgba(192, 192, 192, 0.2);
- border-radius: 2px;
- border: 1px solid #e9e9e9;
- margin-bottom: 15px;
- }
- .info-box.info-box-sm {
- min-height: 80px;
- margin-bottom: 10px;
- /* background: #fff; */
- }
- .opened-dash-board-wrap .info-box.info-box-sm {
- border-radius: 0 0 0 20px;
- }
- .info-box-more {
- float: right;
- top: 5px;
- position: absolute;
- right: 8px;
- }
- .info-box small {
- font-size: 14px;
- }
- .info-box .progress {
- 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;
- }
- .info-box .progress .progress-bar {
- 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;
- }
- .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;
- overflow: hidden;
- float: left;
- height: 90px;
- width: 90px;
- text-align: center;
- font-size: 45px;
- line-height: 90px;
- background: rgba(0, 0, 0, 0.08) !important;
- }
- .info-box-module .info-box-icon {
- padding-top: 5px;
- padding-bottom: 5px;
- }
- .info-box-sm .info-box-icon {
- height: 80px;
- width: 78px;
- font-size: 25px;
- line-height: 92px;
- }
- .opened-dash-board-wrap .info-box-sm .info-box-icon {
- border-radius: 0 0 0 20px;
- }
- .opened-dash-board-wrap .info-box-sm .info-box-icon {
- line-height: 80px;
- }
- .info-box-module .info-box-icon {
- height: 98px;
- }
- .info-box-icon > img {
- max-width: 100%;
- }
- .info-box-module .info-box-icon > img {
- max-width: 60%;
- }
- a.info-box-text.info-box-text-a {
- display: table-cell;
- }
- a.info-box-text-a i.fa.fa-exclamation-triangle {
- font-size: 0.9em;
- }
- .info-box-icon-text{
- 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;
- }
- .info-box-icon-version {
- 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: 22px;
- padding: 0px 3px;
- text-align: center;
- opacity: 1;
- -webkit-transition: opacity 0.5s, visibility 0s 0.5s;
- transition: opacity 0.5s, visibility 0s 0.5s;
- }
- .box-flex-item.info-box-module.info-box-module-disabled {
- /* opacity: 0.6; */
- }
- .info-box-actions {
- position: absolute;
- right: 0;
- bottom: 0;
- }
- <?php if (empty($conf->global->MAIN_DISABLE_GLOBAL_BOXSTATS) && !empty($conf->global->MAIN_INCLUDE_GLOBAL_STATS_IN_OPENED_DASHBOARD)) { ?>
- .info-box-icon-text{
- opacity: 1;
- }
- <?php } ?>
- .info-box-sm .info-box-icon-text, .info-box-sm .info-box-icon-version{
- overflow: hidden;
- width: 80px;
- }
- .info-box:hover .info-box-icon-text{
- opacity: 1;
- }
- .info-box-content {
- padding: 5px 10px;
- margin-left: 84px;
- }
- .info-box-sm .info-box-content{
- margin-left: 80px;
- }
- .info-box-sm .info-box-module-enabled {
- /* background: linear-gradient(0.35turn, #fff, #fff, #f6faf8, #e4efe8) */
- background: var(--infoboxmoduleenabledbgcolor);
- }
- .info-box-content-warning span.font-status4 {
- color: #bc9526 !important;
- }
- /*.info-box-sm .info-box-content-warning {
- background: #ffd7a3;
- }*/
- /*.info-box-icon.info-box-icon-module-enabled {
- background: #e4f0e4 !important;
- }*/
- .info-box-number {
- display: block;
- font-weight: bold;
- font-size: 18px;
- }
- .progress-description,
- .info-box-text,
- .info-box-title{
- display: block;
- font-size: 12px;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- .info-box-title{
- text-transform: uppercase;
- font-weight: bold;
- margin-bottom: 3px; /* not too much space so we can add another lines */
- opacity: 0.6;
- /* color: var(--colortexttitlenotab); */
- }
- .info-box-text{
- font-size: 0.92em;
- }
- .info-box-text:first-letter{text-transform: uppercase}
- a.info-box-text{ text-decoration: none;}
- .info-box-more {
- display: block;
- }
- .progress-description {
- margin: 0;
- }
- /* ICONS INFO BOX */
- <?php
- include_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
- $prefix = 'background-';
- if (!empty($conf->global->THEME_INFOBOX_COLOR_ON_BACKGROUND)) $prefix = 'background-';
- if (!isset($conf->global->THEME_SATURATE_RATIO)) $conf->global->THEME_SATURATE_RATIO = 0.7;
- if (GETPOSTISSET('THEME_SATURATE_RATIO')) $conf->global->THEME_SATURATE_RATIO = GETPOST('THEME_SATURATE_RATIO', 'int');
- ?>
- .info-box-icon {
- <?php if ($prefix) { ?>
- color: #fff !important;
- <?php } ?>
- opacity: 0.95;
- <?php if (isset($conf->global->THEME_SATURATE_RATIO)) { ?>
- filter: saturate(<?php echo $conf->global->THEME_SATURATE_RATIO; ?>);
- <?php } ?>
- }
- .customer-back, .vendor-back, .user-back {
- display: inline-block;
- width: 20px;
- height: 20px;
- line-height: 20px;
- font-size: 12px;
- border-radius: 50%;
- font-weight: bold;
- margin-right: 0.25rem;
- }
- .customer-back:only-child, .vendor-back:only-child, .user-back:only-child, .customer-back:last-child {
- margin-right: 0;
- }
- .customer-back {
- background: #727cf5 !important;
- color: #FFF !important;
- }
- .vendor-back {
- background: #FF8A65 !important;
- color: #FFF !important;
- }
- .user-back {
- background: #79633f !important;
- color: #FFF !important;
- }
- /* INFO-BOXES COLORS */
- .infobox-general .widget-icon {background-color: #727cf5!important;}
- .infobox-general a, .infobox-general {color: #727cf5 !important;}
- .infobox-project .widget-icon {background-color: #a29bfe !important;}
- .infobox-project a {color: #a29bfe !important;}
- .infobox-action .widget-icon {background-color: #ff7675 !important;}
- .infobox-action a {color: #ff7675 !important;}
- .infobox-propal .widget-icon, .infobox-facture .widget-icon, .infobox-commande .widget-icon {background-color: #74b9ff !important;}
- .infobox-propal a, .infobox-facture a, .infobox-commande a {color: #74b9ff !important;}
- .infobox-supplier_proposal .widget-icon, .infobox-invoice_supplier .widget-icon, .infobox-order_supplier .widget-icon {background-color: #599caf !important;}
- .infobox-supplier_proposal a, .infobox-invoice_supplier a, .infobox-order_supplier a {color: #599caf !important;}
- .infobox-contrat .widget-icon, .infobox-ticket .widget-icon{background-color: #3bbfa8 !important;}
- .infobox-contrat a, .infobox-ticket a{color: #3bbfa8 !important;}
- .infobox-bank_account .widget-icon{background-color: #e17055 !important;}
- .infobox-bank_account a{color: #e17055 !important;}
- .infobox-adherent .widget-icon, .infobox-member .widget-icon{background-color: #00cec9 !important;}
- .infobox-adherent a, .infobox-member a{color: #00cec9 !important;}
- .infobox-expensereport .widget-icon{background-color: #00cec9 !important;}
- .infobox-expensereport a{color: #00cec9 !important;}
- .infobox-holiday .widget-icon {background-color: #fdcb6e !important;}
- .infobox-holiday a {color: #fdcb6e !important;}
- .card.widget-flat div[class*="infobox-"] a:hover {
- filter: brightness(1.1);
- }
- /* INFO-BOXES ICONS */
- .fa-dol-action:before {
- content: "\f073";
- }
- .fa-dol-propal:before,
- .fa-dol-supplier_proposal:before {
- content: "\f573";
- }
- .fa-dol-facture:before,
- .fa-dol-invoice_supplier:before {
- content: "\f571";
- }
- .fa-dol-project:before {
- content: "\f0e8";
- }
- .fa-dol-commande:before,
- .fa-dol-order_supplier:before {
- content: "\f570";
- }
- .fa-dol-contrat:before {
- content: "\f1e6";
- }
- .fa-dol-ticket:before {
- content: "\f3ff";
- }
- .fa-dol-bank_account:before {
- content: "\f19c";
- }
- .fa-dol-member:before {
- content: "\f0c0";
- }
- .fa-dol-expensereport:before {
- content: "\f555";
- }
- .fa-dol-holiday:before {
- content: "\f5ca";
- }
- /* USING FONTAWESOME FOR WEATHER */
- .fa-weather-level0:before{
- content: "\f185";
- }
- .fa-weather-level1:before{
- content: "\f6c4";
- }
- .fa-weather-level2:before{
- content: "\f743";
- }
- .fa-weather-level3:before{
- content: "\f740";
- }
- .fa-weather-level4:before{
- content: "\f0e7";
- }
- .box-flex-container{
- display: flex; /* or inline-flex */
- flex-direction: row;
- flex-wrap: wrap;
- width: calc(100% + 14px);
- margin: 0 -8px 0 -8px;
- /*justify-content: space-between;*/
- }
- .box-flex-item{
- flex-grow : 1;
- flex-shrink: 1;
- flex-basis: auto;
- width: 280px;
- margin: 5px 8px 0px 8px;
- }
- .box-flex-item.filler{
- margin: 0px 0px 0px 15px !important;
- height: 0;
- }
- .info-box-title {
- width: calc(100% - 20px);
- }
- .info-box-module {
- min-width: 350px;
- max-width: 350px;
- }
- @media only screen and (max-width: 1740px) {
- .info-box-module {
- min-width: 315px;
- max-width: 315px;
- }
- }
- @media only screen and (max-width: 767px) {
- .info-box-module {
- min-width: 260px;
- }
- }
- .info-box-module .info-box-content {
- height: 98px;
- }
- /* Disabled. This break the responsive on smartphone
- .box{
- overflow: visible;
- }
- */
- @media only screen and (max-width: 767px)
- {
- .box-flex-container {
- margin: 0 0 0 0px !important;
- width: 100% !important;
- }
- .info-box-module {
- width: 100%;
- max-width: unset;
- }
- .info-box-sm .info-box-icon {
- width: 60px;
- }
- .info-box-sm .info-box-content {
- margin-left: 60px;
- }
- .info-box {
- border: 1px solid #e0e0e0;
- }
- }
- }
|