2 Commits

Author SHA1 Message Date
ed8fd89217 Merge remote-tracking branch 'origin/dev' into dev
All checks were successful
Build and Deploy / test-backend (push) Successful in 26s
PR Checks / security-sast (pull_request) Successful in 31s
Build and Deploy / test-frontend (push) Successful in 1m2s
PR Checks / prettier-autofix (pull_request) Successful in 8s
PR Checks / test-backend (pull_request) Successful in 30s
Build and Deploy / build-and-push (push) Successful in 28s
PR Checks / test-frontend (pull_request) Successful in 1m3s
Build and Deploy / deploy (push) Successful in 9s
2026-03-10 15:32:59 +01:00
58869be9f7 feat(front-end): css allert fix 2026-03-10 15:32:53 +01:00
6 changed files with 320 additions and 301 deletions

View File

@@ -61,8 +61,8 @@
}, },
{ {
"type": "anyComponentStyle", "type": "anyComponentStyle",
"maximumWarning": "10kB", "maximumWarning": "4kB",
"maximumError": "14kB" "maximumError": "8kB"
} }
] ]
}, },

View File

@@ -1,4 +1,4 @@
<div class="container ui-page-hero ui-page-hero--spacious"> <div class="container ui-page-hero ui-page-hero--spacious order-hero">
<h1 class="ui-page-title"> <h1 class="ui-page-title">
{{ "TRACKING.TITLE" | translate }} {{ "TRACKING.TITLE" | translate }}
<ng-container *ngIf="order()"> <ng-container *ngIf="order()">

View File

