Add feature animations and update styles for kiosks and about pages
- Introduced `featuresAnim` option in editor and index files to enable feature ticker animations. - Updated rendering logic to include feature animations in the about section. - Added new JavaScript files for handling animations on the about page and kiosks page. - Adjusted CSS classes to accommodate new animations and ensure proper visual representation. - Changed primary color in theme defaults for a more cohesive design.
This commit is contained in:
@@ -52,10 +52,10 @@
|
||||
|
||||
/* ── Dark Mode ────────────────────────────────────────────── */
|
||||
[data-theme="dark"] {
|
||||
--color-primary: var(--wp--custom--dark--primary, #FF6B3D);
|
||||
--color-primary: var(--wp--custom--dark--primary, #D83302);
|
||||
--color-primary-dk: var(--wp--custom--dark--primary-dk, #D83302);
|
||||
--color-primary-lt: var(--wp--custom--dark--primary-lt, rgba(216,51,2,.15));
|
||||
--color-primary-rgb: 255,107,61;
|
||||
--color-primary-rgb: 216,51,2;
|
||||
--color-accent: var(--wp--custom--dark--accent, #66BB6A);
|
||||
--color-accent-dk: var(--wp--custom--dark--accent-dk, #388E3C);
|
||||
--color-accent-lt: var(--wp--custom--dark--accent-lt, rgba(76,175,80,.12));
|
||||
@@ -2723,8 +2723,8 @@ p:last-child { margin-bottom: 0; }
|
||||
width: 7px;
|
||||
height: 7px;
|
||||
border-radius: 50%;
|
||||
background: #f97316;
|
||||
box-shadow: 0 0 6px rgba(249,115,22,.55);
|
||||
background: #D83302;
|
||||
box-shadow: 0 0 6px rgba(216,51,2,.55);
|
||||
animation: da-dot-pulse 2.8s ease-in-out infinite;
|
||||
}
|
||||
|
||||
@@ -2732,7 +2732,7 @@ p:last-child { margin-bottom: 0; }
|
||||
width: 40%;
|
||||
height: 5px;
|
||||
border-radius: 999px;
|
||||
background: linear-gradient(90deg, rgba(249,115,22,.95), rgba(251,191,36,.75));
|
||||
background: linear-gradient(90deg, rgba(216,51,2,.95), rgba(251,191,36,.75));
|
||||
}
|
||||
|
||||
.da-promo__hero {
|
||||
@@ -2740,7 +2740,7 @@ p:last-child { margin-bottom: 0; }
|
||||
border-radius: 4px;
|
||||
background:
|
||||
linear-gradient(160deg, rgba(2,132,199,.38), rgba(15,23,42,.08) 58%),
|
||||
linear-gradient(115deg, rgba(249,115,22,.42), rgba(249,115,22,.08) 62%);
|
||||
linear-gradient(115deg, rgba(216,51,2,.42), rgba(216,51,2,.08) 62%);
|
||||
}
|
||||
|
||||
.da-promo__row {
|
||||
@@ -2759,7 +2759,7 @@ p:last-child { margin-bottom: 0; }
|
||||
.da-promo__line--lg { width: 56%; }
|
||||
.da-promo__line--md { width: 46%; }
|
||||
.da-promo__line--sm { width: 24%; background: rgba(74,222,128,.72); }
|
||||
.da-promo__line--xs { width: 19%; background: rgba(249,115,22,.72); }
|
||||
.da-promo__line--xs { width: 19%; background: rgba(216,51,2,.72); }
|
||||
|
||||
.da-promo__ticker {
|
||||
margin-top: auto;
|
||||
@@ -7566,7 +7566,7 @@ p:last-child { margin-bottom: 0; }
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: 42%;
|
||||
background: linear-gradient(90deg, var(--color-primary), #ff6b35);
|
||||
background: linear-gradient(90deg, var(--color-primary), #D83302);
|
||||
border-radius: 4px;
|
||||
animation: corp-tl-progress 12s linear infinite;
|
||||
}
|
||||
@@ -8535,7 +8535,7 @@ p:last-child { margin-bottom: 0; }
|
||||
width: 26px;
|
||||
height: 26px;
|
||||
border-radius: 6px;
|
||||
background: linear-gradient(135deg, var(--color-primary), #ff6b35);
|
||||
background: linear-gradient(135deg, var(--color-primary), #D83302);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
@@ -8606,7 +8606,7 @@ p:last-child { margin-bottom: 0; }
|
||||
.fit-cap__fill {
|
||||
height: 100%;
|
||||
width: 80%;
|
||||
background: linear-gradient(90deg, var(--color-primary), #ff6b35);
|
||||
background: linear-gradient(90deg, var(--color-primary), #D83302);
|
||||
border-radius: 4px;
|
||||
animation: fit-cap-breathe 3s ease-in-out infinite alternate;
|
||||
}
|
||||
@@ -11431,7 +11431,7 @@ p:last-child { margin-bottom: 0; }
|
||||
text-align: center;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.api-method--post { background: rgba(249,115,22,0.2); color: #fb923c; }
|
||||
.api-method--post { background: rgba(216,51,2,0.2); color: #D83302; }
|
||||
.api-method--get { background: rgba(74,222,128,0.15); color: #4ade80; }
|
||||
.api-method--patch { background: rgba(96,165,250,0.15); color: #60a5fa; }
|
||||
.api-endpoint {
|
||||
@@ -11522,12 +11522,12 @@ p:last-child { margin-bottom: 0; }
|
||||
50% { opacity: 0.8; box-shadow: 0 0 0 3px rgba(74,222,128,0); }
|
||||
}
|
||||
.cs-dot--orange {
|
||||
background: #fb923c;
|
||||
background: #D83302;
|
||||
animation: cs-dot-orange-pulse 1.4s ease-in-out infinite;
|
||||
}
|
||||
@keyframes cs-dot-orange-pulse {
|
||||
0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(251,146,60,0.5); }
|
||||
50% { opacity: 0.7; box-shadow: 0 0 0 3px rgba(251,146,60,0); }
|
||||
0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(216,51,2,0.5); }
|
||||
50% { opacity: 0.7; box-shadow: 0 0 0 3px rgba(216,51,2,0); }
|
||||
}
|
||||
|
||||
/* ── Scene: Margins (Partner Tier Progress) ─────────────────── */
|
||||
@@ -11809,7 +11809,7 @@ p:last-child { margin-bottom: 0; }
|
||||
color: rgba(255,255,255,0.3);
|
||||
}
|
||||
.cs-sla-timer {
|
||||
color: #fb923c;
|
||||
color: #D83302;
|
||||
font-weight: 700;
|
||||
font-family: monospace;
|
||||
animation: cs-sla-tick 60s linear infinite;
|
||||
@@ -11831,7 +11831,7 @@ p:last-child { margin-bottom: 0; }
|
||||
gap: 6px;
|
||||
font-size: 8.5px;
|
||||
font-weight: 600;
|
||||
color: #fb923c;
|
||||
color: #D83302;
|
||||
}
|
||||
|
||||
/* ── Scene: Early Access Roadmap ────────────────────────────── */
|
||||
@@ -11875,7 +11875,7 @@ p:last-child { margin-bottom: 0; }
|
||||
flex-shrink: 0;
|
||||
letter-spacing: 0.3px;
|
||||
}
|
||||
.cs-feat__tag--beta { background: rgba(249,115,22,0.2); color: #fb923c; }
|
||||
.cs-feat__tag--beta { background: rgba(216,51,2,0.2); color: #D83302; }
|
||||
.cs-feat__tag--early { background: rgba(var(--color-primary-rgb),0.18); color: var(--color-primary); }
|
||||
.cs-feat__tag--q3 { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.35); }
|
||||
|
||||
@@ -11968,7 +11968,7 @@ p:last-child { margin-bottom: 0; }
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.cs-device:nth-child(3) .cs-device__uptime {
|
||||
color: #fb923c;
|
||||
color: #D83302;
|
||||
}
|
||||
|
||||
/* ── Scene: API Embed / SDK ─────────────────────────────────── */
|
||||
@@ -12046,3 +12046,318 @@ p:last-child { margin-bottom: 0; }
|
||||
.cs-code__line--5 { animation: none; opacity: 1; }
|
||||
.cs-code__cursor { animation: none; }
|
||||
}
|
||||
|
||||
/* ── Feature Ticker Animation ────────────────────────────────── */
|
||||
.about-intro-visual.has-features-anim {
|
||||
background: none;
|
||||
box-shadow: none;
|
||||
aspect-ratio: unset;
|
||||
font-size: inherit;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.features-stage {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.375rem;
|
||||
width: 100%;
|
||||
max-width: 380px;
|
||||
margin: 0 auto;
|
||||
background: #0d1117;
|
||||
border-radius: var(--radius-lg, 12px);
|
||||
padding: 1.25rem;
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
|
||||
}
|
||||
|
||||
.feat-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
padding: 0.6rem 0.75rem;
|
||||
border-radius: var(--radius-md, 8px);
|
||||
background: transparent;
|
||||
transition: background 0.35s ease, transform 0.35s ease;
|
||||
}
|
||||
|
||||
.feat-item.is-active {
|
||||
background: rgba(var(--color-primary-rgb), 0.12);
|
||||
transform: translateX(3px);
|
||||
}
|
||||
|
||||
.feat-icon {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
border-radius: 50%;
|
||||
background: rgba(255, 255, 255, 0.06);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
font-size: 0.75rem;
|
||||
color: rgba(255, 255, 255, 0.3);
|
||||
transition: background 0.35s ease, color 0.35s ease;
|
||||
}
|
||||
|
||||
.feat-item.is-active .feat-icon {
|
||||
background: rgba(var(--color-primary-rgb), 0.2);
|
||||
color: var(--color-primary);
|
||||
}
|
||||
|
||||
.feat-label {
|
||||
flex: 1;
|
||||
font-size: 0.8rem;
|
||||
font-weight: 500;
|
||||
color: rgba(255, 255, 255, 0.3);
|
||||
transition: color 0.35s ease;
|
||||
letter-spacing: 0.01em;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.feat-item.is-active .feat-label {
|
||||
color: rgba(255, 255, 255, 0.9);
|
||||
}
|
||||
|
||||
.feat-check {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
border-radius: 50%;
|
||||
border: 1.5px solid rgba(255, 255, 255, 0.12);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
font-size: 0.5rem;
|
||||
color: transparent;
|
||||
transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease;
|
||||
}
|
||||
|
||||
.feat-item.is-active .feat-check {
|
||||
background: var(--color-primary);
|
||||
border-color: var(--color-primary);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.feat-item {
|
||||
transition: none;
|
||||
transform: none;
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
}
|
||||
.feat-item.is-active { transform: none; }
|
||||
.feat-label { color: rgba(255, 255, 255, 0.65); }
|
||||
.feat-check {
|
||||
background: rgba(255, 255, 255, 0.15);
|
||||
border-color: rgba(255, 255, 255, 0.25);
|
||||
}
|
||||
}
|
||||
|
||||
/* ═══════════════════════════════════════════════════════════
|
||||
SELF CHECK-IN KIOSK ANIMATION
|
||||
Used on the kiosks page – platform-row selfCheckInAnim
|
||||
═══════════════════════════════════════════════════════════ */
|
||||
|
||||
.checkin-stage { width: 100%; max-width: 400px; margin: 0 auto; }
|
||||
.checkin-kiosk {
|
||||
background: #0f1117; border: 1px solid #1e2435; border-radius: 12px; overflow: hidden;
|
||||
box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04); padding: 16px;
|
||||
}
|
||||
.checkin-kiosk__hdr {
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
padding-bottom: 12px; margin-bottom: 14px;
|
||||
border-bottom: 1px solid rgba(255,255,255,0.07);
|
||||
}
|
||||
.checkin-hdr__title { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.85); }
|
||||
.checkin-hdr__badge {
|
||||
font-size: 9px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase;
|
||||
background: rgba(var(--color-primary-rgb), 0.15); color: var(--color-primary);
|
||||
border: 1px solid rgba(var(--color-primary-rgb), 0.25); border-radius: 4px; padding: 3px 7px;
|
||||
animation: checkin-badge-pulse 3s ease-in-out infinite;
|
||||
}
|
||||
@keyframes checkin-badge-pulse {
|
||||
0%, 100% { opacity: 1; }
|
||||
50% { opacity: 0.55; }
|
||||
}
|
||||
|
||||
/* Scene container – scenes stack absolutely, JS toggles .is-active */
|
||||
.checkin-scenes { position: relative; min-height: 178px; }
|
||||
.checkin-scene {
|
||||
position: absolute; inset: 0;
|
||||
opacity: 0; transition: opacity 0.45s ease;
|
||||
pointer-events: none;
|
||||
}
|
||||
.checkin-scene.is-active { opacity: 1; pointer-events: auto; }
|
||||
|
||||
/* Scene 1: name lookup */
|
||||
.checkin-search {
|
||||
display: flex; align-items: center; gap: 8px;
|
||||
background: rgba(255,255,255,0.06); border-radius: 8px;
|
||||
padding: 10px 14px; margin-bottom: 12px;
|
||||
}
|
||||
.checkin-search__icon { font-size: 13px; }
|
||||
.checkin-search__text { font-size: 12px; color: rgba(255,255,255,0.4); }
|
||||
.checkin-result { display: flex; flex-direction: column; gap: 6px; }
|
||||
.checkin-result__row {
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.07);
|
||||
border-radius: 7px; padding: 10px 12px;
|
||||
transition: background 0.2s;
|
||||
}
|
||||
.checkin-result__row:first-child {
|
||||
border-color: rgba(var(--color-primary-rgb), 0.35);
|
||||
background: rgba(var(--color-primary-rgb), 0.07);
|
||||
animation: checkin-row-glow 2.8s ease-in-out infinite;
|
||||
}
|
||||
@keyframes checkin-row-glow {
|
||||
0%, 100% { box-shadow: none; }
|
||||
50% { box-shadow: 0 0 0 2px rgba(var(--color-primary-rgb), 0.18); }
|
||||
}
|
||||
.checkin-result__name { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.85); }
|
||||
.checkin-result__detail { font-size: 10px; color: rgba(255,255,255,0.4); }
|
||||
|
||||
/* Scene 2: confirmation */
|
||||
.checkin-confirm {
|
||||
background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
|
||||
border-radius: 9px; padding: 14px; margin-bottom: 12px; text-align: center;
|
||||
}
|
||||
.checkin-confirm__avatar {
|
||||
width: 42px; height: 42px; border-radius: 50%;
|
||||
background: rgba(var(--color-primary-rgb), 0.18);
|
||||
border: 2px solid rgba(var(--color-primary-rgb), 0.35);
|
||||
display: flex; align-items: center; justify-content: center; margin: 0 auto 8px;
|
||||
font-size: 12px; font-weight: 700; color: var(--color-primary);
|
||||
animation: checkin-avatar-in 0.4s ease-out backwards;
|
||||
}
|
||||
@keyframes checkin-avatar-in {
|
||||
from { transform: scale(0.7); opacity: 0; }
|
||||
to { transform: scale(1); opacity: 1; }
|
||||
}
|
||||
.checkin-confirm__name { font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.9); margin-bottom: 4px; }
|
||||
.checkin-confirm__appt { font-size: 11px; color: rgba(255,255,255,0.5); margin-bottom: 4px; }
|
||||
.checkin-confirm__host { font-size: 10px; color: rgba(255,255,255,0.35); }
|
||||
.checkin-btn {
|
||||
width: 100%; padding: 12px; border: none; border-radius: 8px; cursor: pointer;
|
||||
background: var(--color-primary); color: #fff;
|
||||
font-size: 13px; font-weight: 700; letter-spacing: 0.3px;
|
||||
animation: checkin-btn-pulse 2s ease-in-out infinite;
|
||||
}
|
||||
@keyframes checkin-btn-pulse {
|
||||
0%, 100% { box-shadow: 0 0 0 0 rgba(var(--color-primary-rgb), 0.5); }
|
||||
50% { box-shadow: 0 0 0 8px rgba(var(--color-primary-rgb), 0); }
|
||||
}
|
||||
|
||||
/* Scene 3: queue ticket */
|
||||
.checkin-ticket {
|
||||
background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
|
||||
border-radius: 9px; padding: 20px 14px; text-align: center;
|
||||
border-top: 3px solid #22c55e;
|
||||
}
|
||||
.checkin-ticket__label { font-size: 10px; color: #22c55e; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 6px; }
|
||||
.checkin-ticket__number {
|
||||
font-size: 36px; font-weight: 800; color: rgba(255,255,255,0.95); line-height: 1; margin-bottom: 8px;
|
||||
animation: checkin-number-in 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
|
||||
}
|
||||
@keyframes checkin-number-in {
|
||||
from { transform: scale(0.6) translateY(10px); opacity: 0; }
|
||||
to { transform: scale(1) translateY(0); opacity: 1; }
|
||||
}
|
||||
.checkin-ticket__detail { font-size: 12px; color: rgba(255,255,255,0.55); margin-bottom: 10px; }
|
||||
.checkin-ticket__status { font-size: 10px; color: rgba(255,255,255,0.35); }
|
||||
.checkin-ticket__status::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #22c55e; margin-right: 5px; vertical-align: middle; animation: checkin-dot-blink 1.4s ease-in-out infinite; }
|
||||
@keyframes checkin-dot-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.checkin-badge-pulse,
|
||||
.checkin-scene { transition: none; }
|
||||
.checkin-scene.is-active { opacity: 1; position: static; }
|
||||
.checkin-scene:not(.is-active) { display: none; }
|
||||
.checkin-hdr__badge,
|
||||
.checkin-result__row:first-child,
|
||||
.checkin-btn,
|
||||
.checkin-confirm__avatar,
|
||||
.checkin-ticket__number,
|
||||
.checkin-ticket__status::before { animation: none; }
|
||||
}
|
||||
|
||||
/* ═══════════════════════════════════════════════════════════
|
||||
SELF-ORDER / PRODUCT LOOKUP KIOSK ANIMATION
|
||||
Used on the kiosks page – platform-row selfOrderAnim
|
||||
═══════════════════════════════════════════════════════════ */
|
||||
|
||||
.selforder-stage { width: 100%; max-width: 420px; margin: 0 auto; }
|
||||
.selforder-kiosk {
|
||||
background: #0f1117; border: 1px solid #1e2435; border-radius: 12px; overflow: hidden;
|
||||
box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04); padding: 16px;
|
||||
}
|
||||
.selforder-kiosk__hdr {
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
padding-bottom: 12px; margin-bottom: 12px;
|
||||
border-bottom: 1px solid rgba(255,255,255,0.07);
|
||||
}
|
||||
.selforder-hdr__title { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.85); }
|
||||
.selforder-hdr__basket { font-size: 11px; color: rgba(255,255,255,0.45); }
|
||||
.selforder-body { display: flex; gap: 10px; margin-bottom: 12px; }
|
||||
|
||||
/* Category sidebar */
|
||||
.selforder-cats { display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; width: 94px; }
|
||||
.selforder-cat {
|
||||
font-size: 10px; font-weight: 600; padding: 8px 10px; border-radius: 6px;
|
||||
color: rgba(255,255,255,0.45); background: rgba(255,255,255,0.04);
|
||||
border: 1px solid rgba(255,255,255,0.06); cursor: pointer;
|
||||
transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
|
||||
}
|
||||
.selforder-cat.is-active {
|
||||
background: rgba(var(--color-primary-rgb), 0.14);
|
||||
color: var(--color-primary); border-color: rgba(var(--color-primary-rgb), 0.3);
|
||||
}
|
||||
.selforder-cat.is-active::before {
|
||||
content: '▶ '; font-size: 7px; vertical-align: middle;
|
||||
}
|
||||
|
||||
/* Product list */
|
||||
.selforder-products { flex: 1; display: flex; flex-direction: column; gap: 5px; overflow: hidden; }
|
||||
.selforder-product {
|
||||
display: flex; align-items: center; gap: 6px;
|
||||
padding: 8px 10px; border-radius: 6px;
|
||||
background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
|
||||
opacity: 0; max-height: 0; overflow: hidden;
|
||||
transition: opacity 0.3s ease, max-height 0.3s ease, border-color 0.2s ease, background 0.2s ease;
|
||||
}
|
||||
.selforder-product.is-visible {
|
||||
opacity: 1; max-height: 48px;
|
||||
}
|
||||
.selforder-product.is-highlighted {
|
||||
border-color: rgba(var(--color-primary-rgb), 0.35);
|
||||
background: rgba(var(--color-primary-rgb), 0.07);
|
||||
box-shadow: 0 0 0 2px rgba(var(--color-primary-rgb), 0.1);
|
||||
}
|
||||
.selforder-product__name { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.8); flex: 1; }
|
||||
.selforder-product__price { font-size: 11px; font-weight: 700; color: var(--color-primary); flex-shrink: 0; }
|
||||
.selforder-product__stock {
|
||||
font-size: 9px; color: rgba(255,255,255,0.35); flex-shrink: 0;
|
||||
border: 1px solid rgba(255,255,255,0.1); border-radius: 3px; padding: 1px 5px;
|
||||
}
|
||||
|
||||
/* Add to order button */
|
||||
.selforder-add {
|
||||
width: 100%; padding: 11px; border: none; border-radius: 8px; cursor: pointer;
|
||||
background: rgba(var(--color-primary-rgb), 0.15);
|
||||
border: 1px solid rgba(var(--color-primary-rgb), 0.3);
|
||||
color: var(--color-primary); font-size: 12px; font-weight: 700;
|
||||
transition: background 0.25s ease, opacity 0.25s ease;
|
||||
}
|
||||
.selforder-add:disabled { opacity: 0.35; cursor: default; }
|
||||
.selforder-add.is-enabled {
|
||||
animation: selforder-add-glow 2s ease-in-out infinite;
|
||||
}
|
||||
@keyframes selforder-add-glow {
|
||||
0%, 100% { box-shadow: none; }
|
||||
50% { box-shadow: 0 0 0 4px rgba(var(--color-primary-rgb), 0.18); }
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.selforder-cat { transition: none; }
|
||||
.selforder-product { transition: none; max-height: none; }
|
||||
.selforder-product.is-visible { opacity: 1; }
|
||||
.selforder-add.is-enabled { animation: none; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user