[WIP] point_of_sale: trying to remove all css fx to see if it's really faster
authorFrédéric van der Essen <fva@openerp.com>
Tue, 8 Oct 2013 14:23:09 +0000 (16:23 +0200)
committerFrédéric van der Essen <fva@openerp.com>
Tue, 8 Oct 2013 14:23:09 +0000 (16:23 +0200)
bzr revid: fva@openerp.com-20131008142309-4a1hgsg8ikw8dvzw

addons/point_of_sale/static/src/css/pos.css

index da8325c..e93c977 100644 (file)
     top: 0;
     width: 100%;
     height: 100%;
-    text-shadow: none;
     -webkit-user-select: none;
        -moz-user-select: none;
             user-select: none;
+    text-shadow: none;
 }
 
 .point-of-sale .oe_hidden{
     left:0;
     right:0;
     height:10px;
-    background: -webkit-linear-gradient(top,rgba(0,0,0,0.09),rgba(0,0,0,0));
-    background:    -moz-linear-gradient(top,rgba(0,0,0,0.09),rgba(0,0,0,0));
-    background:     -ms-linear-gradient(top,rgba(0,0,0,0.09),rgba(0,0,0,0));
-    background:         linear-gradient(top,rgba(0,0,0,0.09),rgba(0,0,0,0));
 }
 
 .point-of-sale .darker-shadow-top{
     left:0;
     right:0;
     height:10px;
-    background: -webkit-linear-gradient(top,rgba(0,0,0,0.15),rgba(0,0,0,0));
-    background:    -moz-linear-gradient(top,rgba(0,0,0,0.15),rgba(0,0,0,0));
-    background:     -ms-linear-gradient(top,rgba(0,0,0,0.15),rgba(0,0,0,0));
-    background:         linear-gradient(top,rgba(0,0,0,0.15),rgba(0,0,0,0));
 }
 
 /*  ********* The black loading screen ********* */
     padding: 4px 10px;
     font-size: 11px;
     border: 1px solid #cacaca;
-    border-radius: 4px;
     background: #e2e2e2;
