DataTable replaces the 20-line Table scaffold entirely: columns, sorting, filtering, pagination, selection, bulk actions, comparison layout, sticky first column, custom HTML cells, and a remote source driven by a `request` output rather than a function prop (props travel as HTML attributes, so a function arrives as its own source text). Toaster replaces the hand-rolled status div: tone icons, actions, hover pause/resume and a progress bar. Overlays audit -- Modal and Drawer declared aria-modal="true" but nothing ever moved focus into the panel, so the @keydown handler on their root never ran and closeOnEscape did nothing. Focus, focus restore, a Tab trap and a body scroll lock now live in the reactive runtime, shared by both. ContextMenu placed pointer menus by subtracting a guessed 340x420 from the viewport, which pushed every menu that was not that size away from the pointer; it now positions at the pointer and lets the anchored clamp pull it back once it can be measured. The reactive runtime size budget moves 150k -> 175k to cover anchored overlays, dialog behaviour, the toaster and the DataTable client half. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
736 lines
22 KiB
Plaintext
736 lines
22 KiB
Plaintext
component FeatureCard {
|
|
props {
|
|
icon: string = ""
|
|
iconStyle: string = "soft"
|
|
iconSize: string = "default"
|
|
eyebrow: string = ""
|
|
title: string = "Feature"
|
|
description: string = ""
|
|
|
|
image: string = ""
|
|
imageAlt: string = ""
|
|
imagePosition: string = "top"
|
|
imageAspect: string = "wide"
|
|
imageLoading: string = "lazy"
|
|
|
|
href: string = ""
|
|
target: string = ""
|
|
rel: string = ""
|
|
external: boolean = false
|
|
actionLabel: string = "Learn more"
|
|
actionIcon: string = ""
|
|
showArrow: boolean = true
|
|
stretchedLink: boolean = true
|
|
|
|
badge: string = ""
|
|
badgeColor: string = "primary"
|
|
size: string = "default"
|
|
color: string = "primary"
|
|
variant: string = "default"
|
|
hover: string = "lift"
|
|
align: string = "left"
|
|
disabled: boolean = false
|
|
class: string = ""
|
|
}
|
|
|
|
view {
|
|
<article
|
|
{...attrs}
|
|
data-ui-component="FeatureCard"
|
|
data-size='{size}'
|
|
data-color='{color}'
|
|
data-variant='{variant}'
|
|
data-hover='{hover}'
|
|
data-align='{align}'
|
|
data-icon-style='{iconStyle}'
|
|
data-icon-size='{iconSize}'
|
|
data-image-position='{imagePosition}'
|
|
data-image-aspect='{imageAspect}'
|
|
data-disabled='{disabled ? "true" : "false"}'
|
|
data-stretched-link='{stretchedLink ? "true" : "false"}'
|
|
class='wire-feature-card {class}'
|
|
role="listitem"
|
|
aria-disabled='{disabled ? "true" : "false"}'
|
|
>
|
|
{#if image}
|
|
<div class="wire-feature-card__media">
|
|
<img
|
|
src='{image}'
|
|
alt='{imageAlt}'
|
|
loading='{imageLoading}'
|
|
class="wire-feature-card__image"
|
|
/>
|
|
<div class="wire-feature-card__media-overlay" aria-hidden="true"></div>
|
|
</div>
|
|
{/if}
|
|
|
|
<slot name="media"></slot>
|
|
|
|
<div class="wire-feature-card__body">
|
|
<div class="wire-feature-card__top">
|
|
<div class="wire-feature-card__leading">
|
|
<slot name="icon"></slot>
|
|
|
|
{#if icon}
|
|
<div class="wire-feature-card__icon" aria-hidden="true">
|
|
<span class='{icon}'></span>
|
|
</div>
|
|
{/if}
|
|
</div>
|
|
|
|
{#if badge}
|
|
<span class="wire-feature-card__badge" data-color='{badgeColor}'>
|
|
{badge}
|
|
</span>
|
|
{/if}
|
|
</div>
|
|
|
|
<div class="wire-feature-card__copy">
|
|
{#if eyebrow}
|
|
<p class="wire-feature-card__eyebrow">{eyebrow}</p>
|
|
{/if}
|
|
|
|
<h3 class="wire-feature-card__title">{title}</h3>
|
|
|
|
{#if description}
|
|
<p class="wire-feature-card__description">{description}</p>
|
|
{/if}
|
|
</div>
|
|
|
|
<div class="wire-feature-card__content">
|
|
<slot></slot>
|
|
</div>
|
|
|
|
<div class="wire-feature-card__footer">
|
|
<div class="wire-feature-card__footer-content">
|
|
<slot name="footer"></slot>
|
|
</div>
|
|
|
|
{#if href && actionLabel && !disabled}
|
|
<a
|
|
href='{href}'
|
|
target='{target}'
|
|
rel='{external || target === "_blank" ? "noopener noreferrer" : rel}'
|
|
class="wire-feature-card__action"
|
|
aria-label='{actionLabel + ": " + title}'
|
|
>
|
|
<span>{actionLabel}</span>
|
|
|
|
{#if actionIcon}
|
|
<span class='wire-feature-card__action-icon {actionIcon}' aria-hidden="true"></span>
|
|
{:else if external}
|
|
<span class="wire-feature-card__action-icon icon-[lucide--external-link]" aria-hidden="true"></span>
|
|
{:else if showArrow}
|
|
<span class="wire-feature-card__action-icon icon-[lucide--arrow-right]" aria-hidden="true"></span>
|
|
{/if}
|
|
</a>
|
|
{:else if actionLabel}
|
|
<span class="wire-feature-card__action wire-feature-card__action--disabled">
|
|
<span>{actionLabel}</span>
|
|
</span>
|
|
{/if}
|
|
</div>
|
|
</div>
|
|
</article>
|
|
}
|
|
|
|
style {
|
|
.wire-feature-card {
|
|
--feature-accent: var(--wire-color-primary);
|
|
--feature-accent-hover: var(--wire-color-primary-hover);
|
|
--feature-accent-soft: var(--wire-color-primary-soft);
|
|
--feature-accent-muted: var(--wire-color-primary-muted);
|
|
--feature-contrast: var(--wire-color-primary-contrast);
|
|
--feature-border: color-mix(in srgb, var(--feature-accent) 16%, var(--wire-color-border));
|
|
|
|
position: relative;
|
|
isolation: isolate;
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 100%;
|
|
min-width: 0;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
color: var(--wire-color-text);
|
|
background:
|
|
radial-gradient(
|
|
circle at 100% 0%,
|
|
color-mix(in srgb, var(--feature-accent) 7%, transparent),
|
|
transparent 34%
|
|
),
|
|
var(--wire-color-surface-raised);
|
|
border: 1px solid var(--feature-border);
|
|
border-radius: 1.25rem;
|
|
box-shadow:
|
|
0 1px 0 color-mix(in srgb, white 4%, transparent) inset,
|
|
0 10px 30px color-mix(in srgb, black 9%, transparent);
|
|
transition:
|
|
transform 180ms ease,
|
|
border-color 180ms ease,
|
|
box-shadow 180ms ease,
|
|
background-color 180ms ease;
|
|
}
|
|
|
|
.wire-feature-card[data-color="secondary"] {
|
|
--feature-accent: var(--wire-color-secondary);
|
|
--feature-accent-hover: var(--wire-color-secondary-hover);
|
|
--feature-accent-soft: var(--wire-color-secondary-soft);
|
|
--feature-accent-muted: var(--wire-color-secondary-muted);
|
|
--feature-contrast: var(--wire-color-secondary-contrast);
|
|
}
|
|
|
|
.wire-feature-card[data-color="info"] {
|
|
--feature-accent: var(--wire-color-info);
|
|
--feature-accent-soft: var(--wire-color-info-soft);
|
|
--feature-accent-muted: var(--wire-color-info-muted);
|
|
--feature-contrast: var(--wire-color-info-contrast);
|
|
}
|
|
|
|
.wire-feature-card[data-color="success"] {
|
|
--feature-accent: var(--wire-color-success);
|
|
--feature-accent-soft: var(--wire-color-success-soft);
|
|
--feature-accent-muted: var(--wire-color-success-muted);
|
|
--feature-contrast: var(--wire-color-success-contrast);
|
|
}
|
|
|
|
.wire-feature-card[data-color="warning"] {
|
|
--feature-accent: var(--wire-color-warning);
|
|
--feature-accent-soft: var(--wire-color-warning-soft);
|
|
--feature-accent-muted: var(--wire-color-warning-muted);
|
|
--feature-contrast: var(--wire-color-warning-contrast);
|
|
}
|
|
|
|
.wire-feature-card[data-color="danger"] {
|
|
--feature-accent: var(--wire-color-danger);
|
|
--feature-accent-soft: var(--wire-color-danger-soft);
|
|
--feature-accent-muted: var(--wire-color-danger-muted);
|
|
--feature-contrast: var(--wire-color-danger-contrast);
|
|
}
|
|
|
|
.wire-feature-card::before {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
left: 0;
|
|
z-index: -1;
|
|
height: 3px;
|
|
content: "";
|
|
background: linear-gradient(90deg, var(--feature-accent), transparent 72%);
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.wire-feature-card__media {
|
|
position: relative;
|
|
overflow: hidden;
|
|
background: var(--wire-color-surface-soft);
|
|
border-bottom: 1px solid var(--feature-border);
|
|
}
|
|
|
|
.wire-feature-card[data-image-aspect="square"] .wire-feature-card__media {
|
|
aspect-ratio: 1;
|
|
}
|
|
|
|
.wire-feature-card[data-image-aspect="portrait"] .wire-feature-card__media {
|
|
aspect-ratio: 4 / 5;
|
|
}
|
|
|
|
.wire-feature-card[data-image-aspect="standard"] .wire-feature-card__media {
|
|
aspect-ratio: 4 / 3;
|
|
}
|
|
|
|
.wire-feature-card[data-image-aspect="wide"] .wire-feature-card__media {
|
|
aspect-ratio: 16 / 9;
|
|
}
|
|
|
|
.wire-feature-card[data-image-aspect="cinema"] .wire-feature-card__media {
|
|
aspect-ratio: 21 / 9;
|
|
}
|
|
|
|
.wire-feature-card__image {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
transition: transform 300ms ease;
|
|
}
|
|
|
|
.wire-feature-card__media-overlay {
|
|
position: absolute;
|
|
inset: 0;
|
|
pointer-events: none;
|
|
background: linear-gradient(180deg, transparent 58%, color-mix(in srgb, black 18%, transparent));
|
|
}
|
|
|
|
.wire-feature-card__body {
|
|
display: flex;
|
|
flex: 1;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
.wire-feature-card[data-size="sm"] .wire-feature-card__body {
|
|
padding: 1.1rem;
|
|
}
|
|
|
|
.wire-feature-card[data-size="lg"] .wire-feature-card__body {
|
|
padding: 1.85rem;
|
|
}
|
|
|
|
.wire-feature-card__top {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
min-width: 0;
|
|
}
|
|
|
|
.wire-feature-card__leading {
|
|
display: flex;
|
|
align-items: center;
|
|
min-width: 0;
|
|
}
|
|
|
|
.wire-feature-card__icon {
|
|
display: inline-flex;
|
|
flex: 0 0 auto;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 3rem;
|
|
height: 3rem;
|
|
color: var(--feature-accent);
|
|
background: var(--feature-accent-soft);
|
|
border: 1px solid color-mix(in srgb, var(--feature-accent) 18%, transparent);
|
|
border-radius: 0.95rem;
|
|
box-shadow: 0 1px 0 color-mix(in srgb, white 7%, transparent) inset;
|
|
}
|
|
|
|
.wire-feature-card__icon > span {
|
|
width: 1.35rem;
|
|
height: 1.35rem;
|
|
}
|
|
|
|
.wire-feature-card[data-icon-size="sm"] .wire-feature-card__icon {
|
|
width: 2.5rem;
|
|
height: 2.5rem;
|
|
border-radius: 0.8rem;
|
|
}
|
|
|
|
.wire-feature-card[data-icon-size="sm"] .wire-feature-card__icon > span {
|
|
width: 1.1rem;
|
|
height: 1.1rem;
|
|
}
|
|
|
|
.wire-feature-card[data-icon-size="lg"] .wire-feature-card__icon {
|
|
width: 3.6rem;
|
|
height: 3.6rem;
|
|
border-radius: 1.05rem;
|
|
}
|
|
|
|
.wire-feature-card[data-icon-size="lg"] .wire-feature-card__icon > span {
|
|
width: 1.65rem;
|
|
height: 1.65rem;
|
|
}
|
|
|
|
.wire-feature-card[data-icon-style="solid"] .wire-feature-card__icon {
|
|
color: var(--feature-contrast);
|
|
background: var(--feature-accent);
|
|
border-color: color-mix(in srgb, white 18%, transparent);
|
|
box-shadow: 0 10px 24px color-mix(in srgb, var(--feature-accent) 24%, transparent);
|
|
}
|
|
|
|
.wire-feature-card[data-icon-style="outline"] .wire-feature-card__icon {
|
|
color: var(--feature-accent);
|
|
background: transparent;
|
|
border-color: color-mix(in srgb, var(--feature-accent) 38%, var(--wire-color-border));
|
|
box-shadow: none;
|
|
}
|
|
|
|
.wire-feature-card[data-icon-style="ghost"] .wire-feature-card__icon {
|
|
width: auto;
|
|
height: auto;
|
|
padding: 0.25rem;
|
|
background: transparent;
|
|
border-color: transparent;
|
|
border-radius: 0;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.wire-feature-card__badge {
|
|
display: inline-flex;
|
|
flex: 0 0 auto;
|
|
align-items: center;
|
|
min-height: 1.65rem;
|
|
padding: 0.25rem 0.65rem;
|
|
color: var(--feature-accent);
|
|
font-size: 0.7rem;
|
|
font-weight: 600;
|
|
line-height: 1;
|
|
white-space: nowrap;
|
|
background: var(--feature-accent-soft);
|
|
border: 1px solid color-mix(in srgb, var(--feature-accent) 18%, transparent);
|
|
border-radius: 999px;
|
|
}
|
|
|
|
.wire-feature-card__badge[data-color="secondary"] {
|
|
color: var(--wire-color-secondary);
|
|
background: var(--wire-color-secondary-soft);
|
|
border-color: color-mix(in srgb, var(--wire-color-secondary) 20%, transparent);
|
|
}
|
|
|
|
.wire-feature-card__badge[data-color="info"] {
|
|
color: var(--wire-color-info);
|
|
background: var(--wire-color-info-soft);
|
|
border-color: color-mix(in srgb, var(--wire-color-info) 20%, transparent);
|
|
}
|
|
|
|
.wire-feature-card__badge[data-color="success"] {
|
|
color: var(--wire-color-success);
|
|
background: var(--wire-color-success-soft);
|
|
border-color: color-mix(in srgb, var(--wire-color-success) 20%, transparent);
|
|
}
|
|
|
|
.wire-feature-card__badge[data-color="warning"] {
|
|
color: var(--wire-color-warning-text);
|
|
background: var(--wire-color-warning-soft);
|
|
border-color: color-mix(in srgb, var(--wire-color-warning) 22%, transparent);
|
|
}
|
|
|
|
.wire-feature-card__badge[data-color="danger"] {
|
|
color: var(--wire-color-danger);
|
|
background: var(--wire-color-danger-soft);
|
|
border-color: color-mix(in srgb, var(--wire-color-danger) 20%, transparent);
|
|
}
|
|
|
|
.wire-feature-card__copy {
|
|
min-width: 0;
|
|
margin-top: 1.25rem;
|
|
}
|
|
|
|
.wire-feature-card__eyebrow {
|
|
margin: 0 0 0.5rem;
|
|
color: var(--feature-accent);
|
|
font-size: 0.72rem;
|
|
font-weight: 600;
|
|
line-height: 1.3;
|
|
letter-spacing: 0.12em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.wire-feature-card__title {
|
|
margin: 0;
|
|
color: var(--wire-color-text);
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
line-height: 1.35;
|
|
letter-spacing: -0.015em;
|
|
text-wrap: balance;
|
|
transition: color 180ms ease;
|
|
}
|
|
|
|
.wire-feature-card[data-size="sm"] .wire-feature-card__title {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.wire-feature-card[data-size="lg"] .wire-feature-card__title {
|
|
font-size: 1.3rem;
|
|
}
|
|
|
|
.wire-feature-card__description {
|
|
margin: 0.75rem 0 0;
|
|
color: var(--wire-color-text-muted);
|
|
font-size: 0.9rem;
|
|
line-height: 1.65;
|
|
text-wrap: pretty;
|
|
}
|
|
|
|
.wire-feature-card[data-size="sm"] .wire-feature-card__description {
|
|
margin-top: 0.6rem;
|
|
font-size: 0.82rem;
|
|
line-height: 1.55;
|
|
}
|
|
|
|
.wire-feature-card[data-size="lg"] .wire-feature-card__description {
|
|
font-size: 0.98rem;
|
|
}
|
|
|
|
/*
|
|
* Slot content is app-authored, so a bare `p { color: ... }` in the app
|
|
* stylesheet beats anything this container merely passes down by
|
|
* inheritance. State it, at a specificity the app can still override.
|
|
*/
|
|
.wire-feature-card__content {
|
|
color: var(--wire-color-text);
|
|
min-width: 0;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.wire-feature-card__content:empty {
|
|
display: none;
|
|
}
|
|
|
|
.wire-feature-card__footer {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
min-width: 0;
|
|
margin-top: auto;
|
|
padding-top: 1.35rem;
|
|
}
|
|
|
|
.wire-feature-card__footer-content {
|
|
position: relative;
|
|
z-index: 3;
|
|
min-width: 0;
|
|
}
|
|
|
|
.wire-feature-card__footer-content:empty {
|
|
display: none;
|
|
}
|
|
|
|
.wire-feature-card__action {
|
|
position: relative;
|
|
z-index: 2;
|
|
display: inline-flex;
|
|
flex: 0 0 auto;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.45rem;
|
|
min-height: 2.25rem;
|
|
margin-left: auto;
|
|
color: var(--feature-accent);
|
|
font-size: 0.84rem;
|
|
font-weight: 600;
|
|
line-height: 1.2;
|
|
text-decoration: none;
|
|
transition:
|
|
color 180ms ease,
|
|
gap 180ms ease;
|
|
}
|
|
|
|
.wire-feature-card__action::before {
|
|
position: absolute;
|
|
inset: -0.4rem -0.55rem;
|
|
content: "";
|
|
border-radius: 0.75rem;
|
|
}
|
|
|
|
.wire-feature-card[data-stretched-link="true"] .wire-feature-card__action::after {
|
|
position: absolute;
|
|
inset: auto;
|
|
z-index: 1;
|
|
content: "";
|
|
}
|
|
|
|
.wire-feature-card[data-stretched-link="true"] .wire-feature-card__action {
|
|
position: static;
|
|
}
|
|
|
|
.wire-feature-card[data-stretched-link="true"] .wire-feature-card__action::after {
|
|
position: absolute;
|
|
inset: 0;
|
|
border-radius: inherit;
|
|
}
|
|
|
|
.wire-feature-card__action:hover {
|
|
color: var(--feature-accent-hover, var(--feature-accent));
|
|
gap: 0.65rem;
|
|
}
|
|
|
|
.wire-feature-card__action:focus-visible {
|
|
outline: 2px solid var(--wire-color-focus);
|
|
outline-offset: 4px;
|
|
border-radius: 0.55rem;
|
|
}
|
|
|
|
.wire-feature-card__action-icon {
|
|
width: 1rem;
|
|
height: 1rem;
|
|
transition: transform 180ms ease;
|
|
}
|
|
|
|
.wire-feature-card__action:hover .wire-feature-card__action-icon {
|
|
transform: translateX(0.15rem);
|
|
}
|
|
|
|
.wire-feature-card__action--disabled {
|
|
color: var(--wire-color-text-muted);
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.wire-feature-card[data-align="center"] .wire-feature-card__body {
|
|
align-items: center;
|
|
text-align: center;
|
|
}
|
|
|
|
.wire-feature-card[data-align="center"] .wire-feature-card__top,
|
|
.wire-feature-card[data-align="center"] .wire-feature-card__footer {
|
|
width: 100%;
|
|
justify-content: center;
|
|
}
|
|
|
|
.wire-feature-card[data-align="center"] .wire-feature-card__action {
|
|
margin-inline: auto;
|
|
}
|
|
|
|
.wire-feature-card[data-align="right"] .wire-feature-card__body {
|
|
align-items: flex-end;
|
|
text-align: right;
|
|
}
|
|
|
|
.wire-feature-card[data-align="right"] .wire-feature-card__top,
|
|
.wire-feature-card[data-align="right"] .wire-feature-card__footer {
|
|
width: 100%;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.wire-feature-card[data-variant="raised"] {
|
|
box-shadow:
|
|
0 1px 0 color-mix(in srgb, white 5%, transparent) inset,
|
|
0 20px 50px color-mix(in srgb, black 17%, transparent);
|
|
}
|
|
|
|
.wire-feature-card[data-variant="soft"] {
|
|
background:
|
|
linear-gradient(135deg, var(--feature-accent-soft), transparent 68%),
|
|
var(--wire-color-surface-raised);
|
|
border-color: color-mix(in srgb, var(--feature-accent) 22%, var(--wire-color-border));
|
|
box-shadow: none;
|
|
}
|
|
|
|
.wire-feature-card[data-variant="outline"] {
|
|
background: transparent;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.wire-feature-card[data-variant="ghost"] {
|
|
background: transparent;
|
|
border-color: transparent;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.wire-feature-card[data-variant="minimal"] {
|
|
background: transparent;
|
|
border-color: transparent;
|
|
border-radius: 0;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.wire-feature-card[data-variant="solid"] {
|
|
color: var(--feature-contrast);
|
|
background:
|
|
linear-gradient(135deg, color-mix(in srgb, white 9%, transparent), transparent 60%),
|
|
var(--feature-accent);
|
|
border-color: color-mix(in srgb, white 20%, transparent);
|
|
box-shadow: 0 22px 54px color-mix(in srgb, var(--feature-accent) 28%, transparent);
|
|
}
|
|
|
|
.wire-feature-card[data-variant="solid"] .wire-feature-card__title,
|
|
.wire-feature-card[data-variant="solid"] .wire-feature-card__description,
|
|
.wire-feature-card[data-variant="solid"] .wire-feature-card__eyebrow,
|
|
.wire-feature-card[data-variant="solid"] .wire-feature-card__action {
|
|
color: var(--feature-contrast);
|
|
}
|
|
|
|
.wire-feature-card[data-variant="solid"] .wire-feature-card__description {
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.wire-feature-card[data-variant="solid"] .wire-feature-card__icon,
|
|
.wire-feature-card[data-variant="solid"] .wire-feature-card__badge {
|
|
color: var(--feature-contrast);
|
|
background: color-mix(in srgb, white 12%, transparent);
|
|
border-color: color-mix(in srgb, white 20%, transparent);
|
|
}
|
|
|
|
.wire-feature-card[data-variant="gradient"] {
|
|
background:
|
|
radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--feature-accent) 24%, transparent), transparent 44%),
|
|
linear-gradient(145deg, var(--wire-color-surface-raised), color-mix(in srgb, var(--feature-accent) 8%, var(--wire-color-surface-raised)));
|
|
border-color: color-mix(in srgb, var(--feature-accent) 26%, var(--wire-color-border));
|
|
}
|
|
|
|
.wire-feature-card[data-hover="lift"]:not([data-disabled="true"]):hover {
|
|
transform: translateY(-0.3rem);
|
|
border-color: color-mix(in srgb, var(--feature-accent) 48%, var(--wire-color-border));
|
|
box-shadow:
|
|
0 1px 0 color-mix(in srgb, white 5%, transparent) inset,
|
|
0 24px 58px color-mix(in srgb, black 20%, transparent);
|
|
}
|
|
|
|
.wire-feature-card[data-hover="shadow"]:not([data-disabled="true"]):hover {
|
|
box-shadow:
|
|
0 1px 0 color-mix(in srgb, white 5%, transparent) inset,
|
|
0 24px 58px color-mix(in srgb, black 20%, transparent);
|
|
}
|
|
|
|
.wire-feature-card[data-hover="border"]:not([data-disabled="true"]):hover {
|
|
border-color: color-mix(in srgb, var(--feature-accent) 58%, var(--wire-color-border));
|
|
}
|
|
|
|
.wire-feature-card[data-hover="glow"]:not([data-disabled="true"]):hover {
|
|
border-color: color-mix(in srgb, var(--feature-accent) 54%, var(--wire-color-border));
|
|
box-shadow: 0 20px 60px color-mix(in srgb, var(--feature-accent) 22%, transparent);
|
|
}
|
|
|
|
.wire-feature-card:not([data-disabled="true"]):hover .wire-feature-card__image {
|
|
transform: scale(1.035);
|
|
}
|
|
|
|
.wire-feature-card:not([data-disabled="true"]):hover .wire-feature-card__title {
|
|
color: var(--feature-accent);
|
|
}
|
|
|
|
.wire-feature-card[data-variant="solid"]:not([data-disabled="true"]):hover .wire-feature-card__title {
|
|
color: var(--feature-contrast);
|
|
}
|
|
|
|
.wire-feature-card[data-disabled="true"] {
|
|
pointer-events: none;
|
|
opacity: 0.55;
|
|
filter: saturate(0.65);
|
|
}
|
|
|
|
@media (min-width: 48rem) {
|
|
.wire-feature-card[data-image-position="left"],
|
|
.wire-feature-card[data-image-position="right"] {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
|
|
}
|
|
|
|
.wire-feature-card[data-image-position="right"] {
|
|
grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
|
|
}
|
|
|
|
.wire-feature-card[data-image-position="right"] .wire-feature-card__media {
|
|
order: 2;
|
|
border-right: 0;
|
|
border-bottom: 0;
|
|
border-left: 1px solid var(--feature-border);
|
|
}
|
|
|
|
.wire-feature-card[data-image-position="left"] .wire-feature-card__media {
|
|
border-right: 1px solid var(--feature-border);
|
|
border-bottom: 0;
|
|
}
|
|
|
|
.wire-feature-card[data-image-position="left"] .wire-feature-card__media,
|
|
.wire-feature-card[data-image-position="right"] .wire-feature-card__media {
|
|
height: 100%;
|
|
min-height: 15rem;
|
|
aspect-ratio: auto;
|
|
}
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.wire-feature-card,
|
|
.wire-feature-card__image,
|
|
.wire-feature-card__action,
|
|
.wire-feature-card__action-icon {
|
|
transition: none;
|
|
}
|
|
}
|
|
}
|
|
}
|