Faris Ansari | 6e7db03 | 2017-08-10 11:22:03 +0530 | [diff] [blame] | 1 | @import "../../../../frappe/frappe/public/less/variables.less"; |
| 2 | |
Faris Ansari | d733b7d | 2017-08-27 13:56:33 +0530 | [diff] [blame] | 3 | [data-route="point-of-sale"] { |
| 4 | .layout-main-section-wrapper { |
| 5 | margin-bottom: 0; |
| 6 | } |
| 7 | |
| 8 | .pos-items-wrapper { |
| 9 | max-height: ~"calc(100vh - 210px)"; |
| 10 | } |
| 11 | } |
| 12 | |
Faris Ansari | 6e7db03 | 2017-08-10 11:22:03 +0530 | [diff] [blame] | 13 | .pos { |
| 14 | // display: flex; |
| 15 | padding: 15px; |
| 16 | } |
| 17 | |
Faris Ansari | d733b7d | 2017-08-27 13:56:33 +0530 | [diff] [blame] | 18 | .list-item { |
| 19 | min-height: 40px; |
| 20 | height: auto; |
| 21 | } |
| 22 | |
Faris Ansari | 03e7ec2 | 2017-08-10 17:17:34 +0530 | [diff] [blame] | 23 | .cart-container { |
Faris Ansari | 6e7db03 | 2017-08-10 11:22:03 +0530 | [diff] [blame] | 24 | padding: 0 15px; |
| 25 | // flex: 2; |
| 26 | display: inline-block; |
| 27 | width: 39%; |
| 28 | vertical-align: top; |
| 29 | } |
| 30 | |
| 31 | .item-container { |
| 32 | padding: 0 15px; |
| 33 | // flex: 3; |
| 34 | display: inline-block; |
| 35 | width: 60%; |
| 36 | vertical-align: top; |
| 37 | } |
| 38 | |
Faris Ansari | a0f8687 | 2017-08-10 18:28:05 +0530 | [diff] [blame] | 39 | .search-field { |
| 40 | width: 60%; |
| 41 | |
| 42 | input::placeholder { |
| 43 | font-size: @text-medium; |
| 44 | } |
| 45 | } |
| 46 | |
Faris Ansari | 6e7db03 | 2017-08-10 11:22:03 +0530 | [diff] [blame] | 47 | .item-group-field { |
Faris Ansari | a0f8687 | 2017-08-10 18:28:05 +0530 | [diff] [blame] | 48 | width: 40%; |
Faris Ansari | 6e7db03 | 2017-08-10 11:22:03 +0530 | [diff] [blame] | 49 | margin-left: 15px; |
| 50 | } |
| 51 | |
| 52 | .cart-wrapper { |
Rushabh Mehta | 0154538 | 2017-11-29 16:42:02 +0530 | [diff] [blame] | 53 | margin-bottom: 12px; |
Faris Ansari | 6e7db03 | 2017-08-10 11:22:03 +0530 | [diff] [blame] | 54 | .list-item__content:not(:first-child) { |
| 55 | justify-content: flex-end; |
| 56 | } |
Faris Ansari | 6d2f6c2 | 2017-08-23 16:25:16 +0530 | [diff] [blame] | 57 | |
| 58 | .list-item--head .list-item__content:nth-child(2) { |
| 59 | flex: 1.5; |
| 60 | } |
Faris Ansari | 6e7db03 | 2017-08-10 11:22:03 +0530 | [diff] [blame] | 61 | } |
| 62 | |
| 63 | .cart-items { |
Faris Ansari | d733b7d | 2017-08-27 13:56:33 +0530 | [diff] [blame] | 64 | height: 150px; |
Faris Ansari | 6e7db03 | 2017-08-10 11:22:03 +0530 | [diff] [blame] | 65 | overflow: auto; |
Faris Ansari | 0f3d431 | 2017-08-14 18:25:59 +0530 | [diff] [blame] | 66 | |
Faris Ansari | 26df5b8 | 2017-08-23 13:12:12 +0530 | [diff] [blame] | 67 | .list-item.current-item { |
| 68 | background-color: @light-yellow; |
| 69 | } |
| 70 | |
| 71 | .list-item.current-item.qty input { |
| 72 | border: 1px solid @brand-primary; |
| 73 | font-weight: bold; |
| 74 | } |
| 75 | |
| 76 | .list-item.current-item.disc .discount { |
| 77 | font-weight: bold; |
| 78 | } |
| 79 | |
| 80 | .list-item.current-item.rate .rate { |
| 81 | font-weight: bold; |
| 82 | } |
| 83 | |
Faris Ansari | 6d2f6c2 | 2017-08-23 16:25:16 +0530 | [diff] [blame] | 84 | .list-item .quantity { |
| 85 | flex: 1.5; |
| 86 | } |
| 87 | |
Faris Ansari | 0f3d431 | 2017-08-14 18:25:59 +0530 | [diff] [blame] | 88 | input { |
Faris Ansari | 6d2f6c2 | 2017-08-23 16:25:16 +0530 | [diff] [blame] | 89 | text-align: right; |
Faris Ansari | 0f3d431 | 2017-08-14 18:25:59 +0530 | [diff] [blame] | 90 | height: 22px; |
| 91 | font-size: @text-medium; |
| 92 | } |
Faris Ansari | 6e7db03 | 2017-08-10 11:22:03 +0530 | [diff] [blame] | 93 | } |
| 94 | |
| 95 | .fields { |
| 96 | display: flex; |
| 97 | } |
| 98 | |
| 99 | .pos-items-wrapper { |
| 100 | max-height: 480px; |
Faris Ansari | 7bcb1cf | 2017-08-11 15:49:23 +0530 | [diff] [blame] | 101 | overflow-y: auto; |
| 102 | } |
| 103 | |
| 104 | .pos-items { |
| 105 | overflow: hidden; |
Faris Ansari | 6e7db03 | 2017-08-10 11:22:03 +0530 | [diff] [blame] | 106 | } |
| 107 | |
| 108 | .pos-item-wrapper { |
Faris Ansari | a0f8687 | 2017-08-10 18:28:05 +0530 | [diff] [blame] | 109 | display: flex; |
| 110 | flex-direction: column; |
Faris Ansari | 655f86d | 2017-08-29 14:27:01 +0530 | [diff] [blame] | 111 | position: relative; |
| 112 | width: 25%; |
Faris Ansari | 6e7db03 | 2017-08-10 11:22:03 +0530 | [diff] [blame] | 113 | } |
| 114 | |
| 115 | .image-view-container { |
| 116 | display: block; |
| 117 | } |
| 118 | |
| 119 | .image-view-container .image-field { |
| 120 | height: auto; |
| 121 | } |
| 122 | |
| 123 | .empty-state { |
| 124 | height: 100%; |
| 125 | position: relative; |
| 126 | |
| 127 | span { |
| 128 | position: absolute; |
| 129 | color: @text-muted; |
| 130 | font-size: @text-medium; |
| 131 | top: 50%; |
| 132 | left: 50%; |
| 133 | transform: translate(-50%, -50%); |
| 134 | } |
Faris Ansari | 0f3d431 | 2017-08-14 18:25:59 +0530 | [diff] [blame] | 135 | } |
| 136 | |
| 137 | @keyframes yellow-fade { |
| 138 | 0% {background-color: @light-yellow;} |
| 139 | 100% {background-color: transparent;} |
| 140 | } |
| 141 | |
| 142 | .highlight { |
| 143 | animation: yellow-fade 1s ease-in 1; |
| 144 | } |
| 145 | |
| 146 | input[type=number]::-webkit-inner-spin-button, |
| 147 | input[type=number]::-webkit-outer-spin-button { |
| 148 | -webkit-appearance: none; |
| 149 | margin: 0; |
| 150 | } |
| 151 | |
| 152 | // number pad |
| 153 | |
| 154 | .number-pad { |
| 155 | border-collapse: collapse; |
| 156 | cursor: pointer; |
| 157 | display: table; |
Faris Ansari | 0f3d431 | 2017-08-14 18:25:59 +0530 | [diff] [blame] | 158 | } |
| 159 | .num-row { |
| 160 | display: table-row; |
| 161 | } |
| 162 | .num-col { |
| 163 | display: table-cell; |
| 164 | border: 1px solid @border-color; |
| 165 | |
| 166 | & > div { |
| 167 | width: 50px; |
| 168 | height: 50px; |
| 169 | text-align: center; |
| 170 | line-height: 50px; |
| 171 | } |
Faris Ansari | 26df5b8 | 2017-08-23 13:12:12 +0530 | [diff] [blame] | 172 | |
| 173 | &.active { |
| 174 | background-color: @light-yellow; |
| 175 | } |
| 176 | |
| 177 | &.brand-primary { |
| 178 | background-color: @brand-primary; |
| 179 | color: #ffffff; |
| 180 | } |
Faris Ansari | d733b7d | 2017-08-27 13:56:33 +0530 | [diff] [blame] | 181 | } |
| 182 | |
| 183 | // taxes, totals and discount area |
| 184 | .discount-amount { |
| 185 | .discount-inputs { |
| 186 | display: flex; |
| 187 | flex-direction: column; |
| 188 | padding: 15px 0; |
| 189 | } |
| 190 | |
| 191 | input:first-child { |
| 192 | margin-bottom: 10px; |
| 193 | } |
| 194 | } |
| 195 | |
| 196 | .taxes-and-totals { |
| 197 | border-top: 1px solid @border-color; |
| 198 | |
| 199 | .taxes { |
| 200 | display: flex; |
| 201 | flex-direction: column; |
| 202 | padding: 15px 0; |
| 203 | align-items: flex-end; |
| 204 | |
| 205 | & > div:first-child { |
| 206 | margin-bottom: 10px; |
| 207 | } |
| 208 | } |
| 209 | } |
| 210 | |
| 211 | .grand-total { |
| 212 | border-top: 1px solid @border-color; |
| 213 | |
| 214 | .list-item { |
| 215 | height: 60px; |
| 216 | } |
| 217 | |
| 218 | .grand-total-value { |
Rohit Waghchaure | 5c4f52c | 2018-01-18 15:43:35 +0530 | [diff] [blame] | 219 | font-size: 18px; |
Faris Ansari | d733b7d | 2017-08-27 13:56:33 +0530 | [diff] [blame] | 220 | } |
Rohit Waghchaure | 5c4f52c | 2018-01-18 15:43:35 +0530 | [diff] [blame] | 221 | } |
| 222 | |
| 223 | .rounded-total-value { |
| 224 | font-size: 18px; |
pawan | 83b1b80 | 2018-02-08 19:56:12 +0530 | [diff] [blame] | 225 | } |
| 226 | |
| 227 | .quantity-total { |
| 228 | font-size: 18px; |
Faris Ansari | 6e7db03 | 2017-08-10 11:22:03 +0530 | [diff] [blame] | 229 | } |