mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-01-01 05:04:28 +01:00
POS: Unify item display (#5252)
Display unifications for static and cart view.
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
: item.BuyButtonText;
|
||||
buttonText = buttonText.Replace("{0}", formatted).Replace("{Price}", formatted);
|
||||
|
||||
<div class="col">
|
||||
<div class="col posItem posItem--displayed">
|
||||
<div class="card h-100 px-0" data-id="@x">
|
||||
@if (!string.IsNullOrWhiteSpace(item.Image))
|
||||
{
|
||||
|
||||
@@ -81,53 +81,6 @@ header .cart-toggle-btn {
|
||||
min-width: 1.75em;
|
||||
}
|
||||
|
||||
.card-img-top {
|
||||
max-height: 210px;
|
||||
object-fit: scale-down;
|
||||
}
|
||||
|
||||
.posItem {
|
||||
display: none;
|
||||
position: relative;
|
||||
}
|
||||
.posItem.posItem--inStock {
|
||||
cursor: pointer;
|
||||
}
|
||||
.posItem-added {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: var(--btcpay-success);
|
||||
color: var(--btcpay-success-text);
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transition: opacity var(--btcpay-transition-duration-default) ease-in-out;
|
||||
}
|
||||
.posItem-added .icon {
|
||||
width: 2rem;
|
||||
height: 2rem;
|
||||
}
|
||||
.posItem--added {
|
||||
pointer-events: none;
|
||||
}
|
||||
.posItem--added .posItem-added {
|
||||
opacity: .8;
|
||||
}
|
||||
.posItem--displayed {
|
||||
display: flex;
|
||||
}
|
||||
.posItem--first {
|
||||
margin-left: auto;
|
||||
}
|
||||
.posItem--last {
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
@media (max-width: 991px) {
|
||||
#cart {
|
||||
left: 0;
|
||||
|
||||
@@ -6,3 +6,55 @@
|
||||
.lead :last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.posItem {
|
||||
display: none;
|
||||
position: relative;
|
||||
}
|
||||
.posItem.posItem--inStock {
|
||||
cursor: pointer;
|
||||
}
|
||||
.posItem-added {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: var(--btcpay-success);
|
||||
color: var(--btcpay-success-text);
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transition: opacity var(--btcpay-transition-duration-default) ease-in-out;
|
||||
}
|
||||
.posItem-added .icon {
|
||||
width: 2rem;
|
||||
height: 2rem;
|
||||
}
|
||||
.posItem--added {
|
||||
pointer-events: none;
|
||||
}
|
||||
.posItem--added .posItem-added {
|
||||
opacity: .8;
|
||||
}
|
||||
.posItem--displayed {
|
||||
display: flex;
|
||||
}
|
||||
.posItem--first {
|
||||
margin-left: auto;
|
||||
}
|
||||
.posItem--last {
|
||||
margin-right: auto;
|
||||
}
|
||||
.posItem .card {
|
||||
width: 100%;
|
||||
}
|
||||
.posItem .card .card-body {
|
||||
flex-grow: 0;
|
||||
}
|
||||
.posItem .card .card-img-top {
|
||||
max-height: 210px;
|
||||
object-fit: scale-down;
|
||||
margin-bottom: auto;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user