@@ -1,3 +1,7 @@
.order-hero {
padding-top: calc(var(--space-12) + var(--space-5));
}
.subtitle { .subtitle {
font-size: 1.125rem; font-size: 1.125rem;
} }
@@ -244,16 +248,17 @@
.status-timeline { .status-timeline {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
margin-bottom: var(--space-8); margin-top: var(--space-5);
margin-bottom: var(--space-10);
padding: 0 var(--space-2);
position: relative; position: relative;
/* padding: var(--space-6); */ /* Removed if it was here to match non-card layout */
&::before { &::before {
content: ""; content: "";
position: absolute; position: absolute;
top: 15px; top: 15px;
left: 12.5%; left: calc(12.5% + var(--space-2));
right: 12.5%; right: calc(12.5% + var(--space-2));
height: 2px; height: 2px;
background: var(--color-border); background: var(--color-border);
z-index: 1; z-index: 1;
@@ -279,13 +284,14 @@
align-items: center; align-items: center;
justify-content: center; justify-content: center;
font-weight: 600; font-weight: 600;
margin-bottom: var(--space-2); margin-bottom: var(--space-3);
color: var(--color-text-muted); color: var(--color-text-muted);
transition: all 0.3s ease; transition: all 0.3s ease;
} }
.label { .label {
font-size: 0.85rem; font-size: 0.85rem;
line-height: 1.2;
color: var(--color-text-muted); color: var(--color-text-muted);
font-weight: 500; font-weight: 500;
} }
@@ -315,7 +321,14 @@
} }
@media (max-width: 600px) { @media (max-width: 600px) {
.order-hero {
padding-top: calc(var(--space-8) + var(--space-4));
}
.status-timeline { .status-timeline {
margin-top: var(--space-4);
margin-bottom: var(--space-8);
padding: 0;
flex-direction: column; flex-direction: column;
align-items: flex-start; align-items: flex-start;
gap: var(--space-4); gap: var(--space-4);

View File

@@ -93,36 +93,6 @@
font-weight: 700; font-weight: 700;
} }
.hero-nav {
position: absolute;
top: 50%;
transform: translateY(-50%);
z-index: 2;
width: 2.2rem;
height: 2.2rem;
border-radius: 999px;
border: 1px solid rgba(16, 24, 32, 0.14);
background: rgba(255, 255, 255, 0.92);
color: var(--color-text);
font-size: 1.4rem;
line-height: 1;
display: grid;
place-items: center;
cursor: pointer;
}
.hero-nav:hover {
border-color: rgba(16, 24, 32, 0.28);
}
.hero-nav-prev {
left: 0.6rem;
}
.hero-nav-next {
right: 0.6rem;
}
.thumb-grid { .thumb-grid {
display: contents; display: contents;
} }
@@ -210,80 +180,6 @@
text-align: left; text-align: left;
} }
.viewer-state {
display: grid;
place-items: center;
min-height: 220px;
border-radius: var(--radius-lg);
background: rgba(16, 24, 32, 0.04);
color: var(--color-text-muted);
}
.viewer-state-error {
color: var(--color-danger-600);
}
.viewer-loading {
gap: 0.6rem;
}
.spinner {
width: 1.5rem;
height: 1.5rem;
border-radius: 50%;
border: 2px solid rgba(16, 24, 32, 0.16);
border-top-color: var(--color-secondary-600);
animation: spin 0.9s linear infinite;
}
.model-modal-backdrop {
position: fixed;
inset: 0;
z-index: 1100;
border: 0;
background: rgba(16, 24, 32, 0.36);
}
.model-modal {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: min(940px, calc(100vw - 2rem));
max-height: calc(100vh - 2rem);
display: grid;
grid-template-rows: auto 1fr;
gap: 0.9rem;
z-index: 1101;
padding: 1rem;
border-radius: 1rem;
border: 1px solid rgba(16, 24, 32, 0.16);
background: #fff;
box-shadow: 0 22px 40px rgba(16, 24, 32, 0.3);
}
.model-modal-head {
display: flex;
justify-content: space-between;
gap: var(--space-3);
align-items: start;
}
.model-close-btn {
width: 2rem;
height: 2rem;
border-radius: 999px;
border: 1px solid rgba(16, 24, 32, 0.16);
background: #fff;
cursor: pointer;
}
.model-modal-body {
min-height: 260px;
max-height: calc(100vh - 11rem);
overflow: auto;
}
.title-block { .title-block {
display: grid; display: grid;
gap: 0.4rem; gap: 0.4rem;
@@ -436,152 +332,6 @@ h1 {
border-left: 3px solid rgba(245, 158, 11, 0.7); border-left: 3px solid rgba(245, 158, 11, 0.7);
} }
.color-selector-block {
position: relative;
display: grid;
gap: 0.4rem;
padding: 0;
border-radius: 1rem;
border: 0;
background: transparent;
}
.selector-head {
display: block;
}
.color-trigger {
width: 100%;
max-width: 230px;
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.35rem 0.55rem;
border-radius: 0.72rem;
border: 1px solid rgba(16, 24, 32, 0.14);
background: #fff;
text-align: left;
cursor: pointer;
transition:
border-color 0.16s ease,
box-shadow 0.16s ease;
}
.color-trigger:hover {
border-color: rgba(16, 24, 32, 0.28);
}
.color-trigger.open {
border-color: rgba(250, 207, 10, 0.95);
box-shadow: 0 0 0 2px rgba(250, 207, 10, 0.28);
}
.color-trigger__ring {
display: inline-flex;
align-items: center;
justify-content: center;
width: 1.75rem;
height: 1.75rem;
border-radius: 50%;
border: 2px solid rgba(250, 207, 10, 0.95);
}
.color-trigger__swatch {
width: 1.22rem;
height: 1.22rem;
border-radius: 50%;
border: 1px solid rgba(16, 24, 32, 0.16);
}
.color-trigger__copy {
display: grid;
gap: 0.08rem;
}
.color-trigger__copy strong {
font-size: 0.88rem;
}
.color-trigger__copy small {
font-size: 0.76rem;
color: var(--color-text-muted);
}
.color-popup-backdrop {
position: fixed;
inset: 0;
z-index: 999;
border: 0;
background: transparent;
}
.color-popup {
position: absolute;
top: calc(100% + 0.45rem);
left: 0;
z-index: 1000;
width: min(340px, 100%);
padding: 0.9rem;
border-radius: 0.85rem;
border: 1px solid rgba(16, 24, 32, 0.12);
background: #fff;
box-shadow: 0 12px 24px rgba(16, 24, 32, 0.14);
}
.color-popup__category {
margin-bottom: 0.75rem;
font-size: 0.75rem;
font-weight: 700;
letter-spacing: 0.08em;
color: var(--color-text-muted);
}
.color-popup__grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 0.75rem 0.55rem;
}
.color-popup__item {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.3rem;
border: 0;
background: transparent;
cursor: pointer;
text-align: center;
color: inherit;
}
.color-popup__ring {
display: inline-flex;
align-items: center;
justify-content: center;
width: 2rem;
height: 2rem;
border-radius: 50%;
border: 2px solid transparent;
transition: border-color 0.15s ease;
}
.color-popup__ring.active {
border-color: rgba(250, 207, 10, 0.95);
}
.color-popup__swatch {
width: 1.5rem;
height: 1.5rem;
border-radius: 50%;
border: 1px solid rgba(16, 24, 32, 0.18);
}
.color-popup__name {
font-size: 0.8rem;
line-height: 1.2;
color: var(--color-text);
}
.qty-control { .qty-control {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
@@ -674,12 +424,6 @@ h1 {
} }
} }
@keyframes spin {
to {
transform: rotate(360deg);
}
}
@media (max-width: 960px) { @media (max-width: 960px) {
.detail-grid, .detail-grid,
.skeleton-grid { .skeleton-grid {
@@ -707,10 +451,6 @@ h1 {
min-height: 300px; min-height: 300px;
} }
.selector-head {
display: block;
}
.property-grid { .property-grid {
grid-template-columns: 1fr; grid-template-columns: 1fr;
} }
@@ -719,39 +459,6 @@ h1 {
grid-template-columns: 1fr; grid-template-columns: 1fr;
} }
.color-trigger {
max-width: 100%;
}
.color-popup {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: min(340px, calc(100vw - 1.5rem));
max-height: min(72vh, 440px);
overflow-y: auto;
}
.model-launch-row {
flex-direction: column;
align-items: flex-start;
}
.dimensions-inline {
flex-wrap: wrap;
}
.model-modal {
width: calc(100vw - 1rem);
max-height: calc(100vh - 1rem);
padding: 0.8rem;
}
.model-modal-body {
max-height: calc(100vh - 9.5rem);
}
:host ::ng-deep app-card.purchase-shell .card-body { :host ::ng-deep app-card.purchase-shell .card-body {
padding: 0.82rem 0.82rem; padding: 0.82rem 0.82rem;
} }

View File

@@ -1,6 +1,7 @@
/* src/styles.scss */ /* src/styles.scss */
@use "./styles/theme"; @use "./styles/theme";
@use "./styles/patterns"; @use "./styles/patterns";
@use "./styles/shop-product-detail-overrides";
@use "./styles/ui"; @use "./styles/ui";
/* Reset / Base */ /* Reset / Base */

View File

@@ -0,0 +1,298 @@
app-product-detail {
.hero-nav {
position: absolute;
top: 50%;
transform: translateY(-50%);
z-index: 2;
width: 2.2rem;
height: 2.2rem;
border-radius: 999px;
border: 1px solid rgba(16, 24, 32, 0.14);
background: rgba(255, 255, 255, 0.92);
color: var(--color-text);
font-size: 1.4rem;
line-height: 1;
display: grid;
place-items: center;
cursor: pointer;
}
.hero-nav:hover {
border-color: rgba(16, 24, 32, 0.28);
}
.hero-nav-prev {
left: 0.6rem;
}
.hero-nav-next {
right: 0.6rem;
}
.viewer-state {
display: grid;
place-items: center;
min-height: 220px;
border-radius: var(--radius-lg);
background: rgba(16, 24, 32, 0.04);
color: var(--color-text-muted);
}
.viewer-state-error {
color: var(--color-danger-600);
}
.viewer-loading {
gap: 0.6rem;
}
.spinner {
width: 1.5rem;
height: 1.5rem;
border-radius: 50%;
border: 2px solid rgba(16, 24, 32, 0.16);
border-top-color: var(--color-secondary-600);
animation: shopDetailSpin 0.9s linear infinite;
}
.model-modal-backdrop {
position: fixed;
inset: 0;
z-index: 1100;
border: 0;
background: rgba(16, 24, 32, 0.36);
}
.model-modal {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: min(940px, calc(100vw - 2rem));
max-height: calc(100vh - 2rem);
display: grid;
grid-template-rows: auto 1fr;
gap: 0.9rem;
z-index: 1101;
padding: 1rem;
border-radius: 1rem;
border: 1px solid rgba(16, 24, 32, 0.16);
background: #fff;
box-shadow: 0 22px 40px rgba(16, 24, 32, 0.3);
}
.model-modal-head {
display: flex;
justify-content: space-between;
gap: var(--space-3);
align-items: start;
}
.model-close-btn {
width: 2rem;
height: 2rem;
border-radius: 999px;
border: 1px solid rgba(16, 24, 32, 0.16);
background: #fff;
cursor: pointer;
}
.model-modal-body {
min-height: 260px;
max-height: calc(100vh - 11rem);
overflow: auto;
}
.color-selector-block {
position: relative;
display: grid;
gap: 0.4rem;
padding: 0;
border-radius: 1rem;
border: 0;
background: transparent;
}
.selector-head {
display: block;
}
.color-trigger {
width: 100%;
max-width: 230px;
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.35rem 0.55rem;
border-radius: 0.72rem;
border: 1px solid rgba(16, 24, 32, 0.14);
background: #fff;
text-align: left;
cursor: pointer;
transition:
border-color 0.16s ease,
box-shadow 0.16s ease;
}
.color-trigger:hover {
border-color: rgba(16, 24, 32, 0.28);
}
.color-trigger.open {
border-color: rgba(250, 207, 10, 0.95);
box-shadow: 0 0 0 2px rgba(250, 207, 10, 0.28);
}
.color-trigger__ring {
display: inline-flex;
align-items: center;
justify-content: center;
width: 1.75rem;
height: 1.75rem;
border-radius: 50%;
border: 2px solid rgba(250, 207, 10, 0.95);
}
.color-trigger__swatch {
width: 1.22rem;
height: 1.22rem;
border-radius: 50%;
border: 1px solid rgba(16, 24, 32, 0.16);
}
.color-trigger__copy {
display: grid;
gap: 0.08rem;
}
.color-trigger__copy strong {
font-size: 0.88rem;
}
.color-trigger__copy small {
font-size: 0.76rem;
color: var(--color-text-muted);
}
.color-popup-backdrop {
position: fixed;
inset: 0;
z-index: 999;
border: 0;
background: transparent;
}
.color-popup {
position: absolute;
top: calc(100% + 0.45rem);
left: 0;
z-index: 1000;
width: min(340px, 100%);
padding: 0.9rem;
border-radius: 0.85rem;
border: 1px solid rgba(16, 24, 32, 0.12);
background: #fff;
box-shadow: 0 12px 24px rgba(16, 24, 32, 0.14);
}
.color-popup__category {
margin-bottom: 0.75rem;
font-size: 0.75rem;
font-weight: 700;
letter-spacing: 0.08em;
color: var(--color-text-muted);
}
.color-popup__grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 0.75rem 0.55rem;
}
.color-popup__item {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.3rem;
border: 0;
background: transparent;
cursor: pointer;
text-align: center;
color: inherit;
}
.color-popup__ring {
display: inline-flex;
align-items: center;
justify-content: center;
width: 2rem;
height: 2rem;
border-radius: 50%;
border: 2px solid transparent;
transition: border-color 0.15s ease;
}
.color-popup__ring.active {
border-color: rgba(250, 207, 10, 0.95);
}
.color-popup__swatch {
width: 1.5rem;
height: 1.5rem;
border-radius: 50%;
border: 1px solid rgba(16, 24, 32, 0.18);
}
.color-popup__name {
font-size: 0.8rem;
line-height: 1.2;
color: var(--color-text);
}
}
@keyframes shopDetailSpin {
to {
transform: rotate(360deg);
}
}
@media (max-width: 640px) {
app-product-detail {
.selector-head {
display: block;
}
.color-popup {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: min(340px, calc(100vw - 1.5rem));
max-height: min(72vh, 440px);
overflow-y: auto;
}
.color-trigger {
max-width: 100%;
}
.model-launch-row {
flex-direction: column;
align-items: flex-start;
}
.dimensions-inline {
flex-wrap: wrap;
}
.model-modal {
width: calc(100vw - 1rem);
max-height: calc(100vh - 1rem);
padding: 0.8rem;
}
.model-modal-body {
max-height: calc(100vh - 9.5rem);
}
}
}