dolibarr  13.0.2
pos.css.php
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 
28 //if (! defined('NOREQUIREUSER')) define('NOREQUIREUSER','1'); // Not disabled because need to load personalized language
29 //if (! defined('NOREQUIREDB')) define('NOREQUIREDB','1'); // Not disabled to increase speed. Language code is found on url.
30 if (!defined('NOREQUIRESOC')) define('NOREQUIRESOC', '1');
31 //if (! defined('NOREQUIRETRAN')) define('NOREQUIRETRAN','1'); // Not disabled because need to do translations
32 if (!defined('NOCSRFCHECK')) define('NOCSRFCHECK', 1);
33 if (!defined('NOTOKENRENEWAL')) define('NOTOKENRENEWAL', 1);
34 if (!defined('NOLOGIN')) define('NOLOGIN', 1); // File must be accessed by logon page so without login
35 //if (! defined('NOREQUIREMENU')) define('NOREQUIREMENU',1); // We need top menu content
36 if (!defined('NOREQUIREHTML')) define('NOREQUIREHTML', 1);
37 if (!defined('NOREQUIREAJAX')) define('NOREQUIREAJAX', '1');
38 
39 
40 define('ISLOADEDBYSTEELSHEET', '1');
41 
42 
43 session_cache_limiter('public');
44 
45 require_once __DIR__.'/../../main.inc.php'; // __DIR__ allow this script to be included in custom themes
46 require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
47 
48 // Define css type
49 top_httphead('text/css');
50 // Important: Following code is to avoid page request by browser and PHP CPU at each Dolibarr page access.
51 if (empty($dolibarr_nocache)) header('Cache-Control: max-age=10800, public, must-revalidate');
52 else header('Cache-Control: no-cache');
53 
54 
55 require DOL_DOCUMENT_ROOT.'/theme/'.$conf->theme.'/theme_vars.inc.php';
56 if (defined('THEME_ONLY_CONSTANT')) return;
57 
58 ?>
59 
60 html,body {
61  box-sizing: border-box;
62  padding:0px;
63  margin:0;
64  height:100%;
65  width:100%;
66 }
67 
68 .bodytakepos {
69  background-color: #EEE;
70 }
71 
72 .center {
73  text-align: center;
74 }
75 
76 button.calcbutton.poscolorblue {
77  background-color: #0066AA;
78 }
79 
80 button.calcbutton2.poscolordelete {
81  background: rgb(255, 188, 185);
82  color: #633;
83  /*background-color: #884444;
84  color: #fff;*/
85 }
86 
87 button.calcbutton {
88  display: inline-block;
89  position: relative;
90  padding: 0;
91  line-height: normal;
92  cursor: pointer;
93  vertical-align: middle;
94  text-align: center;
95  overflow: visible; /* removes extra width in IE */
96  width: calc(25% - 2px);
97  height: calc(25% - 2px);
98  font-weight: bold;
99  background-color: #8c907e;
100  color: #fff;
101  /* border-color: unset; */
102  border-width: 0;
103  margin: 1px;
104  font-size: 14pt;
105  border-radius: 3px;
106 }
107 
108 button.calcbutton2 {
109  color: #fff;
110  background-color: #5555AA;
111  border-width: 0px;
112  display: inline-block;
113  position: relative;
114  padding: 0;
115  line-height: normal;
116  cursor: pointer;
117  vertical-align: middle;
118  text-align: center;
119  overflow: visible; /* removes extra width in IE */
120  width: calc(25% - 2px);
121  height: calc(25% - 2px);
122  font-weight: bold;
123  font-size: 10pt;
124  margin: 1px;
125  border-radius: 3px;
126 }
127 
128 button.calcbutton2 .iconwithlabel {
129  padding-bottom: 10px;
130 }
131 
132 button.calcbutton3 {
133  display: inline-block;
134  position: relative;
135  padding: 0;
136  line-height: normal;
137  cursor: pointer;
138  vertical-align: middle;
139  text-align: center;
140  overflow: visible; /* removes extra width in IE */
141  width: calc(25% - 2px);
142  height: calc(25% - 2px);
143  font-size: 14pt;
144  margin: 1px;
145  border-radius: 3px;
146 }
147 
148 button.productbutton {
149  display: inline-block;
150  position: relative;
151  padding: 0;
152  line-height: normal;
153  cursor: pointer;
154  vertical-align: middle;
155  text-align: center;
156  overflow: visible; /* removes extra width in IE */
157  width: calc(100% - 2px);
158  height: calc(100% - 2px);
159  font-weight: bold;
160  background-color: #a3a6a3;
161  color: #fff;
162  /* border-color: unset; */
163  border-width: 0;
164  margin: 1px;
165  font-size: 14pt;
166  border-radius: 3px;
167 }
168 
169 button.actionbutton {
170  background: #EABCA6;
171  border: 2px solid #EEE;
172  min-height: 40px;
173  border-radius: 3px;
174 }
175 
176 button.actionbutton {
177  display: inline-block;
178  position: relative;
179  padding: 0;
180  line-height: normal;
181  cursor: pointer;
182  vertical-align: middle;
183  text-align: center;
184  overflow: visible; /* removes extra width in IE */
185  width: calc(33.33% - 2px);
186  height: calc(25% - 2px);
187  margin: 1px;
188  border-width: 0;
189 }
190 
191 button.item_value {
192  background: #bbbbbb;
193  border: #000000 1px solid;
194  border-radius: 4px;
195  padding: 8px;
196 }
197 
198 button.item_value.selected {
199  background: #ffffff;
200  color: #000000;
201  font-weight: bold;
202 }
203 
204 div[aria-describedby="dialog-info"] button:before {
205  content: "\f788";
206  font-family: "Font Awesome 5 Free";
207  font-weight: 900;
208  padding-right: 5px;
209 }
210 div[aria-describedby="dialog-info"].ui-dialog .ui-dialog-buttonpane {
211  border-width: 0;
212 }
213 
214 .takepospay {
215  font-size: 1.5em;
216 }
217 
218 .fa.fa-trash:before {
219  font-size: 1.5em;
220 }
221 
222 
223 div.wrapper{
224  float:left; /* important */
225  position:relative; /* important(so we can absolutely position the description div */
226  width:25%;
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 
237 div.wrapper2{
238  float:left; /* important */
239  position:relative; /* important(so we can absolutely position the description div */
240  width:12.5%;
241  height:33%;
242  margin:0;
243  /* padding:1px; */
244  border: 2px solid #EEE;
245  /*box-shadow: 3px 3px 3px #bbb;*/
246  text-align: center;
247  box-sizing: border-box;
248  background-color:#fff;
249 }
250 
251 img.imgwrapper {
252  max-width: 100%;
253 }
254 
255 button:active{
256  background:black;
257  color: white;
258 }
259 
260 div.description{
261  position:absolute; /* absolute position (so we can position it where we want)*/
262  bottom:0px; /* position will be on bottom */
263  left:0px;
264  width:100%;
265  /* styling below */
266  background-color:black;
267  /*color:white;*/
268  opacity:1; /* transparency */
269  /*filter:alpha(opacity=80); IE transparency */
270  text-align:center;
271 
272  padding-top: 30px;
273  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));
274 }
275 
276 div.catwatermark{
277  position:absolute;
278  top:3%;
279  left:3%;
280  width:20%;
281  background-color:black;
282  color:white;
283  text-align:center;
284  font-size: 20px;
285  display: none;
286  opacity: 0.25;
287 }
288 
289 table.postablelines tr td {
290  line-height: unset;
291  padding-top: 3px;
292  padding-bottom: 3px;
293 }
294 
295 .posinvoiceline td {
296  height: 40px !important;
297  background-color: var(--colorbacklineimpair1);
298 }
299 
300 .postablelines td.linecolht {
301  line-height: 1.3em !important;
302 }
303 
304 div.paymentbordline
305 {
306  width:calc(50% - 16px);
307  background-color:#888;
308  border-radius: 8px;
309  margin-bottom: 4px;
310  display: inline-block;
311  padding: 5px;
312 }
313 
314 @media only screen and (max-aspect-ratio: 6/4) {
315  div.description{
316  min-height:20%;
317  }
318 }
319 
320 .container{
321  width: 100%;
322  height: 100%;
323  margin: 0 auto;
324  overflow: visible;
325  box-sizing: border-box;
326 }
327 
328 .row1{
329  margin: 0 auto;
330  width: 100%;
331  height: 34%;
332 }
333 
334 .row1withhead{
335  margin: 0 auto;
336  width: 100%;
337  height: calc(45% - 50px);
338  padding-top: 5px;
339 }
340 
341 .row2{
342  margin: 0 auto;
343  width: 100%;
344  height: 66%;
345 }
346 
347 .row2withhead{
348  margin: 0 auto;
349  width: 100%;
350  height: 55%;
351 }
352 
353 .div1{
354  height:100%;
355  width: 34%;
356  float: left;
357  text-align: center;
358  box-sizing: border-box;
359  overflow: auto;
360  /* background-color:white; */
361  padding-top: 1px;
362  padding-bottom: 0;
363  padding-right: 5px;
364  padding-left: 5px;
365  min-height: 180px;
366 }
367 
368 .div2{
369  height: 100%;
370  width: 33%;
371  font-size: 0;
372  float: left;
373  box-sizing: border-box;
374  padding-top: 0;
375  padding-bottom: 0;
376  padding-right: 5px;
377  padding-left: 5px;
378  min-height: 180px;
379 }
380 
381 .div3{
382  height: 100%;
383  width: 33%;
384  float: left;
385  box-sizing: border-box;
386  padding-top: 0;
387  padding-bottom: 0;
388  padding-right: 5px;
389  padding-left: 5px;
390 }
391 
392 .div4{
393  height: 100%;
394  width: 34%;
395  float: left;
396  box-sizing: border-box;
397  font-size: 6px;
398  padding-top: 10px;
399  padding-bottom: 10px;
400  padding-right: 5px;
401  padding-left: 5px;
402 }
403 
404 .div5{
405  height: 100%;
406  width: 66%;
407  float: left;
408  box-sizing: border-box;
409  font-size: 6px;
410  padding-top:10px;
411  padding-bottom:10px;
412  padding-right: 5px;
413  padding-left: 5px;
414 }
415 
416 tr.selected, tr.selected td {
417  /* font-weight: bold; */
418  background-color: rgb(240,230,210) !important;
419 }
420 .order {
421  color: limegreen;
422 }
423 
424 .colorwhite {
425  color: white;
426 }
427 .colorred {
428  color: red;
429 }
430 .colorgreen {
431  color: green;
432 }
433 .poscolordelete {
434  color: #844;
435 }
436 .poscolorgreen {
437  color: #060;
438 }
439 .poscolorblue {
440  color: #006;
441 }
442 
443 .centerinmiddle {
444  transform: translate(0,-50%);
445  position: relative;
446  top: 50%;
447 }
448 .trunc {
449  white-space: nowrap;
450  text-overflow: ellipsis;
451  overflow: hidden;
452 }
453 
454 p.description_content{
455  padding:10px;
456  margin:0px;
457 }
458 div.description_content {
459  display: -webkit-box;
460  -webkit-box-orient: vertical;
461  -webkit-line-clamp: <?php echo $conf->global->TAKEPOS_LINES_TO_SHOW; ?>;
462  overflow: hidden;
463  padding-left: 2px;
464  padding-right: 2px;
465 }
466 
467 .header{
468  margin: 0 auto;
469  width: 100%;
470  height: 52px;
471  background: rgb(60,70,100);
472 }
473 
474 .topnav-left {
475  float: left;
476 }
477 .topnav-right {
478 
479 }
480 
481 .topnav div.login_block_other, .topnav div.login_block_user {
482  max-width: unset;
483  width: unset;
484 }
485 .topnav{
486  background: var(--colorbackhmenu1);
487  overflow: hidden;
488  height: 100%;
489 }
490 .topnav .tmenu {
491  display: block;
492 }
493 
494 .topnav a{
495  float: left;
496  color: #f2f2f2;
497  text-decoration: none;
498 }
499 .topnav .login_block_other a {
500  padding: 5px 10px;
501  margin-left: 4px;
502  font-size: 1.3em;
503 }
504 
505 @media screen and (max-width: 767px) {
506  .topnav .login_block_other a {
507  padding: 5px 5px;
508  font-size: 1.2em;
509  }
510 }
511 
512 .topnav-right > a {
513  font-size: 17px;
514 }
515 
516 .topnav-left a {
517  padding: 7px 4px 7px 4px;
518  margin: 8px;
519  margin-left: 4px;
520 }
521 .topnav-left a:hover, .topnav .login_block_other a:hover {
522  background-color: #ddd;
523  color: black;
524 }
525 
526 .topnav-right{
527  float: right;
528 }
529 
530 .topnav input[type="text"] {
531  background-color: #fff;
532  color: #000;
533  float: left;
534  border-bottom: none !important;
535  margin-left: 6px;
536  font-size: 1.3em;
537  max-width: 250px;
538  border-radius: 5px;
539 }
540 
541 div#moreinfo, div#infowarehouse {
542  color: #aaa;
543  padding: 0 8px 0 8px;
544 }
545 
546 .productprice {
547  position: absolute;
548  top: 5px;
549  right: 5px;
550  background: var(--colorbackhmenu1);
551  color: var(--colortextbackhmenu);
552  font-size: 2em;
553  padding: 5px;
554  border-radius: 2px;
555  opacity: 0.9;
556  padding-left: 8px;
557  padding-right: 8px;
558 }
559 
560 
561 @media screen and (min-width: 892px) {
562  .actionbutton{
563  font-size: 13px;
564  }
565  div.description{
566  font-size: 15px;
567  }
568  .invoice{
569  font-size: 14px;
570  }
571 }
572 
573 @media (max-width: 891px) and (min-width: 386px) {
574  .actionbutton{
575  font-size: 12px;
576  }
577  div.description{
578  font-size: 13px;
579  }
580  .invoice{
581  font-size: 12px;
582  }
583 }
584 
585 @media screen and (max-width: 385px){
586  .actionbutton{
587  font-size: 10px;
588  }
589  div.description{
590  font-size: 11px;
591  }
592  .invoice{
593  font-size: 10px;
594  }
595 }
596 
597 /* For small screens */
598 
599 @media screen and (max-width: 1024px) {
600  .topnav input[type="text"] {
601  max-width: 150px;
602  }
603 }
604 
605 @media screen and (max-width: 767px) {
606  .header {
607  position: sticky;
608  top: 0;
609  z-index: 10;
610  }
611 
612  .topnav input[type="text"] {
613  max-width: 90px;
614  }
615 
616  .topnav-right {
617  float: unset;
618  }
619  .header {
620  height: unset;
621  }
622  div.container {
623  overflow-x: scroll;
624  }
625  div.wrapper {
626  width: 50%;
627  }
628  div.wrapper2 {
629  width: 25%;
630  }
631 
632  .row1withhead{
633  height: calc(45% - 100px);
634  }
635 
636  div#moreinfo, div#infowarehouse {
637  padding: 0 5px 0 5px;
638  }
639 
640  div.div1 {
641  padding-bottom: 0;
642  margin-bottom: 10px;
643  }
644  div.div1, div.div2, div.div3 {
645  width: 100%;
646  }
647 
648  div.row1 {
649  height: unset;
650  }
651 
652  div.div2 {
653  min-height: unset;
654  }
655 
656  div.div3 {
657  margin-top: 8px;
658  height: unset;
659  }
660 
661  button.calcbutton, button.calcbutton2 {
662  min-height: 30px;
663  }
664 
665  .takepospay {
666  font-size: 1.2em;
667  }
668 
669  button.actionbutton {
670  min-height: 60px;
671  padding-left: 4px;
672  padding-right: 4px;
673  }
674 }
675 
676 /* Modal box */
677 .modal {
678  display: none; /* Hidden by default */
679  position: fixed;
680  z-index: 20;
681  left: 0;
682  top: 0;
683  width: 100%;
684  height: 100%;
685  overflow: auto;
686  background-color: rgb(0,0,0);
687  background-color: rgba(0,0,0,0.4);
688 }
689 
690 /* The Close Button */
691 .close {
692  color: #aaa;
693  float: right;
694  font-size: 28px;
695  font-weight: bold;
696 }
697 
698 .close:hover,
699 .close:focus {
700  color: black;
701  text-decoration: none;
702  cursor: pointer;
703 }
704 
705 .modal-header {
706  padding: 2px 16px;
707  background-color: #2b4161;
708  color: white;
709 }
710 
711 .modal-body {padding: 2px 16px;}
712 
713 .modal-content {
714  position: relative;
715  background-color: #fefefe;
716  margin: 15% auto; /* 15% from the top and centered */
717  padding: 0;
718  border: 1px solid #888;
719  width: 40%;
720  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
721  animation-name: animatetop;
722  animation-duration: 0.4s;
723  min-width: 200px;
724 }
725 
726 @keyframes animatetop {
727  from {top: -300px; opacity: 0}
728  to {top: 0; opacity: 1}
729 }
730 
731 .block {
732  display: block;
733  width: 100%;
734  border: none;
735  color: white;
736  background-color: #8c907e;
737  padding: 14px 28px;
738  font-size: 16px;
739  cursor: pointer;
740  text-align: center;
741  margin: 2px;
742 }
$conf db name
Only used if Module[ID]Name translation string is not found.
Definition: repair.php:108
if(!defined('NOREQUIREMENU')) if(!function_exists("llxHeader")) top_httphead($contenttype= 'text/html', $forcenocache=0)
Show HTTP header.
Definition: main.inc.php:1214
pt($db, $sql, $date)
print function
Definition: index.php:87
if(preg_match('/crypted:/i', $dolibarr_main_db_pass)||!empty($dolibarr_main_db_encrypted_pass)) $conf db type
Definition: repair.php:105