style.css.php 138 KB

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