blob: b081ed4414bd9eaf6b454f6bc2635a1c0ccc22f5 [file] [log] [blame]
Faris Ansari6e7db032017-08-10 11:22:03 +05301@import "../../../../frappe/frappe/public/less/variables.less";
2
Faris Ansarid733b7d2017-08-27 13:56:33 +05303[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 Ansari6e7db032017-08-10 11:22:03 +053013.pos {
14 // display: flex;
15 padding: 15px;
16}
17
Faris Ansarid733b7d2017-08-27 13:56:33 +053018.list-item {
19 min-height: 40px;
20 height: auto;
21}
22
Faris Ansari03e7ec22017-08-10 17:17:34 +053023.cart-container {
Faris Ansari6e7db032017-08-10 11:22:03 +053024 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 Ansaria0f86872017-08-10 18:28:05 +053039.search-field {
40 width: 60%;
41
42 input::placeholder {
43 font-size: @text-medium;
44 }
45}
46
Faris Ansari6e7db032017-08-10 11:22:03 +053047.item-group-field {
Faris Ansaria0f86872017-08-10 18:28:05 +053048 width: 40%;
Faris Ansari6e7db032017-08-10 11:22:03 +053049 margin-left: 15px;
50}
51
52.cart-wrapper {
Rushabh Mehta01545382017-11-29 16:42:02 +053053 margin-bottom: 12px;
Faris Ansari6e7db032017-08-10 11:22:03 +053054 .list-item__content:not(:first-child) {
55 justify-content: flex-end;
56 }
Faris Ansari6d2f6c22017-08-23 16:25:16 +053057
58 .list-item--head .list-item__content:nth-child(2) {
59 flex: 1.5;
60 }
Faris Ansari6e7db032017-08-10 11:22:03 +053061}
62
63.cart-items {
Faris Ansarid733b7d2017-08-27 13:56:33 +053064 height: 150px;
Faris Ansari6e7db032017-08-10 11:22:03 +053065 overflow: auto;
Faris Ansari0f3d4312017-08-14 18:25:59 +053066
Faris Ansari26df5b82017-08-23 13:12:12 +053067 .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 Ansari6d2f6c22017-08-23 16:25:16 +053084 .list-item .quantity {
85 flex: 1.5;
86 }
87
Faris Ansari0f3d4312017-08-14 18:25:59 +053088 input {
Faris Ansari6d2f6c22017-08-23 16:25:16 +053089 text-align: right;
Faris Ansari0f3d4312017-08-14 18:25:59 +053090 height: 22px;
91 font-size: @text-medium;
92 }
Faris Ansari6e7db032017-08-10 11:22:03 +053093}
94
95.fields {
96 display: flex;
97}
98
99.pos-items-wrapper {
100 max-height: 480px;
Faris Ansari7bcb1cf2017-08-11 15:49:23 +0530101 overflow-y: auto;
102}
103
104.pos-items {
105 overflow: hidden;
Faris Ansari6e7db032017-08-10 11:22:03 +0530106}
107
108.pos-item-wrapper {
Faris Ansaria0f86872017-08-10 18:28:05 +0530109 display: flex;
110 flex-direction: column;
Faris Ansari655f86d2017-08-29 14:27:01 +0530111 position: relative;
112 width: 25%;
Faris Ansari6e7db032017-08-10 11:22:03 +0530113}
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 Ansari0f3d4312017-08-14 18:25:59 +0530135}
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
146input[type=number]::-webkit-inner-spin-button,
147input[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 Ansari0f3d4312017-08-14 18:25:59 +0530158}
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 Ansari26df5b82017-08-23 13:12:12 +0530172
173 &.active {
174 background-color: @light-yellow;
175 }
176
177 &.brand-primary {
178 background-color: @brand-primary;
179 color: #ffffff;
180 }
Faris Ansarid733b7d2017-08-27 13:56:33 +0530181}
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 Waghchaure5c4f52c2018-01-18 15:43:35 +0530219 font-size: 18px;
Faris Ansarid733b7d2017-08-27 13:56:33 +0530220 }
Rohit Waghchaure5c4f52c2018-01-18 15:43:35 +0530221}
222
223.rounded-total-value {
224 font-size: 18px;
pawan83b1b802018-02-08 19:56:12 +0530225}
226
227.quantity-total {
228 font-size: 18px;
Faris Ansari6e7db032017-08-10 11:22:03 +0530229}