Merge branch 'master' of https://github.com/odoo/odoo
[odoo/odoo.git] / addons / pos_restaurant / static / src / css / restaurant.css
index 0ffebfc..24565e5 100644 (file)
@@ -1,2 +1,243 @@
 /* --- Restaurant Specific CSS --- */
 
+.screen .screen-content-flexbox {
+    margin:     0px auto;
+    max-width:  1024px;
+    text-align: left;
+    height:     100%;
+    overflow:   hidden;
+    position:   relative;
+    display:    -webkit-flex;
+    -webkit-flex-flow:  column nowrap;
+    flex-flow:  column nowrap;
+}
+
+/* ------ FLOOR SELECTOR ------- */
+
+.floor-selector { 
+    line-height: 48px;
+    font-size: 18px;
+    display: -webkit-flex;
+    display: flex;
+    text-align: center;
+    width: 100%;
+}
+.floor-selector .button {
+    cursor: pointer;
+    border-left: dashed 1px rgb(196,196,196);
+    -webkit-flex: 1;
+    flex: 1;
+}
+.floor-selector .button:first-child {
+    border-left: none;
+}
+.floor-selector .button.active {
+    background: #6EC89B;
+    color: white;
+}
+
+/* ------ FLOOR MAP ------- */
+
+.floor-map {
+    -webkit-flex: 1;
+    flex: 1;
+    position: relative;
+    width: auto;
+    height: 100%;
+    box-shadow: 0px 6px 0px -3px rgba(0,0,0,0.07) inset;
+    background: #D8D7D7;
+    background-repeat: no-repeat;
+    overflow: hidden;
+}
+
+@media screen and (min-width: 1024px) {
+    .floor-map {
+        margin: 8px;
+        border-radius: 3px;
+    }
+    .floor-selector {
+        margin: 8px;
+        margin-bottom: 0;
+        box-sizing: border-box;
+        width: auto;
+        border: none;
+    }
+    .floor-selector .button {
+        border-left: none;
+    }
+    .floor-selector .button.active{
+        border-radius: 3px;
+    }
+}
+
+.floor-map .table{
+    position: absolute;
+    text-align: center;
+    font-size: 18px;
+    color: white;
+    background: rgb(53, 211, 116);
+    border-radius: 3px;
+    cursor: pointer;
+    box-shadow: 0px 3px rgba(0,0,0,0.07);
+}
+.floor-map .table .label {
+    display: block;
+    max-height: 100%;
+    overflow: hidden;
+}
+.floor-map .table.selected {
+    outline: solid rgba(255,255,255,0.3);
+    cursor: move;
+    z-index: 50;
+}
+.floor-map .edit-button.editing {
+    position: absolute;
+    top: 0;
+    right: 0;
+    font-size: 20px;
+    margin: 4px;
+    line-height: 32px;
+    width: 32px;
+    text-align: center;
+    border-radius: 5px;
+    cursor: pointer;
+    border: solid 1px rgba(0,0,0,0.2);
+}
+.floor-map .edit-button.editing.active {
+    background: #444;
+    color: white;
+}
+.floor-map .edit-bar {
+    position: absolute;
+    top: 0;
+    right: 40px;
+    margin: 4px;
+    line-height: 32px;
+    text-align: center;
+    border-radius: 5px;
+    cursor: pointer;
+    font-size: 20px;
+    border: solid 1px rgba(0,0,0,0.2);
+    background: #F0EEEE;
+}
+.floor-map .edit-bar .edit-button {
+    position: relative;
+    width: 32px;
+    display: inline-block;
+    cursor: pointer;
+    margin-right: -4px;
+    border-right: solid 1px rgba(0,0,0,0.1);
+    transition: all 150ms linear;
+}
+.floor-map .edit-bar .edit-button.disabled {
+    opacity: 0.5;
+    border-right: solid 1px rgba(0,0,0,0.2);
+    cursor: default;
+}
+.floor-map .edit-bar .color-picker {
+    position: absolute;
+    left: -106px;
+    top: 40px;
+    width: 180px;
+    height: 180px;
+    border-radius: 3px;
+    z-index: 100;
+}
+.floor-map .edit-bar .color-picker .color {
+    display: block;
+    float: left;
+    cursor: pointer;
+    width: 60px;
+    height: 60px;
+    background-color: gray;
+}
+.floor-map .edit-bar .color-picker .color.tl {  border-top-left-radius: 3px; }
+.floor-map .edit-bar .color-picker .color.tr {  border-top-right-radius: 3px; }
+.floor-map .edit-bar .color-picker .color.bl {  border-bottom-left-radius: 3px; }
+.floor-map .edit-bar .color-picker .color.br {  border-bottom-right-radius: 3px; }
+
+.floor-map .edit-bar .close-picker {
+    position: absolute;
+    bottom: 0;
+    left: 50%;
+    margin-left: -16px;
+    margin-bottom: -16px;
+    width: 32px;
+    height: 32px;
+    line-height: 32px;
+    text-align: center;
+    font-size: 20px;
+    border-radius: 16px;
+    background: black;
+    color: white;
+    cursor: pointer;
+}
+
+.floor-map .edit-bar .edit-button:last-child {
+    margin-right: 0;
+    border-right: none;
+}
+
+.floor-map .table.selected .table-handle {
+    position: absolute;
+    width: 16px;
+    height: 16px;
+    left: 50%;
+    top: 50%;
+    border-radius: 8px;
+    margin-left: -8px;
+    margin-top:  -8px;
+    background: white;
+    box-shadow: 0px 2px 3px rgba(0,0,0,0.2);
+    cursor: grab;
+    transition: all 150ms linear;
+}
+.floor-map .table.selected .table-handle:hover {
+    width: 20px;
+    height: 20px;
+    border-radius: 10px;
+    margin-left: -10px;
+    margin-top: -10px;
+}
+.floor-map .table .table-handle.top {      top: 0;         }
+.floor-map .table .table-handle.bottom {   top: 100%;      }
+.floor-map .table .table-handle.left {     left: 0;        }
+.floor-map .table .table-handle.right {    left: 100%;     }
+
+.floor-map .table .order-count {
+    position: absolute;
+    top: 0;
+    left: 50%;
+    background: black;
+    width: 20px;
+    margin-top: -10px;
+    margin-left: -10px;
+    height: 20px;
+    line-height: 20px;
+    border-radius: 10px;
+    font-size: 16px;
+}
+.floor-map .table .order-count.notify-printing {
+    background: red;
+}
+
+
+/* ------ FLOOR BUTTON IN THE ORDER SELECTOR ------- */
+
+.pos .order-button.floor-button {
+    background: #6EC89B;
+    font-weight: bold;
+    font-size: 16px;
+    min-width: 128px;
+    padding-left: 16px;
+    padding-right: 16px;
+}
+.pos .order-button.floor-button .table-name {
+    font-weight: normal;
+}
+.pos .order-button.floor-button .fa{
+    font-size: 24px;
+}
+
+
+