style.css.php 137 KB

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