brotherton-erpnext/erpnext/public/less/pos.less

229 lines
3.1 KiB
Plaintext
Raw Normal View History

2017-08-10 05:52:03 +00:00
@import "../../../../frappe/frappe/public/less/variables.less";
2017-08-27 08:26:33 +00:00
[data-route="point-of-sale"] {
.layout-main-section-wrapper {
margin-bottom: 0;
}
.pos-items-wrapper {
max-height: ~"calc(100vh - 210px)";
}
}
2017-08-10 05:52:03 +00:00
.pos {
// display: flex;
padding: 15px;
}
2017-08-27 08:26:33 +00:00
.list-item {
min-height: 40px;
height: auto;
}
.cart-container {
2017-08-10 05:52:03 +00:00
padding: 0 15px;
// flex: 2;
display: inline-block;
width: 39%;
vertical-align: top;
}
.item-container {
padding: 0 15px;
// flex: 3;
display: inline-block;
width: 60%;
vertical-align: top;
}
2017-08-10 12:58:05 +00:00
.search-field {
width: 60%;
input::placeholder {
font-size: @text-medium;
}
}
2017-08-10 05:52:03 +00:00
.item-group-field {
2017-08-10 12:58:05 +00:00
width: 40%;
2017-08-10 05:52:03 +00:00
margin-left: 15px;
}
.cart-wrapper {
2017-11-29 11:12:02 +00:00
margin-bottom: 12px;
2017-08-10 05:52:03 +00:00
.list-item__content:not(:first-child) {
justify-content: flex-end;
}
2017-08-23 10:55:16 +00:00
.list-item--head .list-item__content:nth-child(2) {
flex: 1.5;
}
2017-08-10 05:52:03 +00:00
}
.cart-items {
2017-08-27 08:26:33 +00:00
height: 150px;
2017-08-10 05:52:03 +00:00
overflow: auto;
2017-08-23 07:42:12 +00:00
.list-item.current-item {
background-color: @light-yellow;
}
.list-item.current-item.qty input {
border: 1px solid @brand-primary;
font-weight: bold;
}
.list-item.current-item.disc .discount {
font-weight: bold;
}
.list-item.current-item.rate .rate {
font-weight: bold;
}
2017-08-23 10:55:16 +00:00
.list-item .quantity {
flex: 1.5;
}
input {
2017-08-23 10:55:16 +00:00
text-align: right;
height: 22px;
font-size: @text-medium;
}
2017-08-10 05:52:03 +00:00
}
.fields {
display: flex;
}
.pos-items-wrapper {
max-height: 480px;
2017-08-11 10:19:23 +00:00
overflow-y: auto;
}
.pos-items {
overflow: hidden;
2017-08-10 05:52:03 +00:00
}
.pos-item-wrapper {
2017-08-10 12:58:05 +00:00
display: flex;
flex-direction: column;
2017-08-29 08:57:01 +00:00
position: relative;
width: 25%;
2017-08-10 05:52:03 +00:00
}
.image-view-container {
display: block;
}
.image-view-container .image-field {
height: auto;
}
.empty-state {
height: 100%;
position: relative;
span {
position: absolute;
color: @text-muted;
font-size: @text-medium;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
}
@keyframes yellow-fade {
0% {background-color: @light-yellow;}
100% {background-color: transparent;}
}
.highlight {
animation: yellow-fade 1s ease-in 1;
}
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}
// number pad
.number-pad {
border-collapse: collapse;
cursor: pointer;
display: table;
}
.num-row {
display: table-row;
}
.num-col {
display: table-cell;
border: 1px solid @border-color;
& > div {
width: 50px;
height: 50px;
text-align: center;
line-height: 50px;
}
2017-08-23 07:42:12 +00:00
&.active {
background-color: @light-yellow;
}
&.brand-primary {
background-color: @brand-primary;
color: #ffffff;
}
2017-08-27 08:26:33 +00:00
}
// taxes, totals and discount area
.discount-amount {
.discount-inputs {
display: flex;
flex-direction: column;
padding: 15px 0;
}
input:first-child {
margin-bottom: 10px;
}
}
.taxes-and-totals {
border-top: 1px solid @border-color;
.taxes {
display: flex;
flex-direction: column;
padding: 15px 0;
align-items: flex-end;
& > div:first-child {
margin-bottom: 10px;
}
}
}
.grand-total {
border-top: 1px solid @border-color;
.list-item {
height: 60px;
}
.grand-total-value {
2018-01-18 10:13:35 +00:00
font-size: 18px;
2017-08-27 08:26:33 +00:00
}
2018-01-18 10:13:35 +00:00
}
.rounded-total-value {
font-size: 18px;
2018-02-08 14:26:12 +00:00
}
.quantity-total {
font-size: 18px;
2017-08-10 05:52:03 +00:00
}