v0.30: product pages, categories, sale prices and order status timeline
This commit is contained in:
@@ -250,7 +250,210 @@
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Цены со скидкой */
|
||||
.price-block {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 8px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.price-block__old {
|
||||
text-decoration: line-through;
|
||||
color: #9ca3af;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.price-block__sale,
|
||||
.price-block__current {
|
||||
font-size: 1.25rem;
|
||||
font-weight: 700;
|
||||
color: #ef4444;
|
||||
}
|
||||
|
||||
.price-block--lg .price-block__sale,
|
||||
.price-block--lg .price-block__current {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
.price-block__badge {
|
||||
background: #fef2f2;
|
||||
color: #b91c1c;
|
||||
padding: 4px 10px;
|
||||
border-radius: 100px;
|
||||
font-size: 0.85rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* Страница товара */
|
||||
.breadcrumb {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
font-size: 0.875rem;
|
||||
color: #6b7280;
|
||||
margin-bottom: 24px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.breadcrumb a {
|
||||
color: #4f46e5;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.product-detail {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 40px;
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
|
||||
.product-detail__main {
|
||||
width: 100%;
|
||||
border-radius: 16px;
|
||||
border: 1px solid #e5e7eb;
|
||||
}
|
||||
|
||||
.product-detail__thumbs {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
margin-top: 12px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.product-detail__thumbs img {
|
||||
width: 72px;
|
||||
height: 72px;
|
||||
object-fit: cover;
|
||||
border-radius: 8px;
|
||||
border: 1px solid #e5e7eb;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.product-detail__cat {
|
||||
color: #4f46e5;
|
||||
text-decoration: none;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.product-detail__info h1 {
|
||||
font-size: 2rem;
|
||||
margin: 12px 0 20px;
|
||||
}
|
||||
|
||||
.product-detail__short {
|
||||
color: #6b7280;
|
||||
margin: 20px 0;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.product-detail__buy {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.qty-input {
|
||||
width: 72px;
|
||||
padding: 12px;
|
||||
border: 1px solid #e5e7eb;
|
||||
border-radius: 10px;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.product-detail__html {
|
||||
line-height: 1.7;
|
||||
color: #374151;
|
||||
}
|
||||
|
||||
.product-detail__html h1,
|
||||
.product-detail__html h2,
|
||||
.product-detail__html h3 {
|
||||
margin: 1em 0 0.5em;
|
||||
}
|
||||
|
||||
/* Статусы заказов */
|
||||
.order-card__head {
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.order-card__date {
|
||||
display: block;
|
||||
font-size: 0.8rem;
|
||||
color: #9ca3af;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.order-status {
|
||||
padding: 6px 14px;
|
||||
border-radius: 100px;
|
||||
font-size: 0.8rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.status--new { background: #dbeafe; color: #1d4ed8; }
|
||||
.status--confirmed { background: #e0e7ff; color: #4338ca; }
|
||||
.status--processing { background: #ede9fe; color: #6d28d9; }
|
||||
.status--shipped { background: #ffedd5; color: #c2410c; }
|
||||
.status--delivered { background: #d1fae5; color: #065f46; }
|
||||
.status--cancelled { background: #f3f4f6; color: #6b7280; }
|
||||
|
||||
.order-timeline {
|
||||
display: flex;
|
||||
gap: 4px;
|
||||
margin: 16px 0;
|
||||
padding: 16px 0;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.order-timeline__step {
|
||||
flex: 1;
|
||||
min-width: 80px;
|
||||
text-align: center;
|
||||
position: relative;
|
||||
opacity: 0.35;
|
||||
}
|
||||
|
||||
.order-timeline__step--done,
|
||||
.order-timeline__step--current {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.order-timeline__dot {
|
||||
display: block;
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
border-radius: 50%;
|
||||
background: #d1d5db;
|
||||
margin: 0 auto 8px;
|
||||
}
|
||||
|
||||
.order-timeline__step--done .order-timeline__dot {
|
||||
background: #10b981;
|
||||
}
|
||||
|
||||
.order-timeline__step--current .order-timeline__dot {
|
||||
background: #4f46e5;
|
||||
box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2);
|
||||
}
|
||||
|
||||
.order-timeline__label {
|
||||
font-size: 0.7rem;
|
||||
color: #6b7280;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.admin-form--row {
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
align-items: flex-end;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.product-detail {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
.cart-layout,
|
||||
.checkout-layout,
|
||||
.account-layout {
|
||||
|
||||
@@ -337,8 +337,33 @@ body {
|
||||
transition: transform 0.3s;
|
||||
}
|
||||
|
||||
.product-card:hover .product-card__image img {
|
||||
transform: scale(1.05);
|
||||
.product-card {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.product-card__link {
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.product-card__cart {
|
||||
padding: 0 20px 20px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.product-card__sale {
|
||||
position: absolute;
|
||||
top: 12px;
|
||||
right: 12px;
|
||||
background: #ef4444;
|
||||
color: #fff;
|
||||
padding: 4px 8px;
|
||||
border-radius: 6px;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.product-card__badge {
|
||||
|
||||
Reference in New Issue
Block a user