/htdocs/theme/eldy/style.css.php
PHP | 2599 lines | 1899 code | 318 blank | 382 comment | 97 complexity | 8dab6f0c78549ce6dabea381d79a8e23 MD5 | raw file
Possible License(s): LGPL-3.0, LGPL-2.1, GPL-3.0, MIT
Large files files are truncated, but you can click here to view the full file
- <?php
- /* Copyright (C) 2004-2012 Laurent Destailleur <eldy@users.sourceforge.net>
- * Copyright (C) 2006 Rodolphe Quiedeville <rodolphe@quiedeville.org>
- * Copyright (C) 2007-2012 Regis Houssin <regis.houssin@capnetworks.com>
- * Copyright (C) 2011 Philippe Grand <philippe.grand@atoo-net.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
- /**
- * \file htdocs/theme/eldy/style.css.php
- * \brief File for CSS style sheet Eldy
- */
- //if (! defined('NOREQUIREUSER')) define('NOREQUIREUSER','1'); // Not disabled because need to load personalized language
- //if (! defined('NOREQUIREDB')) define('NOREQUIREDB','1'); // Not disabled to increase speed. Language code is found on url.
- if (!defined('NOREQUIRESOC'))
- define('NOREQUIRESOC', '1');
- //if (! defined('NOREQUIRETRAN')) define('NOREQUIRETRAN','1'); // Not disabled because need to do translations
- if (!defined('NOCSRFCHECK'))
- define('NOCSRFCHECK', 1);
- if (!defined('NOTOKENRENEWAL'))
- define('NOTOKENRENEWAL', 1);
- //if (!defined('NOLOGIN'))
- //define('NOLOGIN', 1); // File must be accessed by logon page so without login
- if (!defined('NOREQUIREMENU'))
- define('NOREQUIREMENU', 1);
- if (!defined('NOREQUIREHTML'))
- define('NOREQUIREHTML', 1);
- if (!defined('NOREQUIREAJAX'))
- define('NOREQUIREAJAX', '1');
- session_cache_limiter(FALSE);
- require_once '../../main.inc.php';
- // Load user to have $user->conf loaded (not done into main because of NOLOGIN constant defined)
- //if (empty($user->id) && ! empty($_SESSION['dol_login'])) $user->fetch('',$_SESSION['dol_login']);
- // Define css type
- header('Content-type: text/css');
- // Important: Following code is to avoid page request by browser and PHP CPU at
- // each Dolibarr page access.
- if (empty($dolibarr_nocache))
- header('Cache-Control: max-age=3600, public, must-revalidate');
- else
- header('Cache-Control: no-cache');
- // On the fly GZIP compression for all pages (if browser support it). Must set the bit 3 of constant to 1.
- if (isset($conf->global->MAIN_OPTIMIZE_SPEED) && ($conf->global->MAIN_OPTIMIZE_SPEED & 0x04)) {
- ob_start("ob_gzhandler");
- }
- if (GETPOST('lang'))
- $langs->setDefaultLang(GETPOST('lang')); // If language was forced on URL
- if (GETPOST('theme'))
- $conf->theme = GETPOST('theme'); // If theme was forced on URL
- $langs->load("main", 0, 1);
- $right = ($langs->trans("DIRECTION") == 'rtl' ? 'left' : 'right');
- $left = ($langs->trans("DIRECTION") == 'rtl' ? 'right' : 'left');
- $path = ''; // This value may be used in future for external module to overwrite theme
- // Define image path files
- $fontlist = 'arial,tahoma,verdana,helvetica'; //$fontlist='Verdana,Helvetica,Arial,sans-serif';
- $img_head = dol_buildpath($path . '/theme/eldy/img/headbg2.jpg', 1);
- $img_button = dol_buildpath($path . '/theme/eldy/img/button_bg.png', 1);
- // Define reference colors
- // Example: Light grey: $colred=235;$colgreen=235;$colblue=235;
- // Example: Pink: $colred=230;$colgreen=210;$colblue=230;
- // Example: Green: $colred=210;$colgreen=230;$colblue=210;
- // Example: Ocean: $colred=220;$colgreen=220;$colblue=240;
- //$conf->global->THEME_ELDY_ENABLE_PERSONALIZED=0;
- //$user->conf->THEME_ELDY_ENABLE_PERSONALIZED=0;
- //var_dump($user->conf->THEME_ELDY_RGB);
- $colred = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (empty($conf->global->THEME_ELDY_RGB) ? 235 : hexdec(substr($conf->global->THEME_ELDY_RGB, 0, 2))) : (empty($user->conf->THEME_ELDY_RGB) ? 235 : hexdec(substr($user->conf->THEME_ELDY_RGB, 0, 2)));
- $colgreen = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (empty($conf->global->THEME_ELDY_RGB) ? 235 : hexdec(substr($conf->global->THEME_ELDY_RGB, 2, 2))) : (empty($user->conf->THEME_ELDY_RGB) ? 235 : hexdec(substr($user->conf->THEME_ELDY_RGB, 2, 2)));
- $colblue = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (empty($conf->global->THEME_ELDY_RGB) ? 235 : hexdec(substr($conf->global->THEME_ELDY_RGB, 4, 2))) : (empty($user->conf->THEME_ELDY_RGB) ? 235 : hexdec(substr($user->conf->THEME_ELDY_RGB, 4, 2)));
- // Colors
- $isred = max(0, (2 * $colred - $colgreen - $colblue) / 2); // 0 - 255
- $isgreen = max(0, (2 * $colgreen - $colred - $colblue) / 2); // 0 - 255
- $isblue = max(0, (2 * $colblue - $colred - $colgreen) / 2); // 0 - 255
- $colorback1 = ($colred - 3) . ',' . ($colgreen - 3) . ',' . ($colblue - 3); // topmenu
- $colorback2 = ($colred + 5) . ',' . ($colgreen + 5) . ',' . ($colblue + 5);
- $colorbacktab1 = ($colred + 15) . ',' . ($colgreen + 16) . ',' . ($colblue + 17); // vmenu
- $colorbacktab1b = ($colred + 5) . ',' . ($colgreen + 6) . ',' . ($colblue + 7); // vmenu (not menu)
- $colorbacktab2 = ($colred - 15) . ',' . ($colgreen - 15) . ',' . ($colblue - 15);
- $colorbacktitle1 = ($colred - 5) . ',' . ($colgreen - 5) . ',' . ($colblue - 5); // title of array
- $colorbacktitle2 = ($colred - 15) . ',' . ($colgreen - 15) . ',' . ($colblue - 15);
- $colorbacktabcard1 = ($colred + 15) . ',' . ($colgreen + 16) . ',' . ($colblue + 17); // card
- $colorbacktabcard2 = ($colred - 15) . ',' . ($colgreen - 15) . ',' . ($colblue - 15);
- $colorbacktabactive = ($colred - 15) . ',' . ($colgreen - 15) . ',' . ($colblue - 15);
- $colorbacklineimpair1 = (244 + round($isred / 3)) . ',' . (244 + round($isgreen / 3)) . ',' . (244 + round($isblue / 3)); // line impair
- $colorbacklineimpair2 = (250 + round($isred / 3)) . ',' . (250 + round($isgreen / 3)) . ',' . (250 + round($isblue / 3)); // line impair
- $colorbacklineimpairhover = (230 + round(($isred + $isgreen + $isblue) / 9)) . ',' . (230 + round(($isred + $isgreen + $isblue) / 9)) . ',' . (230 + round(($isred + $isgreen + $isblue) / 9)); // line impair
- $colorbacklinepair1 = '255,255,255'; // line pair
- $colorbacklinepair2 = '255,255,255'; // line pair
- $colorbacklinepairhover = (230 + round(($isred + $isgreen + $isblue) / 9)) . ',' . (230 + round(($isred + $isgreen + $isblue) / 9)) . ',' . (230 + round(($isred + $isgreen + $isblue) / 9));
- $colorbackbody = '#ffffff url(' . $img_head . ') 0 0 no-repeat;';
- $colortext = '40,40,40';
- $fontsize = empty($conf->browser->phone) ? '12' : '14';
- $fontsizesmaller = empty($conf->browser->phone) ? '11' : '14';
- // Eldy colors
- if (empty($conf->global->THEME_ELDY_ENABLE_PERSONALIZED)) {
- $conf->global->THEME_ELDY_TOPMENU_BACK1 = '180,196,216'; // topmenu
- $conf->global->THEME_ELDY_TOPMENU_BACK2 = '190,206,226';
- $conf->global->THEME_ELDY_VERMENU_BACK1 = '246,248,250'; // vmenu
- $conf->global->THEME_ELDY_VERMENU_BACK1b = '226,228,230'; // vmenu (not menu)
- $conf->global->THEME_ELDY_VERMENU_BACK2 = '220,224,227';
- $conf->global->THEME_ELDY_BACKTITLE1 = '140,160,185'; // title of arrays
- $conf->global->THEME_ELDY_BACKTITLE2 = '210,220,235';
- $conf->global->THEME_ELDY_BACKTABCARD1 = '231,232,235'; // card
- $conf->global->THEME_ELDY_BACKTABCARD2 = '220,224,227';
- $conf->global->THEME_ELDY_BACKTABACTIVE = '220,224,227';
- $conf->global->THEME_ELDY_BACKBODY = '#ffffff url(' . $img_head . ') 0 0 no-repeat;';
- $conf->global->THEME_ELDY_LINEIMPAIR1 = '242,242,242';
- $conf->global->THEME_ELDY_LINEIMPAIR2 = '248,248,248';
- $conf->global->THEME_ELDY_LINEIMPAIRHOVER = '238,246,252';
- $conf->global->THEME_ELDY_LINEPAIR1 = '255,255,255';
- $conf->global->THEME_ELDY_LINEPAIR2 = '255,255,255';
- $conf->global->THEME_ELDY_LINEPAIRHOVER = '238,246,252';
- $conf->global->THEME_ELDY_BACKBODY = '#ffffff url(' . $img_head . ') 0 0 no-repeat;';
- $conf->global->THEME_ELDY_TEXT = '48,102,102';
- }
- $colorback1 = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (empty($conf->global->THEME_ELDY_TOPMENU_BACK1) ? $colorback1 : $conf->global->THEME_ELDY_TOPMENU_BACK1) : (empty($user->conf->THEME_ELDY_TOPMENU_BACK1) ? $colorback1 : $user->conf->THEME_ELDY_TOPMENU_BACK1);
- $colorback2 = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (empty($conf->global->THEME_ELDY_TOPMENU_BACK2) ? $colorback2 : $conf->global->THEME_ELDY_TOPMENU_BACK2) : (empty($user->conf->THEME_ELDY_TOPMENU_BACK2) ? $colorback2 : $user->conf->THEME_ELDY_TOPMENU_BACK2);
- $colorbacktab1 = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (empty($conf->global->THEME_ELDY_VERMENU_BACK1) ? $colorbacktab1 : $conf->global->THEME_ELDY_VERMENU_BACK1) : (empty($user->conf->THEME_ELDY_VERMENU_BACK1) ? $colorbacktab1 : $user->conf->THEME_ELDY_VERMENU_BACK1);
- $colorbacktab1b = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (empty($conf->global->THEME_ELDY_VERMENU_BACK1b) ? $colorbacktab1 : $conf->global->THEME_ELDY_VERMENU_BACK1b) : (empty($user->conf->THEME_ELDY_VERMENU_BACK1b) ? $colorbacktab1b : $user->conf->THEME_ELDY_VERMENU_BACK1b);
- $colorbacktab2 = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (empty($conf->global->THEME_ELDY_VERMENU_BACK2) ? $colorbacktab2 : $conf->global->THEME_ELDY_VERMENU_BACK2) : (empty($user->conf->THEME_ELDY_VERMENU_BACK2) ? $colorbacktab2 : $user->conf->THEME_ELDY_VERMENU_BACK2);
- $colorbacktitle1 = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (empty($conf->global->THEME_ELDY_BACKTITLE1) ? $colorbacktitle1 : $conf->global->THEME_ELDY_BACKTITLE1) : (empty($user->conf->THEME_ELDY_BACKTITLE1) ? $colorbacktitle1 : $user->conf->THEME_ELDY_BACKTITLE1);
- $colorbacktitle2 = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (empty($conf->global->THEME_ELDY_BACKTITLE2) ? $colorbacktitle2 : $conf->global->THEME_ELDY_BACKTITLE2) : (empty($user->conf->THEME_ELDY_BACKTITLE2) ? $colorbacktitle2 : $user->conf->THEME_ELDY_BACKTITLE2);
- $colorbacktabcard1 = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (empty($conf->global->THEME_ELDY_BACKTABCARD1) ? $colorbacktabcard1 : $conf->global->THEME_ELDY_BACKTABCARD1) : (empty($user->conf->THEME_ELDY_BACKTABCARD1) ? $colorbacktabcard1 : $user->conf->THEME_ELDY_BACKTABCARD1);
- $colorbacktabcard2 = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (empty($conf->global->THEME_ELDY_BACKTABCARD2) ? $colorbacktabcard2 : $conf->global->THEME_ELDY_BACKTABCARD2) : (empty($user->conf->THEME_ELDY_BACKTABCARD2) ? $colorbacktabcard2 : $user->conf->THEME_ELDY_BACKTABCARD2);
- $colorbacktabactive = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (empty($conf->global->THEME_ELDY_BACKTABACTIVE) ? $colorbacktabactive : $conf->global->THEME_ELDY_BACKTABACTIVE) : (empty($user->conf->THEME_ELDY_BACKTABACTIVE) ? $colorbacktabactive : $user->conf->THEME_ELDY_BACKTABACTIVE);
- $colorbacklineimpair1 = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (empty($conf->global->THEME_ELDY_LINEIMPAIR1) ? $colorbacklineimpair1 : $conf->global->THEME_ELDY_LINEIMPAIR1) : (empty($user->conf->THEME_ELDY_LINEIMPAIR1) ? $colorbacklineimpair1 : $user->conf->THEME_ELDY_LINEIMPAIR1);
- $colorbacklineimpair2 = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (empty($conf->global->THEME_ELDY_LINEIMPAIR2) ? $colorbacklineimpair2 : $conf->global->THEME_ELDY_LINEIMPAIR2) : (empty($user->conf->THEME_ELDY_LINEIMPAIR2) ? $colorbacklineimpair2 : $user->conf->THEME_ELDY_LINEIMPAIR2);
- $colorbacklineimpairhover = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (empty($conf->global->THEME_ELDY_LINEIMPAIRHOVER) ? $colorbacklineimpairhover : $conf->global->THEME_ELDY_LINEIMPAIRHOVER) : (empty($user->conf->THEME_ELDY_LINEIMPAIRHOVER) ? $colorbacklineimpairhover : $user->conf->THEME_ELDY_LINEIMPAIRHOVER);
- $colorbacklinepair1 = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (empty($conf->global->THEME_ELDY_LINEPAIR1) ? $colorbacklinepair1 : $conf->global->THEME_ELDY_LINEPAIR1) : (empty($user->conf->THEME_ELDY_LINEPAIR1) ? $colorbacklinepair1 : $user->conf->THEME_ELDY_LINEPAIR1);
- $colorbacklinepair2 = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (empty($conf->global->THEME_ELDY_LINEPAIR2) ? $colorbacklinepair2 : $conf->global->THEME_ELDY_LINEPAIR2) : (empty($user->conf->THEME_ELDY_LINEPAIR2) ? $colorbacklinepair2 : $user->conf->THEME_ELDY_LINEPAIR2);
- $colorbacklinepairhover = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (empty($conf->global->THEME_ELDY_LINEPAIRHOVER) ? $colorbacklinepairhover : $conf->global->THEME_ELDY_LINEPAIRHOVER) : (empty($user->conf->THEME_ELDY_LINEPAIRHOVER) ? $colorbacklinepairhover : $user->conf->THEME_ELDY_LINEPAIRHOVER);
- $colorbackbody = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (empty($conf->global->THEME_ELDY_BACKBODY) ? $colorbackbody : $conf->global->THEME_ELDY_BACKBODY) : (empty($user->conf->THEME_ELDY_BACKBODY) ? $colorbackbody : $user->conf->THEME_ELDY_BACKBODY);
- $colortext = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (empty($conf->global->THEME_ELDY_TEXT) ? $colortext : $conf->global->THEME_ELDY_TEXT) : (empty($user->conf->THEME_ELDY_TEXT) ? $colortext : $user->conf->THEME_ELDY_TEXT);
- $fontsize = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (empty($conf->global->THEME_ELDY_FONT_SIZE1) ? $fontsize : $conf->global->THEME_ELDY_FONT_SIZE1) : (empty($user->conf->THEME_ELDY_FONT_SIZE1) ? $fontsize : $user->conf->THEME_ELDY_FONT_SIZE1);
- $fontsizesmaller = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (empty($conf->global->THEME_ELDY_FONT_SIZE2) ? $fontsize : $conf->global->THEME_ELDY_FONT_SIZE2) : (empty($user->conf->THEME_ELDY_FONT_SIZE2) ? $fontsize : $user->conf->THEME_ELDY_FONT_SIZE2);
- // No hover by default, we keep only if we set var THEME_ELDY_USE_HOVER
- if ((!empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) && empty($user->conf->THEME_ELDY_USE_HOVER))
- || (empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) && empty($conf->global->THEME_ELDY_USE_HOVER))) {
- $colorbacklineimpairhover = '';
- $colorbacklinepairhover = '';
- }
- // Set text color to black or white
- $tmppart = explode(',', $colorback1);
- $tmpval = (!empty($tmppart[1]) ? $tmppart[1] : '');
- $tmpval+=(!empty($tmppart[2]) ? $tmppart[2] : '');
- $tmpval+=(!empty($tmppart[3]) ? $tmppart[3] : '');
- //print $tmpval;
- if ($tmpval < 340)
- $colortextmain = 'FFFFFF';
- else
- $colortextmain = '101010';
- $usecss3 = true;
- if ($conf->browser->name == 'ie' && round($conf->browser->version, 2) < 10)
- $usecss3 = false;
- elseif ($conf->browser->name == 'iceweasel')
- $usecss3 = false;
- elseif ($conf->browser->name == 'epiphany')
- $usecss3 = false;
- print '/*' . "\n";
- print 'colred=' . $colred . ' colgreen=' . $colgreen . ' colblue=' . $colblue . "\n";
- print 'isred=' . $isred . ' isgreen=' . $isgreen . ' isblue=' . $isblue . "\n";
- print 'colorbacklineimpair1=' . $colorbacklineimpair1 . "\n";
- print 'colorbacklineimpair2=' . $colorbacklineimpair2 . "\n";
- print 'colorbacklineimpairhover=' . $colorbacklineimpairhover . "\n";
- print 'colorbacklinepair1=' . $colorbacklinepair1 . "\n";
- print 'colorbacklinepair2=' . $colorbacklinepair2 . "\n";
- print 'colorbacklinepairhover=' . $colorbacklinepairhover . "\n";
- print 'usecss3=' . $usecss3 . "\n";
- print '*/' . "\n";
- ?>
- /* ============================================================================== */
- /* Styles par defaut */
- /* ============================================================================== */
- /*
- body {
- <?php if (GETPOST("optioncss") == 'print') { ?>
- background-color: #FFFFFF;
- <?php } else { ?>
- background: <?php print $colorbackbody; ?>;
- <?php } ?>
- color: #101010;
- font-size: <?php print $fontsize ?>px;
- font-family: <?php print $fontlist ?>;
- margin-top: 0;
- margin-bottom: 0;
- margin-right: 0;
- margin-left: 0;
- <?php print 'direction: ' . $langs->trans("DIRECTION") . ";\n"; ?>
- }*/
- /*input:focus, textarea:focus, button:focus, select:focus {
- box-shadow: 0 0 4px #8091BF;
- }
- input, input.flat, textarea, textarea.flat, form.flat select, select.flat {
- font-size: <?php print $fontsize ?>px;
- font-family: <?php print $fontlist ?>;
- background: #FDFDFD;
- border: 1px solid #C0C0C0;
- padding: 1px 1px 1px 1px;
- margin: 0px 0px 0px 0px;
- }
- input, textarea, select {
- border-radius:4px;
- border:solid 1px rgba(0,0,0,.3);
- border-top:solid 1px rgba(0,0,0,.3);
- border-bottom:solid 1px rgba(0,0,0,.2);
- box-shadow: 1px 1px 2px rgba(0,0,0,.2) inset;
- padding:2px;
- margin-left:1px;
- margin-bottom:1px;
- margin-top:1px;
- }
- select.flat, form.flat select {
- font-weight: normal;
- }
- input:disabled {
- background:#ddd;
- }
- input:-webkit-autofill {
- background-color: #FCFEFA !important; background-image:none !important;
- }
- input.liste_titre {
- box-shadow: none !important;
- }
- textarea:disabled {
- background:#ddd;
- }
- .button {
- font-family: <?php print $fontlist ?>;
- background-image: url(<?php echo $img_button ?>);
- background-position: bottom;
- border: 1px solid #C0C0C0;
- padding: 0.1em 0.7em;
- margin: 0em 0.5em;
- -moz-border-radius:0px 5px 0px 5px;
- -webkit-border-radius:0px 5px 0px 5px;
- border-radius:0px 5px 0px 5px;
- -moz-box-shadow: 2px 2px 3px #CCC;
- -webkit-box-shadow: 2px 2px 3px #CCC;
- box-shadow: 2px 2px 3px #CCC;
- }
- .button:focus {
- font-family: <?php print $fontlist ?>;
- color: #222244;
- background-image: url(<?php echo $img_button ?>);
- background-position: bottom;
- border: 1px solid #C0C0C0;
- }
- .button:hover {
- background: #dee7ec;
- }
- .button:disabled {
- background: #ddd;
- }
- .buttonajax {
- font-family: <?php print $fontlist ?>;
- border: 0px;
- background-image: url(<?php echo $img_button ?>);
- background-position: bottom;
- padding: 0.1em 0.7em;
- margin: 0em 0.5em;
- -moz-border-radius:0px 5px 0px 5px;
- -webkit-border-radius:0px 5px 0px 5px;
- border-radius:0px 5px 0px 5px;
- -moz-box-shadow: 4px 4px 4px #CCC;
- -webkit-box-shadow: 4px 4px 4px #CCC;
- box-shadow: 4px 4px 4px #CCC;
- }
- form {
- padding: 0em 0em 0em 0em;
- margin: 0em 0em 0em 0em;
- }
- div.float
- {
- float:<?php print $left; ?>;
- }
- th .button {
- -moz-box-shadow: none !important;
- -webkit-box-shadow: none !important;
- box-shadow: none !important;
- -moz-border-radius:0px !important;
- -webkit-border-radius:0px !important;
- border-radius:0px !important;
- }
- .valignmiddle {
- vertical-align: middle;
- }*/
- .centpercent {
- width: 100%;
- }
- /* ============================================================================== */
- /* Styles to hide objects */
- /* ============================================================================== */
- .hideobject { display: none; }
- <?php if (!empty($conf->browser->phone)) { ?>
- .hideonsmartphone { display: none; }
- <?php } ?>
- .linkobject { cursor: pointer; }
- /* ============================================================================== */
- /* Styles for dragging lines */
- /* ============================================================================== */
- .dragClass {
- color: #002255;
- }
- td.showDragHandle {
- cursor: move;
- }
- .tdlineupdown {
- white-space: nowrap;
- }
- /* ============================================================================== */
- /* Styles de positionnement des zones */
- /* ============================================================================== */
- div.fiche {
- margin-<?php print $left; ?>: <?php print (GETPOST("optioncss") == 'print' ? 6 : ((empty($conf->browser->phone) || empty($conf->global->MAIN_MENU_USE_JQUERY_LAYOUT)) ? '20' : '24')); ?>px;
- margin-<?php print $right; ?>: <?php print (GETPOST("optioncss") == 'print' ? 8 : (empty($conf->browser->phone) ? '12' : '6')); ?>px;
- }
- div.fichecenter {
- width: 100%;
- clear: both; /* This is to have div fichecenter that are true rectangles */
- }
- div.fichethirdleft {
- <?php if (empty($conf->browser->phone)) {
- print "float: " . $left . ";\n";
- } ?>
- <?php if (empty($conf->browser->phone)) {
- print "width: 35%;\n";
- } ?>
- <?php if (!empty($conf->browser->phone)) {
- print "padding-bottom: 6px;\n";
- } ?>
- }
- div.fichetwothirdright {
- <?php if (empty($conf->browser->phone)) {
- print "float: " . $right . ";\n";
- } ?>
- <?php if (empty($conf->browser->phone)) {
- print "width: 65%;\n";
- } ?>
- <?php if (!empty($conf->browser->phone)) {
- print "padding-bottom: 6px\n";
- } ?>
- }
- div.fichehalfleft {
- <?php if (empty($conf->browser->phone)) {
- print "float: " . $left . ";\n";
- } ?>
- <?php if (empty($conf->browser->phone)) {
- print "width: 50%;\n";
- } ?>
- }
- div.fichehalfright {
- <?php if (empty($conf->browser->phone)) {
- print "float: " . $right . ";\n";
- } ?>
- <?php if (empty($conf->browser->phone)) {
- print "width: 50%;\n";
- } ?>
- }
- div.ficheaddleft {
- <?php if (empty($conf->browser->phone)) {
- print "padding-left: 16px;\n";
- } ?>
- }
- /* ============================================================================== */
- /* Menu top et 1ere ligne tableau */
- /* ============================================================================== */
- <?php
- if (!empty($conf->browser->phone)) {
- $minwidthtmenu = 0;
- $heightmenu = 19;
- } else {
- $minwidthtmenu = 66;
- $heightmenu = 52;
- }
- ?>
- div#tmenu_tooltip {
- <?php
- if (!empty($conf->global->THEME_ELDY_ENABLE_PERSONALIZED) || !empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED)) {
- $colortexttopmenu = $colortextmain;
- ?>
- background: rgb(<?php echo $colorback1 ?>);
- <?php
- } else {
- //if ($usecss3) $colortexttopmenu='FFFFFF';
- //else
- $colortexttopmenu = '000000';
- ?>
- background: rgb(<?php echo $colorback1 ?>);
- /* background: #305582; *//* 2C68A3 */
- <?php
- }
- ?>
- margin-bottom: 10px;
- }
- div.tmenudiv {
- <?php if (GETPOST("optioncss") == 'print') { ?>
- display:none;
- <?php } else { ?>
- position: relative;
- display: block;
- white-space: nowrap;
- border-top: 0px solid #D3E5EC;
- border-<?php print $left; ?>: 0px;
- border-<?php print $right; ?>: 0px solid #555555;
- border-bottom: 1px solid #FFFFFF;
- padding: 0px 0px 0px 0px; /* t r b l */
- margin: 0px 0px 0px 0px; /* t r b l */
- font-size: 13px;
- font-weight: normal;
- height: <?php print ($heightmenu + 1); ?>px;
- <?php if ($usecss3) { ?>
- /* background-image: -o-linear-gradient(bottom, rgb(<?php echo $colorback1; ?>) 75%, rgb(<?php echo $colorback2; ?>) 100%); */
- /* background-image: -moz-linear-gradient(bottom, rgb(<?php echo $colorback1; ?>) 75%, rgb(<?php echo $colorback2; ?>) 100%);*/
- /* background-image: -webkit-linear-gradient(bottom, rgb(<?php echo $colorback1; ?>) 40%, rgb(<?php echo $colorback2; ?>) 60%, rgb(<?php echo $colorback1; ?>) 100%);*/
- /* background-image: -ms-linear-gradient(bottom, rgb(<?php echo $colorback1; ?>) 75%, rgb(<?php echo $colorback2; ?>) 100%);*/
- /* background-image: linear-gradient(bottom, rgb(<?php echo $colorback1; ?>) 75%, rgb(<?php echo $colorback2; ?>) 100%); */
- background: url(<?php echo DOL_URL_ROOT . '/theme/eldy/img/nav-overlay3.png' ?>) 50% 0% repeat-x;
- <?php } else { ?>
- background-image: url(<?php echo DOL_URL_ROOT . '/theme/eldy/img/tmenu2.jpg' ?>);
- background-position:top;
- background-repeat:repeat-x;
- <?php } ?>
- color: #000000;
- text-decoration: none;
- <?php } ?>
- }
- a.tmenudisabled:link, a.tmenudisabled:visited, a.tmenudisabled:hover, a.tmenudisabled:active {
- color: #808080;
- font-weight: normal;
- padding: 0px 5px 0px 5px;
- margin: 0px 1px 2px 1px;
- cursor: not-allowed;
- font-weight: normal;
- white-space: nowrap;
- }
- a.tmenu:link, a.tmenu:visited, a.tmenu:hover, a.tmenu:active {
- font-weight: normal;
- padding: 0px 5px 0px 5px;
- white-space: nowrap;
- /* text-shadow: 1px 1px 1px #000000; */
- color: #<?php echo $colortexttopmenu; ?>;
- }
- a.tmenu:link, a.tmenu:visited {
- color: #<?php echo $colortexttopmenu; ?>;
- }
- a.tmenu:hover, a.tmenu:active {
- margin: 0px 0px 0px 0px;
- /* border-<?php print $right; ?>: 1px solid #555555; */
- /* border-<?php print $left; ?>: 1px solid #D8D8D8; */
- /* border-top: 1px solid #D8D8D8; */
- /* border-bottom: 2px solid #F4F4F4; */
- /* background: #F4F4F4; */
- /* text-shadow: 1px 1px 1px #FFFFFF !important; */
- color: #<?php echo $colortexttopmenu; ?>;
- }
- a.tmenusel:link, a.tmenusel:visited, a.tmenusel:hover, a.tmenusel:active {
- font-weight: normal;
- padding: 0px 5px 0px 5px;
- margin: 0px 0px 0px 0px;
- /* background: #F4F4F4; */
- /* border-<?php print $right; ?>: 1px solid #555555; */
- /* border-top: 1px solid #D8D8D8; */
- /* border-<?php print $left; ?>: 1px solid #D8D8D8; */
- /* border-bottom: 2px solid #F4F4F4; */
- white-space: nowrap;
- /* text-shadow: 1px 1px 1px #FFFFFF;*/
- color: #<?php echo $colortexttopmenu; ?>;
- }
- ul.tmenu { /* t r b l */
- padding: 0px 0px 0px 0px;
- margin: 0px 0px 0px 0px;
- list-style: none;
- height: <?php print $heightmenu; ?>px;
- background: url(<?php echo DOL_URL_ROOT . '/theme/eldy/img/nav-overlay3.png' ?>) 0 0 repeat-x !important;
- }
- li.tmenu, li.tmenusel {
- <?php print $minwidthtmenu ? 'min-width: ' . $minwidthtmenu . 'px;' : ''; ?>
- text-align: center;
- vertical-align: bottom;
- float: <?php print $left; ?>;
- height: <?php print $heightmenu; ?>px;
- position:relative;
- display: block;
- padding: 0px 0px 0px 0px;
- margin: 0px 0px 0px 0px;
- font-weight: normal;
- }
- li.tmenu:hover, li.tmenusel {
- <?php if ($usecss3) { ?>
- /* background-image: -o-linear-gradient(bottom, rgb(<?php echo $colorback1; ?>) 75%, rgb(<?php echo $colorback2; ?>) 100%); */
- /* background-image: -moz-linear-gradient(bottom, rgb(<?php echo $colorback1; ?>) 75%, rgb(<?php echo $colorback2; ?>) 100%);*/
- /* background-image: -webkit-linear-gradient(bottom, rgb(<?php echo $colorback1; ?>) 40%, rgb(<?php echo $colorback2; ?>) 60%, rgb(<?php echo $colorback1; ?>) 100%); */
- /* background-image: -ms-linear-gradient(bottom, rgb(<?php echo $colorback1; ?>) 75%, rgb(<?php echo $colorback2; ?>) 100%);*/
- /* background-image: linear-gradient(bottom, rgb(<?php echo $colorback1; ?>) 75%, rgb(<?php echo $colorback2; ?>) 100%); */
- background: url(<?php echo DOL_URL_ROOT . '/theme/eldy/img/nav-overlay3.png' ?>) 50% 0 repeat-x;
- <?php } ?>
- }
- div.tmenuleft
- {
- width: 5px;
- float: <?php print $left; ?>;
- height: <?php print $heightmenu + 4; ?>px;
- background: url(<?php echo DOL_URL_ROOT . '/theme/eldy/img/menutab-r.png' ?>) 0 0 no-repeat;
- margin-top: -4px;
- }
- div.tmenucenter
- {
- padding-top: 2px;
- padding-left: 0px;
- padding-right: 0px;
- height: <?php print $heightmenu; ?>px;
- width: 100%;
- }
- .mainmenuaspan
- {
- padding-right: 4px;
- text-shadow: 1px 1px 1px #DDD;
- }
- div.mainmenu {
- position : relative;
- background-repeat:no-repeat;
- background-position:center top;
- height: <?php echo ($heightmenu - 19); ?>px;
- margin-left: 0px;
- min-width: 40px;
- }
- <?php if (empty($conf->browser->phone)) { ?>
- div.mainmenu.home{
- background-image: url(<?php echo dol_buildpath($path . '/theme/eldy/img/menus/home.png', 1) ?>);
- background-position-x: middle;
- }
- div.mainmenu.accountancy {
- background-image: url(<?php echo dol_buildpath($path . '/theme/eldy/img/menus/money.png', 1) ?>);
- }
- div.mainmenu.agenda {
- background-image: url(<?php echo dol_buildpath($path . '/theme/eldy/img/menus/agenda.png', 1) ?>);
- }
- div.mainmenu.bank {
- background-image: url(<?php echo dol_buildpath($path . '/theme/eldy/img/menus/bank.png', 1) ?>);
- }
- div.mainmenu.bookmark {
- }
- div.mainmenu.cashdesk {
- background-image: url(<?php echo dol_buildpath($path . '/theme/eldy/img/menus/pointofsale.png', 1) ?>);
- }
- div.mainmenu.click2dial {
- }
- div.mainmenu.companies {
- background-image: url(<?php echo dol_buildpath($path . '/theme/eldy/img/menus/members.png', 1) ?>);
- }
- div.mainmenu.contacts {
- background-image: url(<?php echo dol_buildpath($path . '/theme/eldy/img/menus/stethoscope.png', 1) ?>);
- }
- div.mainmenu.commercial {
- background-image: url(<?php echo dol_buildpath($path . '/theme/eldy/img/menus/commercial.png', 1) ?>);
- }
- div.mainmenu.ecm {
- background-image: url(<?php echo dol_buildpath($path . '/theme/eldy/img/menus/ecm.png', 1) ?>);
- }
- div.mainmenu.externalsite {
- background-image: url(<?php echo dol_buildpath($path . '/theme/eldy/img/menus/externalsite.png', 1) ?>);
- }
- div.mainmenu.ftp {
- background-image: url(<?php echo dol_buildpath($path . '/theme/eldy/img/menus/tools.png', 1) ?>);
- }
- div.mainmenu.gravatar {
- }
- div.mainmenu.geopipmaxmind {
- }
- div.mainmenu.holiday {
- background-image: url(<?php echo dol_buildpath($path . '/theme/eldy/img/menus/holiday.png', 1) ?>);
- }
- div.mainmenu.members {
- background-image: url(<?php echo dol_buildpath($path . '/theme/eldy/img/menus/members.png', 1) ?>);
- }
- div.mainmenu.paypal {
- }
- div.mainmenu.products {
- background-image: url(<?php echo dol_buildpath($path . '/theme/eldy/img/menus/products.png', 1) ?>);
- margin-left: 10px;
- }
- div.mainmenu.project {
- background-image: url(<?php echo dol_buildpath($path . '/theme/eldy/img/menus/project.png', 1) ?>);
- }
- div.mainmenu.tools {
- background-image: url(<?php echo dol_buildpath($path . '/theme/eldy/img/menus/tools.png', 1) ?>);
- }
- div.mainmenu.webservices {
- }
- div.mainmenu.google {
- background-image: url(<?php echo dol_buildpath($path . '/theme/eldy/img/menus/globe.png', 1) ?>);
- }
- <?php
- // Add here more div for other menu entries. moduletomainmenu=array('module name'=>'name of class for div')
- $moduletomainmenu = array('user' => '', 'syslog' => '', 'societe' => 'companies', 'projet' => 'project', 'propale' => 'commercial', 'commande' => 'commercial',
- 'produit' => 'products', 'service' => 'products', 'stock' => 'products',
- 'don' => 'accountancy', 'tax' => 'accountancy', 'banque' => 'accountancy', 'facture' => 'accountancy', 'compta' => 'accountancy', 'accounting' => 'accountancy', 'adherent' => 'members', 'import' => 'tools', 'export' => 'tools', 'mailing' => 'tools',
- 'contrat' => 'commercial', 'ficheinter' => 'commercial', 'deplacement' => 'commercial',
- 'fournisseur' => 'companies',
- 'barcode' => '', 'fckeditor' => '', 'categorie' => '',
- );
- $mainmenuused = 'home';
- foreach ($conf->modules as $val) {
- $mainmenuused.=',' . (isset($moduletomainmenu[$val]) ? $moduletomainmenu[$val] : $val);
- }
- //var_dump($mainmenuused);
- $mainmenuusedarray = array_unique(explode(',', $mainmenuused));
- $generic = 1;
- $divalreadydefined = array('home', 'companies', 'products', 'commercial', 'accountancy', 'project', 'tools', 'members', 'agenda', 'holiday', 'bookmark', 'cashdesk', 'ecm', 'geoipmaxmind', 'gravatar', 'clicktodial', 'paypal', 'webservices');
- foreach ($mainmenuusedarray as $val) {
- if (empty($val) || in_array($val, $divalreadydefined))
- continue;
- //print "XXX".$val;
- // Search img file in module dir
- $found = 0;
- $url = '';
- foreach ($conf->file->dol_document_root as $dirroot) {
- if (file_exists($dirroot . "/" . $val . "/img/" . $val . ".png")) {
- $url = dol_buildpath('/' . $val . '/img/' . $val . '.png', 1);
- $found = 1;
- break;
- }
- }
- // Img file not found
- if (!$found) {
- $url = dol_buildpath($path . '/theme/eldy/img/menus/generic' . $generic . ".png", 1);
- $found = 1;
- if ($generic < 4)
- $generic++;
- print "/* A mainmenu entry but img file " . $val . ".png not found, so we use a generic one */\n";
- }
- if ($found) {
- print "div.mainmenu." . $val . " {\n";
- print " background-image: url(" . $url . ");\n";
- print "}\n";
- }
- }
- // End of part to add more div class css
- ?>
- <?php
- } // End test if not phone
- ?>
- .tmenuimage {
- padding:0 0 0 0 !important;
- margin:0 0px 0 0 !important;
- }
- /* Login */
- form#login {
- margin-top: 70px;
- margin-bottom: 30px;
- font-size: 13px;
- }
- .login_table_title {
- width: 540px;
- color: #888888;
- text-shadow: 1px 1px 1px #FFF;
- }
- .login_table label {
- text-shadow: 1px 1px 1px #FFF;
- }
- .login_table {
- padding-left:6px;
- padding-right:6px;
- padding-top:14px;
- padding-bottom:12px;
- width: 540px;
- border: 1px solid #C0C0C0;
- background-color: #E0E0E0;
- -moz-box-shadow: 4px 4px 4px #CCC;
- -webkit-box-shadow: 4px 4px 4px #CCC;
- box-shadow: 4px 4px 4px #CCC;
- border-radius: 8px;
- border:solid 1px rgba(168,168,168,.4);
- border-top:solid 1px f8f8f8;
- background-color: #f8f8f8;
- background-image: -o-linear-gradient(top, rgba(250,250,250,.6) 0%, rgba(192,192,192,.3) 100%);
- background-image: -moz-linear-gradient(top, rgba(250,250,250,.6) 0%, rgba(192,192,192,.3) 100%);
- background-image: -webkit-linear-gradient(top, rgba(250,250,250,.6) 0%, rgba(192,192,192,.3) 100%);
- background-image: -ms-linear-gradient(top, rgba(250,250,250,.6) 0%, rgba(192,192,192,.3) 100%);
- background-image: linear-gradient(top, rgba(250,250,250,.6) 0%, rgba(192,192,192,.3) 100%);
- }
- table.login_table tr td table.none tr td {
- padding: 2px;
- }
- #img_securitycode {
- border: 1px solid #DDDDDD;
- }
- #img_logo {
- max-width: 200px;
- }
- div.login_block {
- position: absolute;
- <?php print $right; ?>: 5px;
- top: 3px;
- font-weight: bold;
- <?php if (GETPOST("optioncss") == 'print') { ?>
- display: none;
- <?php } ?>
- }
- div.login_block table {
- display: inline;
- }
- div.login {
- white-space:nowrap;
- padding: <?php echo ($conf->browser->phone ? '0' : '8') ?>px 0px 0px 0px;
- margin: 0px 0px 0px 8px;
- font-weight: bold;
- }
- div.login a {
- color: #<?php echo $colortextmain; ?>;
- }
- div.login a:hover {
- color: #<?php echo $colortextmain; ?>;
- text-decoration:underline;
- }
- img.login, img.printer, img.entity {
- padding: <?php echo ($conf->browser->phone ? '0' : '8') ?>px 0px 0px 0px;
- margin: 0px 0px 0px 8px;
- text-decoration: none;
- color: white;
- font-weight: bold;
- }
- /* ============================================================================== */
- /* Menu gauche */
- /* ============================================================================== */
- td.vmenu {
- margin-<?php print $right; ?>: 2px;
- padding: 0px;
- padding-bottom: 0px;
- padding-top: 1px;
- width: 174px;
- }
- .vmenu {
- margin-left: 4px;
- <?php if (GETPOST("optioncss") == 'print') { ?>
- display: none;
- <?php } ?>
- }
- .menu_contenu { padding-top: 1px; }
- a.vmenu:link, a.vmenu:visited, a.vmenu:hover, a.vmenu:active { font-size:<?php print $fontsize ?>px; font-family: <?php print $fontlist ?>; text-align: <?php print $left; ?>; font-weight: bold; }
- font.vmenudisabled { font-size:<?php print $fontsize ?>px; font-family: <?php print $fontlist ?>; text-align: <?php print $left; ?>; font-weight: bold; color: #93a5aa; }
- a.vmenu:link, a.vmenu:visited { color: #<?php echo $colortextmain; ?>; }
- a.vsmenu:link, a.vsmenu:visited, a.vsmenu:hover, a.vsmenu:active { font-size:<?php print ($fontsize - 1) ?>px; font-family: <?php print $fontlist ?>; text-align: <?php print $left; ?>; font-weight: normal; color: #202020; padding: 1px 1px 1px 8px; }
- font.vsmenudisabled { font-size:<?php print ($fontsize - 1) ?>px; font-family: <?php print $fontlist ?>; text-align: <?php print $left; ?>; font-weight: normal; color: #93a5aa; margin: 1px 1px 1px 8px; }
- a.vsmenu:link, a.vsmenu:visited { color: #<?php echo $colortextmain; ?>; }
- a.help:link, a.help:visited, a.help:hover, a.help:active { font-size:<?php print $fontsizesmaller ?>px; font-family: <?php print $fontlist ?>; text-align: <?php print $left; ?>; font-weight: normal; color: #666666; }
- div.blockvmenupair, div.blockvmenuimpair, div.blockvmenubookmarks
- {
- width:174px;
- font-family: <?php print $fontlist ?>;
- color: #000000;
- text-align: <?php print $left; ?>;
- text-decoration: none;
- padding-left: 5px;
- padding-right: 1px;
- padding-top: 3px;
- padding-bottom: 3px;
- margin: 1px 0px 8px 2px;
- <?php if ($usecss3) { ?>
- background-image: -o-linear-gradient(bottom, rgb(<?php echo $colorbacktab1; ?>) 85%, rgb(<?php echo $colorbacktab2; ?>) 100%);
- background-image: -moz-linear-gradient(bottom, rgb(<?php echo $colorbacktab1; ?>) 85%, rgb(<?php echo $colorbacktab2; ?>) 100%);
- background-image: -webkit-linear-gradient(bottom, rgb(<?php echo $colorbacktab1; ?>) 85%, rgb(<?php echo $colorbacktab2; ?>) 100%);
- background-image: -ms-linear-gradient(bottom, rgb(<?php echo $colorbacktab1; ?>) 85%, rgb(<?php echo $colorbacktab2; ?>) 100%);
- background-image: linear-gradient(bottom, rgb(<?php echo $colorbacktab1; ?>) 85%, rgb(<?php echo $colorbacktab2; ?>) 100%);
- <?php } else { ?>
- background-image: url(<?php echo DOL_URL_ROOT . '/theme/eldy/img/tmenu.jpg' ?>);
- background-position:top;
- background-repeat:repeat-x;
- <?php } ?>
- border-left: 1px solid #CCCCCC;
- border-right: 1px solid #BBBBBB;
- border-bottom: 1px solid #BBBBBB;
- border-radius: 5px;
- -moz-border-radius: 5px;
- -moz-box-shadow: 4px 4px 4px #CCC;
- -webkit-box-shadow: 4px 4px 4px #CCC;
- box-shadow: 4px 4px 4px #CCC;
- }
- div.blockvmenusearch
- {
- width:174px;
- font-family: <?php print $fontlist ?>;
- color: #000000;
- text-align: <?php print $left; ?>;
- text-decoration: none;
- padding-left: 5px;
- padding-right: 1px;
- padding-top: 3px;
- padding-bottom: 3px;
- margin: 1px 0px 8px 2px;
- background: #E3E6E8;
- <?php if ($usecss3) { ?>
- background-image: -o-linear-gradient(bottom, rgb(<?php echo $colorbacktab1b; ?>) 85%, rgb(<?php echo $colorbacktab2; ?>) 100%);
- background-image: -moz-linear-gradient(bottom, rgb(<?php echo $colorbacktab1b; ?>) 85%, rgb(<?php echo $colorbacktab2; ?>) 100%);
- background-image: -webkit-linear-gradient(bottom, rgb(<?php echo $colorbacktab1b; ?>) 85%, rgb(<?php echo $colorbacktab2; ?>) 100%);
- background-image: -ms-linear-gradient(bottom, rgb(<?php echo $colorbacktab1b; ?>) 85%, rgb(<?php echo $colorbacktab2; ?>) 100%);
- background-image: linear-gradient(bottom, rgb(<?php echo $colorbacktab1b; ?>) 85%, rgb(<?php echo $colorbacktab2; ?>) 100%);
- <?php } ?>
- border-left: 1px solid #CCCCCC;
- border-right: 1px solid #BBBBBB;
- border-bottom: 1px solid #BBBBBB;
- border-radius: 5px;
- -moz-border-radius: 5px;
- -moz-box-shadow: 4px 4px 4px #CCC;
- -webkit-box-shadow: 4px 4px 4px #CCC;
- box-shadow: 4px 4px 4px #CCC;
- }
- div.blockvmenubookmarksold
- {
- width:174px;
- border-right: 1px solid #555555;
- border-bottom: 1px solid #555555;
- font-family: <?php print $fontlist ?>;
- color: #000000;
- text-align: <?php print $left; ?>;
- text-decoration: none;
- padding-left: 5px;
- padding-right: 1px;
- padding-top: 3px;
- padding-bottom: 3px;
- margin: 6px 0px 8px 2px;
- background: #E3E6E8;
- <?php if ($usecss3) { ?>
- background-image: -o-linear-gradient(bottom, rgb(<?php echo $colorbacktab1b; ?>) 85%, rgb(<?php echo $colorbacktab2; ?>) 100%);
- background-image: -moz-linear-gradient(bottom, rgb(<?php echo $colorbacktab1b; ?>) 85%, rgb(<?php echo $colorbacktab2; ?>) 100%);
- background-image: -webkit-linear-gradient(bottom, rgb(<?php echo $colorbacktab1b; ?>) 85%, rgb(<?php echo $colorbacktab2; ?>) 100%);
- background-image: -ms-linear-gradient(bottom, rgb(<?php echo $colorbacktab1b; ?>) 85%, rgb(<?php echo $colorbacktab2; ?>) 100%);
- background-image: linear-gradient(bottom, rgb(<?php echo $colorbacktab1b; ?>) 85%, rgb(<?php echo $colorbacktab2; ?>) 100%);
- <?php } ?>
- border-left: 1px solid #CCCCCC;
- border-right: 1px solid #BBBBBB;
- border-bottom: 1px solid #BBBBBB;
- border-radius: 5px;
- -moz-border-radius: 5px;
- -moz-box-shadow: 4px 4px 4px #CCC;
- -webkit-box-shadow: 4px 4px 4px #CCC;
- box-shadow: 4px 4px 4px #CCC;
- }
- div.blockvmenuhelp
- {
- <?php if (empty($conf->browser->phone)) { ?>
- width:174px;
- font-family: <?php print $fontlist ?>;
- color: #000000;
- text-align: center;
- text-decoration: none;
- padding-left: 0px;
- padding-right: 3px;
- padding-top: 3px;
- padding-bottom: 3px;
- margin: 4px 0px 0px 0px;
- <?php } else { ?>
- display: none;
- <?php } ?>
- }
- td.barre {
- border-right: 1px solid #000000;
- border-bottom: 1px solid #000000;
- background: #b3c5cc;
- font-family: <?php print $fontlist ?>;
- color: #000000;
- text-align: <?php print $left; ?>;
- text-decoration: none;
- }
- td.barre_select {
- background: #b3c5cc;
- color: #000000;
- }
- td.photo {
- background: #F4F4F4;
- color: #000000;
- border: 1px solid #b3c5cc;
- }
- /* ============================================================================== */
- /* Panes for Main */
- /* ============================================================================== */
- /*
- * PANES and CONTENT-DIVs
- */
- #mainContent, #leftContent .ui-layout-pane {
- padding: 0px;
- overflow: auto;
- }
- #mainContent, #leftContent .ui-layout-center {
- padding: 0px;
- position: relative; /* contain floated or positioned elements */
- overflow: auto; /* add scrolling to content-div */
- }
- /* ============================================================================== */
- /* Toolbar for ECM or Filemanager */
- /* ============================================================================== */
- .toolbar {
- <?php if ($usecss3) { ?>
- background-image: -o-linear-gradient(bottom, rgb(<?php echo '240,240,240'; ?>) 15%, rgb(<?php echo '255,255,255'; ?>) 100%) !important;
- background-image: -moz-linear-gradient(bottom, rgb(<?php echo '240,240,240'; ?>) 15%, rgb(<?php echo '255,255,255'; ?>) 100%) !important;
- background-image: -webkit-linear-gradient(bottom, rgb(<?php echo '240,240,240'; ?>) 15%, rgb(<?php echo '255,255,255'; ?>) 100%) !important;
- background-image: -ms-linear-gradient(bottom, rgb(<?php echo '240,240,240'; ?>) 15%, rgb(<?php echo '255,255,255'; ?>) 100%) !important;
- background-image: linear-gradient(bottom, rgb(<?php echo '240,240,240'; ?>) 15%, rgb(<?php echo '255,255,255'; ?>) 100%) !important;
- <?php } else { ?>
- background-image: url(<?php echo DOL_URL_ROOT . '/theme/' . $conf->theme . '/img/tmenu2.jpg' ?>) !important;
- background-repeat: repeat-x !important;
- <?php } ?>
- border: 1px solid #CCC !important;
- -moz-border-radius: 5px 5px 5px 5px !important;
- -webkit-border-radius: 5px 5px 5px 5px !important;
- border-radius: 5px 5px 5px 5px !important;
- -moz-box-shadow: 4px 4px 4px #EEE;
- -webkit-box-shadow: 4px 4px 4px #EEE;
- box-shadow: 4px 4px 4px #EEE;
- padding: 0 4px 0 4px !important;
- height: 34px !important;
- }
- a.toolbarbutton {
- margin-top: 0px;
- margin-left: 4px;
- margin-right: 4px;
- height: 30px;
- }
- img.toolbarbutton {
- margin-top: 1px;
- height: 30px;
- }
- /* ============================================================================== */
- /* Panes for ECM or Filemanager */
- /* ============================================================================== */
- #containerlayout .layout-with-no-border {
- border: 0 !important;
- border-width: 0 !important;
- }
- #containerlayout .layout-padding {
- padding: 2px !important;
- }
- /*
- * PANES and CONTENT-DIVs
- */
- #containerlayout .ui-layout-pane { /* all 'panes' */
- background: #FFF;
- border: 1px solid #BBB;
- /* DO NOT add scrolling (or padding) to 'panes' that have a content-div,
- otherwise you may get double-scrollbars - on the pane AND on the content-div
- */
- padding: 0px;
- overflow: auto;
- }
- /* (scrolling) content-div inside pane allows for fixed header(s) and/or footer(s) */
- #containerlayout .ui-layout-content {
- padding: 10px;
- position: relative; /* contain floated or positioned elements */
- overflow: auto; /* add scrolling to content-div */
- }
- /*
- * RESIZER-BARS
- */
- .ui-layout-resizer { /* all 'resizer-bars' */
- width: <?php echo (empty($conf->browser->phone) ? '8' : '24'); ?>px !important;
- }
- .ui-layout-resizer-hover { /* affects both open and closed states */
- }
- /* NOTE: It looks best when 'hover' and 'dragging' are set to the same color,
- otherwise color shifts while dragging when bar can't keep up with mouse */
- /*.ui-layout-resizer-open-hover ,*/ /* hover-color to 'resize' */
- .ui-layout-resizer-dragging { /* resizer beging 'dragging' */
- background: #DDD;
- width: <?php echo (empty($conf->browser->phone) ? '8' : '24'); ?>px;
- }
- .ui-layout-resizer-dragging { /* CLONED resizer being dragged */
- border-left: 1px solid #BBB;
- border-right: 1px solid #BBB;
- }
- /* NOTE: Add a 'dragging-limit' color to provide visual feedback when resizer hits min/max size limits */
- .ui-layout-resizer-dragging-limit { /* CLONED resizer at min or max size-limit */
- background: #E1A4A4; /* red */
- }
- .ui-layout-resizer-closed {
- background-color: #DDDDDD;
- }
- .ui-layout-resizer-closed:hover {
- background-color: #EEDDDD;
- }
- .ui-layout-resizer-sliding { /* resizer when pane is 'slid open' */
- opacity: .10; /* show only a slight shadow */
- filter: alpha(opacity=10);
- }
- .ui-layout-resizer-sliding-hover { /* sliding resizer - hover */
- opacity: 1.00; /* on-hover, show the resizer-bar normally */
- filter: alpha(opacity=100);
- }
- /* sliding resizer - add 'outside-border' to resizer on-hover */
- /* this sample illustrates how to target specific panes and states */
- /*.ui-layout-resizer-north-sliding-hover { border-bottom-width: 1px; }
- .ui-layout-resizer-south-sliding-hover { border-top-width: 1px; }
- .ui-layout-resizer-west-sliding-hover { border-right-width: 1px; }
- .ui-layout-resizer-east-sliding-hover { border-left-width: 1px; }
- */
- /*
- * TOGGLER-BUTTONS
- */
- .ui-layout-toggler {
- <?php if (empty($conf->browser->phone)) { ?>
- border-top: 1px solid #AAA; /* match pane-border */
- border-right: 1px solid #AAA; /* match pane-border */
- border-bottom: 1px solid #AAA; /* match pane-border */
- background-color: #DDD;
- top: 5px !important;
- <?php } else { ?>
- diplay: none;
- <?php } ?>
- }
- .ui-layout-toggler-open {
- height: 54px !important;
- width: <?php echo (empty($conf->browser->phone) ? '7' : '22'); ?>px !important;
- -moz-border-radius:0px 10px 10px 0px;
- -webkit-border-radius:0px 10px 10px 0px;
- border-radius:0px 10px 10px 0px;
- }
- .ui-layout-toggler-closed {
- height: <?php echo (empty($conf->browser->phone) ? '54' : '2'); ?>px !important;
- width: <?php echo (empty($conf->browser->phone) ? '7' : '22'); ?>px !important;
- -moz-border-radius:0px 10px 10px 0px;
- -webkit-border-radius:0px 10px 10px 0px;
- border-radius:0px 10px 10px 0px;
- }
- .ui-layout-toggler .content { /* style the text we put INSIDE the togglers */
- color: #666;
- font-size: 12px;
- font-weight: bold;
- width: 100%;
- padding-bottom: 0.35ex; /* to 'vertically center' text inside text-span */
- }
- /* hide the toggler-button when the pane is 'slid open' */
- .ui-layout-resizer-sliding ui-layout-toggler {
- display: none;
- }
- .ui-layout-north {
- height: <?php print (empty($conf->browser->phone) ? '54' : '21'); ?>px !important;
- }
- /* ECM */
- #containerlayout .ecm-layout-pane { /* all 'panes' */
- background: #FFF;
- border: 1px solid #BBB;
- /* DO NOT add scrolling (or padding) to 'panes' that have a content-div,
- otherwise you may get double-scrollbars - on the pane AND on the content-div
- */
- padding: 0px;
- overflow: auto;
- }
- /* (scrolling) content-div inside pane allows for fixed header(s) and/or footer(s) */
- #containerlayout .ecm-layout-content {
- padding: 10px;
- position: relative; /* contain floated or positioned elements */
- overflow: auto; /* add scrolling to content-div */
- }
- .ecm-layout-toggler {
- border-top: 1px solid #AAA; /* match pane-border */
- border-right: 1px solid #AAA; /* match pane-border */
- border-bottom: 1px solid #AAA; /* match pane-border */
- background-color: #CCC;
- }
- .ecm-layout-toggler-open {
- height: 48px !important;
- width: 6px !important;
- -moz-border-radius:0px 10px 10px 0px;
- -webkit-border-radius:0px 10px 10px 0px;
- border-radius:0px 10px 10px 0px;
- }
- .ecm-layout-toggler-closed {
- height: 48px !important;
- width: 6px !important;
- }
- .ecm-layout-toggler .content { /* style the text we put INSIDE the togglers */
- color: #666;
- font-size: 12px;
- font-weight: bold;
- width: 100%;
- padding-bottom: 0.35ex; /* to 'vertically center' text inside text-span */
- }
- #ecm-layout-west-resizer {
- width: 6px !important;
- }
- .ecm-layout-resizer { /* all 'resizer-bars' */
- border: 1px solid #BBB;
- border-width: 0;
- }
- .ecm-layout-resizer-closed {
- }
- .ecm-in-layout-center {
- border-left: 1px !important;
- border-right: 0px !important;
- border-top: 0px !important;
- }
- .ecm-in-layout-south {
- border-left: 0px !important;
- border-right: 0px !important;
- border-bottom: 0px !important;
- padding: 4px 0 4px 4px !important;
- }
- /* ============================================================================== */
- /* Onglets */
- /* ============================================================================== */
- div.tabs {
- top: 20px;
- margin: 1px 0px 2px 0px;
- padding: 0px 6px 0px 0px;
- text-align: <?php print $left; ?>;
- }
- div.tabBar {
- color: #<?php echo $colortextmain; ?>;
- padding-top: 9px;
- padding-left: 8px;
- padding-right: 8px;
- padding-bottom: 8px;
- border-right: 1px solid #CCCCCC;
- border-bottom: 1px solid #CCCCCC;
- border-left: 1px solid #D0D0D0;
- border-top: 1px solid #D8D8D8;
- <?php if ($usecss3) { ?>
- background-image: -o-linear-gradient(bottom, rgb(<?php echo $colorbacktabcard1; ?>) 25%, rgb(<?php echo $colorbacktabcard2; ?>) 100%);
- background-image: -moz-linear-gradient(bottom, rgb(<?php echo $colorbacktabcard1; ?>) 25%, rgb(<?php echo $colorbacktabcard2; ?>) 100%);
- background-image: -webkit-linear-gradient(bottom, rgb(<?php echo $colorbacktabcard1; ?>) 25%, rgb(<?php echo $colorbacktabcard2; ?>) 100%);
- background-image: -ms-linear-gradient(bottom, rgb(<?php echo $colorbacktabcard1; ?>) 25%, rgb(<?php echo $colorbacktabcard2; ?>) 100%);
- background-image: linear-gradient(bottom, rgb(<?php echo $colorbacktabcard1; ?>) 25%, rgb(<?php echo $colorbacktabcard2; ?>) 100%);
- <?php } else { ?>
- background: #dee7ec url(<?php echo DOL_URL_ROOT . '/theme/eldy/img/tab_background.png' ?>) repeat-x;
- <?php …
Large files files are truncated, but you can click here to view the full file