pos.css.php 18 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085
  1. <?php
  2. /* Copyright (C) 2004-2017 Laurent Destailleur <eldy@users.sourceforge.net>
  3. * Copyright (C) 2006 Rodolphe Quiedeville <rodolphe@quiedeville.org>
  4. * Copyright (C) 2007-2017 Regis Houssin <regis.houssin@inodbox.com>
  5. * Copyright (C) 2011 Philippe Grand <philippe.grand@atoo-net.com>
  6. * Copyright (C) 2012 Juanjo Menent <jmenent@2byte.es>
  7. * Copyright (C) 2018 Ferran Marcet <fmarcet@2byte.es>
  8. *
  9. * This program is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License as published by
  11. * the Free Software Foundation; either version 3 of the License, or
  12. * (at your option) any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with this program. If not, see <https://www.gnu.org/licenses/>.
  21. */
  22. /**
  23. * \file htdocs/takepos/css/pos.css.php
  24. * \brief File for CSS style for TakePOS
  25. */
  26. //if (! defined('NOREQUIREUSER')) define('NOREQUIREUSER','1'); // Not disabled because need to load personalized language
  27. //if (! defined('NOREQUIREDB')) define('NOREQUIREDB','1'); // Not disabled to increase speed. Language code is found on url.
  28. if (!defined('NOREQUIRESOC')) {
  29. define('NOREQUIRESOC', '1');
  30. }
  31. //if (! defined('NOREQUIRETRAN')) define('NOREQUIRETRAN','1'); // Not disabled because need to do translations
  32. if (!defined('NOTOKENRENEWAL')) {
  33. define('NOTOKENRENEWAL', 1);
  34. }
  35. if (!defined('NOLOGIN')) {
  36. define('NOLOGIN', 1); // File must be accessed by logon page so without login
  37. }
  38. //if (! defined('NOREQUIREMENU')) define('NOREQUIREMENU',1); // We need top menu content
  39. if (!defined('NOREQUIREHTML')) {
  40. define('NOREQUIREHTML', 1);
  41. }
  42. if (!defined('NOREQUIREAJAX')) {
  43. define('NOREQUIREAJAX', '1');
  44. }
  45. define('ISLOADEDBYSTEELSHEET', '1');
  46. session_cache_limiter('public');
  47. require_once __DIR__.'/../../main.inc.php'; // __DIR__ allow this script to be included in custom themes
  48. require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
  49. // Define css type
  50. top_httphead('text/css');
  51. // Important: Following code is to avoid page request by browser and PHP CPU at each Dolibarr page access.
  52. if (empty($dolibarr_nocache)) {
  53. header('Cache-Control: max-age=10800, public, must-revalidate');
  54. } else {
  55. header('Cache-Control: no-cache');
  56. }
  57. include DOL_DOCUMENT_ROOT.'/theme/'.$conf->theme.'/theme_vars.inc.php';
  58. if (defined('THEME_ONLY_CONSTANT')) {
  59. return;
  60. }
  61. ?>
  62. html,body {
  63. box-sizing: border-box;
  64. padding:0px;
  65. margin:0;
  66. height:100%;
  67. width:100%;
  68. }
  69. .bodytakepos {
  70. background-color: var(--colorbackgrey);
  71. }
  72. .center {
  73. text-align: center;
  74. }
  75. button.calcbutton.poscolorblue {
  76. background-color: #0066AA;
  77. }
  78. button.calcbutton2.poscolordelete {
  79. background: rgb(255, 188, 185);
  80. color: #633;
  81. /*background-color: #884444;
  82. color: #fff;*/
  83. }
  84. button.calcbutton {
  85. display: inline-block;
  86. position: relative;
  87. padding: 0;
  88. line-height: normal;
  89. cursor: pointer;
  90. vertical-align: middle;
  91. text-align: center;
  92. overflow: visible; /* removes extra width in IE */
  93. width: calc(25% - 2px);
  94. height: calc(25% - 2px);
  95. font-weight: bold;
  96. background-color: #8c907e;
  97. color: #fff;
  98. /* border-color: unset; */
  99. border-width: 0;
  100. margin: 1px;
  101. font-size: 14pt;
  102. border-radius: 3px;
  103. }
  104. button.calcbutton2 {
  105. color: #fff;
  106. background-color: #5555AA;
  107. border-width: 0px;
  108. display: inline-block;
  109. position: relative;
  110. padding: 0;
  111. line-height: normal;
  112. cursor: pointer;
  113. vertical-align: middle;
  114. text-align: center;
  115. overflow: visible; /* removes extra width in IE */
  116. width: calc(25% - 2px);
  117. height: calc(25% - 2px);
  118. font-weight: bold;
  119. font-size: 10pt;
  120. margin: 1px;
  121. border-radius: 3px;
  122. }
  123. button.calcbutton2.clicked {
  124. background-color: #8855AA;
  125. }
  126. button.calcbutton2 .iconwithlabel {
  127. padding-bottom: 10px;
  128. }
  129. button.calcbutton3 {
  130. display: inline-block;
  131. position: relative;
  132. padding: 0;
  133. line-height: normal;
  134. cursor: pointer;
  135. vertical-align: middle;
  136. text-align: center;
  137. overflow: visible; /* removes extra width in IE */
  138. width: calc(25% - 2px);
  139. height: calc(25% - 2px);
  140. font-size: 14pt;
  141. margin: 1px;
  142. border-radius: 3px;
  143. }
  144. button.productbutton {
  145. display: inline-block;
  146. position: relative;
  147. padding: 0;
  148. line-height: normal;
  149. cursor: pointer;
  150. vertical-align: middle;
  151. text-align: center;
  152. overflow: visible; /* removes extra width in IE */
  153. width: calc(100% - 2px);
  154. height: calc(100% - 2px);
  155. font-weight: bold;
  156. background-color: #a3a6a3;
  157. color: #fff;
  158. /* border-color: unset; */
  159. border-width: 0;
  160. margin: 1px;
  161. font-size: 14pt;
  162. border-radius: 3px;
  163. }
  164. button.actionbutton {
  165. background: #EABCA6;
  166. color: #222;
  167. border: 2px solid #EEE;
  168. min-height: 40px;
  169. border-radius: 3px;
  170. }
  171. button.actionbutton {
  172. display: inline-block;
  173. position: relative;
  174. padding: 0;
  175. line-height: normal;
  176. cursor: pointer;
  177. vertical-align: middle;
  178. text-align: center;
  179. overflow: visible; /* removes extra width in IE */
  180. width: calc(33.33% - 2px);
  181. height: calc(25% - 2px);
  182. margin: 1px;
  183. border-width: 0;
  184. }
  185. button.item_value {
  186. background: #bbbbbb;
  187. border: #000000 1px solid;
  188. border-radius: 4px;
  189. padding: 8px;
  190. }
  191. button.item_value.selected {
  192. background: #ffffff;
  193. color: #000000;
  194. font-weight: bold;
  195. }
  196. div[aria-describedby="dialog-info"] button:before {
  197. content: "\f788";
  198. font-family: "<?php echo getDolGlobalString('MAIN_FONTAWESOME_FAMILY', 'Font Awesome 5 Free'); ?>";
  199. font-weight: 900;
  200. padding-right: 5px;
  201. }
  202. div[aria-describedby="dialog-info"].ui-dialog .ui-dialog-buttonpane {
  203. border-width: 0;
  204. }
  205. .takepospay {
  206. font-size: 1.5em;
  207. }
  208. .fa.fa-trash:before {
  209. font-size: 1.5em;
  210. }
  211. div.wrapper{
  212. float:left; /* important */
  213. position:relative; /* important(so we can absolutely position the description div */
  214. width:25%;
  215. height:33%;
  216. margin:0;
  217. padding:1px;
  218. border: 2px solid #EEE;
  219. /*box-shadow: 3px 3px 3px #bbb; */
  220. text-align: center;
  221. box-sizing: border-box;
  222. background-color:#fff;
  223. display: flex;
  224. align-items: center;
  225. justify-content: center;
  226. }
  227. div.wrapper2{
  228. float:left; /* important */
  229. position:relative; /* important(so we can absolutely position the description div */
  230. width:12.5%;
  231. height:33%;
  232. margin:0;
  233. /* padding:1px; */
  234. border: 2px solid #EEE;
  235. /*box-shadow: 3px 3px 3px #bbb;*/
  236. text-align: center;
  237. box-sizing: border-box;
  238. background-color:#fff;
  239. display: flex;
  240. align-items: center;
  241. justify-content: center;
  242. }
  243. img.imgwrapper {
  244. max-width: 100%;
  245. max-height: 100%;
  246. }
  247. button:active{
  248. background:black;
  249. color: white;
  250. }
  251. div.description{
  252. position:absolute; /* absolute position (so we can position it where we want)*/
  253. bottom:0px; /* position will be on bottom */
  254. left:0px;
  255. width:100%;
  256. /* styling below */
  257. background-color:black;
  258. /*color:white;*/
  259. opacity:1; /* transparency */
  260. /*filter:alpha(opacity=80); IE transparency */
  261. text-align:center;
  262. padding-top: 30px;
  263. background: -webkit-linear-gradient(top, rgba(250,250,250,0), rgba(250,250,250,0.5), rgba(250,250,250,0.95), rgba(250,250,250,1));
  264. }
  265. div.catwatermark{
  266. position:absolute;
  267. top:3%;
  268. left:3%;
  269. width:20%;
  270. background-color:black;
  271. color:white;
  272. text-align:center;
  273. font-size: 20px;
  274. display: none;
  275. opacity: 0.25;
  276. }
  277. table.postablelines tr td {
  278. line-height: unset;
  279. padding-top: 3px;
  280. padding-bottom: 3px;
  281. }
  282. .posinvoiceline td {
  283. height: 40px !important;
  284. background-color: var(--colorbacklineimpair2);
  285. }
  286. .postablelines td.linecolht {
  287. line-height: 1.3em !important;
  288. }
  289. div.paymentbordline
  290. {
  291. width:calc(50% - 16px);
  292. background-color:#aaa;
  293. border-radius: 8px;
  294. margin-bottom: 4px;
  295. display: inline-block;
  296. padding: 5px;
  297. }
  298. @media only screen and (max-aspect-ratio: 6/4) {
  299. div.description{
  300. min-height:20%;
  301. }
  302. }
  303. .container{
  304. width: 100%;
  305. height: 100%;
  306. margin: 0 auto;
  307. <?php
  308. if (getDolGlobalString('TAKEPOS_USE_ARROW_ON_NAVBAR')) {
  309. ?>
  310. overflow-x: hidden;
  311. overfloy-y: scroll;
  312. <?php
  313. } else {
  314. ?>
  315. overflow: visible;
  316. <?php
  317. }
  318. ?>
  319. box-sizing: border-box;
  320. }
  321. .row1{
  322. margin: 0 auto;
  323. width: 100%;
  324. height: 34%;
  325. }
  326. .row1withhead{
  327. margin: 0 auto;
  328. width: 100%;
  329. height: calc(45% - 50px);
  330. padding-top: 9px;
  331. }
  332. .row2{
  333. margin: 0 auto;
  334. width: 100%;
  335. height: 66%;
  336. }
  337. .row2withhead{
  338. margin: 0 auto;
  339. width: 100%;
  340. height: 55%;
  341. overflow-x: hidden;
  342. }
  343. .div1{
  344. height:100%;
  345. width: 34%;
  346. float: left;
  347. text-align: center;
  348. box-sizing: border-box;
  349. overflow: auto;
  350. /* background-color:white; */
  351. padding-top: 1px;
  352. padding-bottom: 0;
  353. min-height: 180px;
  354. }
  355. .div2{
  356. height: 100%;
  357. width: 33%;
  358. font-size: 0;
  359. float: left;
  360. box-sizing: border-box;
  361. padding-top: 0;
  362. padding-bottom: 0;
  363. min-height: 180px;
  364. }
  365. .div3{
  366. height: 100%;
  367. width: 33%;
  368. float: left;
  369. box-sizing: border-box;
  370. padding-top: 0;
  371. padding-bottom: 0;
  372. }
  373. .div4{
  374. height: 100%;
  375. width: 34%;
  376. float: left;
  377. box-sizing: border-box;
  378. font-size: 6px;
  379. padding-top: 10px;
  380. padding-bottom: 10px;
  381. }
  382. .div5{
  383. height: 100%;
  384. width: 66%;
  385. float: left;
  386. box-sizing: border-box;
  387. font-size: 6px;
  388. padding-top:10px;
  389. padding-bottom:10px;
  390. }
  391. .div1, .div2, .div3, .div4, .div5 {
  392. padding-right: 5px;
  393. padding-left: 5px;
  394. }
  395. .div1, .div4 {
  396. padding-left: 8px;
  397. }
  398. .div3, .div5 {
  399. padding-right: 8px;
  400. }
  401. tr.selected, tr.selected td {
  402. /* font-weight: bold; */
  403. background-color: rgb(240,230,210) !important;
  404. }
  405. .order td {
  406. color: green;
  407. /* background-color: #f5f5f5; */
  408. }
  409. .colorwhite {
  410. color: white;
  411. }
  412. .colorred {
  413. color: red;
  414. }
  415. .colorgreen {
  416. color: green;
  417. }
  418. .poscolordelete {
  419. color: #844;
  420. }
  421. .poscolorgreen {
  422. color: #060;
  423. }
  424. .poscolorblue {
  425. color: #006;
  426. }
  427. .centerinmiddle {
  428. position: relative;
  429. /* transform: translate(0,-50%);
  430. top: 50%; */
  431. }
  432. .trunc {
  433. white-space: nowrap;
  434. text-overflow: ellipsis;
  435. overflow: hidden;
  436. }
  437. p.description_content{
  438. padding:10px;
  439. margin:0px;
  440. }
  441. div.description_content {
  442. display: -webkit-box;
  443. -webkit-box-orient: vertical;
  444. -webkit-line-clamp: <?php echo getDolGlobalInt('TAKEPOS_LINES_TO_SHOW', 2); ?>;
  445. overflow: hidden;
  446. padding-left: 2px;
  447. padding-right: 2px;
  448. }
  449. .header{
  450. margin: 0 auto;
  451. width: 100%;
  452. height: 52px;
  453. background: rgb(60,70,100);
  454. }
  455. .topnav-left {
  456. float: left;
  457. }
  458. .topnav-right {
  459. }
  460. .topnav div.login_block_other, .topnav div.login_block_user {
  461. max-width: unset;
  462. width: unset;
  463. }
  464. .topnav{
  465. background: var(--colorbackhmenu1);
  466. overflow: hidden;
  467. height: 100%;
  468. }
  469. .topnav .tmenu {
  470. display: block;
  471. }
  472. .topnav a{
  473. float: left;
  474. color: #f2f2f2;
  475. text-decoration: none;
  476. }
  477. .topnav .login_block_other a {
  478. padding: 5px 10px;
  479. margin-left: 4px;
  480. font-size: 1.3em;
  481. }
  482. .topnav div.login_block_user {
  483. display: inline-block;
  484. vertical-align: middle;
  485. line-height: 50px;
  486. height: 50px;
  487. }
  488. .userimg.atoplogin img.userphoto, .userimgatoplogin img.userphoto {
  489. width: 30px;
  490. height: 30px;
  491. vertical-align: middle;
  492. }
  493. @media screen and (max-width: 767px) {
  494. .topnav .login_block_other a {
  495. padding: 5px 5px;
  496. font-size: 1.2em;
  497. }
  498. .div1, .div4 {
  499. padding-left: 5px;
  500. }
  501. .div3, .div5 {
  502. padding-right: 5px;
  503. }
  504. }
  505. .topnav-right > a {
  506. font-size: 17px;
  507. }
  508. .topnav-left a {
  509. padding: 7px 4px 7px 4px;
  510. margin: 8px;
  511. margin-left: 5px;
  512. margin-right: 5px;
  513. border-radius: 3px;
  514. }
  515. .topnav-left a:hover:not(.nohover), .topnav .login_block_other a:hover:not(.nohover) {
  516. background-color: #ddd;
  517. color: black;
  518. }
  519. .topnav-right{
  520. float: right;
  521. }
  522. .topnav input[type="text"] {
  523. background-color: #fff;
  524. color: #000;
  525. float: left;
  526. border-bottom: none !important;
  527. margin-left: 6px;
  528. font-size: 1.3em;
  529. max-width: 250px;
  530. border-radius: 5px;
  531. }
  532. div#moreinfo, div#infowarehouse {
  533. color: #aaa;
  534. padding: 0 8px 0 8px;
  535. }
  536. .basketselected {
  537. font-weight: bold;
  538. /* text-decoration: underline; */
  539. }
  540. .basketnotselected {
  541. opacity: 0.8;
  542. }
  543. .productprice {
  544. position: absolute;
  545. top: 5px;
  546. right: 5px;
  547. background: var(--colorbackhmenu1);
  548. color: var(--colortextbackhmenu);
  549. font-size: 2em;
  550. padding: 4px;
  551. border-radius: 2px;
  552. opacity: 0.9;
  553. padding-left: 6px;
  554. padding-right: 6px;
  555. }
  556. @media screen and (min-width: 892px) {
  557. .actionbutton{
  558. font-size: 13px;
  559. }
  560. div.description{
  561. font-size: 15px;
  562. }
  563. .invoice{
  564. font-size: 14px;
  565. }
  566. }
  567. @media (max-width: 891px) and (min-width: 386px) {
  568. .actionbutton{
  569. font-size: 12px;
  570. }
  571. div.description{
  572. font-size: 13px;
  573. }
  574. .invoice{
  575. font-size: 12px;
  576. }
  577. }
  578. @media screen and (max-width: 385px){
  579. .actionbutton{
  580. font-size: 10px;
  581. }
  582. div.description{
  583. font-size: 11px;
  584. }
  585. .invoice{
  586. font-size: 10px;
  587. }
  588. }
  589. /* For small screens */
  590. @media screen and (max-width: 1024px) {
  591. .topnav input[type="text"] {
  592. max-width: 150px;
  593. }
  594. }
  595. @media screen and (max-width: 767px) {
  596. .header {
  597. position: sticky;
  598. top: 0;
  599. z-index: 10;
  600. }
  601. .topnav input[type="text"] {
  602. max-width: 90px;
  603. font-size: 1.15em;
  604. }
  605. .topnav-right {
  606. float: unset;
  607. }
  608. .header {
  609. height: unset;
  610. }
  611. div.container {
  612. overflow-x: scroll;
  613. }
  614. div.wrapper {
  615. width: 50%;
  616. }
  617. div.wrapper2 {
  618. width: 25%;
  619. }
  620. .row1withhead{
  621. height: unset;
  622. }
  623. div#moreinfo, div#infowarehouse {
  624. padding: 0 5px 0 5px;
  625. }
  626. div.div1 {
  627. padding-bottom: 0;
  628. margin-bottom: 10px;
  629. }
  630. div.div1, div.div2, div.div3 {
  631. width: 100%;
  632. }
  633. div.row1 {
  634. height: unset;
  635. }
  636. div.div2 {
  637. min-height: unset;
  638. }
  639. div.div3 {
  640. margin-top: 8px;
  641. height: unset;
  642. }
  643. button.calcbutton, button.calcbutton2 {
  644. min-height: 30px;
  645. }
  646. .takepospay {
  647. font-size: 1.2em;
  648. }
  649. button.actionbutton {
  650. display: inline-flex;
  651. align-items: center;
  652. justify-content: center;
  653. padding-left: 4px;
  654. padding-right: 4px;
  655. min-height: 30px;
  656. }
  657. }
  658. /* Modal box */
  659. .modal {
  660. display: none; /* Hidden by default */
  661. position: fixed;
  662. z-index: 20;
  663. left: 0;
  664. top: 0;
  665. width: 100%;
  666. height: 100%;
  667. overflow: auto;
  668. background-color: rgb(0,0,0);
  669. background-color: rgba(0,0,0,0.4);
  670. }
  671. /* The Close Button */
  672. .close {
  673. color: #aaa;
  674. float: right;
  675. font-size: 28px;
  676. font-weight: bold;
  677. }
  678. .close:hover,
  679. .close:focus {
  680. color: black;
  681. text-decoration: none;
  682. cursor: pointer;
  683. }
  684. .modal-header {
  685. padding: 2px 16px;
  686. background-color: #2b4161;
  687. color: white;
  688. }
  689. .modal-body {padding: 2px 16px;}
  690. .modal-content {
  691. position: relative;
  692. background-color: #fefefe;
  693. margin: 15% auto; /* 15% from the top and centered */
  694. padding: 0;
  695. border: 1px solid #888;
  696. width: 40%;
  697. box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
  698. animation-name: animatetop;
  699. animation-duration: 0.4s;
  700. min-width: 200px;
  701. }
  702. @keyframes animatetop {
  703. from {top: -300px; opacity: 0}
  704. to {top: 0; opacity: 1}
  705. }
  706. .block {
  707. display: block;
  708. width: 100%;
  709. border: none;
  710. color: white;
  711. background-color: #8c907e;
  712. padding: 14px 0px;
  713. font-size: 16px;
  714. cursor: pointer;
  715. text-align: center;
  716. margin: 2px;
  717. }
  718. .splitsale {
  719. float: left;
  720. width: 100%;
  721. height: 100%;
  722. overflow: auto;
  723. }
  724. .rowsplit {
  725. width: 100%;
  726. height: 40%;
  727. }
  728. .headersplit {
  729. height: 10%;
  730. width: 100%;
  731. padding-top: 20px;
  732. padding-bottom: 2px;
  733. }
  734. .headercontent {
  735. margin: auto;
  736. width: 50%;
  737. border: 3px solid black;
  738. text-align: center;
  739. font-size: 150%;
  740. background-color: rgb(233,234,237);
  741. }
  742. @media only screen and (max-width: 767px)
  743. {
  744. .headercontent {
  745. width: 80%;
  746. }
  747. .headersplit .headercontent {
  748. font-size: 1em;
  749. }
  750. }
  751. .row:after {
  752. content: "";
  753. display: table;
  754. clear: both;
  755. }
  756. .div5 .imgadd {
  757. display: none;
  758. }
  759. @media screen and (max-width: 767px) {
  760. .div4 {
  761. height: auto;
  762. width: 100%;
  763. float: left;
  764. box-sizing: border-box;
  765. font-size: 6px;
  766. padding-top: 10px;
  767. padding-bottom: 2px;
  768. margin-left: 2px;
  769. }
  770. .div4 .wrapper.divempty, .div4 img, .div4 .wrapper:nth-last-child(1), .div4 .wrapper:nth-last-child(2), #prodiv22, #prodiv23, .catwatermark {
  771. display: none!important;
  772. }
  773. .tab-category {
  774. float: left;
  775. position: relative;
  776. width: 25%;
  777. height: 33%;
  778. margin: 0;
  779. padding: 1px;
  780. border: 2px solid #EEE;
  781. text-align: center;
  782. box-sizing: border-box;
  783. background-color: #fff;
  784. }
  785. .div4 .wrapper, .tab-category {
  786. width: auto;
  787. height: auto;
  788. padding: 6px;
  789. text-align: center;
  790. cursor: pointer;
  791. border: 1px solid #FFF!important;
  792. border-top: 3px solid #FFF!important;
  793. }
  794. .div4 .tab-category.active {
  795. border-right: 1px solid #CCC !important;
  796. border-left: 1px solid #CCC !important;
  797. border-top: 3px solid var(--colorbackhmenu1) !important;
  798. }
  799. .div5 {
  800. height: 100%;
  801. width: 100%;
  802. padding-top: 0px;
  803. }
  804. div.description {
  805. position: initial;
  806. width: auto;
  807. background-color: black;
  808. opacity: 1;
  809. text-align: center;
  810. padding-top: 0px;
  811. background: -webkit-linear-gradient(top, rgba(250,250,250,0), rgba(250,250,250,0.5), rgba(250,250,250,0.95), rgba(250,250,250,1));
  812. }
  813. .div5 .description .description_content {
  814. font-weight: bold;
  815. font-size: 14px;
  816. padding-left: 10px;
  817. }
  818. .div5 .wrapper2 {
  819. width: 100%;
  820. display: inline-flex;
  821. align-items: center;
  822. padding: 10px;
  823. justify-content: normal;
  824. }
  825. .div5 .wrapper2.divempty {
  826. display: none;
  827. }
  828. div.wrapper2 {
  829. float: none;
  830. }
  831. .div5 .arrow {
  832. width: auto;
  833. height: auto;
  834. display: none!important;
  835. }
  836. .div5 .arrow .centerinmiddle {
  837. transform: translate(0, 0);
  838. }
  839. .div5 .imgadd {
  840. display: flex;
  841. }
  842. div.wrapper2{
  843. height: 40px;
  844. }
  845. }
  846. <?php
  847. if (!getDolGlobalString('TAKEPOS_USE_ARROW_ON_NAVBAR')) {
  848. ?>
  849. .arrows {
  850. display: none;
  851. }
  852. <?php
  853. } else { ?>
  854. .indicator {
  855. background: #00000042;
  856. padding: 15px 5px;
  857. cursor: pointer;
  858. position:absolute;
  859. }
  860. .indicator.left {
  861. left:0;
  862. }
  863. .indicator.right {
  864. right:0;
  865. }
  866. .indicator:hover {
  867. background: #000000;
  868. }
  869. .indicator i {
  870. color: white;
  871. }
  872. .topnav-left {
  873. margin-left: 20px;
  874. }
  875. .topnav-right {
  876. margin-right: 20px;
  877. }
  878. /* For Header Scroll */
  879. html {
  880. scroll-behavior: smooth;
  881. }
  882. .topnav {
  883. scroll-behavior: smooth;
  884. }
  885. .header {
  886. height: unset;
  887. }
  888. .topnav {
  889. width: 100%;
  890. white-space: nowrap;
  891. overflow-x: scroll;
  892. display: inline-flex;
  893. }
  894. .topnav-left {
  895. white-space: nowrap;
  896. float: none;
  897. margin-right: auto;
  898. align-items: center;
  899. }
  900. .topnav-right {
  901. display: flex;
  902. white-space: nowrap;
  903. float: none;
  904. align-items: center;
  905. }
  906. .topnav-left #shoppingcart {
  907. display:inline-flex;
  908. }
  909. .topnav-right .login_block_other {
  910. display: flex;
  911. white-space: nowrap;
  912. }
  913. ::-webkit-scrollbar {
  914. width: 8px;
  915. }
  916. ::-webkit-scrollbar-track {
  917. background: #f1f1f1;
  918. }
  919. ::-webkit-scrollbar-thumb {
  920. background: #888;
  921. }
  922. .topnav::-webkit-scrollbar-track{
  923. background: #eeeeee;
  924. }
  925. .topnav::-webkit-scrollbar{
  926. width: 1px;
  927. background: #F5F5F5;
  928. }
  929. .topnav::-webkit-scrollbar-thumb{
  930. background: #f9171700;
  931. }
  932. .topnav.overflow .arrows {
  933. display: flex;
  934. }
  935. <?php } ?>