swipe, zoeken op producten, beter toevoegen in lijsten

This commit is contained in:
2026-09-06 20:44:04 +02:00
parent ce07575d5e
commit a4d61ca26c
13 changed files with 437 additions and 157 deletions
+72 -4
View File
@@ -4,6 +4,11 @@ body {
.navbar {
margin-bottom: 25px;
position: sticky;
top: 0;
z-index: 1030;
background-color: #ffffff;
box-shadow: 0 1px 6px rgba(0, 0, 0, .08);
}
.card {
@@ -47,15 +52,78 @@ body {
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
gap: .5rem;
margin-top: 1.5rem;
align-items: stretch;
}
.list-check-button {
width: 2.5rem;
height: 2.5rem;
width: 3.25rem;
height: 3.25rem;
padding: 0;
font-size: 1.35rem;
font-size: 1.7rem;
line-height: 1;
flex-shrink: 0;
}
align-items: stretch;
.shopping-list-item {
position: relative;
z-index: 1;
cursor: pointer;
transition: transform .2s ease;
touch-action: pan-y;
}
.shopping-list-item:hover,
.shopping-list-item:focus-visible {
background-color: rgba(32, 107, 196, .06);
outline: none;
}
.list-item-amount {
margin-left: auto;
flex-shrink: 0;
}
.shopping-list-swipe {
position: relative;
overflow: hidden;
}
.swipe-action {
position: absolute;
inset: 0;
display: flex;
align-items: center;
width: 7rem;
padding: 0 1rem;
color: #fff;
font-weight: 600;
opacity: 0;
transition: opacity .15s ease;
gap: .4rem;
}
.shopping-list-swipe.is-swiping.swipe-left .swipe-action-check,
.shopping-list-swipe.is-swiping.swipe-right .swipe-action-delete {
opacity: 1;
}
.swipe-action-delete {
left: 0;
right: auto;
justify-content: flex-start;
background: #d63939;
}
.swipe-action-check {
right: 0;
left: auto;
justify-content: flex-end;
background: #2fb344;
}
.swipe-action-icon {
font-size: 1.5rem;
line-height: 1;
}
.product-actions form,