blob: bcbd142dd11010c64daab645aacfc7838c0e21f1 [file] [log] [blame]
Faris Ansari6e7db032017-08-10 11:22:03 +05301@import "../../../../frappe/frappe/public/less/variables.less";
2
3.pos {
4 // display: flex;
5 padding: 15px;
6}
7
Faris Ansari03e7ec22017-08-10 17:17:34 +05308.cart-container {
Faris Ansari6e7db032017-08-10 11:22:03 +05309 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 Ansaria0f86872017-08-10 18:28:05 +053024.search-field {
25 width: 60%;
26
27 input::placeholder {
28 font-size: @text-medium;
29 }
30}
31
Faris Ansari6e7db032017-08-10 11:22:03 +053032.item-group-field {
Faris Ansaria0f86872017-08-10 18:28:05 +053033 width: 40%;
Faris Ansari6e7db032017-08-10 11:22:03 +053034 margin-left: 15px;
35}
36
37.cart-wrapper {
Faris Ansari0f3d4312017-08-14 18:25:59 +053038 margin-bottom: 10px;
Faris Ansari6e7db032017-08-10 11:22:03 +053039 .list-item__content:not(:first-child) {
40 justify-content: flex-end;
41 }
Faris Ansari6d2f6c22017-08-23 16:25:16 +053042
43 .list-item--head .list-item__content:nth-child(2) {
44 flex: 1.5;
45 }
Faris Ansari6e7db032017-08-10 11:22:03 +053046}
47
48.cart-items {
49 height: 200px;
50 overflow: auto;
Faris Ansari0f3d4312017-08-14 18:25:59 +053051
Faris Ansari26df5b82017-08-23 13:12:12 +053052 .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 Ansari6d2f6c22017-08-23 16:25:16 +053069 .list-item .quantity {
70 flex: 1.5;
71 }
72
Faris Ansari0f3d4312017-08-14 18:25:59 +053073 input {
Faris Ansari6d2f6c22017-08-23 16:25:16 +053074 text-align: right;
Faris Ansari0f3d4312017-08-14 18:25:59 +053075 height: 22px;
76 font-size: @text-medium;
77 }
Faris Ansari6e7db032017-08-10 11:22:03 +053078}
79
80.fields {
81 display: flex;
82}
83
84.pos-items-wrapper {
85 max-height: 480px;
Faris Ansari7bcb1cf2017-08-11 15:49:23 +053086 overflow-y: auto;
87}
88
89.pos-items {
90 overflow: hidden;
Faris Ansari6e7db032017-08-10 11:22:03 +053091}
92
93.pos-item-wrapper {
Faris Ansaria0f86872017-08-10 18:28:05 +053094 display: flex;
95 flex-direction: column;
96 justify-content: space-between;
Faris Ansari6e7db032017-08-10 11:22:03 +053097}
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 Ansari0f3d4312017-08-14 18:25:59 +0530119}
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
130input[type=number]::-webkit-inner-spin-button,
131input[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 Ansari26df5b82017-08-23 13:12:12 +0530157
158 &.active {
159 background-color: @light-yellow;
160 }
161
162 &.brand-primary {
163 background-color: @brand-primary;
164 color: #ffffff;
165 }
Faris Ansari6e7db032017-08-10 11:22:03 +0530166}