-    background: -webkit-gradient(linear, left top, left bottom, from(#f0f0f0), to(#e2e2e2));
-    background: -moz-linear-gradient(#f0f0f0, #e2e2e2);
-    background:  -ms-linear-gradient(#f0f0f0, #e2e2e2);
-    background:      linear-gradient(#f0f0f0, #e2e2e2);
 }
 .point-of-sale ul, .point-of-sale ol {
     padding: 0;
 .point-of-sale .pos-right-align input {
     text-align: right;
     border: 1px solid #cecbcb;
-    border-radius: 4px;
 }
 .point-of-sale .pos-disc-font {
     font-size: 12px;
     padding:0;
     color: gray;
     background: #393939;
-    background: -moz-linear-gradient(#7b7979, #393939);
-    background: -webkit-gradient(linear, left top, left bottom, from(#7b7979), to(#393939));
 }
 
 /*  a) The left part of the top-bar */
     margin-right:0px;
     border: 1px solid #353A7E;
     background: #7f82ac;
-    background: -webkit-gradient(linear, left top, left bottom, from(#b2b3d7), to(#7f82ac));
-    background: -moz-linear-gradient(#b2b3d7, #7f82ac);
-    background:  -ms-linear-gradient(#b2b3d7, #7f82ac);
-    background:      linear-gradient(#b2b3d7, #7f82ac);
 }
 
 .point-of-sale #rightheader button.square{
     font-weight: 900;
     background: #7174A8 !important;
     color: rgb(236, 237, 255) !important;
-    text-shadow: 0px 1px rgba(0, 0, 0, 0.31);
-    -webkit-box-shadow: 0px 1px 2px rgb(63, 66, 139) inset;
-       -moz-box-shadow: 0px 1px 2px rgb(63, 66, 139) inset;
-        -ms-box-shadow: 0px 1px 2px rgb(63, 66, 139) inset;
-            box-shadow: 0px 1px 2px rgb(63, 66, 139) inset;
 }
 
 /*  c) The session buttons */
 }
 .point-of-sale #rightheader .header-button:active{
     background: rgba(0,0,0,0.2);
-    text-shadow: #000 0px 0px 3px;
     color:#EEE;
 }
 
     border: none;
     color: white;
     background: #7f82ac;
-    background: -webkit-gradient(linear, left top, left bottom, from(#9d9fc5), to(#7f82ac));
-    background: -moz-linear-gradient(#9d9fc5, #7f82ac);
-    background:  -ms-linear-gradient(#9d9fc5, #7f82ac);
-    background:      linear-gradient(#9d9fc5, #7f82ac);
-    text-shadow: 0px 0px 5px rgba(255,255,255,0.21);
-    -webkit-box-shadow:  0px 0px 2px rgba(0,0,0,0.3) inset, 0px 1px 2px rgba(0,0,0,0.1);
-       -moz-box-shadow:  0px 0px 2px rgba(0,0,0,0.3) inset, 0px 1px 2px rgba(0,0,0,0.1);
-        -ms-box-shadow:  0px 0px 2px rgba(0,0,0,0.3) inset, 0px 1px 2px rgba(0,0,0,0.1);
-         -o-box-shadow:  0px 0px 2px rgba(0,0,0,0.3) inset, 0px 1px 2px rgba(0,0,0,0.1);
-            box-shadow:  0px 0px 2px rgba(0,0,0,0.3) inset, 0px 1px 2px rgba(0,0,0,0.1);
 }
 
 /*  ********* The Numpad ********* */
     height: 32px;
     border-bottom: 1px solid #c7c7c7;
     background: #d3d3d3;
-    background: -moz-linear-gradient(white, #d3d3d3);
-    background: -webkit-gradient(linear, left top, left bottom, from(white), to(#d3d3d3));
 }
 
 /*  ********* The product list  ********* */
     display: inline-block;
     padding: 0 9px;
     vertical-align: top;
-    text-shadow: #f7f7f7 0 1px 1px;
     color: #555555;
     font-weight: bold;
 }
 }
 .point-of-sale .searchbox input {
     width: 130px;
-    border-radius: 11px;
     border: 1px solid #cecbcb;
     padding: 3px 19px;
     margin: 6px;
 .point-of-sale #categories {
     /*background:#f0f0f0;*/
     position: relative;
-    background-image: url('../img/bg.png');
     border-bottom: 2px solid #e0e0e0;
 }
 .point-of-sale #categories .white-gradient{
     left:0;
     right:0;
     bottom:0;
-    background: -webkit-linear-gradient(bottom,rgba(255,255,255,0.5),rgba(255,255,255,0));
-    background:    -moz-linear-gradient(bottom,rgba(255,255,255,0.5),rgba(255,255,255,0));
-    background:     -ms-linear-gradient(bottom,rgba(255,255,255,0.5),rgba(255,255,255,0));
-    background:         linear-gradient(bottom,rgba(255,255,255,0.5),rgba(255,255,255,0));
 }
 .point-of-sale #categories h4 {
     display: inline-block;
     height:120px;
     background:#fff;
     border: 1px solid #fff;
-    border-radius: 3px;
-    -webkit-box-shadow: 0px 2px 0px #E9E9E9, 0px 3px 8px rgba(0, 0, 0, 0.34);
-       -moz-box-shadow: 0px 2px 0px #E9E9E9, 0px 3px 8px rgba(0, 0, 0, 0.34);
-            box-shadow: 0px 2px 0px #E9E9E9, 0px 3px 8px rgba(0, 0, 0, 0.34);
     cursor: pointer;
 }
 
 
     cursor: pointer;
     border: 1px solid #cacaca;
-    border-radius: 4px;
 
     background: #e2e2e2;
-    background: -webkit-linear-gradient(#f0f0f0, #e2e2e2);
-    background:    -moz-linear-gradient(#f0f0f0, #e2e2e2);
-    background:     -ms-linear-gradient(#f0f0f0, #e2e2e2);
-    background:         linear-gradient(#f0f0f0, #e2e2e2);
-    -webkit-box-shadow: 0px 2px 2px rgba(0,0,0, 0.1);
-       -moz-box-shadow: 0px 2px 2px rgba(0,0,0, 0.1);
-            box-shadow: 0px 2px 2px rgba(0,0,0, 0.1);
 }
 .point-of-sale .category-simple-button:active{
     color: white;
     background: #7f82ac;
     border: 1px solid #7f82ac;
-    background: -webkit-linear-gradient(#9d9fc5, #7f82ac);
-    background:    -moz-linear-gradient(#9d9fc5, #7f82ac);
-    background:     -ms-linear-gradient(#9d9fc5, #7f82ac);
-    background:         linear-gradient(#9d9fc5, #7f82ac);
 
     -webkit-transition-property: background, border;
     -webkit-transition-duration: 0.2s;
     top: auto;
     line-height: 14px;
     width: 100%;
-    background: -webkit-linear-gradient(-90deg,rgba(255,255,255,0),rgba(255,255,255,1), rgba(255,255,255,1));
-    background:    -moz-linear-gradient(-90deg,rgba(255,255,255,0),rgba(255,255,255,1), rgba(255,255,255,1));
-    background:     -ms-linear-gradient(-90deg,rgba(255,255,255,0),rgba(255,255,255,1), rgba(255,255,255,1));
     /* for some reason the -90deg orientation doesn't match the -webkit-linear-gradient. It should be 180deg here.
      * webkit also insists on rendering *both* gradients instead of only the native one. So it doesn't looks right. ugh. 
     background:         linear-gradient(-90deg,rgba(255,255,255,0),rgba(255,255,255,1), rgba(255,255,255,1)); */
     height:120px;
     background:#fff;
     border: 1px solid #fff;
-    border-radius: 3px;
     overflow: hidden;
-    -webkit-box-shadow: 0px 2px 0px #dad8e4, 0px 1px 8px #636480; 
-       -moz-box-shadow: 0px 2px 0px #dad8e4, 0px 1px 8px #636480; 
-            box-shadow: 0px 2px 0px #dad8e4, 0px 1px 8px #636480; 
 }
 
 .point-of-sale .product .product-img {
     line-height: 13px;
     background: #7f82ac;
     padding: 2px 5px;
-    border-radius: 3px;
-    box-shadow: 0px 1px 0px #9A9CC5, 0px 3px 0px #7E86AC, 0px 3px 3px rgba(12, 14, 68, 0.67);
 }
 
 .point-of-sale .product .product-name {
     top:0px;
     bottom:0px;
     width:100%;
-    background-image: -webkit-radial-gradient(rgba(255, 255, 255, 0),rgba(51, 17, 124, 0.25)), url('../img/grid.png');
-    box-shadow: 0px 36px 24px rgba(0, 0, 0, 0.14) inset;
 }
 .point-of-sale .screen header h2 {
     margin-top: 0px;
     margin-top: 50px;
     padding: 40px;
     background-color: #f8f8f8;
-    border-radius: 4px;
     text-align: center;
-    box-shadow: 0px 1px 0px white,0px -1px 0px white, 0px 4px 0px #DFDFDF, 0px 10px 30px rgba(0, 0, 0, 0.21);
 }
 .point-of-sale .dialog p{
     font-size: 25px;
     padding: 0px 8px;
     padding-top: 8px;
     margin-left: 16px;
-    border-radius: 5px;
     background: white;
-    box-shadow: 0px -1px 0px #E2E2E2 inset,0px 1px 0px white inset, 0px 4px 0px #DDD inset, 0px 4px 8px rgba(0, 0, 0, 0.55) inset;
     color: #4c4c4c; 
     -webkit-animation: all 250ms linear;
 }
 
 .point-of-sale .pos-step-container input:focus{
-    box-shadow: 0px -1px 0px #C9CFFD inset,0px 1px 0px #B8C8FC inset, 0px 4px 0px #9FD5FF inset, 0px 4px 9px rgba(0, 31, 255, 0.55) inset;
     color: #5d7ad6;
     -webkit-animation: all 250ms linear;
 }
     margin-top: 50px;
     padding: 40px;
     background-color: #f8f8f8;
-    border-radius: 4px;
-    box-shadow: 0px 1px 0px white,0px -1px 0px white, 0px 4px 0px #DFDFDF, 0px 10px 30px rgba(0, 0, 0, 0.21);
 }
 .point-of-sale .pos-payment-container .left-block{
     display: inline-block;
     padding-bottom:30px;
     display: inline-block;
     font-family: "Inconsolata";
-    border-radius: 2px;
-    box-shadow: 0px 1px 0px white, 0px 3px 0px #C1B9D6, 0px 8px 16px rgba(0, 0, 0, 0.3);
 }
 .point-of-sale .pos-sale-ticket .emph{
     font-size: 20px;
     margin-right: auto;
     padding: 40px;
     background: #f1f1f1;
-    box-shadow: 0px 1px 0px white, 0px -1px 0px white, 0px 4px 0px #dfdfdf, 0px 10px 30px rgba(0,0,0,0.21);
-    border-radius: 4px;
 }
 
 .point-of-sale .scale-screen .product-picture {
 
     background:#fff;
     border: 1px solid #fff;
-    border-radius: 3px;
-    box-shadow: 0px 2px 0px #e9e9e9, 0px 2px 8px rgba(0,0,0,0.2);
 }
 
 .point-of-sale .scale-screen .product-picture img{
     color:white;
     background: #7f82ac;
     padding: 2px 5px;
-    border-radius: 3px;
     cursor:pointer;
 }
 
     padding-right: 33px;
     padding-top: 11px;
     background: white;
-    border-radius: 3px;
-    box-shadow: 0px -1px #E2E2E2 inset,0px 1px white inset, 0px 4px #E6E4E4 inset, 0px 4px 8px rgba(0, 0, 0, 0.4) inset;
 
 }
 .point-of-sale .scale-screen .weight p{
     margin-right: 18px;
     font-family: "Inconsolata";
     color: #6c6c6c;
-    text-shadow: 0px 3px 3px rgba(0,0,0, 0.2);
 }
 
 /* e) The Welcome Screen */
     font-weight:bold;
     background-color: #F0EEEE;
     border: 1px solid #E0DDDD;
-    -webkit-box-shadow: 0px 10px 20px rgba(0,0,0, 0.3);
-       -moz-box-shadow: 0px 10px 20px rgba(0,0,0, 0.3);
-        -ms-box-shadow: 0px 10px 20px rgba(0,0,0, 0.3);
     z-index:1150;
 }
 
 
 .point-of-sale .order{
     background: white;
-    background: -webkit-linear-gradient(0deg,rgba(245,245,245,1),rgba(255,255,255,1), rgba(245,245,245,1));
-    background:    -moz-linear-gradient(0deg,rgba(245,245,245,1),rgba(255,255,255,1), rgba(245,245,245,1));
-    background:     -ms-linear-gradient(0deg,rgba(245,245,245,1),rgba(255,255,255,1), rgba(245,245,245,1));
-    background:         linear-gradient(0deg,rgba(245,245,245,1),rgba(255,255,255,1), rgba(245,245,245,1));
     padding-bottom:15px;
     padding-top:15px;
     margin-left:16px;
     margin-top:16px;
     margin-bottom:16px;
     font-size:16px;
-    border-radius: 2px;
-    -webkit-box-shadow: 0px 1px 0px white, 0px 3px 0px #DFDFDF, 0px 7px 16px rgba(0, 0, 0, 0.20);
-       -moz-box-shadow: 0px 1px 0px white, 0px 3px 0px #DFDFDF, 0px 7px 16px rgba(0, 0, 0, 0.20);
-            box-shadow: 0px 1px 0px white, 0px 3px 0px #DFDFDF, 0px 7px 16px rgba(0, 0, 0, 0.20);
 
 }
 
     cursor: pointer;
 
     border: 1px solid #cacaca;
-    border-radius: 4px;
 
     background: #e2e2e2;
-    background: -webkit-linear-gradient(#f0f0f0, #e2e2e2);
-    background:    -moz-linear-gradient(#f0f0f0, #e2e2e2);
-    background:     -ms-linear-gradient(#f0f0f0, #e2e2e2);
-    background:         linear-gradient(#f0f0f0, #e2e2e2);
-    -webkit-box-shadow: 0px 2px 2px rgba(0,0,0, 0.1);
-       -moz-box-shadow: 0px 2px 2px rgba(0,0,0, 0.1);
-            box-shadow: 0px 2px 2px rgba(0,0,0, 0.1);
 }
 .point-of-sale .pos-actionbar .button .label{
     margin-top: 37px;
     color: white;
     background: #7f82ac;
     border: 1px solid #7f82ac;
-    background: -webkit-linear-gradient(#9d9fc5, #7f82ac);
-    background:    -moz-linear-gradient(#9d9fc5, #7f82ac);
-    background:     -ms-linear-gradient(#9d9fc5, #7f82ac);
-    background:         linear-gradient(#9d9fc5, #7f82ac);
 
     -webkit-transition-property: background, border;
     -webkit-transition-duration: 0.2s;
     -webkit-transition-timing-function: ease-out;
 }
 
-.point-of-sale .pos-actionbar .button.disabled *{
-    opacity: 0.5;
-}
 .point-of-sale .pos-actionbar .button.disabled:active{
     border: 1px solid #cacaca;
-    border-radius: 4px;
     color: #555;
     cursor: default;
 
     background: #e2e2e2;
-    background: -webkit-linear-gradient(#f0f0f0, #e2e2e2);
-    background:    -moz-linear-gradient(#f0f0f0, #e2e2e2);
-    background:     -ms-linear-gradient(#f0f0f0, #e2e2e2);
-    background:         linear-gradient(#f0f0f0, #e2e2e2);
-    -webkit-box-shadow: 0px 2px 2px rgba(0,0,0, 0.1);
-       -moz-box-shadow: 0px 2px 2px rgba(0,0,0, 0.1);
-            box-shadow: 0px 2px 2px rgba(0,0,0, 0.1);
 }
 
 .point-of-sale .pos-actionbar .button.rightalign{
     
     background: rgba(0,0,0,0.82);
     color: white;
-    text-shadow: none;
     padding-bottom: 10px;
-    box-shadow: 0px 3px 20px rgba(0,0,0,0.3);
     cursor:move;
 }
 .point-of-sale .debug-widget .toggle{
     font-size:20px;
     font-weight:bold;
     background-color: #F0EEEE;
-    border-radius: 4px;
-    box-shadow: 0px -1px white, 0px 1px white, 0px 4px #949494, 0px 10px 20px rgba(0, 0, 0, 0.3);
     z-index:1200;
 }
 .point-of-sale .popup .footer{
     cursor: pointer;
 
     border: 1px solid #cacaca;
-    border-radius: 4px;
 
     background: #e2e2e2;
-    background: -webkit-linear-gradient(#f0f0f0, #e2e2e2);
-    background:    -moz-linear-gradient(#f0f0f0, #e2e2e2);
-    background:     -ms-linear-gradient(#f0f0f0, #e2e2e2);
-    background:         linear-gradient(#f0f0f0, #e2e2e2);
-    -webkit-box-shadow: 0px 2px 2px rgba(0,0,0, 0.3);
-       -moz-box-shadow: 0px 2px 2px rgba(0,0,0, 0.3);
-            box-shadow: 0px 2px 2px rgba(0,0,0, 0.3);
 }
 .point-of-sale .popup .button:active{
     color: white;
     background: #7f82ac;
     border: 1px solid #7f82ac;
-    background: -webkit-linear-gradient(#9d9fc5, #7f82ac);
-    background:    -moz-linear-gradient(#9d9fc5, #7f82ac);
-    background:     -ms-linear-gradient(#9d9fc5, #7f82ac);
-    background:         linear-gradient(#9d9fc5, #7f82ac);
 
     -webkit-transition-property: background, border;
     -webkit-transition-duration: 0.2s;
     line-height: 38px;
     text-align: center;
     font-size:48px;
-    border-radius: 4px;
     cursor: pointer;
     -webkit-user-select: none;
        -moz-user-select: none;
 .point-of-sale .scrollbar .button{
     color:white;
     background: rgba(0,0,0,0.6);
-    -webkit-box-shadow: 0px 1px 4px rgba(0,0,0,0.01);
-       -moz-box-shadow: 0px 1px 4px rgba(0,0,0,0.01);
-            box-shadow: 0px 1px 4px rgba(0,0,0,0.01);
-    text-shadow: rgba(255,255,255,0.5) 0px 0px 10px;
-    -webkit-transition: all 250ms ease-in-out;
-       -moz-transition: all 250ms ease-in-out;
-            transition: all 250ms ease-in-out;
 }
 .point-of-sale .scrollbar .button:active{
-    text-shadow: rgba(255,255,255,0.8) 0px 0px 15px;
 }
 .point-of-sale .scrollbar .button.disabled{
     background: rgba(0,0,0,0.3);
     bottom:50%;
     width:100%;
     background: rgba(0,0,0,0.1);
-    border-radius: 4px;
 }
 
 /*  ********* Unsupported Browser Page ********* */
 }
 .point-of-sale .not-supported-browser img{
     border-collapse: separate;
-    box-shadow: 0px 3px 38px rgba(0,0,0,0.3);
-    border-radius: 3px;
 }