pos.css.php 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074
  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: #EEE;
  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. border: 2px solid #EEE;
  167. min-height: 40px;
  168. border-radius: 3px;
  169. }
  170. button.actionbutton {
  171. display: inline-block;
  172. position: relative;
  173. padding: 0;
  174. line-height: normal;
  175. cursor: pointer;
  176. vertical-align: middle;
  177. text-align: center;
  178. overflow: visible; /* removes extra width in IE */
  179. width: calc(33.33% - 2px);
  180. height: calc(25% - 2px);
  181. margin: 1px;
  182. border-width: 0;
  183. }
  184. button.item_value {
  185. background: #bbbbbb;
  186. border: #000000 1px solid;
  187. border-radius: 4px;
  188. padding: 8px;
  189. }
  190. button.item_value.selected {
  191. background: #ffffff;
  192. color: #000000;
  193. font-weight: bold;
  194. }
  195. div[aria-describedby="dialog-info"] button:before {
  196. content: "\f788";
  197. font-family: "Font Awesome 5 Free";
  198. font-weight: 900;
  199. padding-right: 5px;
  200. }
  201. div[aria-describedby="dialog-info"].ui-dialog .ui-dialog-buttonpane {
  202. border-width: 0;
  203. }
  204. .takepospay {
  205. font-size: 1.5em;
  206. }
  207. .fa.fa-trash:before {
  208. font-size: 1.5em;
  209. }
  210. div.wrapper{
  211. float:left; /* important */
  212. position:relative; /* important(so we can absolutely position the description div */
  213. width:25%;
  214. height:33%;
  215. margin:0;
  216. padding:1px;
  217. border: 2px solid #EEE;
  218. /*box-shadow: 3px 3px 3px #bbb; */
  219. text-align: center;
  220. box-sizing: border-box;
  221. background-color:#fff;
  222. }
  223. div.wrapper2{
  224. float:left; /* important */
  225. position:relative; /* important(so we can absolutely position the description div */
  226. width:12.5%;
  227. height:33%;
  228. margin:0;
  229. /* padding:1px; */
  230. border: 2px solid #EEE;
  231. /*box-shadow: 3px 3px 3px #bbb;*/
  232. text-align: center;
  233. box-sizing: border-box;
  234. background-color:#fff;
  235. }
  236. img.imgwrapper {
  237. max-width: 100%;
  238. }
  239. button:active{
  240. background:black;
  241. color: white;
  242. }
  243. div.description{
  244. position:absolute; /* absolute position (so we can position it where we want)*/
  245. bottom:0px; /* position will be on bottom */
  246. left:0px;
  247. width:100%;
  248. /* styling below */
  249. background-color:black;
  250. /*color:white;*/
  251. opacity:1; /* transparency */
  252. /*filter:alpha(opacity=80); IE transparency */
  253. text-align:center;
  254. padding-top: 30px;
  255. 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));
  256. }
  257. div.catwatermark{
  258. position:absolute;
  259. top:3%;
  260. left:3%;
  261. width:20%;
  262. background-color:black;
  263. color:white;
  264. text-align:center;
  265. font-size: 20px;
  266. display: none;
  267. opacity: 0.25;
  268. }
  269. table.postablelines tr td {
  270. line-height: unset;
  271. padding-top: 3px;
  272. padding-bottom: 3px;
  273. }
  274. .posinvoiceline td {
  275. height: 40px !important;
  276. background-color: var(--colorbacklineimpair2);
  277. }
  278. .postablelines td.linecolht {
  279. line-height: 1.3em !important;
  280. }
  281. div.paymentbordline
  282. {
  283. width:calc(50% - 16px);
  284. background-color:#aaa;
  285. border-radius: 8px;
  286. margin-bottom: 4px;
  287. display: inline-block;
  288. padding: 5px;
  289. }
  290. @media only screen and (max-aspect-ratio: 6/4) {
  291. div.description{
  292. min-height:20%;
  293. }
  294. }
  295. .container{
  296. width: 100%;
  297. height: 100%;
  298. margin: 0 auto;
  299. <?php
  300. if (getDolGlobalString('TAKEPOS_USE_ARROW_ON_NAVBAR')) {
  301. ?>
  302. overflow-x: hidden;
  303. overfloy-y: scroll;
  304. <?php
  305. } else {
  306. ?>
  307. overflow: visible;
  308. <?php
  309. }
  310. ?>
  311. box-sizing: border-box;
  312. }
  313. .row1{
  314. margin: 0 auto;
  315. width: 100%;
  316. height: 34%;
  317. }
  318. .row1withhead{
  319. margin: 0 auto;
  320. width: 100%;
  321. height: calc(45% - 50px);
  322. padding-top: 9px;
  323. }
  324. .row2{
  325. margin: 0 auto;
  326. width: 100%;
  327. height: 66%;
  328. }
  329. .row2withhead{
  330. margin: 0 auto;
  331. width: 100%;
  332. height: 55%;
  333. overflow: hidden;
  334. }
  335. .div1{
  336. height:100%;
  337. width: 34%;
  338. float: left;
  339. text-align: center;
  340. box-sizing: border-box;
  341. overflow: auto;
  342. /* background-color:white; */
  343. padding-top: 1px;
  344. padding-bottom: 0;
  345. min-height: 180px;
  346. }
  347. .div2{
  348. height: 100%;
  349. width: 33%;
  350. font-size: 0;
  351. float: left;
  352. box-sizing: border-box;
  353. padding-top: 0;
  354. padding-bottom: 0;
  355. min-height: 180px;
  356. }
  357. .div3{
  358. height: 100%;
  359. width: 33%;
  360. float: left;
  361. box-sizing: border-box;
  362. padding-top: 0;
  363. padding-bottom: 0;
  364. }
  365. .div4{
  366. height: 100%;
  367. width: 34%;
  368. float: left;
  369. box-sizing: border-box;
  370. font-size: 6px;
  371. padding-top: 10px;
  372. padding-bottom: 10px;
  373. }
  374. .div5{
  375. height: 100%;
  376. width: 66%;
  377. float: left;
  378. box-sizing: border-box;
  379. font-size: 6px;
  380. padding-top:10px;
  381. padding-bottom:10px;
  382. }
  383. .div1, .div2, .div3, .div4, .div5 {
  384. padding-right: 5px;
  385. padding-left: 5px;
  386. }
  387. .div1, .div4 {
  388. padding-left: 8px;
  389. }
  390. .div3, .div5 {
  391. padding-right: 8px;
  392. }
  393. tr.selected, tr.selected td {
  394. /* font-weight: bold; */
  395. background-color: rgb(240,230,210) !important;
  396. }
  397. .order td {
  398. color: green;
  399. /* background-color: #f5f5f5; */
  400. }
  401. .colorwhite {
  402. color: white;
  403. }
  404. .colorred {
  405. color: red;
  406. }
  407. .colorgreen {
  408. color: green;
  409. }
  410. .poscolordelete {
  411. color: #844;
  412. }
  413. .poscolorgreen {
  414. color: #060;
  415. }
  416. .poscolorblue {
  417. color: #006;
  418. }
  419. .centerinmiddle {
  420. transform: translate(0,-50%);
  421. position: relative;
  422. top: 50%;
  423. }
  424. .trunc {
  425. white-space: nowrap;
  426. text-overflow: ellipsis;
  427. overflow: hidden;
  428. }
  429. p.description_content{
  430. padding:10px;
  431. margin:0px;
  432. }
  433. div.description_content {
  434. display: -webkit-box;
  435. -webkit-box-orient: vertical;
  436. -webkit-line-clamp: <?php echo getDolGlobalInt('TAKEPOS_LINES_TO_SHOW', 2); ?>;
  437. overflow: hidden;
  438. padding-left: 2px;
  439. padding-right: 2px;
  440. }
  441. .header{
  442. margin: 0 auto;
  443. width: 100%;
  444. height: 52px;
  445. background: rgb(60,70,100);
  446. }
  447. .topnav-left {
  448. float: left;
  449. }
  450. .topnav-right {
  451. }
  452. .topnav div.login_block_other, .topnav div.login_block_user {
  453. max-width: unset;
  454. width: unset;
  455. }
  456. .topnav{
  457. background: var(--colorbackhmenu1);
  458. overflow: hidden;
  459. height: 100%;
  460. }
  461. .topnav .tmenu {
  462. display: block;
  463. }
  464. .topnav a{
  465. float: left;
  466. color: #f2f2f2;
  467. text-decoration: none;
  468. }
  469. .topnav .login_block_other a {
  470. padding: 5px 10px;
  471. margin-left: 4px;
  472. font-size: 1.3em;
  473. }
  474. .topnav div.login_block_user {
  475. display: inline-block;
  476. vertical-align: middle;
  477. line-height: 50px;
  478. height: 50px;
  479. }
  480. .userimg.atoplogin img.userphoto, .userimgatoplogin img.userphoto {
  481. width: 30px;
  482. height: 30px;
  483. vertical-align: middle;
  484. }
  485. @media screen and (max-width: 767px) {
  486. .topnav .login_block_other a {
  487. padding: 5px 5px;
  488. font-size: 1.2em;
  489. }
  490. .div1, .div4 {
  491. padding-left: 5px;
  492. }
  493. .div3, .div5 {
  494. padding-right: 5px;
  495. }
  496. }
  497. .topnav-right > a {
  498. font-size: 17px;
  499. }
  500. .topnav-left a {
  501. padding: 7px 4px 7px 4px;
  502. margin: 8px;
  503. margin-left: 4px;
  504. border-radius: 3px;
  505. }
  506. .topnav-left a:hover, .topnav .login_block_other a:hover {
  507. background-color: #ddd;
  508. color: black;
  509. }
  510. .topnav-right{
  511. float: right;
  512. }
  513. .topnav input[type="text"] {
  514. background-color: #fff;
  515. color: #000;
  516. float: left;
  517. border-bottom: none !important;
  518. margin-left: 6px;
  519. font-size: 1.3em;
  520. max-width: 250px;
  521. border-radius: 5px;
  522. }
  523. div#moreinfo, div#infowarehouse {
  524. color: #aaa;
  525. padding: 0 8px 0 8px;
  526. }
  527. .basketselected {
  528. font-weight: bold;
  529. /* text-decoration: underline; */
  530. }
  531. .basketnotselected {
  532. opacity: 0.8;
  533. }
  534. .productprice {
  535. position: absolute;
  536. top: 5px;
  537. right: 5px;
  538. background: var(--colorbackhmenu1);
  539. color: var(--colortextbackhmenu);
  540. font-size: 2em;
  541. padding: 4px;
  542. border-radius: 2px;
  543. opacity: 0.9;
  544. padding-left: 6px;
  545. padding-right: 6px;
  546. }
  547. @media screen and (min-width: 892px) {
  548. .actionbutton{
  549. font-size: 13px;
  550. }
  551. div.description{
  552. font-size: 15px;
  553. }
  554. .invoice{
  555. font-size: 14px;
  556. }
  557. }
  558. @media (max-width: 891px) and (min-width: 386px) {
  559. .actionbutton{
  560. font-size: 12px;
  561. }
  562. div.description{
  563. font-size: 13px;
  564. }
  565. .invoice{
  566. font-size: 12px;
  567. }
  568. }
  569. @media screen and (max-width: 385px){
  570. .actionbutton{
  571. font-size: 10px;
  572. }
  573. div.description{
  574. font-size: 11px;
  575. }
  576. .invoice{
  577. font-size: 10px;
  578. }
  579. }
  580. /* For small screens */
  581. @media screen and (max-width: 1024px) {
  582. .topnav input[type="text"] {
  583. max-width: 150px;
  584. }
  585. }
  586. @media screen and (max-width: 767px) {
  587. .header {
  588. position: sticky;
  589. top: 0;
  590. z-index: 10;
  591. }
  592. .topnav input[type="text"] {
  593. max-width: 90px;
  594. font-size: 1.15em;
  595. }
  596. .topnav-right {
  597. float: unset;
  598. }
  599. .header {
  600. height: unset;
  601. }
  602. div.container {
  603. overflow-x: scroll;
  604. }
  605. div.wrapper {
  606. width: 50%;
  607. }
  608. div.wrapper2 {
  609. width: 25%;
  610. }
  611. .row1withhead{
  612. height: unset;
  613. }
  614. div#moreinfo, div#infowarehouse {
  615. padding: 0 5px 0 5px;
  616. }
  617. div.div1 {
  618. padding-bottom: 0;
  619. margin-bottom: 10px;
  620. }
  621. div.div1, div.div2, div.div3 {
  622. width: 100%;
  623. }
  624. div.row1 {
  625. height: unset;
  626. }
  627. div.div2 {
  628. min-height: unset;
  629. }
  630. div.div3 {
  631. margin-top: 8px;
  632. height: unset;
  633. }
  634. button.calcbutton, button.calcbutton2 {
  635. min-height: 30px;
  636. }
  637. .takepospay {
  638. font-size: 1.2em;
  639. }
  640. button.actionbutton {
  641. display: inline-flex;
  642. align-items: center;
  643. justify-content: center;
  644. padding-left: 4px;
  645. padding-right: 4px;
  646. min-height: 30px;
  647. }
  648. }
  649. /* Modal box */
  650. .modal {
  651. display: none; /* Hidden by default */
  652. position: fixed;
  653. z-index: 20;
  654. left: 0;
  655. top: 0;
  656. width: 100%;
  657. height: 100%;
  658. overflow: auto;
  659. background-color: rgb(0,0,0);
  660. background-color: rgba(0,0,0,0.4);
  661. }
  662. /* The Close Button */
  663. .close {
  664. color: #aaa;
  665. float: right;
  666. font-size: 28px;
  667. font-weight: bold;
  668. }
  669. .close:hover,
  670. .close:focus {
  671. color: black;
  672. text-decoration: none;
  673. cursor: pointer;
  674. }
  675. .modal-header {
  676. padding: 2px 16px;
  677. background-color: #2b4161;
  678. color: white;
  679. }
  680. .modal-body {padding: 2px 16px;}
  681. .modal-content {
  682. position: relative;
  683. background-color: #fefefe;
  684. margin: 15% auto; /* 15% from the top and centered */
  685. padding: 0;
  686. border: 1px solid #888;
  687. width: 40%;
  688. box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
  689. animation-name: animatetop;
  690. animation-duration: 0.4s;
  691. min-width: 200px;
  692. }
  693. @keyframes animatetop {
  694. from {top: -300px; opacity: 0}
  695. to {top: 0; opacity: 1}
  696. }
  697. .block {
  698. display: block;
  699. width: 100%;
  700. border: none;
  701. color: white;
  702. background-color: #8c907e;
  703. padding: 14px 0px;
  704. font-size: 16px;
  705. cursor: pointer;
  706. text-align: center;
  707. margin: 2px;
  708. }
  709. .splitsale {
  710. float: left;
  711. width: 100%;
  712. height: 100%;
  713. overflow: auto;
  714. }
  715. .rowsplit {
  716. width: 100%;
  717. height: 40%;
  718. }
  719. .headersplit {
  720. height: 10%;
  721. width: 100%;
  722. padding-top: 20px;
  723. padding-bottom: 2px;
  724. }
  725. .headercontent {
  726. margin: auto;
  727. width: 50%;
  728. border: 3px solid black;
  729. text-align: center;
  730. font-size: 150%;
  731. background-color: rgb(233,234,237);
  732. }
  733. @media only screen and (max-width: 767px)
  734. {
  735. .headercontent {
  736. width: 80%;
  737. }
  738. .headersplit .headercontent {
  739. font-size: 1em;
  740. }
  741. }
  742. .row:after {
  743. content: "";
  744. display: table;
  745. clear: both;
  746. }
  747. .div5 .imgadd {
  748. display: none;
  749. }
  750. @media screen and (max-width: 767px) {
  751. .div4 {
  752. height: auto;
  753. width: 100%;
  754. float: left;
  755. box-sizing: border-box;
  756. font-size: 6px;
  757. padding-top: 10px;
  758. padding-bottom: 2px;
  759. margin-left: 2px;
  760. }
  761. .div4 .wrapper.divempty, .div4 img, .div4 .wrapper:nth-last-child(1), .div4 .wrapper:nth-last-child(2), #prodiv22, #prodiv23, .catwatermark {
  762. display: none!important;
  763. }
  764. .tab-category {
  765. float: left;
  766. position: relative;
  767. width: 25%;
  768. height: 33%;
  769. margin: 0;
  770. padding: 1px;
  771. border: 2px solid #EEE;
  772. text-align: center;
  773. box-sizing: border-box;
  774. background-color: #fff;
  775. }
  776. .div4 .wrapper, .tab-category {
  777. width: auto;
  778. height: auto;
  779. padding: 6px;
  780. text-align: center;
  781. cursor: pointer;
  782. border: 1px solid #FFF!important;
  783. border-top: 3px solid #FFF!important;
  784. }
  785. .div4 .tab-category.active {
  786. border-right: 1px solid #CCC !important;
  787. border-left: 1px solid #CCC !important;
  788. border-top: 3px solid var(--colorbackhmenu1) !important;
  789. }
  790. .div5 {
  791. height: 100%;
  792. width: 100%;
  793. padding-top: 0px;
  794. }
  795. div.description {
  796. position: initial;
  797. width: auto;
  798. background-color: black;
  799. opacity: 1;
  800. text-align: center;
  801. padding-top: 0px;
  802. 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));
  803. }
  804. .div5 .description .description_content {
  805. font-weight: bold;
  806. font-size: 14px;
  807. padding-left: 10px;
  808. }
  809. .div5 .wrapper2 {
  810. width: 100%;
  811. display: inline-flex;
  812. align-items: center;
  813. padding: 10px;
  814. }
  815. .div5 .wrapper2.divempty {
  816. display: none;
  817. }
  818. div.wrapper2 {
  819. float: none;
  820. }
  821. .div5 .arrow {
  822. width: auto;
  823. height: auto;
  824. display: none!important;
  825. }
  826. .div5 .arrow .centerinmiddle {
  827. transform: translate(0, 0);
  828. }
  829. .div5 .imgadd {
  830. display: flex;
  831. }
  832. div.wrapper2{
  833. height:10%;
  834. }
  835. }
  836. <?php
  837. if (!getDolGlobalString('TAKEPOS_USE_ARROW_ON_NAVBAR')) {
  838. ?>
  839. .arrows {
  840. display: none;
  841. }
  842. <?php } else { ?>
  843. .indicator {
  844. background: #00000042;
  845. padding: 15px 5px;
  846. cursor: pointer;
  847. position:absolute;
  848. }
  849. .indicator.left {
  850. left:0;
  851. }
  852. .indicator.right {
  853. right:0;
  854. }
  855. .indicator:hover {
  856. background: #000000;
  857. }
  858. .indicator i {
  859. color: white;
  860. }
  861. .topnav-left {
  862. margin-left: 20px;
  863. }
  864. .topnav-right {
  865. margin-right: 20px;
  866. }
  867. /* For Header Scroll */
  868. html {
  869. scroll-behavior: smooth;
  870. }
  871. .topnav {
  872. scroll-behavior: smooth;
  873. }
  874. .header {
  875. height: unset;
  876. }
  877. .topnav {
  878. width: 100%;
  879. white-space: nowrap;
  880. overflow-x: scroll;
  881. display: inline-flex;
  882. }
  883. .topnav-left {
  884. white-space: nowrap;
  885. float: none;
  886. margin-right: auto;
  887. align-items: center;
  888. }
  889. .topnav-right {
  890. display: flex;
  891. white-space: nowrap;
  892. float: none;
  893. align-items: center;
  894. }
  895. .topnav-left #shoppingcart {
  896. display:inline-flex;
  897. }
  898. .topnav-right .login_block_other {
  899. display: flex;
  900. white-space: nowrap;
  901. }
  902. ::-webkit-scrollbar {
  903. width: 8px;
  904. }
  905. ::-webkit-scrollbar-track {
  906. background: #f1f1f1;
  907. }
  908. ::-webkit-scrollbar-thumb {
  909. background: #888;
  910. }
  911. .topnav::-webkit-scrollbar-track{
  912. background: #eeeeee;
  913. }
  914. .topnav::-webkit-scrollbar{
  915. width: 1px;
  916. background: #F5F5F5;
  917. }
  918. .topnav::-webkit-scrollbar-thumb{
  919. background: #f9171700;
  920. }
  921. .topnav.overflow .arrows {
  922. display: flex;
  923. }
  924. <?php } ?>