PageRenderTime 89ms CodeModel.GetById 28ms RepoModel.GetById 1ms app.codeStats 0ms

/htdocs/theme/eldy/style.css.php

https://bitbucket.org/speedealing/speedealing
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

  1. <?php
  2. /* Copyright (C) 2004-2012 Laurent Destailleur <eldy@users.sourceforge.net>
  3. * Copyright (C) 2006 Rodolphe Quiedeville <rodolphe@quiedeville.org>
  4. * Copyright (C) 2007-2012 Regis Houssin <regis.houssin@capnetworks.com>
  5. * Copyright (C) 2011 Philippe Grand <philippe.grand@atoo-net.com>
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 3 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  19. */
  20. /**
  21. * \file htdocs/theme/eldy/style.css.php
  22. * \brief File for CSS style sheet Eldy
  23. */
  24. //if (! defined('NOREQUIREUSER')) define('NOREQUIREUSER','1'); // Not disabled because need to load personalized language
  25. //if (! defined('NOREQUIREDB')) define('NOREQUIREDB','1'); // Not disabled to increase speed. Language code is found on url.
  26. if (!defined('NOREQUIRESOC'))
  27. define('NOREQUIRESOC', '1');
  28. //if (! defined('NOREQUIRETRAN')) define('NOREQUIRETRAN','1'); // Not disabled because need to do translations
  29. if (!defined('NOCSRFCHECK'))
  30. define('NOCSRFCHECK', 1);
  31. if (!defined('NOTOKENRENEWAL'))
  32. define('NOTOKENRENEWAL', 1);
  33. //if (!defined('NOLOGIN'))
  34. //define('NOLOGIN', 1); // File must be accessed by logon page so without login
  35. if (!defined('NOREQUIREMENU'))
  36. define('NOREQUIREMENU', 1);
  37. if (!defined('NOREQUIREHTML'))
  38. define('NOREQUIREHTML', 1);
  39. if (!defined('NOREQUIREAJAX'))
  40. define('NOREQUIREAJAX', '1');
  41. session_cache_limiter(FALSE);
  42. require_once '../../main.inc.php';
  43. // Load user to have $user->conf loaded (not done into main because of NOLOGIN constant defined)
  44. //if (empty($user->id) && ! empty($_SESSION['dol_login'])) $user->fetch('',$_SESSION['dol_login']);
  45. // Define css type
  46. header('Content-type: text/css');
  47. // Important: Following code is to avoid page request by browser and PHP CPU at
  48. // each Dolibarr page access.
  49. if (empty($dolibarr_nocache))
  50. header('Cache-Control: max-age=3600, public, must-revalidate');
  51. else
  52. header('Cache-Control: no-cache');
  53. // On the fly GZIP compression for all pages (if browser support it). Must set the bit 3 of constant to 1.
  54. if (isset($conf->global->MAIN_OPTIMIZE_SPEED) && ($conf->global->MAIN_OPTIMIZE_SPEED & 0x04)) {
  55. ob_start("ob_gzhandler");
  56. }
  57. if (GETPOST('lang'))
  58. $langs->setDefaultLang(GETPOST('lang')); // If language was forced on URL
  59. if (GETPOST('theme'))
  60. $conf->theme = GETPOST('theme'); // If theme was forced on URL
  61. $langs->load("main", 0, 1);
  62. $right = ($langs->trans("DIRECTION") == 'rtl' ? 'left' : 'right');
  63. $left = ($langs->trans("DIRECTION") == 'rtl' ? 'right' : 'left');
  64. $path = ''; // This value may be used in future for external module to overwrite theme
  65. // Define image path files
  66. $fontlist = 'arial,tahoma,verdana,helvetica'; //$fontlist='Verdana,Helvetica,Arial,sans-serif';
  67. $img_head = dol_buildpath($path . '/theme/eldy/img/headbg2.jpg', 1);
  68. $img_button = dol_buildpath($path . '/theme/eldy/img/button_bg.png', 1);
  69. // Define reference colors
  70. // Example: Light grey: $colred=235;$colgreen=235;$colblue=235;
  71. // Example: Pink: $colred=230;$colgreen=210;$colblue=230;
  72. // Example: Green: $colred=210;$colgreen=230;$colblue=210;
  73. // Example: Ocean: $colred=220;$colgreen=220;$colblue=240;
  74. //$conf->global->THEME_ELDY_ENABLE_PERSONALIZED=0;
  75. //$user->conf->THEME_ELDY_ENABLE_PERSONALIZED=0;
  76. //var_dump($user->conf->THEME_ELDY_RGB);
  77. $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)));
  78. $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)));
  79. $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)));
  80. // Colors
  81. $isred = max(0, (2 * $colred - $colgreen - $colblue) / 2); // 0 - 255
  82. $isgreen = max(0, (2 * $colgreen - $colred - $colblue) / 2); // 0 - 255
  83. $isblue = max(0, (2 * $colblue - $colred - $colgreen) / 2); // 0 - 255
  84. $colorback1 = ($colred - 3) . ',' . ($colgreen - 3) . ',' . ($colblue - 3); // topmenu
  85. $colorback2 = ($colred + 5) . ',' . ($colgreen + 5) . ',' . ($colblue + 5);
  86. $colorbacktab1 = ($colred + 15) . ',' . ($colgreen + 16) . ',' . ($colblue + 17); // vmenu
  87. $colorbacktab1b = ($colred + 5) . ',' . ($colgreen + 6) . ',' . ($colblue + 7); // vmenu (not menu)
  88. $colorbacktab2 = ($colred - 15) . ',' . ($colgreen - 15) . ',' . ($colblue - 15);
  89. $colorbacktitle1 = ($colred - 5) . ',' . ($colgreen - 5) . ',' . ($colblue - 5); // title of array
  90. $colorbacktitle2 = ($colred - 15) . ',' . ($colgreen - 15) . ',' . ($colblue - 15);
  91. $colorbacktabcard1 = ($colred + 15) . ',' . ($colgreen + 16) . ',' . ($colblue + 17); // card
  92. $colorbacktabcard2 = ($colred - 15) . ',' . ($colgreen - 15) . ',' . ($colblue - 15);
  93. $colorbacktabactive = ($colred - 15) . ',' . ($colgreen - 15) . ',' . ($colblue - 15);
  94. $colorbacklineimpair1 = (244 + round($isred / 3)) . ',' . (244 + round($isgreen / 3)) . ',' . (244 + round($isblue / 3)); // line impair
  95. $colorbacklineimpair2 = (250 + round($isred / 3)) . ',' . (250 + round($isgreen / 3)) . ',' . (250 + round($isblue / 3)); // line impair
  96. $colorbacklineimpairhover = (230 + round(($isred + $isgreen + $isblue) / 9)) . ',' . (230 + round(($isred + $isgreen + $isblue) / 9)) . ',' . (230 + round(($isred + $isgreen + $isblue) / 9)); // line impair
  97. $colorbacklinepair1 = '255,255,255'; // line pair
  98. $colorbacklinepair2 = '255,255,255'; // line pair
  99. $colorbacklinepairhover = (230 + round(($isred + $isgreen + $isblue) / 9)) . ',' . (230 + round(($isred + $isgreen + $isblue) / 9)) . ',' . (230 + round(($isred + $isgreen + $isblue) / 9));
  100. $colorbackbody = '#ffffff url(' . $img_head . ') 0 0 no-repeat;';
  101. $colortext = '40,40,40';
  102. $fontsize = empty($conf->browser->phone) ? '12' : '14';
  103. $fontsizesmaller = empty($conf->browser->phone) ? '11' : '14';
  104. // Eldy colors
  105. if (empty($conf->global->THEME_ELDY_ENABLE_PERSONALIZED)) {
  106. $conf->global->THEME_ELDY_TOPMENU_BACK1 = '180,196,216'; // topmenu
  107. $conf->global->THEME_ELDY_TOPMENU_BACK2 = '190,206,226';
  108. $conf->global->THEME_ELDY_VERMENU_BACK1 = '246,248,250'; // vmenu
  109. $conf->global->THEME_ELDY_VERMENU_BACK1b = '226,228,230'; // vmenu (not menu)
  110. $conf->global->THEME_ELDY_VERMENU_BACK2 = '220,224,227';
  111. $conf->global->THEME_ELDY_BACKTITLE1 = '140,160,185'; // title of arrays
  112. $conf->global->THEME_ELDY_BACKTITLE2 = '210,220,235';
  113. $conf->global->THEME_ELDY_BACKTABCARD1 = '231,232,235'; // card
  114. $conf->global->THEME_ELDY_BACKTABCARD2 = '220,224,227';
  115. $conf->global->THEME_ELDY_BACKTABACTIVE = '220,224,227';
  116. $conf->global->THEME_ELDY_BACKBODY = '#ffffff url(' . $img_head . ') 0 0 no-repeat;';
  117. $conf->global->THEME_ELDY_LINEIMPAIR1 = '242,242,242';
  118. $conf->global->THEME_ELDY_LINEIMPAIR2 = '248,248,248';
  119. $conf->global->THEME_ELDY_LINEIMPAIRHOVER = '238,246,252';
  120. $conf->global->THEME_ELDY_LINEPAIR1 = '255,255,255';
  121. $conf->global->THEME_ELDY_LINEPAIR2 = '255,255,255';
  122. $conf->global->THEME_ELDY_LINEPAIRHOVER = '238,246,252';
  123. $conf->global->THEME_ELDY_BACKBODY = '#ffffff url(' . $img_head . ') 0 0 no-repeat;';
  124. $conf->global->THEME_ELDY_TEXT = '48,102,102';
  125. }
  126. $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);
  127. $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);
  128. $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);
  129. $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);
  130. $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);
  131. $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);
  132. $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);
  133. $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);
  134. $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);
  135. $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);
  136. $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);
  137. $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);
  138. $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);
  139. $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);
  140. $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);
  141. $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);
  142. $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);
  143. $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);
  144. $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);
  145. $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);
  146. // No hover by default, we keep only if we set var THEME_ELDY_USE_HOVER
  147. if ((!empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) && empty($user->conf->THEME_ELDY_USE_HOVER))
  148. || (empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) && empty($conf->global->THEME_ELDY_USE_HOVER))) {
  149. $colorbacklineimpairhover = '';
  150. $colorbacklinepairhover = '';
  151. }
  152. // Set text color to black or white
  153. $tmppart = explode(',', $colorback1);
  154. $tmpval = (!empty($tmppart[1]) ? $tmppart[1] : '');
  155. $tmpval+=(!empty($tmppart[2]) ? $tmppart[2] : '');
  156. $tmpval+=(!empty($tmppart[3]) ? $tmppart[3] : '');
  157. //print $tmpval;
  158. if ($tmpval < 340)
  159. $colortextmain = 'FFFFFF';
  160. else
  161. $colortextmain = '101010';
  162. $usecss3 = true;
  163. if ($conf->browser->name == 'ie' && round($conf->browser->version, 2) < 10)
  164. $usecss3 = false;
  165. elseif ($conf->browser->name == 'iceweasel')
  166. $usecss3 = false;
  167. elseif ($conf->browser->name == 'epiphany')
  168. $usecss3 = false;
  169. print '/*' . "\n";
  170. print 'colred=' . $colred . ' colgreen=' . $colgreen . ' colblue=' . $colblue . "\n";
  171. print 'isred=' . $isred . ' isgreen=' . $isgreen . ' isblue=' . $isblue . "\n";
  172. print 'colorbacklineimpair1=' . $colorbacklineimpair1 . "\n";
  173. print 'colorbacklineimpair2=' . $colorbacklineimpair2 . "\n";
  174. print 'colorbacklineimpairhover=' . $colorbacklineimpairhover . "\n";
  175. print 'colorbacklinepair1=' . $colorbacklinepair1 . "\n";
  176. print 'colorbacklinepair2=' . $colorbacklinepair2 . "\n";
  177. print 'colorbacklinepairhover=' . $colorbacklinepairhover . "\n";
  178. print 'usecss3=' . $usecss3 . "\n";
  179. print '*/' . "\n";
  180. ?>
  181. /* ============================================================================== */
  182. /* Styles par defaut */
  183. /* ============================================================================== */
  184. /*
  185. body {
  186. <?php if (GETPOST("optioncss") == 'print') { ?>
  187. background-color: #FFFFFF;
  188. <?php } else { ?>
  189. background: <?php print $colorbackbody; ?>;
  190. <?php } ?>
  191. color: #101010;
  192. font-size: <?php print $fontsize ?>px;
  193. font-family: <?php print $fontlist ?>;
  194. margin-top: 0;
  195. margin-bottom: 0;
  196. margin-right: 0;
  197. margin-left: 0;
  198. <?php print 'direction: ' . $langs->trans("DIRECTION") . ";\n"; ?>
  199. }*/
  200. /*input:focus, textarea:focus, button:focus, select:focus {
  201. box-shadow: 0 0 4px #8091BF;
  202. }
  203. input, input.flat, textarea, textarea.flat, form.flat select, select.flat {
  204. font-size: <?php print $fontsize ?>px;
  205. font-family: <?php print $fontlist ?>;
  206. background: #FDFDFD;
  207. border: 1px solid #C0C0C0;
  208. padding: 1px 1px 1px 1px;
  209. margin: 0px 0px 0px 0px;
  210. }
  211. input, textarea, select {
  212. border-radius:4px;
  213. border:solid 1px rgba(0,0,0,.3);
  214. border-top:solid 1px rgba(0,0,0,.3);
  215. border-bottom:solid 1px rgba(0,0,0,.2);
  216. box-shadow: 1px 1px 2px rgba(0,0,0,.2) inset;
  217. padding:2px;
  218. margin-left:1px;
  219. margin-bottom:1px;
  220. margin-top:1px;
  221. }
  222. select.flat, form.flat select {
  223. font-weight: normal;
  224. }
  225. input:disabled {
  226. background:#ddd;
  227. }
  228. input:-webkit-autofill {
  229. background-color: #FCFEFA !important; background-image:none !important;
  230. }
  231. input.liste_titre {
  232. box-shadow: none !important;
  233. }
  234. textarea:disabled {
  235. background:#ddd;
  236. }
  237. .button {
  238. font-family: <?php print $fontlist ?>;
  239. background-image: url(<?php echo $img_button ?>);
  240. background-position: bottom;
  241. border: 1px solid #C0C0C0;
  242. padding: 0.1em 0.7em;
  243. margin: 0em 0.5em;
  244. -moz-border-radius:0px 5px 0px 5px;
  245. -webkit-border-radius:0px 5px 0px 5px;
  246. border-radius:0px 5px 0px 5px;
  247. -moz-box-shadow: 2px 2px 3px #CCC;
  248. -webkit-box-shadow: 2px 2px 3px #CCC;
  249. box-shadow: 2px 2px 3px #CCC;
  250. }
  251. .button:focus {
  252. font-family: <?php print $fontlist ?>;
  253. color: #222244;
  254. background-image: url(<?php echo $img_button ?>);
  255. background-position: bottom;
  256. border: 1px solid #C0C0C0;
  257. }
  258. .button:hover {
  259. background: #dee7ec;
  260. }
  261. .button:disabled {
  262. background: #ddd;
  263. }
  264. .buttonajax {
  265. font-family: <?php print $fontlist ?>;
  266. border: 0px;
  267. background-image: url(<?php echo $img_button ?>);
  268. background-position: bottom;
  269. padding: 0.1em 0.7em;
  270. margin: 0em 0.5em;
  271. -moz-border-radius:0px 5px 0px 5px;
  272. -webkit-border-radius:0px 5px 0px 5px;
  273. border-radius:0px 5px 0px 5px;
  274. -moz-box-shadow: 4px 4px 4px #CCC;
  275. -webkit-box-shadow: 4px 4px 4px #CCC;
  276. box-shadow: 4px 4px 4px #CCC;
  277. }
  278. form {
  279. padding: 0em 0em 0em 0em;
  280. margin: 0em 0em 0em 0em;
  281. }
  282. div.float
  283. {
  284. float:<?php print $left; ?>;
  285. }
  286. th .button {
  287. -moz-box-shadow: none !important;
  288. -webkit-box-shadow: none !important;
  289. box-shadow: none !important;
  290. -moz-border-radius:0px !important;
  291. -webkit-border-radius:0px !important;
  292. border-radius:0px !important;
  293. }
  294. .valignmiddle {
  295. vertical-align: middle;
  296. }*/
  297. .centpercent {
  298. width: 100%;
  299. }
  300. /* ============================================================================== */
  301. /* Styles to hide objects */
  302. /* ============================================================================== */
  303. .hideobject { display: none; }
  304. <?php if (!empty($conf->browser->phone)) { ?>
  305. .hideonsmartphone { display: none; }
  306. <?php } ?>
  307. .linkobject { cursor: pointer; }
  308. /* ============================================================================== */
  309. /* Styles for dragging lines */
  310. /* ============================================================================== */
  311. .dragClass {
  312. color: #002255;
  313. }
  314. td.showDragHandle {
  315. cursor: move;
  316. }
  317. .tdlineupdown {
  318. white-space: nowrap;
  319. }
  320. /* ============================================================================== */
  321. /* Styles de positionnement des zones */
  322. /* ============================================================================== */
  323. div.fiche {
  324. 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;
  325. margin-<?php print $right; ?>: <?php print (GETPOST("optioncss") == 'print' ? 8 : (empty($conf->browser->phone) ? '12' : '6')); ?>px;
  326. }
  327. div.fichecenter {
  328. width: 100%;
  329. clear: both; /* This is to have div fichecenter that are true rectangles */
  330. }
  331. div.fichethirdleft {
  332. <?php if (empty($conf->browser->phone)) {
  333. print "float: " . $left . ";\n";
  334. } ?>
  335. <?php if (empty($conf->browser->phone)) {
  336. print "width: 35%;\n";
  337. } ?>
  338. <?php if (!empty($conf->browser->phone)) {
  339. print "padding-bottom: 6px;\n";
  340. } ?>
  341. }
  342. div.fichetwothirdright {
  343. <?php if (empty($conf->browser->phone)) {
  344. print "float: " . $right . ";\n";
  345. } ?>
  346. <?php if (empty($conf->browser->phone)) {
  347. print "width: 65%;\n";
  348. } ?>
  349. <?php if (!empty($conf->browser->phone)) {
  350. print "padding-bottom: 6px\n";
  351. } ?>
  352. }
  353. div.fichehalfleft {
  354. <?php if (empty($conf->browser->phone)) {
  355. print "float: " . $left . ";\n";
  356. } ?>
  357. <?php if (empty($conf->browser->phone)) {
  358. print "width: 50%;\n";
  359. } ?>
  360. }
  361. div.fichehalfright {
  362. <?php if (empty($conf->browser->phone)) {
  363. print "float: " . $right . ";\n";
  364. } ?>
  365. <?php if (empty($conf->browser->phone)) {
  366. print "width: 50%;\n";
  367. } ?>
  368. }
  369. div.ficheaddleft {
  370. <?php if (empty($conf->browser->phone)) {
  371. print "padding-left: 16px;\n";
  372. } ?>
  373. }
  374. /* ============================================================================== */
  375. /* Menu top et 1ere ligne tableau */
  376. /* ============================================================================== */
  377. <?php
  378. if (!empty($conf->browser->phone)) {
  379. $minwidthtmenu = 0;
  380. $heightmenu = 19;
  381. } else {
  382. $minwidthtmenu = 66;
  383. $heightmenu = 52;
  384. }
  385. ?>
  386. div#tmenu_tooltip {
  387. <?php
  388. if (!empty($conf->global->THEME_ELDY_ENABLE_PERSONALIZED) || !empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED)) {
  389. $colortexttopmenu = $colortextmain;
  390. ?>
  391. background: rgb(<?php echo $colorback1 ?>);
  392. <?php
  393. } else {
  394. //if ($usecss3) $colortexttopmenu='FFFFFF';
  395. //else
  396. $colortexttopmenu = '000000';
  397. ?>
  398. background: rgb(<?php echo $colorback1 ?>);
  399. /* background: #305582; *//* 2C68A3 */
  400. <?php
  401. }
  402. ?>
  403. margin-bottom: 10px;
  404. }
  405. div.tmenudiv {
  406. <?php if (GETPOST("optioncss") == 'print') { ?>
  407. display:none;
  408. <?php } else { ?>
  409. position: relative;
  410. display: block;
  411. white-space: nowrap;
  412. border-top: 0px solid #D3E5EC;
  413. border-<?php print $left; ?>: 0px;
  414. border-<?php print $right; ?>: 0px solid #555555;
  415. border-bottom: 1px solid #FFFFFF;
  416. padding: 0px 0px 0px 0px; /* t r b l */
  417. margin: 0px 0px 0px 0px; /* t r b l */
  418. font-size: 13px;
  419. font-weight: normal;
  420. height: <?php print ($heightmenu + 1); ?>px;
  421. <?php if ($usecss3) { ?>
  422. /* background-image: -o-linear-gradient(bottom, rgb(<?php echo $colorback1; ?>) 75%, rgb(<?php echo $colorback2; ?>) 100%); */
  423. /* background-image: -moz-linear-gradient(bottom, rgb(<?php echo $colorback1; ?>) 75%, rgb(<?php echo $colorback2; ?>) 100%);*/
  424. /* background-image: -webkit-linear-gradient(bottom, rgb(<?php echo $colorback1; ?>) 40%, rgb(<?php echo $colorback2; ?>) 60%, rgb(<?php echo $colorback1; ?>) 100%);*/
  425. /* background-image: -ms-linear-gradient(bottom, rgb(<?php echo $colorback1; ?>) 75%, rgb(<?php echo $colorback2; ?>) 100%);*/
  426. /* background-image: linear-gradient(bottom, rgb(<?php echo $colorback1; ?>) 75%, rgb(<?php echo $colorback2; ?>) 100%); */
  427. background: url(<?php echo DOL_URL_ROOT . '/theme/eldy/img/nav-overlay3.png' ?>) 50% 0% repeat-x;
  428. <?php } else { ?>
  429. background-image: url(<?php echo DOL_URL_ROOT . '/theme/eldy/img/tmenu2.jpg' ?>);
  430. background-position:top;
  431. background-repeat:repeat-x;
  432. <?php } ?>
  433. color: #000000;
  434. text-decoration: none;
  435. <?php } ?>
  436. }
  437. a.tmenudisabled:link, a.tmenudisabled:visited, a.tmenudisabled:hover, a.tmenudisabled:active {
  438. color: #808080;
  439. font-weight: normal;
  440. padding: 0px 5px 0px 5px;
  441. margin: 0px 1px 2px 1px;
  442. cursor: not-allowed;
  443. font-weight: normal;
  444. white-space: nowrap;
  445. }
  446. a.tmenu:link, a.tmenu:visited, a.tmenu:hover, a.tmenu:active {
  447. font-weight: normal;
  448. padding: 0px 5px 0px 5px;
  449. white-space: nowrap;
  450. /* text-shadow: 1px 1px 1px #000000; */
  451. color: #<?php echo $colortexttopmenu; ?>;
  452. }
  453. a.tmenu:link, a.tmenu:visited {
  454. color: #<?php echo $colortexttopmenu; ?>;
  455. }
  456. a.tmenu:hover, a.tmenu:active {
  457. margin: 0px 0px 0px 0px;
  458. /* border-<?php print $right; ?>: 1px solid #555555; */
  459. /* border-<?php print $left; ?>: 1px solid #D8D8D8; */
  460. /* border-top: 1px solid #D8D8D8; */
  461. /* border-bottom: 2px solid #F4F4F4; */
  462. /* background: #F4F4F4; */
  463. /* text-shadow: 1px 1px 1px #FFFFFF !important; */
  464. color: #<?php echo $colortexttopmenu; ?>;
  465. }
  466. a.tmenusel:link, a.tmenusel:visited, a.tmenusel:hover, a.tmenusel:active {
  467. font-weight: normal;
  468. padding: 0px 5px 0px 5px;
  469. margin: 0px 0px 0px 0px;
  470. /* background: #F4F4F4; */
  471. /* border-<?php print $right; ?>: 1px solid #555555; */
  472. /* border-top: 1px solid #D8D8D8; */
  473. /* border-<?php print $left; ?>: 1px solid #D8D8D8; */
  474. /* border-bottom: 2px solid #F4F4F4; */
  475. white-space: nowrap;
  476. /* text-shadow: 1px 1px 1px #FFFFFF;*/
  477. color: #<?php echo $colortexttopmenu; ?>;
  478. }
  479. ul.tmenu { /* t r b l */
  480. padding: 0px 0px 0px 0px;
  481. margin: 0px 0px 0px 0px;
  482. list-style: none;
  483. height: <?php print $heightmenu; ?>px;
  484. background: url(<?php echo DOL_URL_ROOT . '/theme/eldy/img/nav-overlay3.png' ?>) 0 0 repeat-x !important;
  485. }
  486. li.tmenu, li.tmenusel {
  487. <?php print $minwidthtmenu ? 'min-width: ' . $minwidthtmenu . 'px;' : ''; ?>
  488. text-align: center;
  489. vertical-align: bottom;
  490. float: <?php print $left; ?>;
  491. height: <?php print $heightmenu; ?>px;
  492. position:relative;
  493. display: block;
  494. padding: 0px 0px 0px 0px;
  495. margin: 0px 0px 0px 0px;
  496. font-weight: normal;
  497. }
  498. li.tmenu:hover, li.tmenusel {
  499. <?php if ($usecss3) { ?>
  500. /* background-image: -o-linear-gradient(bottom, rgb(<?php echo $colorback1; ?>) 75%, rgb(<?php echo $colorback2; ?>) 100%); */
  501. /* background-image: -moz-linear-gradient(bottom, rgb(<?php echo $colorback1; ?>) 75%, rgb(<?php echo $colorback2; ?>) 100%);*/
  502. /* background-image: -webkit-linear-gradient(bottom, rgb(<?php echo $colorback1; ?>) 40%, rgb(<?php echo $colorback2; ?>) 60%, rgb(<?php echo $colorback1; ?>) 100%); */
  503. /* background-image: -ms-linear-gradient(bottom, rgb(<?php echo $colorback1; ?>) 75%, rgb(<?php echo $colorback2; ?>) 100%);*/
  504. /* background-image: linear-gradient(bottom, rgb(<?php echo $colorback1; ?>) 75%, rgb(<?php echo $colorback2; ?>) 100%); */
  505. background: url(<?php echo DOL_URL_ROOT . '/theme/eldy/img/nav-overlay3.png' ?>) 50% 0 repeat-x;
  506. <?php } ?>
  507. }
  508. div.tmenuleft
  509. {
  510. width: 5px;
  511. float: <?php print $left; ?>;
  512. height: <?php print $heightmenu + 4; ?>px;
  513. background: url(<?php echo DOL_URL_ROOT . '/theme/eldy/img/menutab-r.png' ?>) 0 0 no-repeat;
  514. margin-top: -4px;
  515. }
  516. div.tmenucenter
  517. {
  518. padding-top: 2px;
  519. padding-left: 0px;
  520. padding-right: 0px;
  521. height: <?php print $heightmenu; ?>px;
  522. width: 100%;
  523. }
  524. .mainmenuaspan
  525. {
  526. padding-right: 4px;
  527. text-shadow: 1px 1px 1px #DDD;
  528. }
  529. div.mainmenu {
  530. position : relative;
  531. background-repeat:no-repeat;
  532. background-position:center top;
  533. height: <?php echo ($heightmenu - 19); ?>px;
  534. margin-left: 0px;
  535. min-width: 40px;
  536. }
  537. <?php if (empty($conf->browser->phone)) { ?>
  538. div.mainmenu.home{
  539. background-image: url(<?php echo dol_buildpath($path . '/theme/eldy/img/menus/home.png', 1) ?>);
  540. background-position-x: middle;
  541. }
  542. div.mainmenu.accountancy {
  543. background-image: url(<?php echo dol_buildpath($path . '/theme/eldy/img/menus/money.png', 1) ?>);
  544. }
  545. div.mainmenu.agenda {
  546. background-image: url(<?php echo dol_buildpath($path . '/theme/eldy/img/menus/agenda.png', 1) ?>);
  547. }
  548. div.mainmenu.bank {
  549. background-image: url(<?php echo dol_buildpath($path . '/theme/eldy/img/menus/bank.png', 1) ?>);
  550. }
  551. div.mainmenu.bookmark {
  552. }
  553. div.mainmenu.cashdesk {
  554. background-image: url(<?php echo dol_buildpath($path . '/theme/eldy/img/menus/pointofsale.png', 1) ?>);
  555. }
  556. div.mainmenu.click2dial {
  557. }
  558. div.mainmenu.companies {
  559. background-image: url(<?php echo dol_buildpath($path . '/theme/eldy/img/menus/members.png', 1) ?>);
  560. }
  561. div.mainmenu.contacts {
  562. background-image: url(<?php echo dol_buildpath($path . '/theme/eldy/img/menus/stethoscope.png', 1) ?>);
  563. }
  564. div.mainmenu.commercial {
  565. background-image: url(<?php echo dol_buildpath($path . '/theme/eldy/img/menus/commercial.png', 1) ?>);
  566. }
  567. div.mainmenu.ecm {
  568. background-image: url(<?php echo dol_buildpath($path . '/theme/eldy/img/menus/ecm.png', 1) ?>);
  569. }
  570. div.mainmenu.externalsite {
  571. background-image: url(<?php echo dol_buildpath($path . '/theme/eldy/img/menus/externalsite.png', 1) ?>);
  572. }
  573. div.mainmenu.ftp {
  574. background-image: url(<?php echo dol_buildpath($path . '/theme/eldy/img/menus/tools.png', 1) ?>);
  575. }
  576. div.mainmenu.gravatar {
  577. }
  578. div.mainmenu.geopipmaxmind {
  579. }
  580. div.mainmenu.holiday {
  581. background-image: url(<?php echo dol_buildpath($path . '/theme/eldy/img/menus/holiday.png', 1) ?>);
  582. }
  583. div.mainmenu.members {
  584. background-image: url(<?php echo dol_buildpath($path . '/theme/eldy/img/menus/members.png', 1) ?>);
  585. }
  586. div.mainmenu.paypal {
  587. }
  588. div.mainmenu.products {
  589. background-image: url(<?php echo dol_buildpath($path . '/theme/eldy/img/menus/products.png', 1) ?>);
  590. margin-left: 10px;
  591. }
  592. div.mainmenu.project {
  593. background-image: url(<?php echo dol_buildpath($path . '/theme/eldy/img/menus/project.png', 1) ?>);
  594. }
  595. div.mainmenu.tools {
  596. background-image: url(<?php echo dol_buildpath($path . '/theme/eldy/img/menus/tools.png', 1) ?>);
  597. }
  598. div.mainmenu.webservices {
  599. }
  600. div.mainmenu.google {
  601. background-image: url(<?php echo dol_buildpath($path . '/theme/eldy/img/menus/globe.png', 1) ?>);
  602. }
  603. <?php
  604. // Add here more div for other menu entries. moduletomainmenu=array('module name'=>'name of class for div')
  605. $moduletomainmenu = array('user' => '', 'syslog' => '', 'societe' => 'companies', 'projet' => 'project', 'propale' => 'commercial', 'commande' => 'commercial',
  606. 'produit' => 'products', 'service' => 'products', 'stock' => 'products',
  607. 'don' => 'accountancy', 'tax' => 'accountancy', 'banque' => 'accountancy', 'facture' => 'accountancy', 'compta' => 'accountancy', 'accounting' => 'accountancy', 'adherent' => 'members', 'import' => 'tools', 'export' => 'tools', 'mailing' => 'tools',
  608. 'contrat' => 'commercial', 'ficheinter' => 'commercial', 'deplacement' => 'commercial',
  609. 'fournisseur' => 'companies',
  610. 'barcode' => '', 'fckeditor' => '', 'categorie' => '',
  611. );
  612. $mainmenuused = 'home';
  613. foreach ($conf->modules as $val) {
  614. $mainmenuused.=',' . (isset($moduletomainmenu[$val]) ? $moduletomainmenu[$val] : $val);
  615. }
  616. //var_dump($mainmenuused);
  617. $mainmenuusedarray = array_unique(explode(',', $mainmenuused));
  618. $generic = 1;
  619. $divalreadydefined = array('home', 'companies', 'products', 'commercial', 'accountancy', 'project', 'tools', 'members', 'agenda', 'holiday', 'bookmark', 'cashdesk', 'ecm', 'geoipmaxmind', 'gravatar', 'clicktodial', 'paypal', 'webservices');
  620. foreach ($mainmenuusedarray as $val) {
  621. if (empty($val) || in_array($val, $divalreadydefined))
  622. continue;
  623. //print "XXX".$val;
  624. // Search img file in module dir
  625. $found = 0;
  626. $url = '';
  627. foreach ($conf->file->dol_document_root as $dirroot) {
  628. if (file_exists($dirroot . "/" . $val . "/img/" . $val . ".png")) {
  629. $url = dol_buildpath('/' . $val . '/img/' . $val . '.png', 1);
  630. $found = 1;
  631. break;
  632. }
  633. }
  634. // Img file not found
  635. if (!$found) {
  636. $url = dol_buildpath($path . '/theme/eldy/img/menus/generic' . $generic . ".png", 1);
  637. $found = 1;
  638. if ($generic < 4)
  639. $generic++;
  640. print "/* A mainmenu entry but img file " . $val . ".png not found, so we use a generic one */\n";
  641. }
  642. if ($found) {
  643. print "div.mainmenu." . $val . " {\n";
  644. print " background-image: url(" . $url . ");\n";
  645. print "}\n";
  646. }
  647. }
  648. // End of part to add more div class css
  649. ?>
  650. <?php
  651. } // End test if not phone
  652. ?>
  653. .tmenuimage {
  654. padding:0 0 0 0 !important;
  655. margin:0 0px 0 0 !important;
  656. }
  657. /* Login */
  658. form#login {
  659. margin-top: 70px;
  660. margin-bottom: 30px;
  661. font-size: 13px;
  662. }
  663. .login_table_title {
  664. width: 540px;
  665. color: #888888;
  666. text-shadow: 1px 1px 1px #FFF;
  667. }
  668. .login_table label {
  669. text-shadow: 1px 1px 1px #FFF;
  670. }
  671. .login_table {
  672. padding-left:6px;
  673. padding-right:6px;
  674. padding-top:14px;
  675. padding-bottom:12px;
  676. width: 540px;
  677. border: 1px solid #C0C0C0;
  678. background-color: #E0E0E0;
  679. -moz-box-shadow: 4px 4px 4px #CCC;
  680. -webkit-box-shadow: 4px 4px 4px #CCC;
  681. box-shadow: 4px 4px 4px #CCC;
  682. border-radius: 8px;
  683. border:solid 1px rgba(168,168,168,.4);
  684. border-top:solid 1px f8f8f8;
  685. background-color: #f8f8f8;
  686. background-image: -o-linear-gradient(top, rgba(250,250,250,.6) 0%, rgba(192,192,192,.3) 100%);
  687. background-image: -moz-linear-gradient(top, rgba(250,250,250,.6) 0%, rgba(192,192,192,.3) 100%);
  688. background-image: -webkit-linear-gradient(top, rgba(250,250,250,.6) 0%, rgba(192,192,192,.3) 100%);
  689. background-image: -ms-linear-gradient(top, rgba(250,250,250,.6) 0%, rgba(192,192,192,.3) 100%);
  690. background-image: linear-gradient(top, rgba(250,250,250,.6) 0%, rgba(192,192,192,.3) 100%);
  691. }
  692. table.login_table tr td table.none tr td {
  693. padding: 2px;
  694. }
  695. #img_securitycode {
  696. border: 1px solid #DDDDDD;
  697. }
  698. #img_logo {
  699. max-width: 200px;
  700. }
  701. div.login_block {
  702. position: absolute;
  703. <?php print $right; ?>: 5px;
  704. top: 3px;
  705. font-weight: bold;
  706. <?php if (GETPOST("optioncss") == 'print') { ?>
  707. display: none;
  708. <?php } ?>
  709. }
  710. div.login_block table {
  711. display: inline;
  712. }
  713. div.login {
  714. white-space:nowrap;
  715. padding: <?php echo ($conf->browser->phone ? '0' : '8') ?>px 0px 0px 0px;
  716. margin: 0px 0px 0px 8px;
  717. font-weight: bold;
  718. }
  719. div.login a {
  720. color: #<?php echo $colortextmain; ?>;
  721. }
  722. div.login a:hover {
  723. color: #<?php echo $colortextmain; ?>;
  724. text-decoration:underline;
  725. }
  726. img.login, img.printer, img.entity {
  727. padding: <?php echo ($conf->browser->phone ? '0' : '8') ?>px 0px 0px 0px;
  728. margin: 0px 0px 0px 8px;
  729. text-decoration: none;
  730. color: white;
  731. font-weight: bold;
  732. }
  733. /* ============================================================================== */
  734. /* Menu gauche */
  735. /* ============================================================================== */
  736. td.vmenu {
  737. margin-<?php print $right; ?>: 2px;
  738. padding: 0px;
  739. padding-bottom: 0px;
  740. padding-top: 1px;
  741. width: 174px;
  742. }
  743. .vmenu {
  744. margin-left: 4px;
  745. <?php if (GETPOST("optioncss") == 'print') { ?>
  746. display: none;
  747. <?php } ?>
  748. }
  749. .menu_contenu { padding-top: 1px; }
  750. 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; }
  751. font.vmenudisabled { font-size:<?php print $fontsize ?>px; font-family: <?php print $fontlist ?>; text-align: <?php print $left; ?>; font-weight: bold; color: #93a5aa; }
  752. a.vmenu:link, a.vmenu:visited { color: #<?php echo $colortextmain; ?>; }
  753. 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; }
  754. 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; }
  755. a.vsmenu:link, a.vsmenu:visited { color: #<?php echo $colortextmain; ?>; }
  756. 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; }
  757. div.blockvmenupair, div.blockvmenuimpair, div.blockvmenubookmarks
  758. {
  759. width:174px;
  760. font-family: <?php print $fontlist ?>;
  761. color: #000000;
  762. text-align: <?php print $left; ?>;
  763. text-decoration: none;
  764. padding-left: 5px;
  765. padding-right: 1px;
  766. padding-top: 3px;
  767. padding-bottom: 3px;
  768. margin: 1px 0px 8px 2px;
  769. <?php if ($usecss3) { ?>
  770. background-image: -o-linear-gradient(bottom, rgb(<?php echo $colorbacktab1; ?>) 85%, rgb(<?php echo $colorbacktab2; ?>) 100%);
  771. background-image: -moz-linear-gradient(bottom, rgb(<?php echo $colorbacktab1; ?>) 85%, rgb(<?php echo $colorbacktab2; ?>) 100%);
  772. background-image: -webkit-linear-gradient(bottom, rgb(<?php echo $colorbacktab1; ?>) 85%, rgb(<?php echo $colorbacktab2; ?>) 100%);
  773. background-image: -ms-linear-gradient(bottom, rgb(<?php echo $colorbacktab1; ?>) 85%, rgb(<?php echo $colorbacktab2; ?>) 100%);
  774. background-image: linear-gradient(bottom, rgb(<?php echo $colorbacktab1; ?>) 85%, rgb(<?php echo $colorbacktab2; ?>) 100%);
  775. <?php } else { ?>
  776. background-image: url(<?php echo DOL_URL_ROOT . '/theme/eldy/img/tmenu.jpg' ?>);
  777. background-position:top;
  778. background-repeat:repeat-x;
  779. <?php } ?>
  780. border-left: 1px solid #CCCCCC;
  781. border-right: 1px solid #BBBBBB;
  782. border-bottom: 1px solid #BBBBBB;
  783. border-radius: 5px;
  784. -moz-border-radius: 5px;
  785. -moz-box-shadow: 4px 4px 4px #CCC;
  786. -webkit-box-shadow: 4px 4px 4px #CCC;
  787. box-shadow: 4px 4px 4px #CCC;
  788. }
  789. div.blockvmenusearch
  790. {
  791. width:174px;
  792. font-family: <?php print $fontlist ?>;
  793. color: #000000;
  794. text-align: <?php print $left; ?>;
  795. text-decoration: none;
  796. padding-left: 5px;
  797. padding-right: 1px;
  798. padding-top: 3px;
  799. padding-bottom: 3px;
  800. margin: 1px 0px 8px 2px;
  801. background: #E3E6E8;
  802. <?php if ($usecss3) { ?>
  803. background-image: -o-linear-gradient(bottom, rgb(<?php echo $colorbacktab1b; ?>) 85%, rgb(<?php echo $colorbacktab2; ?>) 100%);
  804. background-image: -moz-linear-gradient(bottom, rgb(<?php echo $colorbacktab1b; ?>) 85%, rgb(<?php echo $colorbacktab2; ?>) 100%);
  805. background-image: -webkit-linear-gradient(bottom, rgb(<?php echo $colorbacktab1b; ?>) 85%, rgb(<?php echo $colorbacktab2; ?>) 100%);
  806. background-image: -ms-linear-gradient(bottom, rgb(<?php echo $colorbacktab1b; ?>) 85%, rgb(<?php echo $colorbacktab2; ?>) 100%);
  807. background-image: linear-gradient(bottom, rgb(<?php echo $colorbacktab1b; ?>) 85%, rgb(<?php echo $colorbacktab2; ?>) 100%);
  808. <?php } ?>
  809. border-left: 1px solid #CCCCCC;
  810. border-right: 1px solid #BBBBBB;
  811. border-bottom: 1px solid #BBBBBB;
  812. border-radius: 5px;
  813. -moz-border-radius: 5px;
  814. -moz-box-shadow: 4px 4px 4px #CCC;
  815. -webkit-box-shadow: 4px 4px 4px #CCC;
  816. box-shadow: 4px 4px 4px #CCC;
  817. }
  818. div.blockvmenubookmarksold
  819. {
  820. width:174px;
  821. border-right: 1px solid #555555;
  822. border-bottom: 1px solid #555555;
  823. font-family: <?php print $fontlist ?>;
  824. color: #000000;
  825. text-align: <?php print $left; ?>;
  826. text-decoration: none;
  827. padding-left: 5px;
  828. padding-right: 1px;
  829. padding-top: 3px;
  830. padding-bottom: 3px;
  831. margin: 6px 0px 8px 2px;
  832. background: #E3E6E8;
  833. <?php if ($usecss3) { ?>
  834. background-image: -o-linear-gradient(bottom, rgb(<?php echo $colorbacktab1b; ?>) 85%, rgb(<?php echo $colorbacktab2; ?>) 100%);
  835. background-image: -moz-linear-gradient(bottom, rgb(<?php echo $colorbacktab1b; ?>) 85%, rgb(<?php echo $colorbacktab2; ?>) 100%);
  836. background-image: -webkit-linear-gradient(bottom, rgb(<?php echo $colorbacktab1b; ?>) 85%, rgb(<?php echo $colorbacktab2; ?>) 100%);
  837. background-image: -ms-linear-gradient(bottom, rgb(<?php echo $colorbacktab1b; ?>) 85%, rgb(<?php echo $colorbacktab2; ?>) 100%);
  838. background-image: linear-gradient(bottom, rgb(<?php echo $colorbacktab1b; ?>) 85%, rgb(<?php echo $colorbacktab2; ?>) 100%);
  839. <?php } ?>
  840. border-left: 1px solid #CCCCCC;
  841. border-right: 1px solid #BBBBBB;
  842. border-bottom: 1px solid #BBBBBB;
  843. border-radius: 5px;
  844. -moz-border-radius: 5px;
  845. -moz-box-shadow: 4px 4px 4px #CCC;
  846. -webkit-box-shadow: 4px 4px 4px #CCC;
  847. box-shadow: 4px 4px 4px #CCC;
  848. }
  849. div.blockvmenuhelp
  850. {
  851. <?php if (empty($conf->browser->phone)) { ?>
  852. width:174px;
  853. font-family: <?php print $fontlist ?>;
  854. color: #000000;
  855. text-align: center;
  856. text-decoration: none;
  857. padding-left: 0px;
  858. padding-right: 3px;
  859. padding-top: 3px;
  860. padding-bottom: 3px;
  861. margin: 4px 0px 0px 0px;
  862. <?php } else { ?>
  863. display: none;
  864. <?php } ?>
  865. }
  866. td.barre {
  867. border-right: 1px solid #000000;
  868. border-bottom: 1px solid #000000;
  869. background: #b3c5cc;
  870. font-family: <?php print $fontlist ?>;
  871. color: #000000;
  872. text-align: <?php print $left; ?>;
  873. text-decoration: none;
  874. }
  875. td.barre_select {
  876. background: #b3c5cc;
  877. color: #000000;
  878. }
  879. td.photo {
  880. background: #F4F4F4;
  881. color: #000000;
  882. border: 1px solid #b3c5cc;
  883. }
  884. /* ============================================================================== */
  885. /* Panes for Main */
  886. /* ============================================================================== */
  887. /*
  888. * PANES and CONTENT-DIVs
  889. */
  890. #mainContent, #leftContent .ui-layout-pane {
  891. padding: 0px;
  892. overflow: auto;
  893. }
  894. #mainContent, #leftContent .ui-layout-center {
  895. padding: 0px;
  896. position: relative; /* contain floated or positioned elements */
  897. overflow: auto; /* add scrolling to content-div */
  898. }
  899. /* ============================================================================== */
  900. /* Toolbar for ECM or Filemanager */
  901. /* ============================================================================== */
  902. .toolbar {
  903. <?php if ($usecss3) { ?>
  904. background-image: -o-linear-gradient(bottom, rgb(<?php echo '240,240,240'; ?>) 15%, rgb(<?php echo '255,255,255'; ?>) 100%) !important;
  905. background-image: -moz-linear-gradient(bottom, rgb(<?php echo '240,240,240'; ?>) 15%, rgb(<?php echo '255,255,255'; ?>) 100%) !important;
  906. background-image: -webkit-linear-gradient(bottom, rgb(<?php echo '240,240,240'; ?>) 15%, rgb(<?php echo '255,255,255'; ?>) 100%) !important;
  907. background-image: -ms-linear-gradient(bottom, rgb(<?php echo '240,240,240'; ?>) 15%, rgb(<?php echo '255,255,255'; ?>) 100%) !important;
  908. background-image: linear-gradient(bottom, rgb(<?php echo '240,240,240'; ?>) 15%, rgb(<?php echo '255,255,255'; ?>) 100%) !important;
  909. <?php } else { ?>
  910. background-image: url(<?php echo DOL_URL_ROOT . '/theme/' . $conf->theme . '/img/tmenu2.jpg' ?>) !important;
  911. background-repeat: repeat-x !important;
  912. <?php } ?>
  913. border: 1px solid #CCC !important;
  914. -moz-border-radius: 5px 5px 5px 5px !important;
  915. -webkit-border-radius: 5px 5px 5px 5px !important;
  916. border-radius: 5px 5px 5px 5px !important;
  917. -moz-box-shadow: 4px 4px 4px #EEE;
  918. -webkit-box-shadow: 4px 4px 4px #EEE;
  919. box-shadow: 4px 4px 4px #EEE;
  920. padding: 0 4px 0 4px !important;
  921. height: 34px !important;
  922. }
  923. a.toolbarbutton {
  924. margin-top: 0px;
  925. margin-left: 4px;
  926. margin-right: 4px;
  927. height: 30px;
  928. }
  929. img.toolbarbutton {
  930. margin-top: 1px;
  931. height: 30px;
  932. }
  933. /* ============================================================================== */
  934. /* Panes for ECM or Filemanager */
  935. /* ============================================================================== */
  936. #containerlayout .layout-with-no-border {
  937. border: 0 !important;
  938. border-width: 0 !important;
  939. }
  940. #containerlayout .layout-padding {
  941. padding: 2px !important;
  942. }
  943. /*
  944. * PANES and CONTENT-DIVs
  945. */
  946. #containerlayout .ui-layout-pane { /* all 'panes' */
  947. background: #FFF;
  948. border: 1px solid #BBB;
  949. /* DO NOT add scrolling (or padding) to 'panes' that have a content-div,
  950. otherwise you may get double-scrollbars - on the pane AND on the content-div
  951. */
  952. padding: 0px;
  953. overflow: auto;
  954. }
  955. /* (scrolling) content-div inside pane allows for fixed header(s) and/or footer(s) */
  956. #containerlayout .ui-layout-content {
  957. padding: 10px;
  958. position: relative; /* contain floated or positioned elements */
  959. overflow: auto; /* add scrolling to content-div */
  960. }
  961. /*
  962. * RESIZER-BARS
  963. */
  964. .ui-layout-resizer { /* all 'resizer-bars' */
  965. width: <?php echo (empty($conf->browser->phone) ? '8' : '24'); ?>px !important;
  966. }
  967. .ui-layout-resizer-hover { /* affects both open and closed states */
  968. }
  969. /* NOTE: It looks best when 'hover' and 'dragging' are set to the same color,
  970. otherwise color shifts while dragging when bar can't keep up with mouse */
  971. /*.ui-layout-resizer-open-hover ,*/ /* hover-color to 'resize' */
  972. .ui-layout-resizer-dragging { /* resizer beging 'dragging' */
  973. background: #DDD;
  974. width: <?php echo (empty($conf->browser->phone) ? '8' : '24'); ?>px;
  975. }
  976. .ui-layout-resizer-dragging { /* CLONED resizer being dragged */
  977. border-left: 1px solid #BBB;
  978. border-right: 1px solid #BBB;
  979. }
  980. /* NOTE: Add a 'dragging-limit' color to provide visual feedback when resizer hits min/max size limits */
  981. .ui-layout-resizer-dragging-limit { /* CLONED resizer at min or max size-limit */
  982. background: #E1A4A4; /* red */
  983. }
  984. .ui-layout-resizer-closed {
  985. background-color: #DDDDDD;
  986. }
  987. .ui-layout-resizer-closed:hover {
  988. background-color: #EEDDDD;
  989. }
  990. .ui-layout-resizer-sliding { /* resizer when pane is 'slid open' */
  991. opacity: .10; /* show only a slight shadow */
  992. filter: alpha(opacity=10);
  993. }
  994. .ui-layout-resizer-sliding-hover { /* sliding resizer - hover */
  995. opacity: 1.00; /* on-hover, show the resizer-bar normally */
  996. filter: alpha(opacity=100);
  997. }
  998. /* sliding resizer - add 'outside-border' to resizer on-hover */
  999. /* this sample illustrates how to target specific panes and states */
  1000. /*.ui-layout-resizer-north-sliding-hover { border-bottom-width: 1px; }
  1001. .ui-layout-resizer-south-sliding-hover { border-top-width: 1px; }
  1002. .ui-layout-resizer-west-sliding-hover { border-right-width: 1px; }
  1003. .ui-layout-resizer-east-sliding-hover { border-left-width: 1px; }
  1004. */
  1005. /*
  1006. * TOGGLER-BUTTONS
  1007. */
  1008. .ui-layout-toggler {
  1009. <?php if (empty($conf->browser->phone)) { ?>
  1010. border-top: 1px solid #AAA; /* match pane-border */
  1011. border-right: 1px solid #AAA; /* match pane-border */
  1012. border-bottom: 1px solid #AAA; /* match pane-border */
  1013. background-color: #DDD;
  1014. top: 5px !important;
  1015. <?php } else { ?>
  1016. diplay: none;
  1017. <?php } ?>
  1018. }
  1019. .ui-layout-toggler-open {
  1020. height: 54px !important;
  1021. width: <?php echo (empty($conf->browser->phone) ? '7' : '22'); ?>px !important;
  1022. -moz-border-radius:0px 10px 10px 0px;
  1023. -webkit-border-radius:0px 10px 10px 0px;
  1024. border-radius:0px 10px 10px 0px;
  1025. }
  1026. .ui-layout-toggler-closed {
  1027. height: <?php echo (empty($conf->browser->phone) ? '54' : '2'); ?>px !important;
  1028. width: <?php echo (empty($conf->browser->phone) ? '7' : '22'); ?>px !important;
  1029. -moz-border-radius:0px 10px 10px 0px;
  1030. -webkit-border-radius:0px 10px 10px 0px;
  1031. border-radius:0px 10px 10px 0px;
  1032. }
  1033. .ui-layout-toggler .content { /* style the text we put INSIDE the togglers */
  1034. color: #666;
  1035. font-size: 12px;
  1036. font-weight: bold;
  1037. width: 100%;
  1038. padding-bottom: 0.35ex; /* to 'vertically center' text inside text-span */
  1039. }
  1040. /* hide the toggler-button when the pane is 'slid open' */
  1041. .ui-layout-resizer-sliding ui-layout-toggler {
  1042. display: none;
  1043. }
  1044. .ui-layout-north {
  1045. height: <?php print (empty($conf->browser->phone) ? '54' : '21'); ?>px !important;
  1046. }
  1047. /* ECM */
  1048. #containerlayout .ecm-layout-pane { /* all 'panes' */
  1049. background: #FFF;
  1050. border: 1px solid #BBB;
  1051. /* DO NOT add scrolling (or padding) to 'panes' that have a content-div,
  1052. otherwise you may get double-scrollbars - on the pane AND on the content-div
  1053. */
  1054. padding: 0px;
  1055. overflow: auto;
  1056. }
  1057. /* (scrolling) content-div inside pane allows for fixed header(s) and/or footer(s) */
  1058. #containerlayout .ecm-layout-content {
  1059. padding: 10px;
  1060. position: relative; /* contain floated or positioned elements */
  1061. overflow: auto; /* add scrolling to content-div */
  1062. }
  1063. .ecm-layout-toggler {
  1064. border-top: 1px solid #AAA; /* match pane-border */
  1065. border-right: 1px solid #AAA; /* match pane-border */
  1066. border-bottom: 1px solid #AAA; /* match pane-border */
  1067. background-color: #CCC;
  1068. }
  1069. .ecm-layout-toggler-open {
  1070. height: 48px !important;
  1071. width: 6px !important;
  1072. -moz-border-radius:0px 10px 10px 0px;
  1073. -webkit-border-radius:0px 10px 10px 0px;
  1074. border-radius:0px 10px 10px 0px;
  1075. }
  1076. .ecm-layout-toggler-closed {
  1077. height: 48px !important;
  1078. width: 6px !important;
  1079. }
  1080. .ecm-layout-toggler .content { /* style the text we put INSIDE the togglers */
  1081. color: #666;
  1082. font-size: 12px;
  1083. font-weight: bold;
  1084. width: 100%;
  1085. padding-bottom: 0.35ex; /* to 'vertically center' text inside text-span */
  1086. }
  1087. #ecm-layout-west-resizer {
  1088. width: 6px !important;
  1089. }
  1090. .ecm-layout-resizer { /* all 'resizer-bars' */
  1091. border: 1px solid #BBB;
  1092. border-width: 0;
  1093. }
  1094. .ecm-layout-resizer-closed {
  1095. }
  1096. .ecm-in-layout-center {
  1097. border-left: 1px !important;
  1098. border-right: 0px !important;
  1099. border-top: 0px !important;
  1100. }
  1101. .ecm-in-layout-south {
  1102. border-left: 0px !important;
  1103. border-right: 0px !important;
  1104. border-bottom: 0px !important;
  1105. padding: 4px 0 4px 4px !important;
  1106. }
  1107. /* ============================================================================== */
  1108. /* Onglets */
  1109. /* ============================================================================== */
  1110. div.tabs {
  1111. top: 20px;
  1112. margin: 1px 0px 2px 0px;
  1113. padding: 0px 6px 0px 0px;
  1114. text-align: <?php print $left; ?>;
  1115. }
  1116. div.tabBar {
  1117. color: #<?php echo $colortextmain; ?>;
  1118. padding-top: 9px;
  1119. padding-left: 8px;
  1120. padding-right: 8px;
  1121. padding-bottom: 8px;
  1122. border-right: 1px solid #CCCCCC;
  1123. border-bottom: 1px solid #CCCCCC;
  1124. border-left: 1px solid #D0D0D0;
  1125. border-top: 1px solid #D8D8D8;
  1126. <?php if ($usecss3) { ?>
  1127. background-image: -o-linear-gradient(bottom, rgb(<?php echo $colorbacktabcard1; ?>) 25%, rgb(<?php echo $colorbacktabcard2; ?>) 100%);
  1128. background-image: -moz-linear-gradient(bottom, rgb(<?php echo $colorbacktabcard1; ?>) 25%, rgb(<?php echo $colorbacktabcard2; ?>) 100%);
  1129. background-image: -webkit-linear-gradient(bottom, rgb(<?php echo $colorbacktabcard1; ?>) 25%, rgb(<?php echo $colorbacktabcard2; ?>) 100%);
  1130. background-image: -ms-linear-gradient(bottom, rgb(<?php echo $colorbacktabcard1; ?>) 25%, rgb(<?php echo $colorbacktabcard2; ?>) 100%);
  1131. background-image: linear-gradient(bottom, rgb(<?php echo $colorbacktabcard1; ?>) 25%, rgb(<?php echo $colorbacktabcard2; ?>) 100%);
  1132. <?php } else { ?>
  1133. background: #dee7ec url(<?php echo DOL_URL_ROOT . '/theme/eldy/img/tab_background.png' ?>) repeat-x;
  1134. <?php

Large files files are truncated, but you can click here to view the full file