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