Opcja przesuwania potraf w modalu szczegółow
This commit is contained in:
@@ -1256,4 +1256,158 @@ header {
|
||||
content: " zł";
|
||||
font-size: 12px;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
/* --- ITEM MODAL --- */
|
||||
.item-modal-content {
|
||||
position: relative;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
max-width: 380px;
|
||||
touch-action: pan-y;
|
||||
}
|
||||
|
||||
.item-modal-pane {
|
||||
transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.34s ease;
|
||||
will-change: transform, opacity;
|
||||
}
|
||||
|
||||
.item-modal-pane.is-dragging {
|
||||
transition: none;
|
||||
}
|
||||
|
||||
.item-modal-pane.is-exiting-left {
|
||||
transform: translateX(-18%);
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.item-modal-pane.is-exiting-right {
|
||||
transform: translateX(18%);
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.item-modal-pane.is-entering-from-right {
|
||||
transition: none;
|
||||
transform: translateX(18%);
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.item-modal-pane.is-entering-from-left {
|
||||
transition: none;
|
||||
transform: translateX(-18%);
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.item-modal-image-wrap {
|
||||
position: relative;
|
||||
height: 240px;
|
||||
background: var(--surface-light);
|
||||
}
|
||||
|
||||
.item-modal-image {
|
||||
width: 100%;
|
||||
height: 240px;
|
||||
object-fit: cover;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.menu-image-placeholder {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 10px;
|
||||
color: var(--text-muted);
|
||||
background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.15));
|
||||
}
|
||||
|
||||
.menu-image-placeholder span {
|
||||
font-size: 13px;
|
||||
letter-spacing: 0.02em;
|
||||
}
|
||||
|
||||
.menu-image-placeholder.hidden,
|
||||
.item-modal-image.hidden,
|
||||
.rmc-image.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.rmc-image-wrap {
|
||||
position: relative;
|
||||
width: 90px;
|
||||
height: 90px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.rmc-image-wrap .menu-image-placeholder {
|
||||
border-radius: 12px;
|
||||
}
|
||||
|
||||
.rmc-image-wrap .menu-image-placeholder svg {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
}
|
||||
|
||||
.rmc-image-wrap .menu-image-placeholder span {
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.item-modal-close {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
right: 15px;
|
||||
z-index: 12;
|
||||
color: #fff;
|
||||
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
|
||||
font-size: 32px;
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.item-modal-body {
|
||||
padding: 24px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.item-modal-meta {
|
||||
min-height: 18px;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
.item-modal-counter {
|
||||
font-size: 12px;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.item-modal-title {
|
||||
margin: 0 0 8px;
|
||||
color: var(--text-main);
|
||||
font-family: 'Playfair Display', serif;
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
.item-modal-price {
|
||||
color: var(--primary);
|
||||
font-weight: 700;
|
||||
font-size: 20px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.item-modal-desc {
|
||||
color: var(--text-muted);
|
||||
font-size: 15px;
|
||||
line-height: 1.6;
|
||||
margin: 0 0 24px;
|
||||
}
|
||||
|
||||
.item-modal-close-btn {
|
||||
width: 100%;
|
||||
}
|
||||
Reference in New Issue
Block a user