Faris Ansari | 6e7db03 | 2017-08-10 11:22:03 +0530 | [diff] [blame] | 1 | @import "../../../../frappe/frappe/public/less/variables.less"; |
| 2 | |
| 3 | .pos { |
| 4 | // display: flex; |
| 5 | padding: 15px; |
| 6 | } |
| 7 | |
Faris Ansari | 03e7ec2 | 2017-08-10 17:17:34 +0530 | [diff] [blame] | 8 | .cart-container { |
Faris Ansari | 6e7db03 | 2017-08-10 11:22:03 +0530 | [diff] [blame] | 9 | padding: 0 15px; |
| 10 | // flex: 2; |
| 11 | display: inline-block; |
| 12 | width: 39%; |
| 13 | vertical-align: top; |
| 14 | } |
| 15 | |
| 16 | .item-container { |
| 17 | padding: 0 15px; |
| 18 | // flex: 3; |
| 19 | display: inline-block; |
| 20 | width: 60%; |
| 21 | vertical-align: top; |
| 22 | } |
| 23 | |
Faris Ansari | a0f8687 | 2017-08-10 18:28:05 +0530 | [diff] [blame] | 24 | .search-field { |
| 25 | width: 60%; |
| 26 | |
| 27 | input::placeholder { |
| 28 | font-size: @text-medium; |
| 29 | } |
| 30 | } |
| 31 | |
Faris Ansari | 6e7db03 | 2017-08-10 11:22:03 +0530 | [diff] [blame] | 32 | .item-group-field { |
Faris Ansari | a0f8687 | 2017-08-10 18:28:05 +0530 | [diff] [blame] | 33 | width: 40%; |
Faris Ansari | 6e7db03 | 2017-08-10 11:22:03 +0530 | [diff] [blame] | 34 | margin-left: 15px; |
| 35 | } |
| 36 | |
| 37 | .cart-wrapper { |
Faris Ansari | 0f3d431 | 2017-08-14 18:25:59 +0530 | [diff] [blame] | 38 | margin-bottom: 10px; |
Faris Ansari | 6e7db03 | 2017-08-10 11:22:03 +0530 | [diff] [blame] | 39 | .list-item__content:not(:first-child) { |
| 40 | justify-content: flex-end; |
| 41 | } |
Faris Ansari | 6d2f6c2 | 2017-08-23 16:25:16 +0530 | [diff] [blame] | 42 | |
| 43 | .list-item--head .list-item__content:nth-child(2) { |
| 44 | flex: 1.5; |
| 45 | } |
Faris Ansari | 6e7db03 | 2017-08-10 11:22:03 +0530 | [diff] [blame] | 46 | } |
| 47 | |
| 48 | .cart-items { |
| 49 | height: 200px; |
| 50 | overflow: auto; |
Faris Ansari | 0f3d431 | 2017-08-14 18:25:59 +0530 | [diff] [blame] | 51 | |
Faris Ansari | 26df5b8 | 2017-08-23 13:12:12 +0530 | [diff] [blame] | 52 | .list-item.current-item { |
| 53 | background-color: @light-yellow; |
| 54 | } |
| 55 | |
| 56 | .list-item.current-item.qty input { |
| 57 | border: 1px solid @brand-primary; |
| 58 | font-weight: bold; |
| 59 | } |
| 60 | |
| 61 | .list-item.current-item.disc .discount { |
| 62 | font-weight: bold; |
| 63 | } |
| 64 | |
| 65 | .list-item.current-item.rate .rate { |
| 66 | font-weight: bold; |
| 67 | } |
| 68 | |
Faris Ansari | 6d2f6c2 | 2017-08-23 16:25:16 +0530 | [diff] [blame] | 69 | .list-item .quantity { |
| 70 | flex: 1.5; |
| 71 | } |
| 72 | |
Faris Ansari | 0f3d431 | 2017-08-14 18:25:59 +0530 | [diff] [blame] | 73 | input { |
Faris Ansari | 6d2f6c2 | 2017-08-23 16:25:16 +0530 | [diff] [blame] | 74 | text-align: right; |
Faris Ansari | 0f3d431 | 2017-08-14 18:25:59 +0530 | [diff] [blame] | 75 | height: 22px; |
| 76 | font-size: @text-medium; |
| 77 | } |
Faris Ansari | 6e7db03 | 2017-08-10 11:22:03 +0530 | [diff] [blame] | 78 | } |
| 79 | |
| 80 | .fields { |
| 81 | display: flex; |
| 82 | } |
| 83 | |
| 84 | .pos-items-wrapper { |
| 85 | max-height: 480px; |
Faris Ansari | 7bcb1cf | 2017-08-11 15:49:23 +0530 | [diff] [blame] | 86 | overflow-y: auto; |
| 87 | } |
| 88 | |
| 89 | .pos-items { |
| 90 | overflow: hidden; |
Faris Ansari | 6e7db03 | 2017-08-10 11:22:03 +0530 | [diff] [blame] | 91 | } |
| 92 | |
| 93 | .pos-item-wrapper { |
Faris Ansari | a0f8687 | 2017-08-10 18:28:05 +0530 | [diff] [blame] | 94 | display: flex; |
| 95 | flex-direction: column; |
| 96 | justify-content: space-between; |
Faris Ansari | 6e7db03 | 2017-08-10 11:22:03 +0530 | [diff] [blame] | 97 | } |
| 98 | |
| 99 | .image-view-container { |
| 100 | display: block; |
| 101 | } |
| 102 | |
| 103 | .image-view-container .image-field { |
| 104 | height: auto; |
| 105 | } |
| 106 | |
| 107 | .empty-state { |
| 108 | height: 100%; |
| 109 | position: relative; |
| 110 | |
| 111 | span { |
| 112 | position: absolute; |
| 113 | color: @text-muted; |
| 114 | font-size: @text-medium; |
| 115 | top: 50%; |
| 116 | left: 50%; |
| 117 | transform: translate(-50%, -50%); |
| 118 | } |
Faris Ansari | 0f3d431 | 2017-08-14 18:25:59 +0530 | [diff] [blame] | 119 | } |
| 120 | |
| 121 | @keyframes yellow-fade { |
| 122 | 0% {background-color: @light-yellow;} |
| 123 | 100% {background-color: transparent;} |
| 124 | } |
| 125 | |
| 126 | .highlight { |
| 127 | animation: yellow-fade 1s ease-in 1; |
| 128 | } |
| 129 | |
| 130 | input[type=number]::-webkit-inner-spin-button, |
| 131 | input[type=number]::-webkit-outer-spin-button { |
| 132 | -webkit-appearance: none; |
| 133 | margin: 0; |
| 134 | } |
| 135 | |
| 136 | // number pad |
| 137 | |
| 138 | .number-pad { |
| 139 | border-collapse: collapse; |
| 140 | cursor: pointer; |
| 141 | display: table; |
| 142 | margin: auto; |
| 143 | } |
| 144 | .num-row { |
| 145 | display: table-row; |
| 146 | } |
| 147 | .num-col { |
| 148 | display: table-cell; |
| 149 | border: 1px solid @border-color; |
| 150 | |
| 151 | & > div { |
| 152 | width: 50px; |
| 153 | height: 50px; |
| 154 | text-align: center; |
| 155 | line-height: 50px; |
| 156 | } |
Faris Ansari | 26df5b8 | 2017-08-23 13:12:12 +0530 | [diff] [blame] | 157 | |
| 158 | &.active { |
| 159 | background-color: @light-yellow; |
| 160 | } |
| 161 | |
| 162 | &.brand-primary { |
| 163 | background-color: @brand-primary; |
| 164 | color: #ffffff; |
| 165 | } |
Faris Ansari | 6e7db03 | 2017-08-10 11:22:03 +0530 | [diff] [blame] | 166 | } |