[WIP] point_of_sale: trying to remove all css fx to see if it's really faster

bzr revid: fva@openerp.com-20131008142309-4a1hgsg8ikw8dvzw
This commit is contained in:
Frédéric van der Essen 2013-10-08 16:23:09 +02:00
parent 221b01edbf
commit e73a22ccb9
1 changed files with 1 additions and 152 deletions

View File

@ -15,10 +15,10 @@
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{
@ -37,10 +37,6 @@
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{
@ -49,10 +45,6 @@
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 ********* */
@ -80,12 +72,7 @@
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;
@ -100,7 +87,6 @@
.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;
@ -121,8 +107,6 @@
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 */
@ -173,10 +157,6 @@
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{
@ -198,11 +178,6 @@
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 */
@ -228,7 +203,6 @@
}
.point-of-sale #rightheader .header-button:active{
background: rgba(0,0,0,0.2);
text-shadow: #000 0px 0px 3px;
color:#EEE;
}
@ -325,16 +299,6 @@
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 ********* */
@ -377,8 +341,6 @@
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 ********* */
@ -419,7 +381,6 @@
display: inline-block;
padding: 0 9px;
vertical-align: top;
text-shadow: #f7f7f7 0 1px 1px;
color: #555555;
font-weight: bold;
}
@ -440,7 +401,6 @@
}
.point-of-sale .searchbox input {
width: 130px;
border-radius: 11px;
border: 1px solid #cecbcb;
padding: 3px 19px;
margin: 6px;
@ -460,7 +420,6 @@
.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{
@ -469,10 +428,6 @@
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;
@ -494,10 +449,6 @@
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;
}
@ -510,25 +461,13 @@
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;
@ -560,9 +499,6 @@
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)); */
@ -585,11 +521,7 @@
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 {
@ -614,8 +546,6 @@
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 {
@ -650,8 +580,6 @@
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;
@ -667,9 +595,7 @@
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;
@ -724,15 +650,12 @@
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;
}
@ -743,8 +666,6 @@
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;
@ -797,8 +718,6 @@
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;
@ -863,8 +782,6 @@
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 {
@ -883,8 +800,6 @@
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{
@ -904,7 +819,6 @@
color:white;
background: #7f82ac;
padding: 2px 5px;
border-radius: 3px;
cursor:pointer;
}
@ -931,8 +845,6 @@
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{
@ -946,7 +858,6 @@
margin-right: 18px;
font-family: "Inconsolata";
color: #6c6c6c;
text-shadow: 0px 3px 3px rgba(0,0,0, 0.2);
}
/* e) The Welcome Screen */
@ -965,9 +876,6 @@
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;
}
@ -989,10 +897,6 @@
.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;
@ -1000,10 +904,6 @@
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);
}
@ -1150,16 +1050,8 @@
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;
@ -1171,33 +1063,18 @@
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{
@ -1215,9 +1092,7 @@
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{
@ -1302,8 +1177,6 @@
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{
@ -1330,25 +1203,13 @@
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;
@ -1390,7 +1251,6 @@
line-height: 38px;
text-align: center;
font-size:48px;
border-radius: 4px;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
@ -1401,16 +1261,8 @@
.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);
@ -1433,7 +1285,6 @@
bottom:50%;
width:100%;
background: rgba(0,0,0,0.1);
border-radius: 4px;
}
/* ********* Unsupported Browser Page ********* */
@ -1455,6 +1306,4 @@
}
.point-of-sale .not-supported-browser img{
border-collapse: separate;
box-shadow: 0px 3px 38px rgba(0,0,0,0.3);
border-radius: 3px;
}