style.css.php 131 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325
  1. <?php
  2. /* Copyright (C) 2004-2015 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. * Copyright (C) 2012 Juanjo Menent <jmenent@2byte.es>
  7. * Copyright (C) 2015 Alexandre Spangaro <aspangaro.dolibarr@gmail.com>
  8. *
  9. * This program is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License as published by
  11. * the Free Software Foundation; either version 3 of the License, or
  12. * (at your option) any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  21. */
  22. /**
  23. * \file htdocs/theme/md/style.css.php
  24. * \brief File for CSS style sheet Md (Material Design)
  25. */
  26. //if (! defined('NOREQUIREUSER')) define('NOREQUIREUSER','1'); // Not disabled because need to load personalized language
  27. //if (! defined('NOREQUIREDB')) define('NOREQUIREDB','1'); // Not disabled to increase speed. Language code is found on url.
  28. if (! defined('NOREQUIRESOC')) define('NOREQUIRESOC','1');
  29. //if (! defined('NOREQUIRETRAN')) define('NOREQUIRETRAN','1'); // Not disabled because need to do translations
  30. if (! defined('NOCSRFCHECK')) define('NOCSRFCHECK',1);
  31. if (! defined('NOTOKENRENEWAL')) define('NOTOKENRENEWAL',1);
  32. if (! defined('NOLOGIN')) define('NOLOGIN',1); // File must be accessed by logon page so without login
  33. //if (! defined('NOREQUIREMENU')) define('NOREQUIREMENU',1);
  34. if (! defined('NOREQUIREHTML')) define('NOREQUIREHTML',1);
  35. if (! defined('NOREQUIREAJAX')) define('NOREQUIREAJAX','1');
  36. session_cache_limiter(FALSE);
  37. require_once '../../main.inc.php';
  38. require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
  39. // Load user to have $user->conf loaded (not done into main because of NOLOGIN constant defined)
  40. if (empty($user->id) && ! empty($_SESSION['dol_login'])) $user->fetch('',$_SESSION['dol_login']);
  41. // Define css type
  42. header('Content-type: text/css');
  43. // Important: Following code is to avoid page request by browser and PHP CPU at each Dolibarr page access.
  44. if (empty($dolibarr_nocache)) header('Cache-Control: max-age=3600, public, must-revalidate');
  45. else header('Cache-Control: no-cache');
  46. // On the fly GZIP compression for all pages (if browser support it). Must set the bit 3 of constant to 1.
  47. if (isset($conf->global->MAIN_OPTIMIZE_SPEED) && ($conf->global->MAIN_OPTIMIZE_SPEED & 0x04)) { ob_start("ob_gzhandler"); }
  48. if (GETPOST('lang')) $langs->setDefaultLang(GETPOST('lang')); // If language was forced on URL
  49. if (GETPOST('theme')) $conf->theme=GETPOST('theme'); // If theme was forced on URL
  50. $langs->load("main",0,1);
  51. $right=($langs->trans("DIRECTION")=='rtl'?'left':'right');
  52. $left=($langs->trans("DIRECTION")=='rtl'?'right':'left');
  53. $path=''; // This value may be used in future for external module to overwrite theme
  54. $theme='md'; // Value of theme
  55. if (! empty($conf->global->MAIN_OVERWRITE_THEME_RES)) { $path='/'.$conf->global->MAIN_OVERWRITE_THEME_RES; $theme=$conf->global->MAIN_OVERWRITE_THEME_RES; }
  56. // Define image path files and other constants
  57. $fontlist='roboto,arial,tahoma,verdana,helvetica'; //$fontlist='verdana,helvetica,arial,sans-serif';
  58. $img_head='';
  59. $img_button=dol_buildpath($path.'/theme/'.$theme.'/img/button_bg.png',1);
  60. $dol_hide_topmenu=$conf->dol_hide_topmenu;
  61. $dol_hide_leftmenu=$conf->dol_hide_leftmenu;
  62. $dol_optimize_smallscreen=$conf->dol_optimize_smallscreen;
  63. $dol_no_mouse_hover=$conf->dol_no_mouse_hover;
  64. $dol_use_jmobile=$conf->dol_use_jmobile;
  65. //$conf->global->THEME_ELDY_ENABLE_PERSONALIZED=0;
  66. //$user->conf->THEME_ELDY_ENABLE_PERSONALIZED=0;
  67. //var_dump($user->conf->THEME_ELDY_RGB);
  68. // Colors
  69. $colorbackhmenu1='90,50,120'; // topmenu
  70. $colorbackvmenu1='255,255,255'; // vmenu
  71. $colortopbordertitle1=''; // top border of tables-lists title. not defined = default to colorbackhmenu1
  72. $colorbacktitle1='230,230,230'; // title of tables-lists
  73. $colorbacktabcard1='255,255,255'; // card
  74. $colorbacktabactive='234,234,234';
  75. $colorbacklineimpair1='255,255,255'; // line impair
  76. $colorbacklineimpair2='255,255,255'; // line impair
  77. $colorbacklinepair1='250,250,250'; // line pair
  78. $colorbacklinepair2='248,248,248'; // line pair
  79. $colorbacklinepairhover='244,244,244'; // line pair
  80. $colorbackbody='248,248,248';
  81. $colortexttitlenotab='90,90,90';
  82. $colortexttitle='20,20,20';
  83. $colortext='0,0,0';
  84. $colortextlink='0,0,120';
  85. $fontsize='13';
  86. $fontsizesmaller='11';
  87. $usegradient=0;
  88. $useboldtitle=(isset($conf->global->THEME_ELDY_USEBOLDTITLE)?$conf->global->THEME_ELDY_USEBOLDTITLE:1);
  89. $borderwith=2;
  90. // Case of option always editable
  91. if (! isset($conf->global->THEME_ELDY_BACKBODY)) $conf->global->THEME_ELDY_BACKBODY=$colorbackbody;
  92. if (! isset($conf->global->THEME_ELDY_TOPMENU_BACK1)) $conf->global->THEME_ELDY_TOPMENU_BACK1='90,50,120';
  93. if (! isset($conf->global->THEME_ELDY_BACKTITLE1)) $conf->global->THEME_ELDY_BACKTITLE1=$colorbacktitle1;
  94. if (! isset($conf->global->THEME_ELDY_USE_HOVER)) $conf->global->THEME_ELDY_USE_HOVER=='238,246,252';
  95. if (! isset($conf->global->THEME_ELDY_TEXTTITLENOTAB)) $conf->global->THEME_ELDY_TEXTTITLENOTAB=$colortexttitlenotab;
  96. if (! isset($conf->global->THEME_ELDY_TEXTLINK)) $conf->global->THEME_ELDY_TEXTLINK=$colortextlink;
  97. // Case of option editable only if option THEME_ELDY_ENABLE_PERSONALIZED is on
  98. if (empty($conf->global->THEME_ELDY_ENABLE_PERSONALIZED))
  99. {
  100. // 90A4AE, 607D8B, 455A64, 37474F
  101. $conf->global->THEME_ELDY_VERMENU_BACK1='255,255,255'; // vmenu
  102. $conf->global->THEME_ELDY_BACKTABCARD1='255,255,255'; // card
  103. $conf->global->THEME_ELDY_BACKTABACTIVE='234,234,234';
  104. $conf->global->THEME_ELDY_LINEIMPAIR1='255,255,255';
  105. $conf->global->THEME_ELDY_LINEIMPAIR2='255,255,255';
  106. $conf->global->THEME_ELDY_LINEPAIR1='250,250,250';
  107. $conf->global->THEME_ELDY_LINEPAIR2='248,248,248';
  108. $conf->global->THEME_ELDY_LINEPAIRHOVER='238,246,252';
  109. $conf->global->THEME_ELDY_USE_HOVER='238,246,252';
  110. $conf->global->THEME_ELDY_TEXT='0,0,0';
  111. $conf->global->THEME_ELDY_FONT_SIZE1='13';
  112. $conf->global->THEME_ELDY_FONT_SIZE2='11';
  113. }
  114. // Case of option availables only if THEME_ELDY_ENABLE_PERSONALIZED is on
  115. $colorbackhmenu1 =empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED)?(empty($conf->global->THEME_ELDY_TOPMENU_BACK1)?$colorbackhmenu1:$conf->global->THEME_ELDY_TOPMENU_BACK1) :(empty($user->conf->THEME_ELDY_TOPMENU_BACK1)?$colorbackhmenu1:$user->conf->THEME_ELDY_TOPMENU_BACK1);
  116. $colorbackvmenu1 =empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED)?(empty($conf->global->THEME_ELDY_VERMENU_BACK1)?$colorbackvmenu1:$conf->global->THEME_ELDY_VERMENU_BACK1) :(empty($user->conf->THEME_ELDY_VERMENU_BACK1)?$colorbackvmenu1:$user->conf->THEME_ELDY_VERMENU_BACK1);
  117. $colortopbordertitle1=empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED)?(empty($conf->global->THEME_ELDY_TOPBORDER_TITLE1)?$colortopbordertitle1:$conf->global->THEME_ELDY_TOPBORDER_TITLE1) :(empty($user->conf->THEME_ELDY_TOPBORDER_TITLE1)?$colortopbordertitle1:$user->conf->THEME_ELDY_TOPBORDER_TITLE1);
  118. $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);
  119. $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);
  120. $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);
  121. $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);
  122. $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);
  123. $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);
  124. $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);
  125. $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);
  126. $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);
  127. $colortexttitlenotab =empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED)?(empty($conf->global->THEME_ELDY_TEXTTITLENOTAB)?$colortexttitlenotab:$conf->global->THEME_ELDY_TEXTTITLENOTAB) :(empty($user->conf->THEME_ELDY_TEXTTITLENOTAB)?$colortexttitlenotab:$user->conf->THEME_ELDY_TEXTTITLENOTAB);
  128. $colortexttitle =empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED)?(empty($conf->global->THEME_ELDY_TEXTTITLE) ?$colortext:$conf->global->THEME_ELDY_TEXTTITLE) :(empty($user->conf->THEME_ELDY_TEXTTITLE)?$colortexttitle:$user->conf->THEME_ELDY_TEXTTITLE);
  129. $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);
  130. $colortextlink =empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED)?(empty($conf->global->THEME_ELDY_TEXTLINK) ?$colortext:$conf->global->THEME_ELDY_TEXTLINK) :(empty($user->conf->THEME_ELDY_TEXTLINK)?$colortextlink:$user->conf->THEME_ELDY_TEXTLINK);
  131. $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);
  132. $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);
  133. // Hover color
  134. $colorbacklinepairhover=((! isset($conf->global->THEME_ELDY_USE_HOVER) || (string) $conf->global->THEME_ELDY_USE_HOVER === '0')?'':($conf->global->THEME_ELDY_USE_HOVER === '1'?'edf4fb':$conf->global->THEME_ELDY_USE_HOVER));
  135. if (! empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED))
  136. {
  137. $colorbacklinepairhover=((! isset($user->conf->THEME_ELDY_USE_HOVER) || $user->conf->THEME_ELDY_USE_HOVER === '0')?'':($user->conf->THEME_ELDY_USE_HOVER === '1'?'edf4fb':$user->conf->THEME_ELDY_USE_HOVER));
  138. }
  139. if (empty($colortopbordertitle1)) $colortopbordertitle1=$colorbackhmenu1;
  140. // Set text color to black or white
  141. $tmppart=explode(',',$colorbackhmenu1);
  142. $tmpval=(! empty($tmppart[1]) ? $tmppart[1] : '')+(! empty($tmppart[2]) ? $tmppart[2] : '')+(! empty($tmppart[3]) ? $tmppart[3] : '');
  143. if ($tmpval <= 360) $colortextbackhmenu='FFFFFF';
  144. else $colortextbackhmenu='000000';
  145. $tmppart=explode(',',$colorbackvmenu1);
  146. $tmpval=(! empty($tmppart[1]) ? $tmppart[1] : '')+(! empty($tmppart[2]) ? $tmppart[2] : '')+(! empty($tmppart[3]) ? $tmppart[3] : '');
  147. if ($tmpval <= 360) { $colortextbackvmenu='FFFFFF'; }
  148. else { $colortextbackvmenu='000000'; }
  149. $tmppart=explode(',',$colorbacktitle1);
  150. $tmpval=(! empty($tmppart[1]) ? $tmppart[1] : '')+(! empty($tmppart[2]) ? $tmppart[2] : '')+(! empty($tmppart[3]) ? $tmppart[3] : '');
  151. if ($tmpval <= 260) { $colortexttitle='FFFFFF'; $colorshadowtitle='888888'; }
  152. else { $colortexttitle='101010'; $colorshadowtitle='FFFFFF'; }
  153. $tmppart=explode(',',$colorbacktabcard1);
  154. $tmpval=(! empty($tmppart[1]) ? $tmppart[1] : '')+(! empty($tmppart[2]) ? $tmppart[2] : '')+(! empty($tmppart[3]) ? $tmppart[3] : '');
  155. if ($tmpval <= 340) { $colortextbacktab='FFFFFF'; }
  156. else { $colortextbacktab='111111'; }
  157. // Format color value to match expected format (may be 'FFFFFF' or '255,255,255')
  158. $colorbackhmenu1=join(',',colorStringToArray($colorbackhmenu1));
  159. $colorbackvmenu1=join(',',colorStringToArray($colorbackvmenu1));
  160. $colorbacktitle1=join(',',colorStringToArray($colorbacktitle1));
  161. $colorbacktabcard1=join(',',colorStringToArray($colorbacktabcard1));
  162. $colorbacktabactive=join(',',colorStringToArray($colorbacktabactive));
  163. $colorbacklineimpair1=join(',',colorStringToArray($colorbacklineimpair1));
  164. $colorbacklineimpair2=join(',',colorStringToArray($colorbacklineimpair2));
  165. $colorbacklinepair1=join(',',colorStringToArray($colorbacklinepair1));
  166. $colorbacklinepair2=join(',',colorStringToArray($colorbacklinepair2));
  167. if ($colorbacklinepairhover != '') $colorbacklinepairhover=join(',',colorStringToArray($colorbacklinepairhover));
  168. $colorbackbody=join(',',colorStringToArray($colorbackbody));
  169. $colortexttitlenotab=join(',',colorStringToArray($colortexttitlenotab));
  170. $colortexttitle=join(',',colorStringToArray($colortexttitle));
  171. $colortext=join(',',colorStringToArray($colortext));
  172. $colortextlink=join(',',colorStringToArray($colortextlink));
  173. $nbtopmenuentries=$menumanager->showmenu('topnb');
  174. print '/*'."\n";
  175. print 'colorbackbody='.$colorbackbody."\n";
  176. print 'colorbackvmenu1='.$colorbackvmenu1."\n";
  177. print 'colorbackhmenu1='.$colorbackhmenu1."\n";
  178. print 'colorbacktitle1='.$colorbacktitle1."\n";
  179. print 'colorbacklineimpair1='.$colorbacklineimpair1."\n";
  180. print 'colorbacklineimpair2='.$colorbacklineimpair2."\n";
  181. print 'colorbacklinepair1='.$colorbacklinepair1."\n";
  182. print 'colorbacklinepair2='.$colorbacklinepair2."\n";
  183. print 'colorbacklinepairhover='.$colorbacklinepairhover."\n";
  184. print '$colortexttitlenotab='.$colortexttitlenotab."\n";
  185. print '$colortexttitle='.$colortexttitle."\n";
  186. print '$colortext='.$colortext."\n";
  187. print '$colortextlink='.$colortextlink."\n";
  188. print '$colortextbackhmenu='.$colortextbackhmenu."\n";
  189. print '$colortextbackvmenu='.$colortextbackvmenu."\n";
  190. print 'dol_hide_topmenu='.$dol_hide_topmenu."\n";
  191. print 'dol_hide_leftmenu='.$dol_hide_leftmenu."\n";
  192. print 'dol_optimize_smallscreen='.$dol_optimize_smallscreen."\n";
  193. print 'dol_no_mouse_hover='.$dol_no_mouse_hover."\n";
  194. print 'dol_use_jmobile='.$dol_use_jmobile."\n";
  195. print 'dol_screenwidth='.$_SESSION['dol_screenwidth']."\n";
  196. print 'dol_screenheight='.$_SESSION['dol_screenheight']."\n";
  197. print 'fontsize='.$fontsize."\n";
  198. print 'nbtopmenuentries='.$nbtopmenuentries."\n";
  199. print '*/'."\n";
  200. ?>
  201. /* ============================================================================== */
  202. /* Default styles */
  203. /* ============================================================================== */
  204. body {
  205. <?php if (GETPOST("optioncss") == 'print') { ?>
  206. background-color: #FFFFFF;
  207. <?php } else { ?>
  208. background: rgb(<?php print $colorbackbody; ?>);
  209. <?php } ?>
  210. color: rgb(<?php echo $colortext; ?>);
  211. font-size: <?php print $fontsize ?>px;
  212. font-family: <?php print $fontlist ?>;
  213. margin-top: 0;
  214. margin-bottom: 0;
  215. margin-right: 0;
  216. margin-left: 0;
  217. <?php print 'direction: '.$langs->trans("DIRECTION").";\n"; ?>
  218. }
  219. th a, .thumbstat, a.tab { color: rgb(<?php print $colortexttitle; ?>) !important; font-weight: bold !important; }
  220. a.tab { font-weight: bold !important; }
  221. a:link, a:visited, a:hover, a:active { font-family: <?php print $fontlist ?>; font-weight: normal; color: rgb(<?php print $colortextlink; ?>); text-decoration: none; }
  222. a:hover { text-decoration: underline; color: rgb(<?php print $colortextlink; ?>); }
  223. <?php if (empty($dol_use_jmobile)) { ?>
  224. input:focus, textarea:focus, button:focus, select:focus {
  225. box-shadow: 0 0 4px #8091BF;
  226. }
  227. textarea.cke_source:focus
  228. {
  229. box-shadow: none;
  230. }
  231. input, input.flat, textarea, textarea.flat, form.flat select, select, select.flat, .dataTables_length label select {
  232. font-size: <?php print $fontsize ?>px;
  233. font-family: <?php print $fontlist ?>;
  234. background: #FDFDFD;
  235. border: 1px solid #C0C0C0;
  236. margin: 0px 0px 0px 0px;
  237. }
  238. input, textarea, select {
  239. border-radius:2px;
  240. border:solid 1px rgba(0,0,0,.3);
  241. border-top:solid 1px rgba(0,0,0,.3);
  242. border-bottom:solid 1px rgba(0,0,0,.2);
  243. background-color: #FFF;
  244. /* box-shadow: 1px 1px 1px rgba(0,0,0,.2) inset;*/
  245. padding:4px;
  246. margin-left:1px;
  247. margin-bottom:1px;
  248. margin-top:1px;
  249. }
  250. input.removedassigned {
  251. padding: 2px !important;
  252. vertical-align: text-bottom;
  253. margin-bottom: -3px;
  254. }
  255. input.smallpadd {
  256. padding-left: 1px !important;
  257. padding-right: 1px !important;
  258. }
  259. input.buttongen {
  260. vertical-align: middle;
  261. }
  262. span.timesheetalreadyrecorded input {
  263. /*font-size: smaller;*/
  264. border: none;
  265. /*background: transparent;*/
  266. }
  267. <?php } ?>
  268. select.flat, form.flat select {
  269. font-weight: normal;
  270. }
  271. input:disabled {
  272. background:#f4f4f4;
  273. }
  274. .optiongrey, .opacitymedium {
  275. opacity: 0.5;
  276. }
  277. .opacityhigh {
  278. opacity: 0.2;
  279. }
  280. .opacitytransp {
  281. opacity: 0;
  282. }
  283. input.liste_titre {
  284. box-shadow: none !important;
  285. }
  286. .listactionlargetitle .liste_titre {
  287. line-height: 24px;
  288. }
  289. input.removedfile {
  290. padding: 0px !important;
  291. border: 0px !important;
  292. vertical-align: text-bottom;
  293. }
  294. textarea:disabled {
  295. background:#f4f4f4;
  296. }
  297. input[type=checkbox] { background-color: transparent; border: none; box-shadow: none; }
  298. input[type=radio] { background-color: transparent; border: none; box-shadow: none; }
  299. input[type=image] { background-color: transparent; border: none; box-shadow: none; }
  300. input[type=text] { min-width: 20px; }
  301. input:-webkit-autofill {
  302. background-color: <?php echo empty($dol_use_jmobile)?'#FBFFEA':'#FFFFFF' ?> !important;
  303. background-image:none !important;
  304. -webkit-box-shadow: 0 0 0 50px <?php echo empty($dol_use_jmobile)?'#FBFFEA':'#FFFFFF' ?> inset;
  305. }
  306. ::-webkit-input-placeholder { color:#ccc; }
  307. ::-moz-placeholder { color:#ccc; } /* firefox 19+ */
  308. :-ms-input-placeholder { color:#ccc; } /* ie */
  309. input:-moz-placeholder { color:#ccc; }
  310. <?php if (! empty($dol_use_jmobile)) { ?>
  311. legend { margin-bottom: 8px; }
  312. <?php } ?>
  313. fieldset { border: 1px solid #AAAAAA !important; }
  314. .button, sbmtConnexion {
  315. font-family: <?php print $fontlist ?>;
  316. border-color: #c5c5c5;
  317. border-color: rgba(0, 0, 0, 0.15) rgba(0, 0, 0, 0.15) rgba(0, 0, 0, 0.25);
  318. display: inline-block;
  319. padding: 4px 14px;
  320. margin-bottom: 0;
  321. margin-top: 0;
  322. text-align: center;
  323. cursor: pointer;
  324. color: #333333;
  325. text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
  326. background-color: #f5f5f5;
  327. background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
  328. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));
  329. background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);
  330. background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);
  331. background-image: linear-gradient(to bottom, #ffffff, #e6e6e6);
  332. background-repeat: repeat-x;
  333. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0);
  334. border-color: #e6e6e6 #e6e6e6 #bfbfbf;
  335. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  336. filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
  337. border: 1px solid #bbbbbb;
  338. border-bottom-color: #a2a2a2;
  339. -webkit-border-radius: 2px;
  340. -moz-border-radius: 2px;
  341. border-radius: 2px;
  342. -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
  343. -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
  344. box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
  345. }
  346. .button:focus {
  347. -moz-box-shadow: 0px 0px 6px 1px rgba(0, 0, 60, 0.2), 0px 0px 0px rgba(60,60,60,0.1);
  348. -webkit-box-shadow: 0px 0px 6px 1px rgba(0, 0, 60, 0.2), 0px 0px 0px rgba(60,60,60,0.1);
  349. box-shadow: 0px 0px 6px 1px rgba(0, 0, 60, 0.2), 0px 0px 0px rgba(60,60,60,0.1);
  350. }
  351. .button:hover {
  352. -moz-box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.2), 0px 0px 0px rgba(60,60,60,0.1);
  353. -webkit-box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.2), 0px 0px 0px rgba(60,60,60,0.1);
  354. box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.2), 0px 0px 0px rgba(60,60,60,0.1);
  355. }
  356. .button:disabled {
  357. opacity: 0.4;
  358. filter: alpha(opacity=40); /* For IE8 and earlier */
  359. box-shadow: none;
  360. -webkit-box-shadow: none;
  361. -moz-box-shadow: none;
  362. cursor: auto;
  363. }
  364. .buttonRefused {
  365. pointer-events: none;
  366. cursor: default;
  367. opacity: 0.4;
  368. filter: alpha(opacity=40); /* For IE8 and earlier */
  369. box-shadow: none;
  370. -webkit-box-shadow: none;
  371. -moz-box-shadow: none;
  372. }
  373. form {
  374. padding:0px;
  375. margin:0px;
  376. }
  377. div.float
  378. {
  379. float:<?php print $left; ?>;
  380. }
  381. div.floatright
  382. {
  383. float:<?php print $right; ?>;
  384. }
  385. .inline-block
  386. {
  387. display:inline-block;
  388. }
  389. th .button {
  390. -moz-box-shadow: none !important;
  391. -webkit-box-shadow: none !important;
  392. box-shadow: none !important;
  393. -moz-border-radius:0px !important;
  394. -webkit-border-radius:0px !important;
  395. border-radius:0px !important;
  396. }
  397. .maxwidthsearch { /* Max width of column with the search picto */
  398. width: 54px;
  399. }
  400. .valigntop {
  401. vertical-align: top;
  402. }
  403. .valignmiddle {
  404. vertical-align: middle;
  405. }
  406. .valignbottom {
  407. vertical-align: bottom;
  408. }
  409. .centpercent {
  410. width: 100%;
  411. }
  412. .quatrevingtpercent, .inputsearch {
  413. width: 80%;
  414. }
  415. .soixantepercent {
  416. width: 60%;
  417. }
  418. textarea.centpercent {
  419. width: 96%;
  420. }
  421. .center {
  422. text-align: center;
  423. margin: 0px auto;
  424. }
  425. .left {
  426. text-align: <?php print $left; ?>;
  427. }
  428. .right {
  429. text-align: <?php print $right; ?>;
  430. }
  431. .nowrap {
  432. white-space: <?php print ($dol_optimize_smallscreen?'normal':'nowrap'); ?>;
  433. }
  434. .nobold {
  435. font-weight: normal !important;
  436. }
  437. .nounderline {
  438. text-decoration: none;
  439. }
  440. .cursorpointer {
  441. cursor: pointer;
  442. }
  443. .badge {
  444. display: inline-block;
  445. min-width: 10px;
  446. padding: 2px 5px;
  447. font-size: 10px;
  448. font-weight: 700;
  449. line-height: 0.9em;
  450. color: #fff;
  451. text-align: center;
  452. white-space: nowrap;
  453. vertical-align: baseline;
  454. background-color: #777;
  455. border-radius: 10px;
  456. }
  457. .movable {
  458. cursor: move;
  459. }
  460. .borderrightlight
  461. {
  462. border-right: 1px solid #f4f4f4;
  463. }
  464. #formuserfile {
  465. margin-top: 4px;
  466. }
  467. #formuserfile_link {
  468. margin-left: 1px;
  469. }
  470. .listofinvoicetype {
  471. height: 28px;
  472. vertical-align: middle;
  473. }
  474. div.divsearchfield {
  475. float: <?php print $left; ?>;
  476. margin-<?php print $right; ?>: 12px;
  477. margin-<?php print $left; ?>: 2px;
  478. margin-top: 4px;
  479. margin-bottom: 4px;
  480. padding-left: 2px;
  481. }
  482. div.confirmmessage {
  483. padding-top: 6px;
  484. }
  485. div.myavailability {
  486. padding-top: 6px;
  487. }
  488. /* Style to move picto into left of button */
  489. /*
  490. .buttonactionview {
  491. padding-left: 15px;
  492. }
  493. .pictoactionview {
  494. padding-left: 10px;
  495. margin-right: -24px;
  496. z-index: 999999;
  497. }
  498. */
  499. .googlerefreshcal {
  500. padding-top: 4px;
  501. padding-bottom: 4px;
  502. }
  503. .checkallactions {
  504. vertical-align: top;
  505. margin-top: 6px;
  506. margin-left: 4px;
  507. }
  508. .selectlimit {
  509. margin-right: 10px !important;
  510. }
  511. .strikefordisabled {
  512. text-decoration: line-through;
  513. }
  514. .tdoverflow {
  515. max-width: 0;
  516. overflow: hidden;
  517. text-overflow: ellipsis;
  518. white-space: nowrap;
  519. }
  520. .tdoverflowmax100 {
  521. max-width: 100px;
  522. overflow: hidden;
  523. text-overflow: ellipsis;
  524. white-space: nowrap;
  525. }
  526. .tdoverflowmax300 {
  527. max-width: 300px;
  528. overflow: hidden;
  529. text-overflow: ellipsis;
  530. white-space: nowrap;
  531. }
  532. .tdoverflowauto {
  533. max-width: 0;
  534. overflow: auto;
  535. }
  536. .tablelistofcalendars {
  537. margin-top: 25px !important;
  538. }
  539. /* for future usage (when left menu has been removed) */
  540. .table-responsive {
  541. width: calc(100% - 330px);
  542. margin-bottom: 15px;
  543. overflow-y: hidden;
  544. -ms-overflow-style: -ms-autohiding-scrollbar;
  545. }
  546. /* ============================================================================== */
  547. /* Styles to hide objects */
  548. /* ============================================================================== */
  549. .clearboth { clear:both; }
  550. .hideobject { display: none; }
  551. .minwidth50 { min-width: 50px; }
  552. .minwidth100 { min-width: 100px; }
  553. .minwidth200 { min-width: 200px; }
  554. .minwidth300 { min-width: 300px; }
  555. .minwidth400 { min-width: 400px; }
  556. .minwidth500 { min-width: 500px; }
  557. .minwidth50imp { min-width: 50px !important; }
  558. .minwidth100imp { min-width: 100px !important; }
  559. .minwidth200imp { min-width: 200px !important; }
  560. .minwidth300imp { min-width: 300px !important; }
  561. .minwidth400imp { min-width: 400px !important; }
  562. .minwidth500imp { min-width: 500px !important; }
  563. .maxwidth100 { max-width: 100px; }
  564. .maxwidth150 { max-width: 150px; }
  565. .maxwidth200 { max-width: 200px; }
  566. .maxwidth300 { max-width: 300px; }
  567. .maxwidth400 { max-width: 400px; }
  568. .maxwidth500 { max-width: 500px; }
  569. .minheight20 { min-height: 20px; }
  570. .minheight40 { min-height: 40px; }
  571. .titlefield { width: 30%; }
  572. .titlefieldcreate { width: 20%; }
  573. /* Force values for small screen */
  574. @media only screen and (max-width: 1400px)
  575. {
  576. .titlefield { width: 30% !important; }
  577. .titlefieldcreate { width: 30% !important; }
  578. }
  579. /* Force values for small screen */
  580. @media only screen and (max-width: 570px)
  581. {
  582. .hideonsmartphone { display: none; }
  583. .noenlargeonsmartphone { width : 50px !important; display: inline !important; }
  584. .maxwidthonsmartphone { max-width: 100px; }
  585. .maxwidth100onsmartphone { max-width: 100px; }
  586. .maxwidth200onsmartphone { max-width: 200px; }
  587. .maxwidth300onsmartphone { max-width: 300px; }
  588. .maxwidth400onsmartphone { max-width: 400px; }
  589. .titlefield { width: auto; }
  590. .titlefieldcreate { width: auto; }
  591. }
  592. .linkobject { cursor: pointer; }
  593. <?php if (GETPOST("optioncss") == 'print') { ?>
  594. .hideonprint { display: none; }
  595. <?php } ?>
  596. /* ============================================================================== */
  597. /* Styles for dragging lines */
  598. /* ============================================================================== */
  599. .dragClass {
  600. color: #002255;
  601. }
  602. td.showDragHandle {
  603. cursor: move;
  604. }
  605. .tdlineupdown {
  606. white-space: nowrap;
  607. min-width: 10px;
  608. }
  609. /* ============================================================================== */
  610. /* Styles de positionnement des zones */
  611. /* ============================================================================== */
  612. #id-container {
  613. margin-top: 0px;
  614. margin-bottom: 0px;
  615. display: table;
  616. table-layout: fixed;
  617. width: 100%;
  618. }
  619. #id-right, #id-left {
  620. display: table-cell;
  621. float: none;
  622. vertical-align: top;
  623. }
  624. #id-top {
  625. }
  626. #id-left {
  627. min-height: 100%;
  628. position: relative;
  629. width: 213px;
  630. }
  631. #id-right { /* This must stay id-right and not be replaced with echo $right */
  632. width: 100%;
  633. padding-bottom: 10px;
  634. <?php if (GETPOST("optioncss") != 'print') { ?>
  635. padding-left: 229px;
  636. padding-top: 12px;
  637. <?php } ?>
  638. }
  639. .side-nav {
  640. <?php if (GETPOST("optioncss") == 'print') { ?>
  641. display: none;
  642. <?php } else { ?>
  643. background: #FFF;
  644. border-right: 1px solid rgba(0,0,0,0.2);
  645. bottom: 0;
  646. color: #333;
  647. display: block;
  648. font-family: "RobotoDraft","Roboto",sans-serif;
  649. left: 0;
  650. <?php if ((GETPOST('testmenuhider') || ! empty($conf->global->MAIN_TESTMENUHIDER)) && empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER)) { ?>
  651. <?php } else { ?>
  652. position: fixed;
  653. top: 50px;
  654. <?php } ?>
  655. z-index: 200;
  656. -webkit-transform: translateZ(0);
  657. -moz-transform: translateZ(0);
  658. -ms-transform: translateZ(0);
  659. -o-transform: translateZ(0);
  660. transform: translateZ(0);
  661. -webkit-transform-style: preserve-3d;
  662. -moz-transform-style: preserve-3d;
  663. -ms-transform-style: preserve-3d;
  664. -o-transform-style: preserve-3d;
  665. transform-style: preserve-3d;
  666. -webkit-transition-delay: 0.1s;
  667. -moz-transition-delay: 0.1s;
  668. transition-delay: 0.1s;
  669. -webkit-transition-duration: 0.2s;
  670. -moz-transition-duration: 0.2s;
  671. transition-duration: 0.2s;
  672. -webkit-transition-property: -webkit-transform;
  673. -moz-transition-property: -moz-transform;
  674. transition-property: transform;
  675. -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  676. -moz-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  677. transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  678. -webkit-overflow-scrolling: touch;
  679. <?php if ((GETPOST('testmenuhider') || ! empty($conf->global->MAIN_TESTMENUHIDER)) && empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER)) { ?>
  680. <?php } else { ?>
  681. overflow-x: hidden;
  682. overflow-y: auto;
  683. <?php } ?>
  684. <?php } ?>
  685. }
  686. .side-nav-vert {
  687. margin-left: 228px;
  688. }
  689. /* For smartphone (testmenuhider is on) */
  690. <?php if ((GETPOST('testmenuhider') || ! empty($conf->global->MAIN_TESTMENUHIDER)) && empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER)) { ?>
  691. #id-container {
  692. width: 100%;
  693. }
  694. .side-nav-vert {
  695. margin-left: 0;
  696. }
  697. div.login_block {
  698. /* border-right: none ! important; */
  699. top: inherit !important;
  700. }
  701. .side-nav {
  702. <?php if ((GETPOST('testmenuhider') || ! empty($conf->global->MAIN_TESTMENUHIDER)) && empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER)) { ?>
  703. <?php } else { ?>
  704. overflow-x: initial !important;
  705. overflow-y: scroll;
  706. <?php } ?>
  707. display: none;
  708. position: auto;
  709. top: auto;
  710. z-index: 200;
  711. }
  712. div.login_block {
  713. /* position: initial !important;*/
  714. display: none;
  715. }
  716. #id-right {
  717. padding-left: 0 ! important;
  718. }
  719. #id-left {
  720. z-index: 201;
  721. background: #FFF;
  722. border-right: 1px solid rgba(0,0,0,0.3);
  723. <?php if ((GETPOST('testmenuhider') || ! empty($conf->global->MAIN_TESTMENUHIDER)) && empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER)) { ?>
  724. top: 50px ! important;
  725. <?php } else { ?>
  726. top: 60px ! important;
  727. <?php } ?>
  728. }
  729. div.fiche {
  730. margin-<?php print $left; ?>: 6px !important;
  731. margin-<?php print $right; ?>: 6px !important;
  732. }
  733. <?php } ?>
  734. div.fiche {
  735. margin-<?php print $left; ?>: <?php print (GETPOST("optioncss") == 'print'?6:($dol_hide_leftmenu?'4':'20')); ?>px;
  736. margin-<?php print $right; ?>: <?php print (GETPOST("optioncss") == 'print'?8:(empty($conf->dol_optimize_smallscreen)?'16':'4')); ?>px;
  737. <?php if (! empty($conf->dol_hide_leftmenu) && ! empty($conf->dol_hide_topmenu)) print 'margin-top: 4px;'; ?>
  738. margin-bottom: 15px;
  739. }
  740. div.fichecenter {
  741. width: 100%;
  742. clear: both; /* This is to have div fichecenter that are true rectangles */
  743. }
  744. div.fichecenterbis {
  745. margin-top: 8px;
  746. }
  747. div.fichethirdleft {
  748. <?php if ($conf->browser->layout != 'phone') { print "float: ".$left.";\n"; } ?>
  749. <?php if ($conf->browser->layout != 'phone') { print "width: 50%;\n"; } ?>
  750. <?php if ($conf->browser->layout == 'phone') { print "padding-bottom: 6px;\n"; } ?>
  751. }
  752. div.fichetwothirdright {
  753. <?php if ($conf->browser->layout != 'phone') { print "float: ".$right.";\n"; } ?>
  754. <?php if ($conf->browser->layout != 'phone') { print "width: 50%;\n"; } ?>
  755. <?php if ($conf->browser->layout == 'phone') { print "padding-bottom: 6px\n"; } ?>
  756. }
  757. div.fichehalfleft {
  758. <?php if ($conf->browser->layout != 'phone') { print "float: ".$left.";\n"; } ?>
  759. <?php if ($conf->browser->layout != 'phone') { print "width: 50%;\n"; } ?>
  760. }
  761. div.fichehalfright {
  762. <?php if ($conf->browser->layout != 'phone') { print "float: ".$right.";\n"; } ?>
  763. <?php if ($conf->browser->layout != 'phone') { print "width: 50%;\n"; } ?>
  764. }
  765. div.ficheaddleft {
  766. <?php if ($conf->browser->layout != 'phone') { print "padding-".$left.": 16px;\n"; }
  767. else print "margin-top: 10px;\n"; ?>
  768. }
  769. /* Force values for small screen */
  770. @media only screen and (max-width: 900px)
  771. {
  772. div.fiche {
  773. margin-<?php print $left; ?>: <?php print (GETPOST("optioncss") == 'print'?6:($dol_hide_leftmenu?'4':'20')); ?>px;
  774. margin-<?php print $right; ?>: <?php print (GETPOST("optioncss") == 'print'?8:16); ?>px;
  775. <?php if (! empty($conf->dol_hide_leftmenu) && ! empty($conf->dol_hide_topmenu)) print 'margin-top: 4px;'; ?>
  776. margin-bottom: 15px;
  777. }
  778. div.fichecenter {
  779. width: 100%;
  780. clear: both; /* This is to have div fichecenter that are true rectangles */
  781. }
  782. div.fichecenterbis {
  783. margin-top: 8px;
  784. }
  785. div.fichethirdleft {
  786. float: none;
  787. width: auto;
  788. padding-bottom: 6px;
  789. }
  790. div.fichetwothirdright {
  791. float: none;
  792. width: auto;
  793. padding-bottom: 6px;
  794. }
  795. div.fichehalfleft {
  796. float: none;
  797. width: auto;
  798. }
  799. div.fichehalfright {
  800. float: none;
  801. width: auto;
  802. }
  803. div.ficheaddleft {
  804. <?php print "padding-".$left.": 0px;\n"; ?>
  805. margin-top: 10px;
  806. }
  807. }
  808. /* For table into table into card */
  809. div.ficheaddleft tr.liste_titre:first-child td table.nobordernopadding td {
  810. padding: 0 0 0 0;
  811. }
  812. table.noborder tr.liste_titre td {
  813. padding: 3px !important;
  814. }
  815. .containercenter {
  816. display : table;
  817. margin : 0px auto;
  818. }
  819. #pictotitle {
  820. margin-<?php echo $right; ?>: 8px;
  821. margin-bottom: 4px;
  822. }
  823. .pictosubstatus {
  824. padding-left: 2px;
  825. padding-right: 2px;
  826. }
  827. .pictowarning {
  828. padding-left: 3px;
  829. }
  830. .colorthumb {
  831. padding-left: 1px !important;
  832. padding-right: 1px;
  833. padding-top: 1px;
  834. padding-bottom: 1px;
  835. width: 44px;
  836. }
  837. div.attacharea {
  838. padding-top: 10px;
  839. padding-bottom: 10px;
  840. }
  841. div.arearef {
  842. /*border-bottom: 1px solid #bbb;*/
  843. padding-top: 2px;
  844. padding-bottom: 5px;
  845. /*padding-right: 3px;
  846. padding-left: 2px;*/
  847. margin-bottom: 10px;
  848. }
  849. div.heightref {
  850. min-height: 74px;
  851. }
  852. div.divphotoref {
  853. padding-right: 20px;
  854. }
  855. div.statusref {
  856. float: right;
  857. padding-right: 12px;
  858. margin-top: 8px;
  859. margin-bottom: 10px;
  860. clear: both;
  861. }
  862. img.photoref {
  863. height: 80px;
  864. width: 80px;
  865. border: 1px solid #CCC;
  866. -moz-box-shadow: 3px 3px 4px #DDD;
  867. -webkit-box-shadow: 3px 3px 4px #DDD;
  868. box-shadow: 3px 3px 4px #DDD;
  869. }
  870. .underrefbanner {
  871. }
  872. .underbanner {
  873. border-bottom: <?php echo $borderwith; ?>px solid rgb(<?php echo $colortopbordertitle1 ?>);
  874. }
  875. /* ============================================================================== */
  876. /* Menu top et 1ere ligne tableau */
  877. /* ============================================================================== */
  878. <?php
  879. $minwidthtmenu=66; /* minimum width for one top menu entry */
  880. $heightmenu=48; /* height of top menu, part with image */
  881. $heightmenu2=48; /* height of top menu, ârt with login */
  882. $disableimages = 0;
  883. $maxwidthloginblock = 110;
  884. if (! empty($conf->global->THEME_MD_DISABLE_IMAGE)) { $heightmenu = 30; $disableimages = 1; $maxwidthloginblock = 180; $minwidthtmenu=0; }
  885. ?>
  886. div#tmenu_tooltip {
  887. <?php if (GETPOST("optioncss") == 'print') { ?>
  888. display:none;
  889. <?php } else { ?>
  890. background: rgb(<?php echo $colorbackhmenu1 ?>);
  891. /*
  892. background-image: linear-gradient(top, rgba(255,255,255,.3) 0%, rgba(128,128,128,.3) 100%);
  893. background-image: -o-linear-gradient(top, rgba(255,255,255,.3) 0%, rgba(128,128,128,.3) 100%);
  894. background-image: -moz-linear-gradient(top, rgba(255,255,255,.3) 0%, rgba(128,128,128,.3) 100%);
  895. background-image: -webkit-linear-gradient(top, rgba(255,255,255,.3) 0%, rgba(128,128,128,.3) 100%);
  896. background-image: -ms-linear-gradient(top, rgba(255,255,255,.3) 0%, rgba(128,128,128,.3) 100%);
  897. background-image: -webkit-gradient( linear, left top, left bottom, color-stop(0, rgba(255,255,255,.3)), color-stop(1, rgba(128,128,128,.3)) );
  898. */
  899. <?php } ?>
  900. }
  901. div#tmenu_tooltip {
  902. <?php if (GETPOST("optioncss") == 'print') { ?>
  903. display:none;
  904. <?php } else { ?>
  905. /* padding-<?php echo $right; ?>: <?php echo ($maxwidthloginblock - 10); ?>px; */
  906. <?php } ?>
  907. }
  908. div.tmenusep {
  909. <?php if ($disableimages) { ?>
  910. display: none;
  911. <?php } ?>
  912. }
  913. div.tmenudiv {
  914. <?php if (GETPOST("optioncss") == 'print') { ?>
  915. display:none;
  916. <?php } else { ?>
  917. position: relative;
  918. display: block;
  919. white-space: nowrap;
  920. border-top: 0px;
  921. border-<?php print $left; ?>: 0px;
  922. border-<?php print $right; ?>: 0px;
  923. padding: 0px 0px 0px 0px; /* t r b l */
  924. margin: 0px 0px 0px 0px; /* t r b l */
  925. font-size: 13px;
  926. font-weight: normal;
  927. color: #000000;
  928. text-decoration: none;
  929. <?php } ?>
  930. }
  931. div.tmenudisabled, a.tmenudisabled {
  932. opacity: 0.6;
  933. }
  934. a.tmenudisabled:link, a.tmenudisabled:visited, a.tmenudisabled:hover, a.tmenudisabled:active {
  935. font-weight: normal;
  936. padding: 0px 5px 0px 5px;
  937. white-space: nowrap;
  938. color: #<?php echo $colortextbackhmenu; ?>;
  939. text-decoration: none;
  940. cursor: not-allowed;
  941. }
  942. a.tmenu:link, a.tmenu:visited, a.tmenu:hover, a.tmenu:active {
  943. font-weight: normal;
  944. padding: 0px 5px 0px 5px;
  945. white-space: nowrap;
  946. /* text-shadow: 1px 1px 1px #000000; */
  947. color: #<?php echo $colortextbackhmenu; ?>;
  948. text-decoration: none;
  949. }
  950. a.tmenusel:link, a.tmenusel:visited, a.tmenusel:hover, a.tmenusel:active {
  951. font-weight: normal;
  952. padding: 0px 5px 0px 5px;
  953. margin: 0px 0px 0px 0px;
  954. white-space: nowrap;
  955. color: #<?php echo $colortextbackhmenu; ?>;
  956. text-decoration: none !important;
  957. }
  958. ul.tmenu { /* t r b l */
  959. padding: 0px 0px 0px 0px;
  960. margin: 0px 0px 0px 0px;
  961. list-style: none;
  962. display: table;
  963. }
  964. ul.tmenu li {
  965. background: rgb(<?php echo $colorbackhmenu1 ?>);
  966. /*
  967. background-image: linear-gradient(top, rgba(255,255,255,.3) 0%, rgba(0,0,0,.3) 100%);
  968. background-image: -o-linear-gradient(top, rgba(255,255,255,.3) 0%, rgba(0,0,0,.3) 100%);
  969. background-image: -moz-linear-gradient(top, rgba(255,255,255,.3) 0%, rgba(0,0,0,.3) 100%);
  970. background-image: -webkit-linear-gradient(top, rgba(255,255,255,.3) 0%, rgba(0,0,0,.3) 100%);
  971. background-image: -ms-linear-gradient(top, rgba(255,255,255,.3) 0%, rgba(0,0,0,.3) 100%);
  972. background-image: -webkit-gradient( linear, left top, left bottom, color-stop(0, rgba(255,255,255,.3)), color-stop(1, rgba(0,0,0,.3)) );
  973. */
  974. }
  975. li.tmenu, li.tmenusel {
  976. <?php print $minwidthtmenu?'min-width: '.$minwidthtmenu.'px;':''; ?>
  977. text-align: center;
  978. vertical-align: bottom;
  979. <?php if (empty($conf->global->MAIN_MENU_INVERT)) { ?>
  980. float: <?php print $left; ?>;
  981. <?php if (! $disableimages) { ?>
  982. height: <?php print $heightmenu; ?>px;
  983. padding: 0px 0px 2px 0px;
  984. <?php } else { ?>
  985. padding: 0px 0px 0px 0px;
  986. <?php } } ?>
  987. position:relative;
  988. display: block;
  989. margin: 0px 0px 0px 0px;
  990. font-weight: normal;
  991. }
  992. li.tmenusel, li.tmenu:hover {
  993. /*
  994. background-image: -o-linear-gradient(bottom, rgba(250,250,250,0.3) 0%, rgba(0,0,0,0.3) 100%) !important;
  995. background-image: -moz-linear-gradient(bottom, rgba(0,0,0,0.5) 0%, rgba(250,250,250,0) 100%) !important;
  996. background-image: -webkit-linear-gradient(bottom, rgba(0,0,0,0.3) 0%, rgba(250,250,250,0) 100%) !important;
  997. background-image: -ms-linear-gradient(bottom, rgba(250,250,250,0.3) 0%, rgba(0,0,0,0.3) 100%) !important;
  998. background-image: linear-gradient(bottom, rgba(250,250,250,0.3) 0%, rgba(0,0,0,0.3) 100%) !important;
  999. background: rgb(<?php echo $colorbackhmenu1 ?>);
  1000. */
  1001. /* background: url(<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/nav-overlay3.png',1); ?>) 50% 0 repeat-x !important; Nicer but problem when menu wrap on 2 lines */
  1002. }
  1003. li.tmenusel, li.tmenu:hover {
  1004. opacity: .50; /* show only a slight shadow */
  1005. }
  1006. .tmenuend .tmenuleft { width: 0px; }
  1007. .tmenuend { display: none; }
  1008. div.tmenuleft
  1009. {
  1010. float: <?php print $left; ?>;
  1011. margin-top: 0px;
  1012. <?php if (empty($conf->dol_optimize_smallscreen)) { ?>
  1013. width: 5px;
  1014. <?php if (! $disableimages) { ?>
  1015. height: <?php print $heightmenu+4; ?>px;
  1016. <?php } ?>
  1017. /* background: url(<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/menutab-r.png',1); ?>) 0 -6px no-repeat; */
  1018. <?php } ?>
  1019. }
  1020. div.tmenucenter
  1021. {
  1022. padding-left: 0px;
  1023. padding-right: 0px;
  1024. <?php if ($disableimages) { ?>
  1025. padding-top: 10px;
  1026. height: 26px;
  1027. <?php } else { ?>
  1028. padding-top: 2px;
  1029. height: <?php print $heightmenu; ?>px;
  1030. <?php } ?>
  1031. width: 100%;
  1032. }
  1033. div.menu_titre {
  1034. padding-bottom: 2px;
  1035. overflow: hidden;
  1036. text-overflow: ellipsis;
  1037. }
  1038. .mainmenuaspan
  1039. {
  1040. <?php if ($disableimages) { ?>
  1041. padding-left: 4px;
  1042. padding-right: 2px;
  1043. <?php } else { ?>
  1044. padding-right: 4px;
  1045. <?php } ?>
  1046. }
  1047. div.mainmenu {
  1048. position : relative;
  1049. background-repeat:no-repeat;
  1050. background-position:center top;
  1051. height: <?php echo ($heightmenu-19); ?>px;
  1052. margin-left: 0px;
  1053. min-width: 40px;
  1054. }
  1055. /* Do not load menu img if hidden to save bandwidth */
  1056. <?php if (empty($dol_hide_topmenu)) { ?>
  1057. div.mainmenu.home{
  1058. background-image: url(<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/menus/home.png',1) ?>);
  1059. background-position-x: middle;
  1060. }
  1061. div.mainmenu.accountancy {
  1062. background-image: url(<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/menus/money.png',1) ?>);
  1063. }
  1064. div.mainmenu.agenda {
  1065. background-image: url(<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/menus/agenda.png',1) ?>);
  1066. }
  1067. div.mainmenu.bank {
  1068. background-image: url(<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/menus/bank.png',1) ?>);
  1069. }
  1070. div.mainmenu.cashdesk {
  1071. background-image: url(<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/menus/pointofsale.png',1) ?>);
  1072. }
  1073. div.mainmenu.companies {
  1074. background-image: url(<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/menus/company.png',1) ?>);
  1075. }
  1076. div.mainmenu.commercial {
  1077. background-image: url(<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/menus/commercial.png',1) ?>);
  1078. }
  1079. div.mainmenu.ecm {
  1080. background-image: url(<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/menus/ecm.png',1) ?>);
  1081. }
  1082. div.mainmenu.externalsite {
  1083. background-image: url(<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/menus/externalsite.png',1) ?>);
  1084. }
  1085. div.mainmenu.ftp {
  1086. background-image: url(<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/menus/tools.png',1) ?>);
  1087. }
  1088. div.mainmenu.hrm {
  1089. background-image: url(<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/menus/holiday.png',1) ?>);
  1090. }
  1091. div.mainmenu.members {
  1092. background-image: url(<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/menus/members.png',1) ?>);
  1093. }
  1094. div.mainmenu.menu {
  1095. background-image: url(<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/menus/menu.png',1) ?>);
  1096. top: 7px;
  1097. }
  1098. div.mainmenu.products {
  1099. background-image: url(<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/menus/products.png',1) ?>);
  1100. }
  1101. div.mainmenu.project {
  1102. background-image: url(<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/menus/project.png',1) ?>);
  1103. }
  1104. div.mainmenu.tools {
  1105. background-image: url(<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/menus/tools.png',1) ?>);
  1106. }
  1107. div.mainmenu.websites {
  1108. background-image: url(<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/menus/externalsite.png',1) ?>);
  1109. }
  1110. <?php
  1111. // Add here more div for other menu entries. moduletomainmenu=array('module name'=>'name of class for div')
  1112. $moduletomainmenu=array('user'=>'','syslog'=>'','societe'=>'companies','projet'=>'project','propale'=>'commercial','commande'=>'commercial',
  1113. 'produit'=>'products','service'=>'products','stock'=>'products',
  1114. 'don'=>'accountancy','tax'=>'accountancy','banque'=>'accountancy','facture'=>'accountancy','compta'=>'accountancy','accounting'=>'accountancy','adherent'=>'members','import'=>'tools','export'=>'tools','mailing'=>'tools',
  1115. 'contrat'=>'commercial','ficheinter'=>'commercial','deplacement'=>'commercial',
  1116. 'fournisseur'=>'companies',
  1117. 'barcode'=>'','fckeditor'=>'','categorie'=>'',
  1118. );
  1119. $mainmenuused='home';
  1120. foreach($conf->modules as $val)
  1121. {
  1122. $mainmenuused.=','.(isset($moduletomainmenu[$val])?$moduletomainmenu[$val]:$val);
  1123. }
  1124. //var_dump($mainmenuused);
  1125. $mainmenuusedarray=array_unique(explode(',',$mainmenuused));
  1126. $generic=1;
  1127. // Put here list of menu entries when the div.mainmenu.menuentry was previously defined
  1128. $divalreadydefined=array('home','companies','products','commercial','externalsite','accountancy','project','tools','members','agenda','holiday','bookmark','cashdesk','ecm','geoipmaxmind','gravatar','clicktodial','paypal','webservices','websites');
  1129. // Put here list of menu entries we are sure we don't want
  1130. $divnotrequired=array('multicurrency','salaries','margin','opensurvey','paybox','expensereport','incoterm','prelevement','propal','workflow','notification','supplier_proposal','cron','product','productbatch','expedition');
  1131. foreach($mainmenuusedarray as $val)
  1132. {
  1133. if (empty($val) || in_array($val,$divalreadydefined)) continue;
  1134. if (in_array($val,$divnotrequired)) continue;
  1135. //print "XXX".$val;
  1136. // Search img file in module dir
  1137. $found=0; $url='';
  1138. foreach($conf->file->dol_document_root as $dirroot)
  1139. {
  1140. if (file_exists($dirroot."/".$val."/img/".$val.".png"))
  1141. {
  1142. $url=dol_buildpath('/'.$val.'/img/'.$val.'.png', 1);
  1143. $found=1;
  1144. break;
  1145. }
  1146. }
  1147. // Img file not found
  1148. if (! $found)
  1149. {
  1150. $url=dol_buildpath($path.'/theme/'.$theme.'/img/menus/generic'.$generic.".png",1);
  1151. $found=1;
  1152. if ($generic < 4) $generic++;
  1153. print "/* A mainmenu entry but img file ".$val.".png not found (check /".$val."/img/".$val.".png), so we use a generic one */\n";
  1154. }
  1155. if ($found)
  1156. {
  1157. print "div.mainmenu.".$val." {\n";
  1158. print " background-image: url(".$url.");\n";
  1159. print "}\n";
  1160. }
  1161. }
  1162. // End of part to add more div class css
  1163. ?>
  1164. <?php
  1165. } // End test if $dol_hide_topmenu
  1166. ?>
  1167. .tmenuimage {
  1168. padding:0 0 0 0 !important;
  1169. margin:0 0px 0 0 !important;
  1170. <?php if ($disableimages) { ?>
  1171. display: none;
  1172. <?php } ?>
  1173. }
  1174. /* Login */
  1175. .bodylogin
  1176. {
  1177. background: #f0f0f0;
  1178. }
  1179. .login_vertical_align {
  1180. padding: 10px;
  1181. }
  1182. form#login {
  1183. margin-top: <?php echo $dol_optimize_smallscreen?'30':'60' ?>px;
  1184. margin-bottom: 30px;
  1185. font-size: 13px;
  1186. vertical-align: middle;
  1187. }
  1188. .login_table_title {
  1189. max-width: 530px;
  1190. color: #888888;
  1191. text-shadow: 1px 1px 1px #FFF;
  1192. }
  1193. .login_table label {
  1194. text-shadow: 1px 1px 1px #FFF;
  1195. }
  1196. .login_table {
  1197. margin: 0px auto; /* Center */
  1198. padding-left:6px;
  1199. padding-right:6px;
  1200. padding-top:16px;
  1201. padding-bottom:12px;
  1202. max-width: 560px;
  1203. background-color: #FFFFFF;
  1204. -moz-box-shadow: 0 4px 23px 5px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(60,60,60,0.15);
  1205. -webkit-box-shadow: 0 4px 23px 5px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(60,60,60,0.15);
  1206. box-shadow: 0 4px 23px 5px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(60,60,60,0.15);
  1207. /*-moz-box-shadow: 3px 2px 20px #CCC;
  1208. -webkit-box-shadow: 3px 2px 20px #CCC;
  1209. box-shadow: 3px 2px 20px #CCC;*/
  1210. border-radius: 4px;
  1211. border:solid 1px rgba(80,80,80,.4);
  1212. border-top:solid 1px f8f8f8;
  1213. }
  1214. .login_main_message {
  1215. text-align: center;
  1216. max-width: 560px;
  1217. margin-bottom: 10px;
  1218. }
  1219. .login_main_message .error {
  1220. border: 1px solid #caa;
  1221. padding: 10px;
  1222. }
  1223. div#login_left, div#login_right {
  1224. display: inline-block;
  1225. min-width: 245px;
  1226. padding-top: 10px;
  1227. padding-left: 16px;
  1228. padding-right: 16px;
  1229. text-align: center;
  1230. vertical-align: middle;
  1231. }
  1232. table.login_table tr td table.none tr td {
  1233. padding: 2px;
  1234. }
  1235. table.login_table_securitycode {
  1236. border-spacing: 0px;
  1237. }
  1238. table.login_table_securitycode tr td {
  1239. padding-left: 0px;
  1240. padding-right: 4px;
  1241. }
  1242. #securitycode {
  1243. min-width: 60px;
  1244. }
  1245. #img_securitycode {
  1246. border: 1px solid #f4f4f4;
  1247. }
  1248. #img_logo {
  1249. max-width: 200px;
  1250. max-height: 100px;
  1251. }
  1252. div.login_block {
  1253. border-right: 1px solid rgba(0,0,0,0.3);
  1254. padding-top: 5px;
  1255. padding-bottom: 3px;
  1256. <?php print $left; ?>: 0;
  1257. top: 0px;
  1258. <?php if ((GETPOST('testmenuhider') || ! empty($conf->global->MAIN_TESTMENUHIDER)) && empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER)) { ?>
  1259. position: absolute;
  1260. <?php } else { ?>
  1261. position: fixed;
  1262. <?php } ?>
  1263. font-weight: bold;
  1264. z-index: 10;
  1265. text-align: center;
  1266. vertical-align: middle;
  1267. background: #FFF;
  1268. width: 228px;
  1269. height: 42px;
  1270. <?php if (GETPOST("optioncss") == 'print') { ?>
  1271. display: none;
  1272. <?php } ?>
  1273. }
  1274. div.login_block table {
  1275. display: inline;
  1276. }
  1277. div.login {
  1278. white-space:nowrap;
  1279. font-weight: bold;
  1280. float: right;
  1281. }
  1282. div.login a {
  1283. color: #<?php echo $colortextbackvmenu; ?>;
  1284. }
  1285. div.login a:hover {
  1286. color: #<?php echo $colortextbackvmenu; ?>;
  1287. text-decoration:underline;
  1288. }
  1289. div.login_block_user, div.login_block_other { clear: both; }
  1290. div.login_block_other { padding-top: 3px; }
  1291. .login_block_elem {
  1292. float: right;
  1293. vertical-align: top;
  1294. padding: 0px 0px 0px 4px !important;
  1295. height: 16px;
  1296. }
  1297. .login_block_elem_name {
  1298. margin-top: 5px;
  1299. }
  1300. .atoplogin, .atoplogin:hover {
  1301. color: #<?php echo $colortextbackvmenu; ?> !important;
  1302. font-weight: normal !important;
  1303. }
  1304. .alogin, .alogin:hover {
  1305. color: #888 !important;
  1306. font-weight: normal !important;
  1307. font-size: <?php echo $fontsizesmaller; ?>px !important;
  1308. }
  1309. .alogin:hover, .atoplogin:hover {
  1310. text-decoration:underline !important;
  1311. }
  1312. img.login, img.printer, img.entity {
  1313. /* padding: 0px 0px 0px 4px; */
  1314. /* margin: 0px 0px 0px 8px; */
  1315. text-decoration: none;
  1316. color: white;
  1317. font-weight: bold;
  1318. }
  1319. img.loginphoto {
  1320. border-radius: 5px;
  1321. margin-top: -4px;
  1322. width: 20px;
  1323. height: 20px;
  1324. }
  1325. .span-icon-user {
  1326. background: url(<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/object_user.png',1); ?>) no-repeat scroll 7px 7px;
  1327. }
  1328. .span-icon-password {
  1329. background-image: url(<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/lock.png',1); ?>);
  1330. background-repeat: no-repeat;
  1331. }
  1332. /*
  1333. .span-icon-user input, .span-icon-password input {
  1334. margin-right: 30px;
  1335. }
  1336. */
  1337. /* ============================================================================== */
  1338. /* Menu gauche */
  1339. /* ============================================================================== */
  1340. div.vmenu, td.vmenu {
  1341. margin-<?php print $right; ?>: 2px;
  1342. position: relative;
  1343. float: left;
  1344. padding: 0px;
  1345. padding-bottom: 0px;
  1346. padding-top: 0px;
  1347. width: 222px;
  1348. }
  1349. .vmenu {
  1350. margin-left: 4px;
  1351. <?php if (GETPOST("optioncss") == 'print') { ?>
  1352. display: none;
  1353. <?php } ?>
  1354. }
  1355. .vmenusearchselectcombo {
  1356. width: 202px;
  1357. }
  1358. .menu_contenu {
  1359. padding-top: 4px;
  1360. padding-bottom: 3px;
  1361. overflow: hidden;
  1362. text-overflow: ellipsis;
  1363. }
  1364. #menu_contenu_logo { padding-right: 4px; }
  1365. .companylogo { padding-top: 4px; }
  1366. .searchform { padding-top: 8px; }
  1367. a.vmenu:link, a.vmenu:visited, a.vmenu:hover, a.vmenu:active { white-space: nowrap; font-size:<?php print $fontsize ?>px; font-family: <?php print $fontlist ?>; text-align: <?php print $left; ?>; font-weight: bold; }
  1368. font.vmenudisabled { font-size:<?php print $fontsize ?>px; font-family: <?php print $fontlist ?>; text-align: <?php print $left; ?>; font-weight: bold; color: #aaa; margin-left: 4px; }
  1369. a.vmenu:link, a.vmenu:visited { color: #<?php echo $colortextbackvmenu; ?>; }
  1370. a.vsmenu:link, a.vsmenu:visited, a.vsmenu:hover, a.vsmenu:active, span.vsmenu { font-size:<?php print $fontsize ?>px; font-family: <?php print $fontlist ?>; text-align: <?php print $left; ?>; font-weight: normal; color: #202020; margin: 1px 1px 1px 8px; }
  1371. font.vsmenudisabled { font-size:<?php print $fontsize ?>px; font-family: <?php print $fontlist ?>; text-align: <?php print $left; ?>; font-weight: normal; color: #aaa; }
  1372. a.vsmenu:link, a.vsmenu:visited { color: #<?php echo $colortextbackvmenu; ?>; white-space: nowrap; }
  1373. font.vsmenudisabledmargin { margin: 1px 1px 1px 8px; }
  1374. 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; text-decoration: none; }
  1375. div.blockvmenupair, div.blockvmenuimpair, div.blockvmenubookmarks
  1376. {
  1377. font-family: <?php print $fontlist ?>;
  1378. color: #000000;
  1379. text-align: <?php print $left; ?>;
  1380. text-decoration: none;
  1381. padding-left: 5px;
  1382. padding-right: 1px;
  1383. padding-top: 3px;
  1384. padding-bottom: 3px;
  1385. margin: 1px 0px 8px 0px;
  1386. padding-bottom: 10px;
  1387. border-bottom: 1px solid #e0e0e0;
  1388. }
  1389. a.vsmenu.addbookmarkpicto {
  1390. padding-right: 10px;
  1391. }
  1392. div.blockvmenusearch
  1393. {
  1394. font-family: <?php print $fontlist ?>;
  1395. color: #000000;
  1396. text-align: <?php print $left; ?>;
  1397. text-decoration: none;
  1398. padding-left: 5px;
  1399. padding-right: 1px;
  1400. padding-top: 3px;
  1401. padding-bottom: 3px;
  1402. margin: 1px 0px 8px 0px;
  1403. padding-bottom: 10px;
  1404. border-bottom: 1px solid #f4f4f4;
  1405. }
  1406. div.blockvmenusearchphone
  1407. {
  1408. border-bottom: none;
  1409. margin-bottom: 0px;
  1410. }
  1411. div.blockvmenuhelp
  1412. {
  1413. <?php if (empty($conf->dol_optimize_smallscreen)) { ?>
  1414. font-family: <?php print $fontlist ?>;
  1415. color: #000000;
  1416. text-align: center;
  1417. text-decoration: none;
  1418. padding-left: 0px;
  1419. padding-right: 8px;
  1420. padding-top: 3px;
  1421. padding-bottom: 3px;
  1422. margin: 4px 0px 0px 0px;
  1423. <?php } else { ?>
  1424. display: none;
  1425. <?php } ?>
  1426. }
  1427. td.barre {
  1428. border-right: 1px solid #000000;
  1429. border-bottom: 1px solid #000000;
  1430. background: #b3c5cc;
  1431. font-family: <?php print $fontlist ?>;
  1432. color: #000000;
  1433. text-align: <?php print $left; ?>;
  1434. text-decoration: none;
  1435. }
  1436. td.barre_select {
  1437. background: #b3c5cc;
  1438. color: #000000;
  1439. }
  1440. td.photo {
  1441. background: #F4F4F4;
  1442. color: #000000;
  1443. border: 1px solid #bbb;
  1444. }
  1445. /* ============================================================================== */
  1446. /* Panes for Main */
  1447. /* ============================================================================== */
  1448. /*
  1449. * PANES and CONTENT-DIVs
  1450. */
  1451. #mainContent, #leftContent .ui-layout-pane {
  1452. padding: 0px;
  1453. overflow: auto;
  1454. }
  1455. #mainContent, #leftContent .ui-layout-center {
  1456. padding: 0px;
  1457. position: relative; /* contain floated or positioned elements */
  1458. overflow: auto; /* add scrolling to content-div */
  1459. }
  1460. /* ============================================================================== */
  1461. /* Toolbar for ECM or Filemanager */
  1462. /* ============================================================================== */
  1463. .largebutton {
  1464. background-image: -o-linear-gradient(bottom, rgba(200,200,200,0.1) 0%, rgba(255,255,255,0.3) 120%) !important;
  1465. background-image: -moz-linear-gradient(bottom, rgba(200,200,200,0.1) 0%, rgba(255,255,255,0.3) 120%) !important;
  1466. background-image: -webkit-linear-gradient(bottom, rgba(200,200,200,0.1) 0%, rgba(255,255,255,0.3) 120%) !important;
  1467. background-image: -ms-linear-gradient(bottom, rgba(200,200,200,0.1) 0%, rgba(255,255,255,0.3) 120%) !important;
  1468. background-image: linear-gradient(bottom, rgba(200,200,200,0.1) 0%, rgba(255,255,255,0.3) 120%) !important;
  1469. background: #FFF;
  1470. background-repeat: repeat-x !important;
  1471. border: 1px solid #CCC !important;
  1472. -moz-border-radius: 2px 2px 2px 2px !important;
  1473. -webkit-border-radius: 2px 2px 2px 2px !important;
  1474. border-radius: 2px 2px 2px 2px !important;
  1475. -moz-box-shadow: 2px 2px 4px #f4f4f4;
  1476. -webkit-box-shadow: 2px 2px 4px #f4f4f4;
  1477. box-shadow: 2px 2px 4px #f4f4f4;
  1478. padding: 0 4px 0 4px !important;
  1479. min-height: 32px;
  1480. }
  1481. a.toolbarbutton {
  1482. margin-top: 0px;
  1483. margin-left: 4px;
  1484. margin-right: 4px;
  1485. height: 30px;
  1486. }
  1487. img.toolbarbutton {
  1488. margin-top: 1px;
  1489. height: 30px;
  1490. }
  1491. /* ============================================================================== */
  1492. /* Panes for ECM or Filemanager */
  1493. /* ============================================================================== */
  1494. #containerlayout .layout-with-no-border {
  1495. border: 0 !important;
  1496. border-width: 0 !important;
  1497. }
  1498. #containerlayout .layout-padding {
  1499. padding: 2px !important;
  1500. }
  1501. /*
  1502. * PANES and CONTENT-DIVs
  1503. */
  1504. #containerlayout .ui-layout-pane { /* all 'panes' */
  1505. background: #FFF;
  1506. border: 1px solid #BBB;
  1507. /* DO NOT add scrolling (or padding) to 'panes' that have a content-div,
  1508. otherwise you may get double-scrollbars - on the pane AND on the content-div
  1509. */
  1510. padding: 0px;
  1511. overflow: auto;
  1512. }
  1513. /* (scrolling) content-div inside pane allows for fixed header(s) and/or footer(s) */
  1514. #containerlayout .ui-layout-content {
  1515. padding: 10px;
  1516. position: relative; /* contain floated or positioned elements */
  1517. overflow: auto; /* add scrolling to content-div */
  1518. }
  1519. /*
  1520. * RESIZER-BARS
  1521. */
  1522. .ui-layout-resizer { /* all 'resizer-bars' */
  1523. width: <?php echo (empty($conf->dol_optimize_smallscreen)?'8':'24'); ?>px !important;
  1524. }
  1525. .ui-layout-resizer-hover { /* affects both open and closed states */
  1526. }
  1527. /* NOTE: It looks best when 'hover' and 'dragging' are set to the same color,
  1528. otherwise color shifts while dragging when bar can't keep up with mouse */
  1529. /*.ui-layout-resizer-open-hover ,*/ /* hover-color to 'resize' */
  1530. .ui-layout-resizer-dragging { /* resizer beging 'dragging' */
  1531. background: #f4f4f4;
  1532. width: <?php echo (empty($conf->dol_optimize_smallscreen)?'8':'24'); ?>px;
  1533. }
  1534. .ui-layout-resizer-dragging { /* CLONED resizer being dragged */
  1535. border-left: 1px solid #BBB;
  1536. border-right: 1px solid #BBB;
  1537. }
  1538. /* NOTE: Add a 'dragging-limit' color to provide visual feedback when resizer hits min/max size limits */
  1539. .ui-layout-resizer-dragging-limit { /* CLONED resizer at min or max size-limit */
  1540. background: #E1A4A4; /* red */
  1541. }
  1542. .ui-layout-resizer-closed {
  1543. background-color: #f4f4f4;
  1544. }
  1545. .ui-layout-resizer-closed:hover {
  1546. background-color: #EEDDDD;
  1547. }
  1548. .ui-layout-resizer-sliding { /* resizer when pane is 'slid open' */
  1549. opacity: .10; /* show only a slight shadow */
  1550. filter: alpha(opacity=10);
  1551. }
  1552. .ui-layout-resizer-sliding-hover { /* sliding resizer - hover */
  1553. opacity: 1.00; /* on-hover, show the resizer-bar normally */
  1554. filter: alpha(opacity=100);
  1555. }
  1556. /* sliding resizer - add 'outside-border' to resizer on-hover */
  1557. /* this sample illustrates how to target specific panes and states */
  1558. /*.ui-layout-resizer-north-sliding-hover { border-bottom-width: 1px; }
  1559. .ui-layout-resizer-south-sliding-hover { border-top-width: 1px; }
  1560. .ui-layout-resizer-west-sliding-hover { border-right-width: 1px; }
  1561. .ui-layout-resizer-east-sliding-hover { border-left-width: 1px; }
  1562. */
  1563. /*
  1564. * TOGGLER-BUTTONS
  1565. */
  1566. .ui-layout-toggler {
  1567. <?php if (empty($conf->dol_optimize_smallscreen)) { ?>
  1568. border-top: 1px solid #AAA; /* match pane-border */
  1569. border-right: 1px solid #AAA; /* match pane-border */
  1570. border-bottom: 1px solid #AAA; /* match pane-border */
  1571. background-color: #f4f4f4;
  1572. top: 5px !important;
  1573. <?php } else { ?>
  1574. diplay: none;
  1575. <?php } ?>
  1576. }
  1577. .ui-layout-toggler-open {
  1578. height: 54px !important;
  1579. width: <?php echo (empty($conf->dol_optimize_smallscreen)?'7':'22'); ?>px !important;
  1580. -moz-border-radius:0px 10px 10px 0px;
  1581. -webkit-border-radius:0px 10px 10px 0px;
  1582. border-radius:0px 10px 10px 0px;
  1583. }
  1584. .ui-layout-toggler-closed {
  1585. height: <?php echo (empty($conf->dol_optimize_smallscreen)?'54':'2'); ?>px !important;
  1586. width: <?php echo (empty($conf->dol_optimize_smallscreen)?'7':'22'); ?>px !important;
  1587. -moz-border-radius:0px 10px 10px 0px;
  1588. -webkit-border-radius:0px 10px 10px 0px;
  1589. border-radius:0px 10px 10px 0px;
  1590. }
  1591. .ui-layout-toggler .content { /* style the text we put INSIDE the togglers */
  1592. color: #666;
  1593. font-size: 12px;
  1594. font-weight: bold;
  1595. width: 100%;
  1596. padding-bottom: 0.35ex; /* to 'vertically center' text inside text-span */
  1597. }
  1598. /* hide the toggler-button when the pane is 'slid open' */
  1599. .ui-layout-resizer-sliding ui-layout-toggler {
  1600. display: none;
  1601. }
  1602. .ui-layout-north {
  1603. height: <?php print (empty($conf->dol_optimize_smallscreen)?'54':'21'); ?>px !important;
  1604. }
  1605. /* ECM */
  1606. #containerlayout .ecm-layout-pane { /* all 'panes' */
  1607. background: #FFF;
  1608. border: 1px solid #BBB;
  1609. /* DO NOT add scrolling (or padding) to 'panes' that have a content-div,
  1610. otherwise you may get double-scrollbars - on the pane AND on the content-div
  1611. */
  1612. padding: 0px;
  1613. overflow: auto;
  1614. }
  1615. /* (scrolling) content-div inside pane allows for fixed header(s) and/or footer(s) */
  1616. #containerlayout .ecm-layout-content {
  1617. padding: 10px;
  1618. position: relative; /* contain floated or positioned elements */
  1619. overflow: auto; /* add scrolling to content-div */
  1620. }
  1621. .ecm-layout-toggler {
  1622. border-top: 1px solid #AAA; /* match pane-border */
  1623. border-right: 1px solid #AAA; /* match pane-border */
  1624. border-bottom: 1px solid #AAA; /* match pane-border */
  1625. background-color: #CCC;
  1626. }
  1627. .ecm-layout-toggler-open {
  1628. height: 48px !important;
  1629. width: 6px !important;
  1630. -moz-border-radius:0px 10px 10px 0px;
  1631. -webkit-border-radius:0px 10px 10px 0px;
  1632. border-radius:0px 10px 10px 0px;
  1633. }
  1634. .ecm-layout-toggler-closed {
  1635. height: 48px !important;
  1636. width: 6px !important;
  1637. }
  1638. .ecm-layout-toggler .content { /* style the text we put INSIDE the togglers */
  1639. color: #666;
  1640. font-size: 12px;
  1641. font-weight: bold;
  1642. width: 100%;
  1643. padding-bottom: 0.35ex; /* to 'vertically center' text inside text-span */
  1644. }
  1645. #ecm-layout-west-resizer {
  1646. width: 6px !important;
  1647. }
  1648. .ecm-layout-resizer { /* all 'resizer-bars' */
  1649. border: 1px solid #BBB;
  1650. border-width: 0;
  1651. }
  1652. .ecm-layout-resizer-closed {
  1653. }
  1654. .ecm-in-layout-center {
  1655. border-left: 1px !important;
  1656. border-right: 0px !important;
  1657. border-top: 0px !important;
  1658. }
  1659. .ecm-in-layout-south {
  1660. border-left: 0px !important;
  1661. border-right: 0px !important;
  1662. border-bottom: 0px !important;
  1663. padding: 4px 0 4px 4px !important;
  1664. }
  1665. /* ============================================================================== */
  1666. /* Onglets */
  1667. /* ============================================================================== */
  1668. div.tabs {
  1669. text-align: <?php print $left; ?>;
  1670. margin-left: 6px !important;
  1671. margin-right: 6px !important;
  1672. clear:both;
  1673. height:100%;
  1674. }
  1675. div.tabsElem { margin-top: 6px; } /* To avoid overlap of tabs when not browser */
  1676. div.tabBar {
  1677. color: #<?php echo $colortextbacktab; ?>;
  1678. padding-top: <?php echo ($dol_optimize_smallscreen?'4':'16'); ?>px;
  1679. padding-left: <?php echo ($dol_optimize_smallscreen?'4':'16'); ?>px;
  1680. padding-right: <?php echo ($dol_optimize_smallscreen?'4':'16'); ?>px;
  1681. padding-bottom: <?php echo ($dol_optimize_smallscreen?'4':'14'); ?>px;
  1682. margin: 0px 0px 14px 0px;
  1683. -moz-border-radius:3px;
  1684. -webkit-border-radius: 3px;
  1685. border-radius: 3px;
  1686. border-right: 1px solid #BBB;
  1687. border-bottom: 1px solid #BBB;
  1688. border-left: 1px solid #BBB;
  1689. border-top: 1px solid #CCC;
  1690. width: auto;
  1691. background: rgb(<?php echo $colorbacktabcard1; ?>);
  1692. /*
  1693. <?php if (empty($dol_optimize_smallscreen)) { ?>
  1694. -moz-box-shadow: 3px 3px 4px #f4f4f4;
  1695. -webkit-box-shadow: 3px 3px 4px #f4f4f4;
  1696. box-shadow: 3px 3px 4px #f4f4f4;
  1697. <?php } ?>
  1698. */
  1699. }
  1700. div.tabsAction {
  1701. margin: 20px 0em 10px 0em;
  1702. padding: 0em 0em;
  1703. text-align: right;
  1704. }
  1705. div.tabsAction > a {
  1706. margin-bottom: 16px !important;
  1707. }
  1708. div.popuptabset {
  1709. padding: 6px;
  1710. border: 1px solid #888;
  1711. }
  1712. div.popuptab {
  1713. padding-top: 3px;
  1714. padding-bottom: 3px;
  1715. padding-left: 5px;
  1716. padding-right: 5px;
  1717. }
  1718. a.tabTitle {
  1719. /* background: #657090;
  1720. color: white;*/
  1721. color:rgba(0,0,0,.5);
  1722. margin-right:10px;
  1723. text-shadow:1px 1px 1px #ffffff;
  1724. font-family: <?php print $fontlist ?>;
  1725. font-weight: normal;
  1726. padding: 4px 6px 2px 6px;
  1727. margin: 0px 6px;
  1728. text-decoration: none;
  1729. white-space: nowrap;
  1730. }
  1731. a.tab:link, a.tab:visited, a.tab:hover, a.tab#active {
  1732. font-family: <?php print $fontlist ?>;
  1733. padding: 7px 9px 7px;
  1734. margin: 0em 0.2em;
  1735. text-decoration: none;
  1736. white-space: nowrap;
  1737. /*-moz-border-radius:3px 3px 0px 0px;
  1738. -webkit-border-radius:3px 3px 0px 0px;
  1739. border-radius:3px 3px 0px 0px;
  1740. -moz-box-shadow: 0 -1px 4px rgba(0,0,0,.1);
  1741. -webkit-box-shadow: 0 -1px 4px rgba(0,0,0,.1);
  1742. box-shadow: 0 -1px 4px rgba(0,0,0,.1);
  1743. border-bottom: none;
  1744. border-right: 1px solid #CCCCCC;
  1745. border-left: 1px solid #f4f4f4;
  1746. border-top: 1px solid #D8D8D8;
  1747. */
  1748. background-image: none !important;
  1749. }
  1750. .tabactive, a.tab#active {
  1751. color: #<?php echo $colortextbacktab; ?> !important;
  1752. background: rgb(<?php echo $colorbacktabcard1; ?>) !important;
  1753. border-right: 1px solid #AAA !important;
  1754. border-left: 1px solid #AAA !important;
  1755. border-top: 2px solid #111 !important;
  1756. /*
  1757. -moz-box-shadow: 0 -1px 4px rgba(0,0,0,.1);
  1758. -webkit-box-shadow: 0 -1px 4px rgba(0,0,0,.1);
  1759. box-shadow: 0 -1px 4px rgba(0,0,0,.1);
  1760. -moz-border-radius:3px 3px 0px 0px;
  1761. -webkit-border-radius:3px 3px 0px 0px;
  1762. border-radius:3px 3px 0px 0px;
  1763. */
  1764. }
  1765. a.tab:hover
  1766. {
  1767. /*
  1768. background: rgba(<?php echo $colorbacktabcard1; ?>, 0.5) url(<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/nav-overlay3.png',1); ?>) 50% 0 repeat-x;
  1769. color: #<?php echo $colortextbacktab; ?>;
  1770. */
  1771. text-decoration: underline;
  1772. }
  1773. a.tabimage {
  1774. color: #434956;
  1775. font-family: <?php print $fontlist ?>;
  1776. text-decoration: none;
  1777. white-space: nowrap;
  1778. }
  1779. td.tab {
  1780. background: #dee7ec;
  1781. }
  1782. span.tabspan {
  1783. background: #dee7ec;
  1784. color: #434956;
  1785. font-family: <?php print $fontlist ?>;
  1786. padding: 0px 6px;
  1787. margin: 0em 0.2em;
  1788. text-decoration: none;
  1789. white-space: nowrap;
  1790. -moz-border-radius:3px 3px 0px 0px;
  1791. -webkit-border-radius:3px 3px 0px 0px;
  1792. border-radius:3px 3px 0px 0px;
  1793. border-<?php print $right; ?>: 1px solid #555555;
  1794. border-<?php print $left; ?>: 1px solid #D8D8D8;
  1795. border-top: 1px solid #D8D8D8;
  1796. }
  1797. /* ============================================================================== */
  1798. /* Boutons actions */
  1799. /* ============================================================================== */
  1800. div.divButAction {
  1801. margin-bottom: 1.4em;
  1802. vertical-align: top;
  1803. }
  1804. span.butAction, span.butActionDelete {
  1805. cursor: pointer;
  1806. }
  1807. /* Prepare for bootstrap look */
  1808. .button, .butAction, .butActionDelete, .butActionRefused {
  1809. border-color: #c5c5c5;
  1810. border-color: rgba(0, 0, 0, 0.15) rgba(0, 0, 0, 0.15) rgba(0, 0, 0, 0.25);
  1811. display: inline-block;
  1812. padding: 0.4em <?php echo ($dol_optimize_smallscreen?'0.4':'0.7'); ?>em;
  1813. margin: 0em <?php echo ($dol_optimize_smallscreen?'0.7':'0.9'); ?>em;
  1814. line-height: 20px;
  1815. text-align: center;
  1816. vertical-align: middle;
  1817. cursor: pointer;
  1818. color: #333333 !important;
  1819. text-decoration: none !important;
  1820. text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
  1821. background-color: #f5f5f5;
  1822. background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
  1823. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));
  1824. background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);
  1825. background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);
  1826. background-image: linear-gradient(to bottom, #ffffff, #e6e6e6);
  1827. background-repeat: repeat-x;
  1828. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0);
  1829. border-color: #e6e6e6 #e6e6e6 #bfbfbf;
  1830. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  1831. filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
  1832. border: 1px solid #bbbbbb;
  1833. border-bottom-color: #a2a2a2;
  1834. -webkit-border-radius: 2px;
  1835. -moz-border-radius: 2px;
  1836. border-radius: 2px;
  1837. -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
  1838. -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
  1839. box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
  1840. }
  1841. .button, .butAction {
  1842. color: #ffffff !important;
  1843. text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  1844. background-color: #006dcc;
  1845. <?php // if (empty($conf->dol_use_jmobile)) { ?>
  1846. background-image: -moz-linear-gradient(top, #0088cc, #0044cc);
  1847. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc));
  1848. background-image: -webkit-linear-gradient(top, #0088cc, #0044cc);
  1849. background-image: -o-linear-gradient(top, #0088cc, #0044cc);
  1850. background-image: linear-gradient(to bottom, #0088cc, #0044cc);
  1851. <?php // } ?>
  1852. background-repeat: repeat-x;
  1853. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0044cc', GradientType=0);
  1854. border-color: #0044cc #0044cc #002a80;
  1855. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  1856. filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
  1857. }
  1858. .button:disabled, .butAction:disabled {
  1859. color: #666 !important;
  1860. text-shadow: none;
  1861. border-color: #555;
  1862. cursor: not-allowed;
  1863. background-color: #f5f5f5;
  1864. background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
  1865. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));
  1866. background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);
  1867. background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);
  1868. background-image: linear-gradient(to bottom, #ffffff, #e6e6e6);
  1869. background-repeat: repeat-x
  1870. }
  1871. .butActionDelete, .buttonDelete {
  1872. color: #ffffff !important;
  1873. text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  1874. background-color: #cc6d00;
  1875. background-image: -moz-linear-gradient(top, #cc8800, #cc4400);
  1876. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#cc8800), to(#cc4400));
  1877. background-image: -webkit-linear-gradient(top, #cc8800, #cc4400);
  1878. background-image: -o-linear-gradient(top, #cc8800, #cc4400);
  1879. background-image: linear-gradient(to bottom, #cc8800, #cc4400);
  1880. background-repeat: repeat-x;
  1881. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffcc8800', endColorstr='#ffcc4400', GradientType=0);
  1882. border-color: #cc4400 #cc4400 #802a00;
  1883. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  1884. filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
  1885. }
  1886. a.butAction:link, a.butAction:visited, a.butAction:hover, a.butAction:active {
  1887. color: #FFFFFF;
  1888. }
  1889. .butActionRefused {
  1890. color: #AAAAAA !important;
  1891. cursor: not-allowed !important;
  1892. }
  1893. a.butAction:hover, a.butActionDelete:hover, a.butActionRefused:hover {
  1894. text-decoration: none;
  1895. }
  1896. a.butAction:hover, a.butActionDelete:hover {
  1897. opacity: 0.9;
  1898. }
  1899. /* End bootstrap */
  1900. <?php if (! empty($conf->global->MAIN_BUTTON_HIDE_UNAUTHORIZED)) { ?>
  1901. .butActionRefused {
  1902. display: none;
  1903. }
  1904. <?php } ?>
  1905. /* ============================================================================== */
  1906. /* Tables */
  1907. /* ============================================================================== */
  1908. .allwidth {
  1909. width: 100%;
  1910. }
  1911. #undertopmenu {
  1912. background-repeat: repeat-x;
  1913. margin-top: <?php echo ($dol_hide_topmenu?'6':'0'); ?>px;
  1914. }
  1915. .paddingrightonly {
  1916. border-collapse: collapse;
  1917. border: 0px;
  1918. margin-left: 0px;
  1919. padding-<?php print $left; ?>: 0px !important;
  1920. padding-<?php print $right; ?>: 4px !important;
  1921. }
  1922. .nocellnopadd {
  1923. list-style-type:none;
  1924. margin: 0px !important;
  1925. padding: 0px !important;
  1926. }
  1927. tr.nocellnopadd td.nobordernopadding, tr.nocellnopadd td.nocellnopadd
  1928. {
  1929. border: 0px;
  1930. }
  1931. .notopnoleft {
  1932. border-collapse: collapse;
  1933. border: 0px;
  1934. padding-top: 0px;
  1935. padding-<?php print $left; ?>: 0px;
  1936. padding-<?php print $right; ?>: 16px;
  1937. padding-bottom: 4px;
  1938. margin-right: 0px 0px;
  1939. }
  1940. .notopnoleftnoright {
  1941. border-collapse: collapse;
  1942. border: 0px;
  1943. padding-top: 0px;
  1944. padding-left: 0px;
  1945. padding-right: 0px;
  1946. padding-bottom: 4px;
  1947. margin: 0px 0px 0px 0px;
  1948. }
  1949. table.border, table.dataTable, .table-border, .table-border-col, .table-key-border-col, .table-val-border-col, div.border {
  1950. border: 1px solid #f4f4f4;
  1951. border-collapse: collapse !important;
  1952. padding: 1px 2px 1px 3px; /* t r b l */
  1953. }
  1954. .border tbody tr, .border tbody tr td {
  1955. height: 20px;
  1956. }
  1957. div.tabBar table.border tr {
  1958. height: 20px;
  1959. }
  1960. table.border td, div.border div div.tagtd {
  1961. padding: 2px 2px 2px 2px;
  1962. border: 1px solid #f4f4f4;
  1963. border-collapse: collapse;
  1964. }
  1965. td.border, div.tagtable div div.border {
  1966. border-top: 1px solid #000000;
  1967. border-right: 1px solid #000000;
  1968. border-bottom: 1px solid #000000;
  1969. border-left: 1px solid #000000;
  1970. }
  1971. .table-key-border-col {
  1972. width: 25%;
  1973. vertical-align:top;
  1974. }
  1975. .table-val-border-col {
  1976. width:auto;
  1977. }
  1978. /* Main boxes */
  1979. table.liste, table.noborder, table.formdoc, div.noborder {
  1980. width: 100%;
  1981. border-collapse: separate !important;
  1982. border-spacing: 0px;
  1983. border-top-width: <?php echo $borderwith ?>px;
  1984. border-top-color: rgb(<?php echo $colortopbordertitle1 ?>);
  1985. border-top-style: solid;
  1986. /* border-right-width: 1px;
  1987. border-right-color: #BBB;
  1988. border-right-style: solid;
  1989. border-left-width: 1px;
  1990. border-left-color: #BBB;
  1991. border-left-style: solid;
  1992. */
  1993. border-bottom-width: 1px;
  1994. border-bottom-color: #BBB;
  1995. border-bottom-style: solid;
  1996. margin: 0px 0px 8px 0px;
  1997. /*
  1998. -moz-box-shadow: 2px 2px 4px #CCC;
  1999. -webkit-box-shadow: 2px 2px 4px #CCC;
  2000. box-shadow: 2px 2px 4px #CCC;
  2001. */
  2002. /* box-shadow: 0 0 3px rgba(0,0,0,0.16); */
  2003. -moz-border-radius: 0.1em;
  2004. -webkit-border-radius: 0.1em;
  2005. border-radius: 0.1em;
  2006. }
  2007. #tablelines tr.liste_titre:first-child td, form.formnoborder, tr.liste_titre.trnoborder td {
  2008. border-top-width: 1px;
  2009. border-top-color: rgb(<?php echo $colortopbordertitle1 ?>);
  2010. border-top-style: solid;
  2011. }
  2012. table.noborder tr, div.noborder form {
  2013. border-top-color: #FEFEFE;
  2014. border-right-width: 1px;
  2015. border-right-color: #BBBBBB;
  2016. border-right-style: solid;
  2017. border-left-width: 1px;
  2018. border-left-color: #BBBBBB;
  2019. border-left-style: solid;
  2020. min-height: 26px;
  2021. }
  2022. table.liste th, table.noborder th, table.noborder tr.liste_titre td {
  2023. padding: 8px 2px 8px 3px; /* t r b l */
  2024. }
  2025. table.noborder td, div.noborder form, div.noborder form div {
  2026. padding: 4px 2px 4px 3px; /* t r b l */
  2027. }
  2028. table.nobordernopadding {
  2029. border-collapse: collapse !important;
  2030. border: 0px;
  2031. }
  2032. table.nobordernopadding tr {
  2033. border: 0px !important;
  2034. padding: 0px 0px !important;
  2035. }
  2036. table.nobordernopadding tr td {
  2037. border: 0px;
  2038. padding: 0 3px 0 0;
  2039. }
  2040. table.border tr td table.nobordernopadding tr td {
  2041. padding-top: 0px;
  2042. padding-bottom: 0px;
  2043. }
  2044. td.borderright {
  2045. border: none; /* to erase value for table.nobordernopadding td */
  2046. border-right-width: 1px !important;
  2047. border-right-color: #BBB !important;
  2048. border-right-style: solid !important;
  2049. }
  2050. /* For table with no filter before */
  2051. table.listwithfilterbefore {
  2052. border-top: none !important;
  2053. }
  2054. .tagtable, .table-border { display: table; }
  2055. .tagtr, .table-border-row { display: table-row; }
  2056. .tagtd, .table-border-col, .table-key-border-col, .table-val-border-col { display: table-cell; }
  2057. /* Pagination */
  2058. div.refidpadding {
  2059. padding-top: <?php print empty($conf->dol_use_jmobile)?'3':'14'; ?>px;
  2060. }
  2061. div.refid {
  2062. font-weight: bold;
  2063. color: #766;
  2064. font-size: 160%;
  2065. }
  2066. div.refidno {
  2067. padding-top: 2px;
  2068. font-weight: normal;
  2069. color: #444;
  2070. font-size: <?php print $fontsize ?>px;
  2071. }
  2072. div.pagination {
  2073. float: right;
  2074. }
  2075. div.pagination a {
  2076. font-weight: normal;
  2077. }
  2078. div.pagination ul
  2079. {
  2080. list-style: none;
  2081. display: inline-block;
  2082. padding-left: 0px;
  2083. padding-right: 0px;
  2084. margin: 0;
  2085. }
  2086. div.pagination li {
  2087. display: inline-block;
  2088. padding-left: 0px;
  2089. padding-right: 0px;
  2090. <?php if (empty($conf->dol_use_jmobile)) { ?>
  2091. padding-top: 6px;
  2092. padding-bottom: 5px;
  2093. <?php } ?>
  2094. }
  2095. .pagination {
  2096. display: inline-block;
  2097. padding-left: 0;
  2098. border-radius: 4px;
  2099. }
  2100. div.pagination li.pagination a,
  2101. div.pagination li.pagination span {
  2102. <?php if (empty($conf->dol_use_jmobile)) { ?>
  2103. padding: 6px 12px;
  2104. margin-left: -1px;
  2105. line-height: 1.42857143;
  2106. color: #000;
  2107. text-decoration: none;
  2108. background-color: #f5f5f5;
  2109. background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
  2110. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));
  2111. background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);
  2112. background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);
  2113. background-image: linear-gradient(to bottom, #ffffff, #e6e6e6);
  2114. background-repeat: repeat-x;
  2115. <?php } ?>
  2116. }
  2117. div.pagination li.pagination span.inactive {
  2118. cursor: default;
  2119. color: #ccc;
  2120. }
  2121. div.pagination li.litext a {
  2122. border: none;
  2123. padding-right: 10px;
  2124. padding-left: 4px;
  2125. font-weight: bold;
  2126. }
  2127. <?php if (! empty($conf->dol_use_jmobile)) { ?>
  2128. div.pagination li.litext {
  2129. padding-top: 13px;
  2130. vertical-align: top;
  2131. }
  2132. <?php } ?>
  2133. <?php if (empty($conf->dol_use_jmobile)) { ?>
  2134. div.pagination li.noborder a:hover {
  2135. border: none;
  2136. background-color: transparent;
  2137. }
  2138. div.pagination li a,
  2139. div.pagination li span {
  2140. background-color: #fff;
  2141. border: 1px solid #ddd;
  2142. }
  2143. div.pagination li:first-child a,
  2144. div.pagination li:first-child span {
  2145. margin-left: 0;
  2146. border-top-left-radius: 4px;
  2147. border-bottom-left-radius: 4px;
  2148. }
  2149. div.pagination li:last-child a,
  2150. div.pagination li:last-child span {
  2151. border-top-right-radius: 4px;
  2152. border-bottom-right-radius: 4px;
  2153. }
  2154. div.pagination li a:hover,
  2155. div.pagination li span:hover,
  2156. div.pagination li a:focus,
  2157. div.pagination li span:focus {
  2158. color: #000;
  2159. background-color: #eee;
  2160. border-color: #ddd;
  2161. }
  2162. div.pagination li .active a,
  2163. div.pagination li .active span,
  2164. div.pagination li .active a:hover,
  2165. div.pagination li .active span:hover,
  2166. div.pagination li .active a:focus,
  2167. div.pagination li .active span:focus {
  2168. z-index: 2;
  2169. color: #fff;
  2170. cursor: default;
  2171. background-color: <?php $colorbackhmenu1 ?>;
  2172. border-color: #337ab7;
  2173. }
  2174. div.pagination .disabled span,
  2175. div.pagination .disabled span:hover,
  2176. div.pagination .disabled span:focus,
  2177. div.pagination .disabled a,
  2178. div.pagination .disabled a:hover,
  2179. div.pagination .disabled a:focus {
  2180. color: #777;
  2181. cursor: not-allowed;
  2182. background-color: #fff;
  2183. border-color: #ddd;
  2184. }
  2185. <?php } ?>
  2186. div.pagination li.pagination .active {
  2187. text-decoration: underline;
  2188. }
  2189. div.pagination li.paginationafterarrows {
  2190. margin-left: 10px;
  2191. }
  2192. .paginationatbottom {
  2193. margin-top: 9px;
  2194. }
  2195. /* Prepare to remove class pair - impair
  2196. .noborder > tbody > tr:nth-child(even) td {
  2197. background: linear-gradient(bottom, rgb(<?php echo $colorbacklineimpair1; ?>) 85%, rgb(<?php echo $colorbacklineimpair2; ?>) 100%);
  2198. background: -o-linear-gradient(bottom, rgb(<?php echo $colorbacklineimpair1; ?>) 85%, rgb(<?php echo $colorbacklineimpair2; ?>) 100%);
  2199. background: -moz-linear-gradient(bottom, rgb(<?php echo $colorbacklineimpair1; ?>) 85%, rgb(<?php echo $colorbacklineimpair2; ?>) 100%);
  2200. background: -webkit-linear-gradient(bottom, rgb(<?php echo $colorbacklineimpair1; ?>) 85%, rgb(<?php echo $colorbacklineimpair2; ?>) 100%);
  2201. background: -ms-linear-gradient(bottom, rgb(<?php echo $colorbacklineimpair1; ?>) 85%, rgb(<?php echo $colorbacklineimpair2; ?>) 100%);
  2202. font-family: <?php print $fontlist ?>;
  2203. border: 0px;
  2204. margin-bottom: 1px;
  2205. color: #202020;
  2206. min-height: 18px;
  2207. }
  2208. .noborder > tbody > tr:nth-child(odd) td {
  2209. background: linear-gradient(bottom, rgb(<?php echo $colorbacklinepair1; ?>) 85%, rgb(<?php echo $colorbacklinepair2; ?>) 100%);
  2210. background: -o-linear-gradient(bottom, rgb(<?php echo $colorbacklinepair1; ?>) 85%, rgb(<?php echo $colorbacklinepair2; ?>) 100%);
  2211. background: -moz-linear-gradient(bottom, rgb(<?php echo $colorbacklinepair1; ?>) 85%, rgb(<?php echo $colorbacklinepair2; ?>) 100%);
  2212. background: -webkit-linear-gradient(bottom, rgb(<?php echo $colorbacklinepair1; ?>) 85%, rgb(<?php echo $colorbacklinepair2; ?>) 100%);
  2213. background: -ms-linear-gradient(bottom, rgb(<?php echo $colorbacklinepair1; ?>) 85%, rgb(<?php echo $colorbacklinepair2; ?>) 100%);
  2214. font-family: <?php print $fontlist ?>;
  2215. border: 0px;
  2216. margin-bottom: 1px;
  2217. color: #202020;
  2218. }
  2219. */
  2220. /* Set the color for hover lines */
  2221. .odd:hover, .impair:hover, .even:hover, .pair:hover, .even:hover, .pair:hover, table.dataTable tr.even:hover, table.dataTable tr.odd:hover, .box_pair:hover, .box_impair:hover
  2222. {
  2223. <?php if ($colorbacklinepairhover) { ?>
  2224. background: rgb(<?php echo $colorbacklinepairhover; ?>) !important;
  2225. <?php } else { ?>
  2226. /* background: rgba(0, 0, 0, 0.05) !important; */
  2227. <?php } ?>
  2228. }
  2229. .odd, .impair, .nohover .odd:hover, .nohover .impair:hover, tr.odd td.nohover, tr.impair td.nohover, tr.box_pair td.nohover, tr.box_impair td.nohover
  2230. {
  2231. font-family: <?php print $fontlist ?>;
  2232. border: 0px;
  2233. margin-bottom: 1px;
  2234. color: #202020;
  2235. min-height: 18px; /* seems to not be used */
  2236. background: #<?php echo colorArrayToHex(colorStringToArray($colorbacklineimpair1)); ?>;
  2237. }
  2238. #GanttChartDIV {
  2239. background: #<?php echo colorArrayToHex(colorStringToArray($colorbacklineimpair1)); ?>;
  2240. }
  2241. .even, .pair, .nohover .even:hover, .nohover .pair:hover, tr.even td.nohover, tr.pair td.nohover {
  2242. font-family: <?php print $fontlist ?>;
  2243. margin-bottom: 1px;
  2244. color: #202020;
  2245. background-color: #<?php echo colorArrayToHex(colorStringToArray($colorbacklinepair1)); ?>;
  2246. }
  2247. table.dataTable tr.odd {
  2248. background-color: #<?php echo colorArrayToHex(colorStringToArray($colorbacklinepair1)); ?> !important;
  2249. }
  2250. /* For no hover style */
  2251. table.nohover tr.impair, table.nohover tr.pair, table.nohover tr.impair td, table.nohover tr.pair td, tr.nohover td {
  2252. background-color: #<?php echo colorArrayToHex(colorStringToArray($colorbacklineimpair1)); ?> !important;
  2253. }
  2254. tr.nohoverpair td {
  2255. background-color: #<?php echo colorArrayToHex(colorStringToArray($colorbacklinepair1)); ?> !important;
  2256. }
  2257. table.dataTable td {
  2258. padding: 5px 2px 5px 3px !important;
  2259. }
  2260. tr.even td, tr.pair td, tr.odd td, tr.impair td, form.odd div.tagtd, form.impair div.tagtd, form.pair div.tagtd, div.impair div.tagtd, div.pair div.tagtd, div.liste_titre div.tagtd {
  2261. padding: 5px 2px 5px 3px;
  2262. border-bottom: 1px solid #eee;
  2263. }
  2264. tr.even:last-of-type td, tr.pair:last-of-type td, tr.odd:last-of-type td, tr.impair:last-of-type td {
  2265. border-bottom: 0px !important;
  2266. }
  2267. tr.even td .nobordernopadding tr td, tr.pair td .nobordernopadding tr td, tr.impair td .nobordernopadding tr td, tr.odd td .nobordernopadding tr td {
  2268. border-bottom: 0px !important;
  2269. }
  2270. td.nobottom, td.nobottom {
  2271. border-bottom: 0px !important;
  2272. }
  2273. div.liste_titre .tagtd {
  2274. vertical-align: middle;
  2275. }
  2276. div.liste_titre {
  2277. min-height: 26px !important; /* We cant use height because it's a div and it should be higher if content is more. but min-height doe not work either for div */
  2278. padding-top: 2px;
  2279. padding-bottom: 2px;
  2280. /*border-right-width: 1px;
  2281. border-right-color: #BBB;
  2282. border-right-style: solid;
  2283. border-left-width: 1px;
  2284. border-left-color: #BBB;
  2285. border-left-style: solid;*/
  2286. border-top-width: 1px;
  2287. border-top-color: #BBB;
  2288. border-top-style: solid;
  2289. }
  2290. div.liste_titre_bydiv {
  2291. border-top-width: <?php echo $borderwith; ?>px;
  2292. border-top-color: rgb(<?php echo $colortopbordertitle1 ?>);
  2293. border-top-style: solid;
  2294. box-shadow: none;
  2295. border-collapse: collapse;
  2296. display: table;
  2297. padding: 2px 0px 2px 0;
  2298. width: 100%; /* 1px more, i don't know why */
  2299. }
  2300. tr.liste_titre, tr.liste_titre_sel, form.liste_titre, form.liste_titre_sel, table.dataTable.tr
  2301. {
  2302. height: 26px !important;
  2303. }
  2304. div.liste_titre, tr.liste_titre, tr.liste_titre_sel, form.liste_titre, form.liste_titre_sel, table.dataTable thead tr
  2305. {
  2306. /* TO MATCH BOOTSTRAP */
  2307. /* background: #ddd; */
  2308. /* TO MATCH ELDY */
  2309. <?php if ($usegradient) { ?>
  2310. background-image: -o-linear-gradient(bottom, rgba(0,0,0,0.1) 0%, rgba(250,250,250,0.3) 100%);
  2311. background-image: -moz-linear-gradient(bottom, rgba(0,0,0,0.1) 0%, rgba(250,250,250,0.3) 100%);
  2312. background-image: -webkit-linear-gradient(bottom, rgba(0,0,0,0.1) 0%, rgba(250,250,250,0.3) 100%);
  2313. background-image: -ms-linear-gradient(bottom, rgba(0,0,0,0.1) 0%, rgba(250,250,250,0.3) 100%);
  2314. background-image: linear-gradient(bottom, rgba(0,0,0,0.1) 0%, rgba(250,250,250,0.3) 100%);
  2315. <?php } else { ?>
  2316. background: rgb(<?php echo $colorbacktitle1; ?>);
  2317. <?php } ?>
  2318. font-weight: <?php echo $useboldtitle?'bold':'normal'; ?>;
  2319. color: rgb(<?php echo $colortexttitle; ?>);
  2320. font-family: <?php print $fontlist ?>;
  2321. border-bottom: 1px solid #FDFFFF;
  2322. text-align: <?php echo $left; ?>;
  2323. }
  2324. tr.liste_titre th, th.liste_titre, form.liste_titre div, div.liste_titre
  2325. {
  2326. border-bottom: 1px solid #FDFFFF;
  2327. }
  2328. tr.liste_titre th, th.liste_titre, tr.liste_titre td, td.liste_titre, form.liste_titre div, div.liste_titre
  2329. {
  2330. font-family: <?php print $fontlist ?>;
  2331. font-weight: <?php echo $useboldtitle?'bold':'normal'; ?>;
  2332. vertical-align: middle;
  2333. }
  2334. tr.liste_titre th a, th.liste_titre a, tr.liste_titre td a, td.liste_titre a, form.liste_titre div a, div.liste_titre a {
  2335. text-shadow: none !important;
  2336. }
  2337. tr.liste_titre_topborder td {
  2338. border-top-width: <?php echo $borderwith; ?>px;
  2339. border-top-color: rgb(<?php echo $colortopbordertitle1 ?>);
  2340. border-top-style: solid;
  2341. }
  2342. .liste_titre td a {
  2343. text-shadow: none !important;
  2344. color: rgb(<?php echo $colortexttitle; ?>);
  2345. }
  2346. div.liste_titre {
  2347. padding-left: 3px;
  2348. }
  2349. tr.liste_titre_sel th, th.liste_titre_sel, tr.liste_titre_sel td, td.liste_titre_sel, form.liste_titre_sel div
  2350. {
  2351. font-family: <?php print $fontlist ?>;
  2352. font-weight: normal;
  2353. border-bottom: 1px solid #FDFFFF;
  2354. text-decoration: underline;
  2355. }
  2356. input.liste_titre {
  2357. background: transparent;
  2358. border: 0px;
  2359. }
  2360. .noborder tr.liste_total, .noborder tr.liste_total td, tr.liste_total, form.liste_total {
  2361. /* background: #F0F0F0; */
  2362. }
  2363. .noborder tr.liste_total td, tr.liste_total td, form.liste_total div {
  2364. /* border-top: 1px solid #f4f4f4; */
  2365. color: #332266;
  2366. font-weight: normal;
  2367. white-space: nowrap;
  2368. padding: 4px;
  2369. height: 20px;
  2370. }
  2371. .tableforservicepart1 .impair, .tableforservicepart1 .pair, .tableforservicepart2 .impair, .tableforservicepart2 .pair {
  2372. background: #FFF;
  2373. }
  2374. .tableforservicepart1 tbody tr td, .tableforservicepart2 tbody tr td {
  2375. border-bottom: none;
  2376. }
  2377. .paymenttable, .margintable {
  2378. border-top-width: <?php echo $borderwith ?>px !important;
  2379. border-top-color: rgb(<?php echo $colortopbordertitle1 ?>) !important;
  2380. border-top-style: solid !important;
  2381. }
  2382. .paymenttable tr td:first-child, .margintable tr td:first-child
  2383. {
  2384. padding-left: 2px;
  2385. }
  2386. .margintable td {
  2387. border: 0px !important;
  2388. }
  2389. /* Disable shadows */
  2390. .noshadow {
  2391. -moz-box-shadow: 0px 0px 0px #f4f4f4 !important;
  2392. -webkit-box-shadow: 0px 0px 0px #f4f4f4 !important;
  2393. box-shadow: 0px 0px 0px #f4f4f4 !important;
  2394. }
  2395. div.tabBar .noborder {
  2396. -moz-box-shadow: 0px 0px 0px #f4f4f4 !important;
  2397. -webkit-box-shadow: 0px 0px 0px #f4f4f4 !important;
  2398. box-shadow: 0px 0px 0px #f4f4f4 !important;
  2399. }
  2400. #tablelines tr.liste_titre td, .paymenttable tr.liste_titre td, .margintable tr.liste_titre td, .tableforservicepart1 tr.liste_titre td {
  2401. border-bottom: 1px solid #AAA !important;
  2402. }
  2403. /*
  2404. * Boxes
  2405. */
  2406. .boxstats {
  2407. <?php print "float: ".$left.";\n"; ?>
  2408. margin: 3px;
  2409. padding: 3px;
  2410. /*-moz-box-shadow: 3px 3px 4px #f4f4f4;
  2411. -webkit-box-shadow: 3px 3px 4px #f4f4f4;
  2412. box-shadow: 3px 3px 4px #f4f4f4;
  2413. margin-bottom: 8px !important;*/
  2414. border: 1px solid #CCC;
  2415. text-align: center;
  2416. border-radius: 2px;
  2417. min-height: 38px;
  2418. }
  2419. .boxstats:hover {
  2420. <?php if ($colorbacklinepairhover) { ?>
  2421. background: rgb(<?php echo $colorbacklinepairhover; ?>) !important;
  2422. <?php } else { ?>
  2423. background-color: #<?php echo colorArrayToHex(colorStringToArray($colorbacklinepair1)); ?>;
  2424. <?php } ?>
  2425. }
  2426. span.boxstatstext {
  2427. /* opacity: 0.9; Disabled. This make text on top of left menu in smartphone size */
  2428. line-height: 18px;
  2429. }
  2430. span.boxstatsindicator {
  2431. font-size: 110%;
  2432. font-weight: normal;
  2433. }
  2434. span.dashboardlineindicator, span.dashboardlineindicatorlate {
  2435. font-size: 120%;
  2436. font-weight: bold;
  2437. }
  2438. span.dashboardlineok {
  2439. color: #008800;
  2440. }
  2441. span.dashboardlineko {
  2442. color: #880000;
  2443. font-weight: bold;
  2444. }
  2445. .boxtable {
  2446. -moz-box-shadow: 3px 3px 4px #f4f4f4;
  2447. -webkit-box-shadow: 3px 3px 4px #f4f4f4;
  2448. box-shadow: 3px 3px 4px #f4f4f4;
  2449. margin-bottom: 8px !important;
  2450. }
  2451. .box {
  2452. padding-right: 0px;
  2453. padding-left: 0px;
  2454. padding-bottom: 12px;
  2455. }
  2456. tr.box_titre {
  2457. height: 26px !important;
  2458. /* TO MATCH BOOTSTRAP */
  2459. /*background: #ddd;
  2460. color: #000 !important; */
  2461. /* TO MATCH ELDY */
  2462. <?php if ($usegradient) { ?>
  2463. background-image: -o-linear-gradient(bottom, rgba(0,0,0,0.1) 0%, rgba(250,250,250,0.3) 100%);
  2464. background-image: -moz-linear-gradient(bottom, rgba(0,0,0,0.1) 0%, rgba(250,250,250,0.3) 100%);
  2465. background-image: -webkit-linear-gradient(bottom, rgba(0,0,0,0.1) 0%, rgba(250,250,250,0.3) 100%);
  2466. background-image: -ms-linear-gradient(bottom, rgba(0,0,0,0.1) 0%, rgba(250,250,250,0.3) 100%);
  2467. background-image: linear-gradient(bottom, rgba(0,0,0,0.1) 0%, rgba(250,250,250,0.3) 100%);
  2468. <?php } else { ?>
  2469. background: rgb(<?php echo $colorbacktitle1; ?>);
  2470. <?php } ?>
  2471. background-repeat: repeat-x;
  2472. color: rgb(<?php echo $colortexttitle; ?>);
  2473. font-family: <?php print $fontlist ?>, sans-serif;
  2474. font-weight: <?php echo $useboldtitle?'bold':'normal'; ?>;
  2475. border-bottom: 1px solid #FDFFFF;
  2476. white-space: nowrap;
  2477. }
  2478. tr.box_titre td.boxclose {
  2479. width: 30px;
  2480. }
  2481. tr.box_impair {
  2482. background: -o-linear-gradient(bottom, rgb(<?php echo $colorbacklineimpair1; ?>) 85%, rgb(<?php echo $colorbacklineimpair2; ?>) 100%);
  2483. background: -moz-linear-gradient(bottom, rgb(<?php echo $colorbacklineimpair1; ?>) 85%, rgb(<?php echo $colorbacklineimpair2; ?>) 100%);
  2484. background: -webkit-linear-gradient(bottom, rgb(<?php echo $colorbacklineimpair1; ?>) 85%, rgb(<?php echo $colorbacklineimpair2; ?>) 100%);
  2485. background: -ms-linear-gradient(bottom, rgb(<?php echo $colorbacklineimpair1; ?>) 85%, rgb(<?php echo $colorbacklineimpair2; ?>) 100%);
  2486. background: linear-gradient(bottom, rgb(<?php echo $colorbacklineimpair1; ?>) 85%, rgb(<?php echo $colorbacklineimpair2; ?>) 100%);
  2487. font-family: <?php print $fontlist ?>;
  2488. }
  2489. tr.box_pair {
  2490. font-family: <?php print $fontlist ?>;
  2491. background-color: #f9f9f9;
  2492. }
  2493. tr.box_pair td, tr.box_impair td {
  2494. padding: 4px;
  2495. border-bottom: 1px solid #f4f4f4;
  2496. }
  2497. .formboxfilter {
  2498. vertical-align: middle;
  2499. margin-bottom: 6px;
  2500. }
  2501. .formboxfilter input[type=image]
  2502. {
  2503. top: 5px;
  2504. position: relative;
  2505. }
  2506. .prod_entry_mode_free, .prod_entry_mode_predef {
  2507. height: 26px !important;
  2508. vertical-align: middle;
  2509. }
  2510. /*
  2511. * Ok, Warning, Error
  2512. */
  2513. .ok { color: #114466; }
  2514. .warning { color: #887711; }
  2515. .error { color: #550000 !important; font-weight: bold; }
  2516. div.ok {
  2517. color: #114466;
  2518. }
  2519. /* Warning message */
  2520. div.warning {
  2521. color: #302020;
  2522. padding: 0.3em 0.3em 0.3em 0.3em;
  2523. margin: 0.5em 0em 0.5em 0em;
  2524. border: 1px solid #e0d0b0;
  2525. -moz-border-radius:3px;
  2526. -webkit-border-radius: 3px;
  2527. border-radius: 3px;
  2528. background: #EFDF9A;
  2529. text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  2530. }
  2531. /* Error message */
  2532. div.error {
  2533. color: #550000; font-weight: bold;
  2534. padding: 0.3em 0.3em 0.3em 0.3em;
  2535. margin: 0.5em 0em 0.5em 0em;
  2536. border: 1px solid #DC9CAB;
  2537. -moz-border-radius:3px;
  2538. -webkit-border-radius: 3px;
  2539. border-radius: 3px;
  2540. background: #EFCFCF;
  2541. }
  2542. /* Info admin */
  2543. div.info {
  2544. color: #302010;
  2545. padding: 0.4em 0.4em 0.4em 0.4em;
  2546. margin: 0.5em 0em 0.5em 0em;
  2547. border: 1px solid #DFBF9A;
  2548. -moz-border-radius:3px;
  2549. -webkit-border-radius: 3px;
  2550. border-radius:3px;
  2551. background: #EFCFAA;
  2552. text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  2553. }
  2554. div.warning a, div.info a, div.error a {
  2555. color: rgb(<?php echo $colortext; ?>);
  2556. }
  2557. /*
  2558. * Liens Payes/Non payes
  2559. */
  2560. a.normal:link { font-weight: normal }
  2561. a.normal:visited { font-weight: normal }
  2562. a.normal:active { font-weight: normal }
  2563. a.normal:hover { font-weight: normal }
  2564. a.impayee:link { font-weight: bold; color: #550000; }
  2565. a.impayee:visited { font-weight: bold; color: #550000; }
  2566. a.impayee:active { font-weight: bold; color: #550000; }
  2567. a.impayee:hover { font-weight: bold; color: #550000; }
  2568. /*
  2569. * Other
  2570. */
  2571. .product_line_stock_ok { color: #002200; }
  2572. .product_line_stock_too_low { color: #664400; }
  2573. .fieldrequired { font-weight: bold; color: #000055; }
  2574. .widthpictotitle { width: 40px; text-align: <?php echo $left; ?>; }
  2575. .dolgraphtitle { margin-top: 6px; margin-bottom: 4px; }
  2576. .dolgraphtitlecssboxes { margin: 0px; }
  2577. .legendColorBox, .legendLabel { border: none !important; }
  2578. div.dolgraph div.legend, div.dolgraph div.legend div { background-color: rgba(255,255,255,0) !important; }
  2579. div.dolgraph div.legend table tbody tr { height: auto; }
  2580. td.legendColorBox { padding: 2px 2px 2px 0 !important; }
  2581. td.legendLabel { padding: 2px 2px 2px 0 !important; }
  2582. .photo {
  2583. border: 0px;
  2584. }
  2585. .photowithmargin {
  2586. margin-bottom: 2px;
  2587. margin-top: 2px;
  2588. }
  2589. .photowithmargin {
  2590. /* -webkit-box-shadow: 0px 0px 3px #777;
  2591. -moz-box-shadow: 0px 0px 3px #777;
  2592. box-shadow: 0px 0px 3px #777;*/
  2593. }
  2594. .photointoolitp {
  2595. margin-top: 8px;
  2596. float: left;
  2597. /*text-align: center; */
  2598. }
  2599. .photodelete {
  2600. margin-top: 6px !important;
  2601. }
  2602. .logo_setup
  2603. {
  2604. content:url(<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/logo_setup.svg',1) ?>); /* content is used to best fit the container */
  2605. display: inline-block;
  2606. }
  2607. .nographyet
  2608. {
  2609. content:url(<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/nographyet.svg',1) ?>);
  2610. display: inline-block;
  2611. opacity: 0.1;
  2612. background-repeat: no-repeat;
  2613. }
  2614. .nographyettext
  2615. {
  2616. opacity: 0.5;
  2617. }
  2618. div.titre {
  2619. font-family: <?php print $fontlist ?>;
  2620. font-weight: bold;
  2621. color: rgb(<?php print $colortexttitlenotab; ?>);
  2622. text-decoration: none;
  2623. /* text-shadow: 1px 1px 2px #FFFFFF; */
  2624. <?php print (empty($conf->dol_optimize_smallscreen)?'':'margin-top: 4px;'); ?>
  2625. }
  2626. #dolpaymenttable { width: 600px; font-size: 13px; }
  2627. #tablepublicpayment { border: 1px solid #CCCCCC !important; width: 100%; }
  2628. #tablepublicpayment .CTableRow1 { background-color: #F0F0F0 !important; }
  2629. #tablepublicpayment tr.liste_total { border-bottom: 1px solid #CCCCCC !important; }
  2630. #tablepublicpayment tr.liste_total td { border-top: none; }
  2631. #divsubscribe { width: 700px; }
  2632. #tablesubscribe { width: 100%; }
  2633. /*
  2634. * Effect Postit
  2635. */
  2636. .effectpostit
  2637. {
  2638. position: relative;
  2639. }
  2640. .effectpostit:before, .effectpostit:after
  2641. {
  2642. z-index: -1;
  2643. position: absolute;
  2644. content: "";
  2645. bottom: 15px;
  2646. left: 10px;
  2647. width: 50%;
  2648. top: 80%;
  2649. max-width:300px;
  2650. background: #777;
  2651. -webkit-box-shadow: 0 15px 10px #777;
  2652. -moz-box-shadow: 0 15px 10px #777;
  2653. box-shadow: 0 15px 10px #777;
  2654. -webkit-transform: rotate(-3deg);
  2655. -moz-transform: rotate(-3deg);
  2656. -o-transform: rotate(-3deg);
  2657. -ms-transform: rotate(-3deg);
  2658. transform: rotate(-3deg);
  2659. }
  2660. .effectpostit:after
  2661. {
  2662. -webkit-transform: rotate(3deg);
  2663. -moz-transform: rotate(3deg);
  2664. -o-transform: rotate(3deg);
  2665. -ms-transform: rotate(3deg);
  2666. transform: rotate(3deg);
  2667. right: 10px;
  2668. left: auto;
  2669. }
  2670. /* ============================================================================== */
  2671. /* Formulaire confirmation (When Ajax JQuery is used) */
  2672. /* ============================================================================== */
  2673. .ui-dialog-titlebar {
  2674. }
  2675. .ui-dialog-content {
  2676. font-size: <?php print $fontsize; ?>px !important;
  2677. }
  2678. /* ============================================================================== */
  2679. /* Formulaire confirmation (When HTML is used) */
  2680. /* ============================================================================== */
  2681. table.valid {
  2682. border-top: solid 1px #E6E6E6;
  2683. border-<?php print $left; ?>: solid 1px #E6E6E6;
  2684. border-<?php print $right; ?>: solid 1px #444444;
  2685. border-bottom: solid 1px #555555;
  2686. padding-top: 0px;
  2687. padding-left: 0px;
  2688. padding-right: 0px;
  2689. padding-bottom: 0px;
  2690. margin: 0px 0px;
  2691. background: #D5BAA8;
  2692. }
  2693. .validtitre {
  2694. background: #D5BAA8;
  2695. font-weight: bold;
  2696. }
  2697. /* ============================================================================== */
  2698. /* Tooltips */
  2699. /* ============================================================================== */
  2700. #tooltip {
  2701. position: absolute;
  2702. width: <?php print dol_size(450,'width'); ?>px;
  2703. border-top: solid 1px #BBBBBB;
  2704. border-<?php print $left; ?>: solid 1px #BBBBBB;
  2705. border-<?php print $right; ?>: solid 1px #444444;
  2706. border-bottom: solid 1px #444444;
  2707. padding: 2px;
  2708. z-index: 3000;
  2709. background-color: #EFCFAA;
  2710. opacity: 1;
  2711. -moz-border-radius:0px;
  2712. -webkit-border-radius: 0px;
  2713. border-radius: 0px;
  2714. }
  2715. #tiptip_content {
  2716. -moz-border-radius:0px;
  2717. -webkit-border-radius: 0px;
  2718. border-radius: 0px;
  2719. background-color: rgb(255,255,255);
  2720. /* background-color: rgb(252,248,246);
  2721. background-color: rgba(252,248,246,0.95);*/
  2722. line-height: 1.4em;
  2723. min-width: 200px;
  2724. }
  2725. /* ============================================================================== */
  2726. /* Calendar */
  2727. /* ============================================================================== */
  2728. img.datecallink { padding-left: 2px !important; padding-right: 2px !important; }
  2729. .ui-datepicker-trigger {
  2730. vertical-align: middle;
  2731. cursor: pointer;
  2732. }
  2733. .bodyline {
  2734. -moz-border-radius: 4px;
  2735. -webkit-border-radius: 4px;
  2736. border-radius: 4px;
  2737. border: 1px #E4ECEC outset;
  2738. padding: 0px;
  2739. margin-bottom: 5px;
  2740. }
  2741. table.dp {
  2742. width: 180px;
  2743. background-color: #FFFFFF;
  2744. /*border-top: solid 2px #f4f4f4;
  2745. border-<?php print $left; ?>: solid 2px #f4f4f4;
  2746. border-<?php print $right; ?>: solid 1px #222222;
  2747. border-bottom: solid 1px #222222; */
  2748. padding: 0px;
  2749. border-spacing: 0px;
  2750. border-collapse: collapse;
  2751. }
  2752. .dp td, .tpHour td, .tpMinute td{padding:2px; font-size:10px;}
  2753. /* Barre titre */
  2754. .dpHead,.tpHead,.tpHour td:Hover .tpHead{
  2755. font-weight:bold;
  2756. background-color: #888;
  2757. color:white;
  2758. font-size:11px;
  2759. cursor:auto;
  2760. }
  2761. /* Barre navigation */
  2762. .dpButtons,.tpButtons {
  2763. text-align:center;
  2764. background-color: #888;
  2765. color:#FFFFFF;
  2766. font-weight:bold;
  2767. cursor:pointer;
  2768. }
  2769. .dpButtons:Active,.tpButtons:Active{border: 1px outset black;}
  2770. .dpDayNames td,.dpExplanation {background-color:#D9DBE1; font-weight:bold; text-align:center; font-size:11px;}
  2771. .dpExplanation{ font-weight:normal; font-size:11px;}
  2772. .dpWeek td{text-align:center}
  2773. .dpToday,.dpReg,.dpSelected{
  2774. cursor:pointer;
  2775. }
  2776. .dpToday{font-weight:bold; color:black; background-color:#f4f4f4;}
  2777. .dpReg:Hover,.dpToday:Hover{background-color:black;color:white}
  2778. /* Jour courant */
  2779. .dpSelected{background-color:#0B63A2;color:white;font-weight:bold; }
  2780. .tpHour{border-top:1px solid #f4f4f4; border-right:1px solid #f4f4f4;}
  2781. .tpHour td {border-left:1px solid #f4f4f4; border-bottom:1px solid #f4f4f4; cursor:pointer;}
  2782. .tpHour td:Hover {background-color:black;color:white;}
  2783. .tpMinute {margin-top:5px;}
  2784. .tpMinute td:Hover {background-color:black; color:white; }
  2785. .tpMinute td {background-color:#D9DBE1; text-align:center; cursor:pointer;}
  2786. /* Bouton X fermer */
  2787. .dpInvisibleButtons
  2788. {
  2789. border-style:none;
  2790. background-color:transparent;
  2791. padding:0px;
  2792. font-size:9px;
  2793. border-width:0px;
  2794. color: #eee;
  2795. vertical-align:middle;
  2796. cursor: pointer;
  2797. }
  2798. .datenowlink
  2799. {
  2800. color: rgb(<?php print $colortextlink; ?>);
  2801. }
  2802. .categtextwhite, .treeview .categtextwhite.hover {
  2803. color: #fff !important;
  2804. }
  2805. .categtextblack {
  2806. color: #000 !important;
  2807. }
  2808. /* ============================================================================== */
  2809. /* Afficher/cacher */
  2810. /* ============================================================================== */
  2811. div.visible {
  2812. display: block;
  2813. }
  2814. div.hidden {
  2815. display: none;
  2816. }
  2817. tr.visible {
  2818. display: block;
  2819. }
  2820. td.hidden {
  2821. display: none;
  2822. }
  2823. /* ============================================================================== */
  2824. /* Module website */
  2825. /* ============================================================================== */
  2826. .websitebar {
  2827. border-bottom: 1px solid #888;
  2828. background: #eee;
  2829. }
  2830. .websitebar .button, .websitebar .buttonDelete
  2831. {
  2832. padding: 2px 4px 2px 4px !important;
  2833. margin: 2px 4px 2px 4px !important;
  2834. line-height: normal;
  2835. }
  2836. .websiteselection {
  2837. display: inline-block;
  2838. padding-left: 10px;
  2839. vertical-align: middle;
  2840. line-height: 29px;
  2841. }
  2842. .websitetools {
  2843. float: right;
  2844. padding-top: 2px;
  2845. }
  2846. .websiteiframenoborder {
  2847. border: 0px;
  2848. }
  2849. /* ============================================================================== */
  2850. /* Module agenda */
  2851. /* ============================================================================== */
  2852. table.cal_month { border-spacing: 0px; }
  2853. table.cal_month td:first-child { border-left: 0px; }
  2854. table.cal_month td:last-child { border-right: 0px; }
  2855. .cal_current_month { border-top: 0; border-left: solid 1px #E0E0E0; border-right: 0; border-bottom: solid 1px #E0E0E0; }
  2856. .cal_current_month_peruserleft { border-top: 0; border-left: solid 2px #6C7C7B; border-right: 0; border-bottom: solid 1px #E0E0E0; }
  2857. .cal_current_month_oneday { border-right: solid 1px #E0E0E0; }
  2858. .cal_other_month { border-top: 0; border-left: solid 1px #C0C0C0; border-right: 0; border-bottom: solid 1px #C0C0C0; }
  2859. .cal_other_month_peruserleft { border-top: 0; border-left: solid 2px #6C7C7B !important; border-right: 0; }
  2860. .cal_current_month_right { border-right: solid 1px #E0E0E0; }
  2861. .cal_other_month_right { border-right: solid 1px #C0C0C0; }
  2862. .cal_other_month { opacity: 0.6; background: #EAEAEA; padding-<?php print $left; ?>: 2px; padding-<?php print $right; ?>: 1px; padding-top: 0px; padding-bottom: 0px; }
  2863. .cal_past_month { opacity: 0.6; background: #EEEEEE; padding-<?php print $left; ?>: 2px; padding-<?php print $right; ?>: 1px; padding-top: 0px; padding-bottom: 0px; }
  2864. .cal_current_month { background: #FFFFFF; border-left: solid 1px #E0E0E0; padding-<?php print $left; ?>: 2px; padding-<?php print $right; ?>: 1px; padding-top: 0px; padding-bottom: 0px; }
  2865. .cal_current_month_peruserleft { background: #FFFFFF; border-left: solid 2px #6C7C7B; padding-<?php print $left; ?>: 2px; padding-<?php print $right; ?>: 1px; padding-top: 0px; padding-bottom: 0px; }
  2866. .cal_today { background: #FDFDF0; border-left: solid 1px #E0E0E0; border-bottom: solid 1px #E0E0E0; padding-<?php print $left; ?>: 2px; padding-<?php print $right; ?>: 1px; padding-top: 0px; padding-bottom: 0px; }
  2867. .cal_today_peruser { background: #FDFDF0; border-right: solid 1px #E0E0E0; border-bottom: solid 1px #E0E0E0; padding-<?php print $left; ?>: 2px; padding-<?php print $right; ?>: 1px; padding-top: 0px; padding-bottom: 0px; }
  2868. .cal_today_peruser_peruserleft { background: #FDFDF0; border-left: solid 2px #6C7C7B; border-right: solid 1px #E0E0E0; border-bottom: solid 1px #E0E0E0; padding-<?php print $left; ?>: 2px; padding-<?php print $right; ?>: 1px; padding-top: 0px; padding-bottom: 0px; }
  2869. .cal_past { }
  2870. .cal_peruser { padding: 0px; }
  2871. .cal_impair { background: #F8F8F8; }
  2872. .cal_today_peruser_impair { background: #F8F8F0; }
  2873. .peruser_busy { background: #CC8888; }
  2874. .peruser_notbusy { background: #EEDDDD; opacity: 0.5; }
  2875. table.cal_event { border: none; border-collapse: collapse; margin-bottom: 1px; -webkit-border-radius: 3px; border-radius: 3px;
  2876. -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 2px rgba(0, 0, 0, 0.25);
  2877. moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 2px rgba(0, 0, 0, 0.25);
  2878. box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 2px rgba(0, 0, 0, 0.25);
  2879. background: -webkit-gradient(linear, left top, left bottom, from(#006aac), to(#00438d));
  2880. min-height: 20px;
  2881. }
  2882. table.cal_event td { border: none; padding-<?php print $left; ?>: 2px; padding-<?php print $right; ?>: 2px; padding-top: 0px; padding-bottom: 0px; }
  2883. table.cal_event td.cal_event { padding: 4px 4px !important; }
  2884. table.cal_event td.cal_event_right { padding: 4px 4px !important; }
  2885. ul.cal_event { padding-right: 2px; padding-top: 1px; border: none; list-style-type: none; margin: 0 auto; padding-left: 0px; padding-start: 0px; -khtml-padding-start: 0px; -o-padding-start: 0px; -moz-padding-start: 0px; -webkit-padding-start: 0px; }
  2886. li.cal_event { border: none; list-style-type: none; }
  2887. .cal_event a:link { color: #111111; font-size: 11px; font-weight: normal !important; }
  2888. .cal_event a:visited { color: #111111; font-size: 11px; font-weight: normal !important; }
  2889. .cal_event a:active { color: #111111; font-size: 11px; font-weight: normal !important; }
  2890. .cal_event a:hover { color: #111111; font-size: 11px; font-weight: normal !important; color:rgba(255,255,255,.75); }
  2891. .cal_event_busy { }
  2892. .cal_peruserviewname { max-width: 100px; height: 22px; }
  2893. .topmenuimage {
  2894. background-size: 28px auto;
  2895. }
  2896. /* ============================================================================== */
  2897. /* Ajax - Liste deroulante de l'autocompletion */
  2898. /* ============================================================================== */
  2899. .ui-widget-content { border: solid 1px rgba(0,0,0,.3); background: #fff !important; }
  2900. .ui-autocomplete-loading { background: white url(<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/working.gif',1) ?>) right center no-repeat; }
  2901. .ui-autocomplete {
  2902. position:absolute;
  2903. width:auto;
  2904. font-size: 1.0em;
  2905. background-color:white;
  2906. border:1px solid #888;
  2907. margin:0px;
  2908. /* padding:0px; This make combo crazy */
  2909. }
  2910. .ui-autocomplete ul {
  2911. list-style-type:none;
  2912. margin:0px;
  2913. padding:0px;
  2914. }
  2915. .ui-autocomplete ul li.selected { background-color: #D3E5EC;}
  2916. .ui-autocomplete ul li {
  2917. list-style-type:none;
  2918. display:block;
  2919. margin:0;
  2920. padding:2px;
  2921. height:18px;
  2922. cursor:pointer;
  2923. }
  2924. /* ============================================================================== */
  2925. /* jQuery - jeditable */
  2926. /* ============================================================================== */
  2927. .editkey_textarea, .editkey_ckeditor, .editkey_string, .editkey_email, .editkey_numeric, .editkey_select, .editkey_autocomplete {
  2928. background: url(<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/edit.png',1) ?>) right top no-repeat;
  2929. cursor: pointer;
  2930. }
  2931. .editkey_datepicker {
  2932. background: url(<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/calendar.png',1) ?>) right center no-repeat;
  2933. cursor: pointer;
  2934. }
  2935. .editval_textarea.active:hover, .editval_ckeditor.active:hover, .editval_string.active:hover, .editval_email.active:hover, .editval_numeric.active:hover, .editval_select.active:hover, .editval_autocomplete.active:hover, .editval_datepicker.active:hover {
  2936. background: white;
  2937. cursor: pointer;
  2938. }
  2939. .viewval_textarea.active:hover, .viewval_ckeditor.active:hover, .viewval_string.active:hover, .viewval_email.active:hover, .viewval_numeric.active:hover, .viewval_select.active:hover, .viewval_autocomplete.active:hover, .viewval_datepicker.active:hover {
  2940. background: white;
  2941. cursor: pointer;
  2942. }
  2943. .viewval_hover {
  2944. background: white;
  2945. }
  2946. /* ============================================================================== */
  2947. /* Admin Menu */
  2948. /* ============================================================================== */
  2949. /* CSS for treeview */
  2950. .treeview ul { background-color: transparent !important; margin-top: 0; }
  2951. .treeview li { background-color: transparent !important; padding: 0 0 0 16px !important; min-height: 20px; }
  2952. .treeview .hover { color: rgb(<?php print $colortextlink; ?>) !important; text-decoration: underline !important; }
  2953. /* ============================================================================== */
  2954. /* Show Excel tabs */
  2955. /* ============================================================================== */
  2956. .table_data
  2957. {
  2958. border-style:ridge;
  2959. border:1px solid;
  2960. }
  2961. .tab_base
  2962. {
  2963. background:#C5D0DD;
  2964. font-weight:bold;
  2965. border-style:ridge;
  2966. border: 1px solid;
  2967. cursor:pointer;
  2968. }
  2969. .table_sub_heading
  2970. {
  2971. background:#CCCCCC;
  2972. font-weight:bold;
  2973. border-style:ridge;
  2974. border: 1px solid;
  2975. }
  2976. .table_body
  2977. {
  2978. background:#F0F0F0;
  2979. font-weight:normal;
  2980. font-family:sans-serif;
  2981. border-style:ridge;
  2982. border: 1px solid;
  2983. border-spacing: 0px;
  2984. border-collapse: collapse;
  2985. }
  2986. .tab_loaded
  2987. {
  2988. background:#222222;
  2989. color:white;
  2990. font-weight:bold;
  2991. border-style:groove;
  2992. border: 1px solid;
  2993. cursor:pointer;
  2994. }
  2995. /* ============================================================================== */
  2996. /* CSS for color picker */
  2997. /* ============================================================================== */
  2998. A.color, A.color:active, A.color:visited {
  2999. position : relative;
  3000. display : block;
  3001. text-decoration : none;
  3002. width : 10px;
  3003. height : 10px;
  3004. line-height : 10px;
  3005. margin : 0px;
  3006. padding : 0px;
  3007. border : 1px inset white;
  3008. }
  3009. A.color:hover {
  3010. border : 1px outset white;
  3011. }
  3012. A.none, A.none:active, A.none:visited, A.none:hover {
  3013. position : relative;
  3014. display : block;
  3015. text-decoration : none;
  3016. width : 10px;
  3017. height : 10px;
  3018. line-height : 10px;
  3019. margin : 0px;
  3020. padding : 0px;
  3021. cursor : default;
  3022. border : 1px solid #b3c5cc;
  3023. }
  3024. .tblColor {
  3025. display : none;
  3026. }
  3027. .tdColor {
  3028. padding : 1px;
  3029. }
  3030. .tblContainer {
  3031. background-color : #b3c5cc;
  3032. }
  3033. .tblGlobal {
  3034. position : absolute;
  3035. top : 0px;
  3036. left : 0px;
  3037. display : none;
  3038. background-color : #b3c5cc;
  3039. border : 2px outset;
  3040. }
  3041. .tdContainer {
  3042. padding : 5px;
  3043. }
  3044. .tdDisplay {
  3045. width : 50%;
  3046. height : 20px;
  3047. line-height : 20px;
  3048. border : 1px outset white;
  3049. }
  3050. .tdDisplayTxt {
  3051. width : 50%;
  3052. height : 24px;
  3053. line-height : 12px;
  3054. font-family : <?php print $fontlist ?>;
  3055. font-size : 8pt;
  3056. color : black;
  3057. text-align : center;
  3058. }
  3059. .btnColor {
  3060. width : 100%;
  3061. font-family : <?php print $fontlist ?>;
  3062. font-size : 10pt;
  3063. padding : 0px;
  3064. margin : 0px;
  3065. }
  3066. .btnPalette {
  3067. width : 100%;
  3068. font-family : <?php print $fontlist ?>;
  3069. font-size : 8pt;
  3070. padding : 0px;
  3071. margin : 0px;
  3072. }
  3073. /* Style to overwrites JQuery styles */
  3074. .ui-menu .ui-menu-item a {
  3075. text-decoration:none;
  3076. display:block;
  3077. padding:.2em .4em;
  3078. line-height:1.5;
  3079. zoom:1;
  3080. font-weight: normal;
  3081. font-family:<?php echo $fontlist; ?>;
  3082. font-size:1em;
  3083. }
  3084. .ui-widget {
  3085. font-family:<?php echo $fontlist; ?>;
  3086. font-size:<?php echo $fontsize; ?>px;
  3087. }
  3088. .ui-button { margin-left: -2px; <?php print (preg_match('/chrome/',$conf->browser->name)?'padding-top: 1px;':''); ?> }
  3089. .ui-button-icon-only .ui-button-text { height: 8px; }
  3090. .ui-button-icon-only .ui-button-text, .ui-button-icons-only .ui-button-text { padding: 2px 0px 6px 0px; }
  3091. .ui-button-text
  3092. {
  3093. line-height: 1em !important;
  3094. }
  3095. .ui-autocomplete-input { margin: 0; padding: 4px; }
  3096. /* ============================================================================== */
  3097. /* CKEditor */
  3098. /* ============================================================================== */
  3099. .cke_editable
  3100. {
  3101. margin: 5px !important;
  3102. }
  3103. .cke_editor table, .cke_editor tr, .cke_editor td
  3104. {
  3105. border: 0px solid #FF0000 !important;
  3106. }
  3107. span.cke_skin_kama { padding: 0 !important; }
  3108. .cke_wrapper { padding: 4px !important; }
  3109. a.cke_dialog_ui_button
  3110. {
  3111. font-family: <?php print $fontlist ?> !important;
  3112. background-image: url(<?php echo $img_button ?>) !important;
  3113. background-position: bottom !important;
  3114. border: 1px solid #C0C0C0 !important;
  3115. -moz-border-radius:0px 2px 0px 2px !important;
  3116. -webkit-border-radius:0px 2px 0px 2px !important;
  3117. border-radius:0px 2px 0px 2px !important;
  3118. -moz-box-shadow: 3px 3px 4px #f4f4f4 !important;
  3119. -webkit-box-shadow: 3px 3px 4px #f4f4f4 !important;
  3120. box-shadow: 3px 3px 4px #f4f4f4 !important;
  3121. }
  3122. .cke_dialog_ui_hbox_last
  3123. {
  3124. vertical-align: bottom ! important;
  3125. }
  3126. .cke_editable
  3127. {
  3128. line-height: 1.4 !important;
  3129. margin: 6px !important;
  3130. }
  3131. a.cke_dialog_ui_button_ok span {
  3132. text-shadow: none !important;
  3133. color: #333 !important;
  3134. }
  3135. /* ============================================================================== */
  3136. /* File upload */
  3137. /* ============================================================================== */
  3138. .template-upload {
  3139. height: 72px !important;
  3140. }
  3141. /* ============================================================================== */
  3142. /* Holiday */
  3143. /* ============================================================================== */
  3144. #types .btn {
  3145. cursor: pointer;
  3146. }
  3147. #types .btn-primary {
  3148. font-weight: bold;
  3149. }
  3150. #types form {
  3151. padding: 20px;
  3152. }
  3153. #types label {
  3154. display:inline-block;
  3155. width:100px;
  3156. margin-right: 20px;
  3157. padding: 4px;
  3158. text-align: right;
  3159. vertical-align: top;
  3160. }
  3161. #types input.text, #types textarea {
  3162. width: 400px;
  3163. }
  3164. #types textarea {
  3165. height: 100px;
  3166. }
  3167. /* ============================================================================== */
  3168. /* JSGantt */
  3169. /* ============================================================================== */
  3170. div.scroll2 {
  3171. width: <?php print isset($_SESSION['dol_screenwidth'])?max($_SESSION['dol_screenwidth']-830,450):'450'; ?>px !important;
  3172. }
  3173. /* ============================================================================== */
  3174. /* jFileTree */
  3175. /* ============================================================================== */
  3176. .ecmfiletree {
  3177. width: 99%;
  3178. height: 99%;
  3179. background: #FFF;
  3180. padding-left: 2px;
  3181. font-weight: normal;
  3182. }
  3183. .fileview {
  3184. width: 99%;
  3185. height: 99%;
  3186. background: #FFF;
  3187. padding-left: 2px;
  3188. padding-top: 4px;
  3189. font-weight: normal;
  3190. }
  3191. div.filedirelem {
  3192. position: relative;
  3193. display: block;
  3194. text-decoration: none;
  3195. }
  3196. ul.filedirelem {
  3197. padding: 2px;
  3198. margin: 0 5px 5px 5px;
  3199. }
  3200. ul.filedirelem li {
  3201. list-style: none;
  3202. padding: 2px;
  3203. margin: 0 10px 20px 10px;
  3204. width: 160px;
  3205. height: 120px;
  3206. text-align: center;
  3207. display: block;
  3208. float: <?php print $left; ?>;
  3209. border: solid 1px #f4f4f4;
  3210. }
  3211. ui-layout-north {
  3212. }
  3213. ul.ecmjqft {
  3214. line-height: 16px;
  3215. padding: 0px;
  3216. margin: 0px;
  3217. font-weight: normal;
  3218. }
  3219. ul.ecmjqft li {
  3220. list-style: none;
  3221. padding: 0px;
  3222. padding-left: 20px;
  3223. margin: 0px;
  3224. white-space: nowrap;
  3225. display: block;
  3226. }
  3227. ul.ecmjqft a {
  3228. line-height: 16px;
  3229. vertical-align: middle;
  3230. color: #333;
  3231. padding: 0px 0px;
  3232. font-weight:normal;
  3233. display: inline-block !important;
  3234. /* float: left;*/
  3235. }
  3236. ul.ecmjqft a:active {
  3237. font-weight: bold !important;
  3238. }
  3239. ul.ecmjqft a:hover {
  3240. text-decoration: underline;
  3241. }
  3242. div.ecmjqft {
  3243. vertical-align: middle;
  3244. display: inline-block !important;
  3245. text-align: right;
  3246. position:absolute;
  3247. right:4px;
  3248. }
  3249. /* Core Styles */
  3250. .ecmjqft LI.directory { font-weight:normal; background: url(<?php echo dol_buildpath($path.'/theme/common/treemenu/folder2.png',1); ?>) left top no-repeat; }
  3251. .ecmjqft LI.expanded { font-weight:normal; background: url(<?php echo dol_buildpath($path.'/theme/common/treemenu/folder2-expanded.png',1); ?>) left top no-repeat; }
  3252. .ecmjqft LI.wait { font-weight:normal; background: url(<?php echo dol_buildpath('/theme/'.$theme.'/img/working.gif',1); ?>) left top no-repeat; }
  3253. /* ============================================================================== */
  3254. /* jNotify */
  3255. /* ============================================================================== */
  3256. .jnotify-container {
  3257. position: fixed !important;
  3258. <?php if (! empty($conf->global->MAIN_JQUERY_JNOTIFY_BOTTOM)) { ?>
  3259. top: auto !important;
  3260. bottom: 4px !important;
  3261. <?php } ?>
  3262. text-align: center;
  3263. min-width: <?php echo $dol_optimize_smallscreen?'200':'480'; ?>px;
  3264. width: auto;
  3265. padding-left: 10px !important;
  3266. padding-right: 10px !important;
  3267. }
  3268. /* use or not ? */
  3269. div.jnotify-background {
  3270. opacity : 0.95 !important;
  3271. -moz-box-shadow: 3px 3px 4px #888 !important;
  3272. -webkit-box-shadow: 3px 3px 4px #888 !important;
  3273. box-shadow: 3px 3px 4px #888 !important;
  3274. }
  3275. /* ============================================================================== */
  3276. /* blockUI */
  3277. /* ============================================================================== */
  3278. /*div.growlUI { background: url(check48.png) no-repeat 10px 10px }*/
  3279. div.dolEventValid h1, div.dolEventValid h2 {
  3280. color: #567b1b;
  3281. background-color: #e3f0db;
  3282. padding: 5px 5px 5px 5px;
  3283. text-align: left;
  3284. }
  3285. div.dolEventError h1, div.dolEventError h2 {
  3286. color: #a72947;
  3287. background-color: #d79eac;
  3288. padding: 5px 5px 5px 5px;
  3289. text-align: left;
  3290. }
  3291. /* ============================================================================== */
  3292. /* Maps */
  3293. /* ============================================================================== */
  3294. .divmap, #google-visualization-geomap-embed-0, #google-visualization-geomap-embed-1, google-visualization-geomap-embed-2 {
  3295. /* -moz-box-shadow: 0px 0px 10px #AAA;
  3296. -webkit-box-shadow: 0px 0px 10px #AAA;
  3297. box-shadow: 0px 0px 10px #AAA; */
  3298. }
  3299. /* ============================================================================== */
  3300. /* Datatable */
  3301. /* ============================================================================== */
  3302. table.dataTable tr.odd td.sorting_1, table.dataTable tr.even td.sorting_1 {
  3303. background: none !important;
  3304. }
  3305. .sorting_asc { background: url('<?php echo dol_buildpath('/theme/'.$theme.'/img/sort_asc.png',1); ?>') no-repeat center right !important; }
  3306. .sorting_desc { background: url('<?php echo dol_buildpath('/theme/'.$theme.'/img/sort_desc.png',1); ?>') no-repeat center right !important; }
  3307. .sorting_asc_disabled { background: url('<?php echo dol_buildpath('/theme/'.$theme.'/img/sort_asc_disabled.png',1); ?>') no-repeat center right !important; }
  3308. .sorting_desc_disabled { background: url('<?php echo dol_buildpath('/theme/'.$theme.'/img/sort_desc_disabled.png',1); ?>') no-repeat center right !important; }
  3309. .dataTables_paginate {
  3310. margin-top: 8px;
  3311. }
  3312. .paginate_button_disabled {
  3313. opacity: 1 !important;
  3314. color: #888 !important;
  3315. cursor: default !important;
  3316. }
  3317. .paginate_disabled_previous:hover, .paginate_enabled_previous:hover, .paginate_disabled_next:hover, .paginate_enabled_next:hover
  3318. {
  3319. font-weight: normal;
  3320. }
  3321. .paginate_enabled_previous:hover, .paginate_enabled_next:hover
  3322. {
  3323. text-decoration: underline !important;
  3324. }
  3325. .paginate_active
  3326. {
  3327. text-decoration: underline !important;
  3328. }
  3329. .paginate_button
  3330. {
  3331. font-weight: normal !important;
  3332. text-decoration: none !important;
  3333. }
  3334. .paging_full_numbers {
  3335. height: inherit !important;
  3336. }
  3337. .paging_full_numbers a.paginate_active:hover, .paging_full_numbers a.paginate_button:hover {
  3338. background-color: #DDD !important;
  3339. }
  3340. .paging_full_numbers, .paging_full_numbers a.paginate_active, .paging_full_numbers a.paginate_button {
  3341. background-color: #FFF !important;
  3342. border-radius: inherit !important;
  3343. }
  3344. .paging_full_numbers a.paginate_button_disabled:hover, .paging_full_numbers a.disabled:hover {
  3345. background-color: #FFF !important;
  3346. }
  3347. .paginate_button, .paginate_active {
  3348. border: 1px solid #ddd !important;
  3349. padding: 6px 12px !important;
  3350. margin-left: -1px !important;
  3351. line-height: 1.42857143 !important;
  3352. margin: 0 0 !important;
  3353. }
  3354. /* For jquery plugin combobox */
  3355. /* Disable this. It breaks wrapping of boxes
  3356. .ui-corner-all { white-space: nowrap; } */
  3357. .ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled, .paginate_button_disabled {
  3358. opacity: .35;
  3359. filter: Alpha(Opacity=35);
  3360. background-image: none;
  3361. }
  3362. div.dataTables_length {
  3363. float: right !important;
  3364. padding-left: 8px;
  3365. }
  3366. div.dataTables_length select {
  3367. background: #fff;
  3368. }
  3369. .dataTables_wrapper .dataTables_paginate {
  3370. padding-top: 0px !important;
  3371. }
  3372. /* ============================================================================== */
  3373. /* Select2 */
  3374. /* ============================================================================== */
  3375. .select2-container .select2-choice {
  3376. color: #000;
  3377. }
  3378. .selectoptiondisabledwhite {
  3379. background: #FFFFFF !important;
  3380. }
  3381. .select2-choice,
  3382. .select2-drop.select2-drop-above.select2-drop-active,
  3383. .select2-container-active .select2-choice,
  3384. .select2-container-active .select2-choices,
  3385. .select2-dropdown-open.select2-drop-above .select2-choice,
  3386. .select2-dropdown-open.select2-drop-above .select2-choices,
  3387. .select2-container-multi.select2-container-active .select2-choices
  3388. {
  3389. border: 1px solid #aaa;
  3390. }
  3391. .select2-disabled
  3392. {
  3393. color: #888;
  3394. }
  3395. .select2-drop-active
  3396. {
  3397. border: 1px solid #aaa;
  3398. border-top: none;
  3399. }
  3400. a span.select2-chosen
  3401. {
  3402. font-weight: normal !important;
  3403. }
  3404. .select2-container .select2-choice {
  3405. background-image: none;
  3406. height: 24px;
  3407. line-height: 24px;
  3408. }
  3409. .select2-choices .select2-search-choice {
  3410. border: 1px solid #aaa !important;
  3411. }
  3412. .select2-results .select2-no-results, .select2-results .select2-searching, .select2-results .select2-ajax-error, .select2-results .select2-selection-limit
  3413. {
  3414. background: #FFFFFF;
  3415. }
  3416. .select2-results {
  3417. max-height: 400px;
  3418. }
  3419. .css-searchselectcombo ul.select2-results {
  3420. max-height: none;
  3421. }
  3422. .select2-container-multi.select2-container-disabled .select2-choices {
  3423. background-color: #FFFFFF;
  3424. background-image: none;
  3425. border: none;
  3426. cursor: default;
  3427. }
  3428. .select2-container-multi .select2-choices .select2-search-choice {
  3429. margin-bottom: 3px;
  3430. }
  3431. /* To emulate select 2 style */
  3432. .select2-container-multi-dolibarr .select2-choices-dolibarr .select2-search-choice-dolibarr {
  3433. padding: 2px 5px 1px 5px;
  3434. margin: 0 0 2px 3px;
  3435. position: relative;
  3436. line-height: 13px;
  3437. color: #333;
  3438. cursor: default;
  3439. border: 1px solid #ddd;
  3440. border-radius: 3px;
  3441. -webkit-box-shadow: 0 0 2px #fff inset, 0 1px 0 rgba(0, 0, 0, 0.05);
  3442. box-shadow: 0 0 2px #fff inset, 0 1px 0 rgba(0, 0, 0, 0.05);
  3443. background-clip: padding-box;
  3444. -webkit-touch-callout: none;
  3445. -webkit-user-select: none;
  3446. -moz-user-select: none;
  3447. -ms-user-select: none;
  3448. user-select: none;
  3449. background-color: #e4e4e4;
  3450. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#f4f4f4', GradientType=0);
  3451. background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(20%, #f4f4f4), color-stop(50%, #f0f0f0), color-stop(52%, #e8e8e8), color-stop(100%, #eee));
  3452. background-image: -webkit-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%);
  3453. background-image: -moz-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%);
  3454. background-image: linear-gradient(to bottom, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%);
  3455. }
  3456. .select2-container-multi-dolibarr .select2-choices-dolibarr .select2-search-choice-dolibarr a {
  3457. font-weight: normal;
  3458. }
  3459. .select2-container-multi-dolibarr .select2-choices-dolibarr li {
  3460. float: left;
  3461. list-style: none;
  3462. }
  3463. .select2-container-multi-dolibarr .select2-choices-dolibarr {
  3464. height: auto !important;
  3465. height: 1%;
  3466. margin: 0;
  3467. padding: 0 5px 0 0;
  3468. position: relative;
  3469. cursor: text;
  3470. overflow: hidden;
  3471. }
  3472. /* ============================================================================== */
  3473. /* For categories */
  3474. /* ============================================================================== */
  3475. .noborderoncategories {
  3476. border: none !important;
  3477. border-radius: 5px !important;
  3478. box-shadow: none;
  3479. -webkit-box-shadow: none !important;
  3480. box-shadow: none !important;
  3481. }
  3482. span.noborderoncategories a, li.noborderoncategories a {
  3483. line-height: normal;
  3484. }
  3485. span.noborderoncategories {
  3486. padding: 3px 5px 0px 5px;
  3487. }
  3488. .categtextwhite, .treeview .categtextwhite.hover {
  3489. color: #fff !important;
  3490. }
  3491. .categtextblack {
  3492. color: #000 !important;
  3493. }
  3494. /* ============================================================================== */
  3495. /* Multiselect with checkbox */
  3496. /* ============================================================================== */
  3497. ul.ulselectedfields {
  3498. z-index: 100; /* To have the select box appears on first plan even when near buttons are decorated by jmobile */
  3499. }
  3500. dl.dropdown {
  3501. margin:0px;
  3502. padding:0px;
  3503. }
  3504. .dropdown dd, .dropdown dt {
  3505. margin:0px;
  3506. padding:0px;
  3507. }
  3508. .dropdown ul {
  3509. margin: -1px 0 0 0;
  3510. text-align: left;
  3511. }
  3512. .dropdown dd {
  3513. position:relative;
  3514. }
  3515. .dropdown dt a {
  3516. display:block;
  3517. overflow: hidden;
  3518. border:0;
  3519. }
  3520. .dropdown dt a span, .multiSel span {
  3521. cursor:pointer;
  3522. display:inline-block;
  3523. padding: 0 3px 2px 0;
  3524. }
  3525. .dropdown dd ul {
  3526. background-color: #FFF;
  3527. border: 1px solid #888;
  3528. display:none;
  3529. right:0px; /* pop is align on right */
  3530. padding: 2px 15px 2px 5px;
  3531. position:absolute;
  3532. top:2px;
  3533. list-style:none;
  3534. max-height: 300px;
  3535. overflow: auto;
  3536. }
  3537. .dropdown span.value {
  3538. display:none;
  3539. }
  3540. .dropdown dd ul li {
  3541. white-space: nowrap;
  3542. font-weight: normal;
  3543. }
  3544. .dropdown dd ul li input[type="checkbox"] {
  3545. margin-right: 3px;
  3546. }
  3547. .dropdown dd ul li a {
  3548. padding:5px;
  3549. display:block;
  3550. }
  3551. .dropdown dd ul li a:hover {
  3552. background-color:#fff;
  3553. }
  3554. /* ============================================================================== */
  3555. /* JMobile */
  3556. /* ============================================================================== */
  3557. li.ui-li-divider .ui-link {
  3558. color: #FFF !important;
  3559. }
  3560. .ui-btn {
  3561. margin: 0.1em 2px
  3562. }
  3563. a.ui-link, a.ui-link:hover, .ui-btn:hover, span.ui-btn-text:hover, span.ui-btn-inner:hover {
  3564. text-decoration: none !important;
  3565. }
  3566. .ui-btn-inner {
  3567. min-width: .4em;
  3568. padding-left: 6px;
  3569. padding-right: 6px;
  3570. <?php if (! empty($dol_use_jmobile)) { ?>
  3571. font-size: 13px;
  3572. <?php } else { ?>
  3573. font-size: <?php print $fontsize ?>px;
  3574. <?php } ?>
  3575. /* white-space: normal; */ /* Warning, enable this break the truncate feature */
  3576. }
  3577. .ui-btn-icon-right .ui-btn-inner {
  3578. padding-right: 30px;
  3579. }
  3580. .ui-btn-icon-left .ui-btn-inner {
  3581. padding-left: 30px;
  3582. }
  3583. .ui-select .ui-btn-icon-right .ui-btn-inner {
  3584. padding-right: 30px;
  3585. }
  3586. .ui-select .ui-btn-icon-left .ui-btn-inner {
  3587. padding-left: 30px;
  3588. }
  3589. .ui-select .ui-btn-icon-right .ui-icon {
  3590. right: 8px;
  3591. }
  3592. .ui-btn-icon-left > .ui-btn-inner > .ui-icon, .ui-btn-icon-right > .ui-btn-inner > .ui-icon {
  3593. margin-top: -10px;
  3594. }
  3595. select {
  3596. /* display: inline-block; */ /* We can't set this. This disable ability to make */
  3597. /* TODO modified by jmobile, replace jmobile with pure css*/
  3598. overflow:hidden;
  3599. white-space: nowrap;
  3600. text-overflow: ellipsis;
  3601. }
  3602. .fiche .ui-controlgroup {
  3603. margin: 0px;
  3604. padding-bottom: 0px;
  3605. }
  3606. div.ui-controlgroup-controls div.tabsElem
  3607. {
  3608. margin-top: 2px;
  3609. }
  3610. div.ui-controlgroup-controls div.tabsElem a
  3611. {
  3612. -moz-box-shadow: 0 -3px 6px rgba(0,0,0,.2);
  3613. -webkit-box-shadow: 0 -3px 6px rgba(0,0,0,.2);
  3614. box-shadow: 0 -3px 6px rgba(0,0,0,.2);
  3615. }
  3616. div.ui-controlgroup-controls div.tabsElem a#active {
  3617. -moz-box-shadow: 0 -3px 6px rgba(0,0,0,.3);
  3618. -webkit-box-shadow: 0 -3px 6px rgba(0,0,0,.3);
  3619. box-shadow: 0 -3px 6px rgba(0,0,0,.3);
  3620. }
  3621. a.tab span.ui-btn-inner
  3622. {
  3623. border: none;
  3624. padding: 0;
  3625. }
  3626. .ui-link {
  3627. color: rgb(<?php print $colortext; ?>);
  3628. }
  3629. .liste_titre .ui-link {
  3630. color: rgb(<?php echo $colortexttitle; ?>) !important;
  3631. }
  3632. a.ui-link {
  3633. word-wrap: break-word;
  3634. }
  3635. /* force wrap possible onto field overflow does not works */
  3636. .formdoc .ui-btn-inner
  3637. {
  3638. white-space: normal;
  3639. overflow: hidden;
  3640. text-overflow: hidden;
  3641. }
  3642. /* Warning: setting this may make screen not beeing refreshed after a combo selection */
  3643. /*.ui-body-c {
  3644. background: #fff;
  3645. }*/
  3646. div.ui-radio, div.ui-checkbox
  3647. {
  3648. display: inline-block;
  3649. border-bottom: 0px !important;
  3650. }
  3651. .ui-checkbox input, .ui-radio input {
  3652. height: auto;
  3653. width: auto;
  3654. margin: 4px;
  3655. position: static;
  3656. }
  3657. div.ui-checkbox label+input, div.ui-radio label+input {
  3658. position: absolute;
  3659. }
  3660. .ui-mobile fieldset
  3661. {
  3662. padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid #AAAAAA !important;
  3663. }
  3664. ul.ulmenu {
  3665. border-radius: 0;
  3666. -webkit-border-radius: 0;
  3667. }
  3668. .ui-field-contain label.ui-input-text {
  3669. vertical-align: middle !important;
  3670. }
  3671. .ui-mobile fieldset {
  3672. border-bottom: none !important;
  3673. }
  3674. /* Style for first level menu with jmobile */
  3675. .ui-bar-b, .lilevel0 {
  3676. border: 1px solid #888 !important;
  3677. background: rgb(<?php echo $colorbacktitle1; ?>);
  3678. background-repeat: repeat-x;
  3679. background-image: -o-linear-gradient(bottom, rgba(0,0,0,0.3) 0%, rgba(250,250,250,0.3) 100%);
  3680. background-image: -moz-linear-gradient(bottom, rgba(0,0,0,0.3) 0%, rgba(250,250,250,0.3) 100%);
  3681. background-image: -webkit-linear-gradient(bottom, rgba(0,0,0,0.3) 0%, rgba(250,250,250,0.3) 100%);
  3682. background-image: -ms-linear-gradient(bottom, rgba(0,0,0,0.3) 0%, rgba(250,250,250,0.3) 100%);
  3683. background-image: linear-gradient(bottom, rgba(0,0,0,0.3) 0%, rgba(250,250,250,0.3) 100%);
  3684. font-weight: bold;
  3685. color: rgb(<?php echo $colortexttitle; ?>) !important;
  3686. }
  3687. .alilevel0 {
  3688. color: rgb(<?php echo $colortexttitle; ?>) !important;
  3689. text-shadow: 1px 0px 1px #<?php echo $colorshadowtitle; ?>;
  3690. }
  3691. .ui-btn-icon-right {
  3692. border-right: 1px solid #ccc !important;
  3693. }
  3694. .ui-body-c {
  3695. border: 1px solid #ccc;
  3696. text-shadow: none;
  3697. }
  3698. .ui-btn-up-c, .ui-btn-hover-c {
  3699. border: 1px solid #ccc;
  3700. text-shadow: none;
  3701. }
  3702. .ui-body-c .ui-link, .ui-body-c .ui-link:visited, .ui-body-c .ui-link:hover {
  3703. color: rgb(<?php print $colortextlink; ?>);
  3704. }
  3705. .ui-btn-up-c .vsmenudisabled {
  3706. color: #<?php echo $colorshadowtitle; ?> !important;
  3707. text-shadow: none !important;
  3708. }
  3709. .ui-controlgroup-horizontal .ui-btn.ui-first-child {
  3710. -webkit-border-top-left-radius: 6px;
  3711. border-top-left-radius: 6px;
  3712. }
  3713. .ui-controlgroup-horizontal .ui-btn.ui-last-child {
  3714. -webkit-border-top-right-radius: 6px;
  3715. border-top-right-radius: 6px;
  3716. }
  3717. .alilevel1 {
  3718. color: rgb(<?php echo $colortexttitle; ?>) !important;
  3719. text-shadow: 1px 0px 1px #<?php echo $colorshadowtitle; ?>;
  3720. }
  3721. .lilevel1 {
  3722. background-image: -webkit-gradient(linear,left top,left bottom,from( #f4f4f4 ),to( #d1d1d1 )) !important;
  3723. background-image: -webkit-linear-gradient( #f4f4f4,#d1d1d1 ) !important;
  3724. background-image: -moz-linear-gradient( #f4f4f4,#d1d1d1 ) !important;
  3725. background-image: -ms-linear-gradient( #f4f4f4,#d1d1d1 ) !important;
  3726. background-image: -o-linear-gradient( #f4f4f4,#d1d1d1 ) !important;
  3727. background-image: linear-gradient( #f4f4f4,#d1d1d1 ) !important;
  3728. }
  3729. .lilevel2
  3730. {
  3731. padding-left: 22px;
  3732. }
  3733. .lilevel3
  3734. {
  3735. padding-left: 54px;
  3736. }
  3737. /* ============================================================================== */
  3738. /* POS */
  3739. /* ============================================================================== */
  3740. .menu_choix1 a {
  3741. background: url('<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/menus/money.png',1) ?>') top left no-repeat;
  3742. background-position-y: 15px;
  3743. }
  3744. .menu_choix2 a {
  3745. background: url('<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/menus/home.png',1) ?>') top left no-repeat;
  3746. background-position-y: 15px;
  3747. }
  3748. .menu_choix1,.menu_choix2 {
  3749. font-size: 1.4em;
  3750. text-align: left;
  3751. border: 1px solid #666;
  3752. margin-right: 20px;
  3753. }
  3754. .menu_choix1 a, .menu_choix2 a {
  3755. display: block;
  3756. color: #fff;
  3757. text-decoration: none;
  3758. padding-top: 18px;
  3759. padding-left: 54px;
  3760. font-size: 14px;
  3761. height: 40px;
  3762. }
  3763. .menu_choix1 a:hover,.menu_choix2 a:hover {
  3764. color: #6d3f6d;
  3765. }
  3766. /* ============================================================================== */
  3767. /* Demo */
  3768. /* ============================================================================== */
  3769. img.demothumb {
  3770. box-shadow: 2px 2px 8px #888;
  3771. margin-bottom: 4px;
  3772. }
  3773. /* ============================================================================== */
  3774. /* Public */
  3775. /* ============================================================================== */
  3776. /* The theme for public pages */
  3777. .public_body {
  3778. margin: 20px;
  3779. }
  3780. .public_border {
  3781. border: 1px solid #888;
  3782. }
  3783. ::-webkit-scrollbar {
  3784. width: 12px;
  3785. }
  3786. ::-webkit-scrollbar-button {
  3787. background: #aaa
  3788. }
  3789. ::-webkit-scrollbar-track-piece {
  3790. background: #fff
  3791. }
  3792. ::-webkit-scrollbar-thumb {
  3793. background: #ddd
  3794. }​
  3795. /***** CSS style used for small screen *****/
  3796. .imgopensurveywizard
  3797. {
  3798. padding: 0 4px 0 4px;
  3799. }
  3800. @media only screen and (max-width: 767px)
  3801. {
  3802. .imgopensurveywizard { width:95%; height: auto; }
  3803. #tooltip {
  3804. position: absolute;
  3805. width: <?php print dol_size(350,'width'); ?>px;
  3806. }
  3807. }
  3808. /* nboftopmenuentries = <?php echo $nbtopmenuentries ?>, fontsize=<?php echo $fontsize ?> */
  3809. /* disableimages = <?php echo $disableimages; ?> */
  3810. /* rule to reduce top menu - 1st reduction */
  3811. @media only screen and (max-width: <?php echo round($nbtopmenuentries * $fontsize * 7, 0) + 200; ?>px)
  3812. {
  3813. div.tmenucenter {
  3814. max-width: <?php echo round($fontsize * 4); ?>px; /* size of viewport */
  3815. white-space: nowrap;
  3816. overflow: hidden;
  3817. text-overflow: ellipsis;
  3818. color: #<?php echo $colortextbackhmenu; ?>;
  3819. }
  3820. .mainmenuaspan {
  3821. /*display: none;*/
  3822. font-size: 10px;
  3823. }
  3824. .topmenuimage {
  3825. background-size: 26px auto;
  3826. margin-top: 0px;
  3827. }
  3828. li.tmenu, li.tmenusel {
  3829. min-width: 32px;
  3830. }
  3831. div.mainmenu {
  3832. min-width: auto;
  3833. }
  3834. div.tmenuleft {
  3835. display: none;
  3836. }
  3837. }
  3838. /* rule to reduce top menu - 2nd reduction */
  3839. @media only screen and (max-width: <?php echo round($nbtopmenuentries * $fontsize * 4.5, 0) + 200; ?>px)
  3840. {
  3841. div.tmenucenter {
  3842. max-width: <?php echo round($fontsize * 2); ?>px; /* size of viewport */
  3843. text-overflow: clip;
  3844. }
  3845. .mainmenuaspan {
  3846. /*display: none;*/
  3847. font-size: 10px;
  3848. }
  3849. .topmenuimage {
  3850. background-size: 20px auto;
  3851. margin-top: 2px;
  3852. }
  3853. }
  3854. /* rule to reduce top menu - 3rd reduction */
  3855. @media only screen and (max-width: 570px)
  3856. {
  3857. div#tmenu_tooltip {
  3858. <?php if (GETPOST("optioncss") == 'print') { ?>
  3859. display:none;
  3860. <?php } else { ?>
  3861. /* padding-<?php echo $right; ?>: 78px; */
  3862. <?php } ?>
  3863. }
  3864. li.tmenu, li.tmenusel {
  3865. min-width: 30px;
  3866. }
  3867. div.tmenucenter {
  3868. text-overflow: clip;
  3869. }
  3870. .topmenuimage {
  3871. background-size: 20px auto;
  3872. margin-top: 2px !important;
  3873. }
  3874. div.mainmenu {
  3875. min-width: 20px;
  3876. }
  3877. #tooltip {
  3878. position: absolute;
  3879. width: <?php print dol_size(300,'width'); ?>px;
  3880. }
  3881. }
  3882. <?php
  3883. if (is_object($db)) $db->close();