Modification : gère point_of_sale.patch dans ce module.
[burette/pos_membership.git] / static / src / css / pos.css
diff --git a/static/src/css/pos.css b/static/src/css/pos.css
new file mode 100644 (file)
index 0000000..6ecf585
--- /dev/null
@@ -0,0 +1,196 @@
+/* NOTE: adapted from openerp/addons/point_of_sale/static/src/css/pos.css */
+
+/*  ********* The partner list  ********* */
+
+.point-of-sale .partner-list {
+    padding:10px !important;
+}
+
+.point-of-sale .partner-list-scroller{
+    -webkit-box-sizing: border-box;
+       -moz-box-sizing: border-box;
+        -ms-box-sizing: border-box;
+            box-sizing: border-box;
+    width:100%;
+    height:100%;
+    overflow: hidden;
+}
+.point-of-sale .partner-list-container {
+    position:absolute;
+    top:0px;
+    bottom:0px;
+    left:0px;
+    right:0px;
+}
+
+/*  a) the search box */
+
+.point-of-sale #partners-screen .searchbox {
+    position: absolute;
+    right: 2px;
+}
+.point-of-sale #partners-screen .searchbox input {
+    width: 130px;
+    border-radius: 11px;
+    border: 1px solid #cecbcb;
+    padding: 3px 19px;
+    margin: 6px;
+    background: url("../img/search.png") no-repeat 5px;
+    background-color: white;
+}
+.point-of-sale #partners-screen .search-clear {
+    position: absolute;
+    top: 11px;
+    right: 11px;
+    cursor: pointer;
+    display: none;
+}
+
+.point-of-sale #partners-screen .search-create {
+    position: absolute;
+    top: 6px;
+    right: 22px;
+    cursor: pointer;
+    display: none;
+}
+
+
+/*  b) the partner */
+
+.point-of-sale .partner {
+    position:relative;
+    vertical-align: top;
+    display: inline-block;
+    line-height: 100px;
+    font-size: 11px;
+    margin: 5px !important;
+    width: 120px;
+    height:120px;
+    background:#fff;
+    border: 1px solid #fff;
+    border-radius: 3px;
+    -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 .partner .partner-img {
+    position: relative;
+    width: 120px;
+    height: 100px;
+    background: white;
+    text-align: center;
+}
+
+.point-of-sale .partner .partner-img img {
+    max-height: 100px;
+    max-width:  120px;
+}
+
+.point-of-sale .partner .price-tag {
+    position: absolute;
+    top: 2px;
+    right: 2px;
+    vertical-align: top;
+    color: white;
+    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 .partner .partner-name {
+    position: absolute;
+    -webkit-box-sizing: border-box;
+       -moz-box-sizing: border-box;
+        -ms-box-sizing: border-box;
+            box-sizing: border-box;
+    bottom:0;
+    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));
+    /* troublesome in latest webkit
+    background:         linear-gradient(-90deg,rgba(255,255,255,0),rgba(255,255,255,1), rgba(255,255,255,1));
+    */
+    /*background:#FFF;*/
+    padding: 3px;
+    padding-top:15px;
+}
+
+/*  c) the partner creation */
+
+.point-of-sale .pos-step-container {
+    display: inline-block;
+    font-size: 1.5em;
+}
+.point-of-sale .greyed-out{
+    color: #AAA;
+}
+.point-of-sale .pos-step-container input{
+    font-size: 1em;
+    outline: none;
+    border: none;
+    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;
+}
+
+.point-of-sale .pos-partner-create-container {
+    text-align: left;
+    min-width: 500px;
+    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-partner-create-container .left-block{
+    display: inline-block;
+    width:49%;
+    margin:0;
+    padding:0;
+    text-align:left;
+}
+.point-of-sale .pos-partner-create-container .header{
+    margin-top: 0px;
+    margin-bottom:20px;
+    font-weight: bold;
+}
+.point-of-sale .pos-partner-create-container .infoline{
+    margin-top:5px;
+    margin-bottom:5px;
+}
+.point-of-sale .pos-partner-create-container .right-block{
+    display: inline-block;
+    width:49%;
+    margin:0;
+    padding:0;
+    text-align:right;
+}
+.point-of-sale .pos-partner-create-container table {
+    width: 100%;
+    margin-bottom: 20px;
+}
+.point-of-sale .pos-partner-create-container td {
+    vertical-align: middle;
+}
+.point-of-sale .pos-partner-create-container .partner-createline-type {
+    font-size: 1em;
+    font-weight: bold;
+    margin-right:10px;
+}