blob: 9653a82658599730b9389fd3b081fdb529d57fd5 [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 {
Faris Ansari0f3d4312017-08-14 18:25:59 +053053 margin-bottom: 10px;
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;
158 margin: auto;
159}
160.num-row {
161 display: table-row;
162}
163.num-col {
164 display: table-cell;
165 border: 1px solid @border-color;
166
167 & > div {
168 width: 50px;
169 height: 50px;
170 text-align: center;
171 line-height: 50px;
172 }
Faris Ansari26df5b82017-08-23 13:12:12 +0530173
174 &.active {
175 background-color: @light-yellow;
176 }
177
178 &.brand-primary {
179 background-color: @brand-primary;
180 color: #ffffff;
181 }
Faris Ansarid733b7d2017-08-27 13:56:33 +0530182}
183
184// taxes, totals and discount area
185.discount-amount {
186 .discount-inputs {
187 display: flex;
188 flex-direction: column;
189 padding: 15px 0;
190 }
191
192 input:first-child {
193 margin-bottom: 10px;
194 }
195}
196
197.taxes-and-totals {
198 border-top: 1px solid @border-color;
199
200 .taxes {
201 display: flex;
202 flex-direction: column;
203 padding: 15px 0;
204 align-items: flex-end;
205
206 & > div:first-child {
207 margin-bottom: 10px;
208 }
209 }
210}
211
212.grand-total {
213 border-top: 1px solid @border-color;
214
215 .list-item {
216 height: 60px;
217 }
218
219 .grand-total-value {
220 font-size: 24px;
221 }
Faris Ansari6e7db032017-08-10 11:22:03 +0530222}