refactor: migrate legacy wire namespace to wrn
This commit is contained in:
@@ -46,60 +46,60 @@ component SplitHero {
|
||||
data-max-width='{maxWidth}'
|
||||
data-full-bleed='{fullBleed ? "true" : "false"}'
|
||||
data-visual-style='{visualStyle}'
|
||||
class='wire-split-hero {class}'
|
||||
class='wrn-split-hero {class}'
|
||||
>
|
||||
{#if backgroundImage}
|
||||
<img
|
||||
src='{backgroundImage}'
|
||||
alt=""
|
||||
aria-hidden="true"
|
||||
class="wire-split-hero__background-image"
|
||||
class="wrn-split-hero__background-image"
|
||||
/>
|
||||
{/if}
|
||||
|
||||
<div class="wire-split-hero__glow wire-split-hero__glow--one" aria-hidden="true"></div>
|
||||
<div class="wire-split-hero__glow wire-split-hero__glow--two" aria-hidden="true"></div>
|
||||
<div class="wrn-split-hero__glow wrn-split-hero__glow--one" aria-hidden="true"></div>
|
||||
<div class="wrn-split-hero__glow wrn-split-hero__glow--two" aria-hidden="true"></div>
|
||||
|
||||
<div class="wire-split-hero__inner">
|
||||
<div class="wire-split-hero__layout">
|
||||
<div class="wire-split-hero__content">
|
||||
<div class="wrn-split-hero__inner">
|
||||
<div class="wrn-split-hero__layout">
|
||||
<div class="wrn-split-hero__content">
|
||||
{#if eyebrow}
|
||||
<div class="wire-split-hero__eyebrow">
|
||||
<div class="wrn-split-hero__eyebrow">
|
||||
{#if eyebrowIcon}
|
||||
<span class='wire-split-hero__eyebrow-icon {eyebrowIcon}' aria-hidden="true"></span>
|
||||
<span class='wrn-split-hero__eyebrow-icon {eyebrowIcon}' aria-hidden="true"></span>
|
||||
{/if}
|
||||
<span>{eyebrow}</span>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<h1 class="wire-split-hero__title">
|
||||
<h1 class="wrn-split-hero__title">
|
||||
<span>{title}</span>
|
||||
{#if highlight}
|
||||
<span class="wire-split-hero__highlight">{highlight}</span>
|
||||
<span class="wrn-split-hero__highlight">{highlight}</span>
|
||||
{/if}
|
||||
</h1>
|
||||
|
||||
{#if description}
|
||||
<p class="wire-split-hero__description">{description}</p>
|
||||
<p class="wrn-split-hero__description">{description}</p>
|
||||
{/if}
|
||||
|
||||
<slot></slot>
|
||||
|
||||
{#if primaryLabel || secondaryLabel}
|
||||
<div class="wire-split-hero__actions">
|
||||
<div class="wrn-split-hero__actions">
|
||||
{#if primaryLabel}
|
||||
<a href='{primaryHref || "#"}' class="wire-split-hero__action wire-split-hero__action--primary">
|
||||
<a href='{primaryHref || "#"}' class="wrn-split-hero__action wrn-split-hero__action--primary">
|
||||
{#if primaryIcon}
|
||||
<span class='wire-split-hero__action-icon {primaryIcon}' aria-hidden="true"></span>
|
||||
<span class='wrn-split-hero__action-icon {primaryIcon}' aria-hidden="true"></span>
|
||||
{/if}
|
||||
<span>{primaryLabel}</span>
|
||||
</a>
|
||||
{/if}
|
||||
|
||||
{#if secondaryLabel}
|
||||
<a href='{secondaryHref || "#"}' class="wire-split-hero__action wire-split-hero__action--secondary">
|
||||
<a href='{secondaryHref || "#"}' class="wrn-split-hero__action wrn-split-hero__action--secondary">
|
||||
{#if secondaryIcon}
|
||||
<span class='wire-split-hero__action-icon {secondaryIcon}' aria-hidden="true"></span>
|
||||
<span class='wrn-split-hero__action-icon {secondaryIcon}' aria-hidden="true"></span>
|
||||
{/if}
|
||||
<span>{secondaryLabel}</span>
|
||||
</a>
|
||||
@@ -108,15 +108,15 @@ component SplitHero {
|
||||
<slot name="actions"></slot>
|
||||
</div>
|
||||
{:else}
|
||||
<div class="wire-split-hero__actions wire-split-hero__actions--slot">
|
||||
<div class="wrn-split-hero__actions wrn-split-hero__actions--slot">
|
||||
<slot name="actions"></slot>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{#if trustItems.length > 0}
|
||||
<div class="wire-split-hero__trust">
|
||||
<div class="wrn-split-hero__trust">
|
||||
{#each trustItems as item}
|
||||
<span class="wire-split-hero__trust-item">
|
||||
<span class="wrn-split-hero__trust-item">
|
||||
<span class='{item.icon || "icon-[lucide--check-circle-2]"}' aria-hidden="true"></span>
|
||||
<span>{item.label || item.title || item}</span>
|
||||
</span>
|
||||
@@ -127,53 +127,53 @@ component SplitHero {
|
||||
<slot name="trust"></slot>
|
||||
</div>
|
||||
|
||||
<div class="wire-split-hero__visual-column">
|
||||
<div class="wrn-split-hero__visual-column">
|
||||
<slot name="visual"></slot>
|
||||
|
||||
{#if visualImage || visualIcon || visualEyebrow || visualTitle || visualDescription || visualItems.length > 0}
|
||||
<div class="wire-split-hero__visual">
|
||||
<div class="wrn-split-hero__visual">
|
||||
{#if visualImage}
|
||||
<div class="wire-split-hero__visual-media">
|
||||
<img src='{visualImage}' alt='{visualAlt}' class="wire-split-hero__visual-image" />
|
||||
<div class="wrn-split-hero__visual-media">
|
||||
<img src='{visualImage}' alt='{visualAlt}' class="wrn-split-hero__visual-image" />
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{#if visualIcon || visualEyebrow || visualTitle || visualDescription}
|
||||
<div class="wire-split-hero__visual-header">
|
||||
<div class="wrn-split-hero__visual-header">
|
||||
{#if visualIcon}
|
||||
<div class="wire-split-hero__visual-icon" aria-hidden="true">
|
||||
<div class="wrn-split-hero__visual-icon" aria-hidden="true">
|
||||
<span class='{visualIcon}'></span>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="wire-split-hero__visual-copy">
|
||||
<div class="wrn-split-hero__visual-copy">
|
||||
{#if visualEyebrow}
|
||||
<p class="wire-split-hero__visual-eyebrow">{visualEyebrow}</p>
|
||||
<p class="wrn-split-hero__visual-eyebrow">{visualEyebrow}</p>
|
||||
{/if}
|
||||
|
||||
{#if visualTitle}
|
||||
<h2 class="wire-split-hero__visual-title">{visualTitle}</h2>
|
||||
<h2 class="wrn-split-hero__visual-title">{visualTitle}</h2>
|
||||
{/if}
|
||||
|
||||
{#if visualDescription}
|
||||
<p class="wire-split-hero__visual-description">{visualDescription}</p>
|
||||
<p class="wrn-split-hero__visual-description">{visualDescription}</p>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{#if visualItems.length > 0}
|
||||
<div class="wire-split-hero__visual-list">
|
||||
<div class="wrn-split-hero__visual-list">
|
||||
{#each visualItems as item}
|
||||
<div class="wire-split-hero__visual-item">
|
||||
<div class="wrn-split-hero__visual-item">
|
||||
{#if item.icon}
|
||||
<div class="wire-split-hero__visual-item-icon" aria-hidden="true">
|
||||
<div class="wrn-split-hero__visual-item-icon" aria-hidden="true">
|
||||
<span class='{item.icon}'></span>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="wire-split-hero__visual-item-copy">
|
||||
<div class="wire-split-hero__visual-item-heading">
|
||||
<div class="wrn-split-hero__visual-item-copy">
|
||||
<div class="wrn-split-hero__visual-item-heading">
|
||||
<strong>{item.label || item.title}</strong>
|
||||
{#if item.value}
|
||||
<span>{item.value}</span>
|
||||
@@ -197,103 +197,103 @@ component SplitHero {
|
||||
}
|
||||
|
||||
style {
|
||||
.wire-split-hero {
|
||||
--split-accent: var(--wire-color-primary);
|
||||
--split-accent-hover: var(--wire-color-primary-hover);
|
||||
--split-accent-soft: var(--wire-color-primary-soft);
|
||||
--split-accent-muted: var(--wire-color-primary-muted);
|
||||
--split-contrast: var(--wire-color-primary-contrast);
|
||||
--split-border: color-mix(in srgb, var(--split-accent) 14%, var(--wire-color-border));
|
||||
.wrn-split-hero {
|
||||
--split-accent: var(--wrn-color-primary);
|
||||
--split-accent-hover: var(--wrn-color-primary-hover);
|
||||
--split-accent-soft: var(--wrn-color-primary-soft);
|
||||
--split-accent-muted: var(--wrn-color-primary-muted);
|
||||
--split-contrast: var(--wrn-color-primary-contrast);
|
||||
--split-border: color-mix(in srgb, var(--split-accent) 14%, var(--wrn-color-border));
|
||||
|
||||
position: relative;
|
||||
isolation: isolate;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
color: var(--wire-color-text);
|
||||
color: var(--wrn-color-text);
|
||||
background:
|
||||
radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--split-accent) 11%, transparent), transparent 28%),
|
||||
var(--wire-color-background);
|
||||
var(--wrn-color-background);
|
||||
}
|
||||
|
||||
.wire-split-hero[data-color="secondary"] {
|
||||
--split-accent: var(--wire-color-secondary);
|
||||
--split-accent-hover: var(--wire-color-secondary-hover);
|
||||
--split-accent-soft: var(--wire-color-secondary-soft);
|
||||
--split-accent-muted: var(--wire-color-secondary-muted);
|
||||
--split-contrast: var(--wire-color-secondary-contrast);
|
||||
.wrn-split-hero[data-color="secondary"] {
|
||||
--split-accent: var(--wrn-color-secondary);
|
||||
--split-accent-hover: var(--wrn-color-secondary-hover);
|
||||
--split-accent-soft: var(--wrn-color-secondary-soft);
|
||||
--split-accent-muted: var(--wrn-color-secondary-muted);
|
||||
--split-contrast: var(--wrn-color-secondary-contrast);
|
||||
}
|
||||
|
||||
.wire-split-hero[data-color="info"] {
|
||||
--split-accent: var(--wire-color-info);
|
||||
--split-accent-hover: var(--wire-color-info-hover);
|
||||
--split-accent-soft: var(--wire-color-info-soft);
|
||||
--split-accent-muted: var(--wire-color-info-muted);
|
||||
--split-contrast: var(--wire-color-info-contrast);
|
||||
.wrn-split-hero[data-color="info"] {
|
||||
--split-accent: var(--wrn-color-info);
|
||||
--split-accent-hover: var(--wrn-color-info-hover);
|
||||
--split-accent-soft: var(--wrn-color-info-soft);
|
||||
--split-accent-muted: var(--wrn-color-info-muted);
|
||||
--split-contrast: var(--wrn-color-info-contrast);
|
||||
}
|
||||
|
||||
.wire-split-hero[data-color="success"] {
|
||||
--split-accent: var(--wire-color-success);
|
||||
--split-accent-hover: var(--wire-color-success-hover);
|
||||
--split-accent-soft: var(--wire-color-success-soft);
|
||||
--split-accent-muted: var(--wire-color-success-muted);
|
||||
--split-contrast: var(--wire-color-success-contrast);
|
||||
.wrn-split-hero[data-color="success"] {
|
||||
--split-accent: var(--wrn-color-success);
|
||||
--split-accent-hover: var(--wrn-color-success-hover);
|
||||
--split-accent-soft: var(--wrn-color-success-soft);
|
||||
--split-accent-muted: var(--wrn-color-success-muted);
|
||||
--split-contrast: var(--wrn-color-success-contrast);
|
||||
}
|
||||
|
||||
.wire-split-hero[data-color="warning"] {
|
||||
--split-accent: var(--wire-color-warning);
|
||||
--split-accent-hover: var(--wire-color-warning-hover);
|
||||
--split-accent-soft: var(--wire-color-warning-soft);
|
||||
--split-accent-muted: var(--wire-color-warning-muted);
|
||||
--split-contrast: var(--wire-color-warning-contrast);
|
||||
.wrn-split-hero[data-color="warning"] {
|
||||
--split-accent: var(--wrn-color-warning);
|
||||
--split-accent-hover: var(--wrn-color-warning-hover);
|
||||
--split-accent-soft: var(--wrn-color-warning-soft);
|
||||
--split-accent-muted: var(--wrn-color-warning-muted);
|
||||
--split-contrast: var(--wrn-color-warning-contrast);
|
||||
}
|
||||
|
||||
.wire-split-hero[data-color="danger"] {
|
||||
--split-accent: var(--wire-color-danger);
|
||||
--split-accent-hover: var(--wire-color-danger-hover);
|
||||
--split-accent-soft: var(--wire-color-danger-soft);
|
||||
--split-accent-muted: var(--wire-color-danger-muted);
|
||||
--split-contrast: var(--wire-color-danger-contrast);
|
||||
.wrn-split-hero[data-color="danger"] {
|
||||
--split-accent: var(--wrn-color-danger);
|
||||
--split-accent-hover: var(--wrn-color-danger-hover);
|
||||
--split-accent-soft: var(--wrn-color-danger-soft);
|
||||
--split-accent-muted: var(--wrn-color-danger-muted);
|
||||
--split-contrast: var(--wrn-color-danger-contrast);
|
||||
}
|
||||
|
||||
.wire-split-hero[data-variant="soft"] {
|
||||
.wrn-split-hero[data-variant="soft"] {
|
||||
background:
|
||||
radial-gradient(circle at 84% 18%, color-mix(in srgb, var(--split-accent) 16%, transparent), transparent 30%),
|
||||
linear-gradient(135deg, var(--split-accent-soft), transparent 64%),
|
||||
var(--wire-color-background);
|
||||
var(--wrn-color-background);
|
||||
}
|
||||
|
||||
.wire-split-hero[data-variant="raised"] {
|
||||
background: var(--wire-color-surface-raised);
|
||||
.wrn-split-hero[data-variant="raised"] {
|
||||
background: var(--wrn-color-surface-raised);
|
||||
border-block: 1px solid var(--split-border);
|
||||
box-shadow: 0 22px 70px color-mix(in srgb, black 14%, transparent);
|
||||
}
|
||||
|
||||
.wire-split-hero[data-variant="outline"] {
|
||||
.wrn-split-hero[data-variant="outline"] {
|
||||
background: transparent;
|
||||
border-block: 1px solid var(--split-border);
|
||||
}
|
||||
|
||||
.wire-split-hero[data-variant="gradient"] {
|
||||
.wrn-split-hero[data-variant="gradient"] {
|
||||
background:
|
||||
radial-gradient(circle at 82% 16%, color-mix(in srgb, var(--split-accent) 28%, transparent), transparent 32%),
|
||||
linear-gradient(135deg, color-mix(in srgb, var(--split-accent) 13%, var(--wire-color-background)), var(--wire-color-background) 58%);
|
||||
linear-gradient(135deg, color-mix(in srgb, var(--split-accent) 13%, var(--wrn-color-background)), var(--wrn-color-background) 58%);
|
||||
}
|
||||
|
||||
.wire-split-hero[data-variant="solid"] {
|
||||
.wrn-split-hero[data-variant="solid"] {
|
||||
color: var(--split-contrast);
|
||||
background:
|
||||
radial-gradient(circle at 82% 16%, color-mix(in srgb, white 14%, transparent), transparent 32%),
|
||||
var(--split-accent);
|
||||
}
|
||||
|
||||
.wire-split-hero[data-full-bleed="false"] {
|
||||
.wrn-split-hero[data-full-bleed="false"] {
|
||||
width: min(calc(100% - 2rem), 90rem);
|
||||
margin-inline: auto;
|
||||
border: 1px solid var(--split-border);
|
||||
border-radius: 1.75rem;
|
||||
}
|
||||
|
||||
.wire-split-hero__background-image {
|
||||
.wrn-split-hero__background-image {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
z-index: -3;
|
||||
@@ -303,7 +303,7 @@ component SplitHero {
|
||||
opacity: 0.12;
|
||||
}
|
||||
|
||||
.wire-split-hero__glow {
|
||||
.wrn-split-hero__glow {
|
||||
position: absolute;
|
||||
z-index: -2;
|
||||
width: 24rem;
|
||||
@@ -315,78 +315,78 @@ component SplitHero {
|
||||
opacity: 0.08;
|
||||
}
|
||||
|
||||
.wire-split-hero__glow--one {
|
||||
.wrn-split-hero__glow--one {
|
||||
top: -11rem;
|
||||
right: -6rem;
|
||||
}
|
||||
|
||||
.wire-split-hero__glow--two {
|
||||
.wrn-split-hero__glow--two {
|
||||
bottom: -14rem;
|
||||
left: -7rem;
|
||||
opacity: 0.05;
|
||||
}
|
||||
|
||||
.wire-split-hero__inner {
|
||||
.wrn-split-hero__inner {
|
||||
width: min(calc(100% - 2rem), 80rem);
|
||||
margin-inline: auto;
|
||||
padding-block: 5rem;
|
||||
}
|
||||
|
||||
.wire-split-hero[data-max-width="compact"] .wire-split-hero__inner {
|
||||
.wrn-split-hero[data-max-width="compact"] .wrn-split-hero__inner {
|
||||
width: min(calc(100% - 2rem), 64rem);
|
||||
}
|
||||
|
||||
.wire-split-hero[data-max-width="lg"] .wire-split-hero__inner {
|
||||
.wrn-split-hero[data-max-width="lg"] .wrn-split-hero__inner {
|
||||
width: min(calc(100% - 2rem), 72rem);
|
||||
}
|
||||
|
||||
.wire-split-hero[data-max-width="wide"] .wire-split-hero__inner,
|
||||
.wire-split-hero[data-max-width="2xl"] .wire-split-hero__inner {
|
||||
.wrn-split-hero[data-max-width="wide"] .wrn-split-hero__inner,
|
||||
.wrn-split-hero[data-max-width="2xl"] .wrn-split-hero__inner {
|
||||
width: min(calc(100% - 2rem), 90rem);
|
||||
}
|
||||
|
||||
.wire-split-hero[data-max-width="full"] .wire-split-hero__inner {
|
||||
.wrn-split-hero[data-max-width="full"] .wrn-split-hero__inner {
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
padding-inline: 2rem;
|
||||
}
|
||||
|
||||
.wire-split-hero[data-size="compact"] .wire-split-hero__inner,
|
||||
.wire-split-hero[data-size="sm"] .wire-split-hero__inner {
|
||||
.wrn-split-hero[data-size="compact"] .wrn-split-hero__inner,
|
||||
.wrn-split-hero[data-size="sm"] .wrn-split-hero__inner {
|
||||
padding-block: 3rem;
|
||||
}
|
||||
|
||||
.wire-split-hero[data-size="lg"] .wire-split-hero__inner {
|
||||
.wrn-split-hero[data-size="lg"] .wrn-split-hero__inner {
|
||||
padding-block: 6rem;
|
||||
}
|
||||
|
||||
.wire-split-hero__layout {
|
||||
.wrn-split-hero__layout {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
align-items: center;
|
||||
gap: 3rem;
|
||||
}
|
||||
|
||||
.wire-split-hero__content,
|
||||
.wire-split-hero__visual-column {
|
||||
.wrn-split-hero__content,
|
||||
.wrn-split-hero__visual-column {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.wire-split-hero__content {
|
||||
.wrn-split-hero__content {
|
||||
max-width: 45rem;
|
||||
}
|
||||
|
||||
.wire-split-hero[data-align="center"] .wire-split-hero__content {
|
||||
.wrn-split-hero[data-align="center"] .wrn-split-hero__content {
|
||||
margin-inline: auto;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.wire-split-hero[data-align="right"] .wire-split-hero__content {
|
||||
.wrn-split-hero[data-align="right"] .wrn-split-hero__content {
|
||||
margin-left: auto;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.wire-split-hero__eyebrow {
|
||||
.wrn-split-hero__eyebrow {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
@@ -401,81 +401,81 @@ component SplitHero {
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.wire-split-hero[data-variant="solid"] .wire-split-hero__eyebrow {
|
||||
.wrn-split-hero[data-variant="solid"] .wrn-split-hero__eyebrow {
|
||||
color: currentColor;
|
||||
background: color-mix(in srgb, white 14%, transparent);
|
||||
border-color: color-mix(in srgb, white 22%, transparent);
|
||||
}
|
||||
|
||||
.wire-split-hero__eyebrow-icon {
|
||||
.wrn-split-hero__eyebrow-icon {
|
||||
width: 0.95rem;
|
||||
height: 0.95rem;
|
||||
}
|
||||
|
||||
.wire-split-hero__title {
|
||||
.wrn-split-hero__title {
|
||||
max-width: 15ch;
|
||||
margin: 1.45rem 0 0;
|
||||
color: var(--wire-color-text);
|
||||
color: var(--wrn-color-text);
|
||||
font-size: clamp(2.35rem, 6vw, 4.8rem);
|
||||
font-weight: 650;
|
||||
line-height: 1.02;
|
||||
letter-spacing: -0.05em;
|
||||
}
|
||||
|
||||
.wire-split-hero[data-size="compact"] .wire-split-hero__title,
|
||||
.wire-split-hero[data-size="sm"] .wire-split-hero__title {
|
||||
.wrn-split-hero[data-size="compact"] .wrn-split-hero__title,
|
||||
.wrn-split-hero[data-size="sm"] .wrn-split-hero__title {
|
||||
font-size: clamp(2rem, 5vw, 3.4rem);
|
||||
}
|
||||
|
||||
.wire-split-hero[data-size="lg"] .wire-split-hero__title {
|
||||
.wrn-split-hero[data-size="lg"] .wrn-split-hero__title {
|
||||
font-size: clamp(2.75rem, 7vw, 5.5rem);
|
||||
}
|
||||
|
||||
.wire-split-hero[data-align="center"] .wire-split-hero__title,
|
||||
.wire-split-hero[data-align="right"] .wire-split-hero__title {
|
||||
.wrn-split-hero[data-align="center"] .wrn-split-hero__title,
|
||||
.wrn-split-hero[data-align="right"] .wrn-split-hero__title {
|
||||
margin-inline: auto;
|
||||
}
|
||||
|
||||
.wire-split-hero[data-align="right"] .wire-split-hero__title {
|
||||
.wrn-split-hero[data-align="right"] .wrn-split-hero__title {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.wire-split-hero[data-variant="solid"] .wire-split-hero__title {
|
||||
.wrn-split-hero[data-variant="solid"] .wrn-split-hero__title {
|
||||
color: currentColor;
|
||||
}
|
||||
|
||||
.wire-split-hero__highlight {
|
||||
.wrn-split-hero__highlight {
|
||||
display: block;
|
||||
color: var(--split-accent);
|
||||
}
|
||||
|
||||
.wire-split-hero[data-variant="solid"] .wire-split-hero__highlight {
|
||||
.wrn-split-hero[data-variant="solid"] .wrn-split-hero__highlight {
|
||||
color: currentColor;
|
||||
opacity: 0.82;
|
||||
}
|
||||
|
||||
.wire-split-hero__description {
|
||||
.wrn-split-hero__description {
|
||||
max-width: 42rem;
|
||||
margin: 1.4rem 0 0;
|
||||
color: var(--wire-color-text-muted);
|
||||
color: var(--wrn-color-text-muted);
|
||||
font-size: clamp(0.96rem, 1.8vw, 1.1rem);
|
||||
line-height: 1.8;
|
||||
}
|
||||
|
||||
.wire-split-hero[data-align="center"] .wire-split-hero__description,
|
||||
.wire-split-hero[data-align="right"] .wire-split-hero__description {
|
||||
.wrn-split-hero[data-align="center"] .wrn-split-hero__description,
|
||||
.wrn-split-hero[data-align="right"] .wrn-split-hero__description {
|
||||
margin-inline: auto;
|
||||
}
|
||||
|
||||
.wire-split-hero[data-align="right"] .wire-split-hero__description {
|
||||
.wrn-split-hero[data-align="right"] .wrn-split-hero__description {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.wire-split-hero[data-variant="solid"] .wire-split-hero__description {
|
||||
.wrn-split-hero[data-variant="solid"] .wrn-split-hero__description {
|
||||
color: color-mix(in srgb, currentColor 82%, transparent);
|
||||
}
|
||||
|
||||
.wire-split-hero__actions {
|
||||
.wrn-split-hero__actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
@@ -483,19 +483,19 @@ component SplitHero {
|
||||
margin-top: 2rem;
|
||||
}
|
||||
|
||||
.wire-split-hero__actions--slot:empty {
|
||||
.wrn-split-hero__actions--slot:empty {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.wire-split-hero[data-align="center"] .wire-split-hero__actions {
|
||||
.wrn-split-hero[data-align="center"] .wrn-split-hero__actions {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.wire-split-hero[data-align="right"] .wire-split-hero__actions {
|
||||
.wrn-split-hero[data-align="right"] .wrn-split-hero__actions {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.wire-split-hero__action {
|
||||
.wrn-split-hero__action {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@@ -515,100 +515,100 @@ component SplitHero {
|
||||
box-shadow 160ms ease;
|
||||
}
|
||||
|
||||
.wire-split-hero__action:hover {
|
||||
.wrn-split-hero__action:hover {
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.wire-split-hero__action--primary {
|
||||
.wrn-split-hero__action--primary {
|
||||
color: var(--split-contrast);
|
||||
background: var(--split-accent);
|
||||
border: 1px solid transparent;
|
||||
box-shadow: 0 10px 26px color-mix(in srgb, var(--split-accent) 22%, transparent);
|
||||
}
|
||||
|
||||
.wire-split-hero__action--primary:hover {
|
||||
.wrn-split-hero__action--primary:hover {
|
||||
background: var(--split-accent-hover);
|
||||
}
|
||||
|
||||
.wire-split-hero__action--secondary {
|
||||
.wrn-split-hero__action--secondary {
|
||||
color: var(--split-accent);
|
||||
background: transparent;
|
||||
border: 1px solid color-mix(in srgb, var(--split-accent) 42%, var(--wire-color-border));
|
||||
border: 1px solid color-mix(in srgb, var(--split-accent) 42%, var(--wrn-color-border));
|
||||
}
|
||||
|
||||
.wire-split-hero__action--secondary:hover {
|
||||
.wrn-split-hero__action--secondary:hover {
|
||||
background: var(--split-accent-soft);
|
||||
border-color: var(--split-accent);
|
||||
}
|
||||
|
||||
.wire-split-hero[data-variant="solid"] .wire-split-hero__action--primary {
|
||||
.wrn-split-hero[data-variant="solid"] .wrn-split-hero__action--primary {
|
||||
color: var(--split-accent);
|
||||
background: var(--split-contrast);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.wire-split-hero[data-variant="solid"] .wire-split-hero__action--secondary {
|
||||
.wrn-split-hero[data-variant="solid"] .wrn-split-hero__action--secondary {
|
||||
color: currentColor;
|
||||
border-color: color-mix(in srgb, white 46%, transparent);
|
||||
}
|
||||
|
||||
.wire-split-hero[data-variant="solid"] .wire-split-hero__action--secondary:hover {
|
||||
.wrn-split-hero[data-variant="solid"] .wrn-split-hero__action--secondary:hover {
|
||||
background: color-mix(in srgb, white 12%, transparent);
|
||||
border-color: color-mix(in srgb, white 68%, transparent);
|
||||
}
|
||||
|
||||
.wire-split-hero__action-icon {
|
||||
.wrn-split-hero__action-icon {
|
||||
width: 1rem;
|
||||
height: 1rem;
|
||||
}
|
||||
|
||||
.wire-split-hero__action:focus-visible {
|
||||
outline: 2px solid var(--wire-color-focus);
|
||||
.wrn-split-hero__action:focus-visible {
|
||||
outline: 2px solid var(--wrn-color-focus);
|
||||
outline-offset: 3px;
|
||||
}
|
||||
|
||||
.wire-split-hero__trust {
|
||||
.wrn-split-hero__trust {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.75rem 1.2rem;
|
||||
margin-top: 1.7rem;
|
||||
color: var(--wire-color-text-muted);
|
||||
color: var(--wrn-color-text-muted);
|
||||
font-size: 0.78rem;
|
||||
}
|
||||
|
||||
.wire-split-hero[data-align="center"] .wire-split-hero__trust {
|
||||
.wrn-split-hero[data-align="center"] .wrn-split-hero__trust {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.wire-split-hero[data-align="right"] .wire-split-hero__trust {
|
||||
.wrn-split-hero[data-align="right"] .wrn-split-hero__trust {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.wire-split-hero[data-variant="solid"] .wire-split-hero__trust {
|
||||
.wrn-split-hero[data-variant="solid"] .wrn-split-hero__trust {
|
||||
color: color-mix(in srgb, currentColor 80%, transparent);
|
||||
}
|
||||
|
||||
.wire-split-hero__trust-item {
|
||||
.wrn-split-hero__trust-item {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.42rem;
|
||||
}
|
||||
|
||||
.wire-split-hero__trust-item > span:first-child {
|
||||
.wrn-split-hero__trust-item > span:first-child {
|
||||
width: 0.95rem;
|
||||
height: 0.95rem;
|
||||
color: var(--split-accent);
|
||||
}
|
||||
|
||||
.wire-split-hero[data-variant="solid"] .wire-split-hero__trust-item > span:first-child {
|
||||
.wrn-split-hero[data-variant="solid"] .wrn-split-hero__trust-item > span:first-child {
|
||||
color: currentColor;
|
||||
}
|
||||
|
||||
.wire-split-hero__visual-column {
|
||||
.wrn-split-hero__visual-column {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.wire-split-hero__visual-column::before {
|
||||
.wrn-split-hero__visual-column::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 8% -5% -4% 8%;
|
||||
@@ -619,11 +619,11 @@ component SplitHero {
|
||||
transform: rotate(2deg);
|
||||
}
|
||||
|
||||
.wire-split-hero__visual {
|
||||
.wrn-split-hero__visual {
|
||||
overflow: hidden;
|
||||
background:
|
||||
linear-gradient(145deg, color-mix(in srgb, var(--split-accent) 7%, transparent), transparent 58%),
|
||||
var(--wire-color-surface-raised);
|
||||
var(--wrn-color-surface-raised);
|
||||
border: 1px solid var(--split-border);
|
||||
border-radius: 1.5rem;
|
||||
box-shadow:
|
||||
@@ -631,7 +631,7 @@ component SplitHero {
|
||||
0 30px 76px color-mix(in srgb, black 18%, transparent);
|
||||
}
|
||||
|
||||
.wire-split-hero[data-visual-style="plain"] .wire-split-hero__visual {
|
||||
.wrn-split-hero[data-visual-style="plain"] .wrn-split-hero__visual {
|
||||
overflow: visible;
|
||||
background: transparent;
|
||||
border-color: transparent;
|
||||
@@ -639,42 +639,42 @@ component SplitHero {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.wire-split-hero[data-visual-style="soft"] .wire-split-hero__visual {
|
||||
.wrn-split-hero[data-visual-style="soft"] .wrn-split-hero__visual {
|
||||
background:
|
||||
linear-gradient(145deg, var(--split-accent-soft), transparent 72%),
|
||||
var(--wire-color-surface-raised);
|
||||
var(--wrn-color-surface-raised);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.wire-split-hero[data-variant="solid"] .wire-split-hero__visual {
|
||||
color: var(--wire-color-text);
|
||||
background: var(--wire-color-surface-raised);
|
||||
.wrn-split-hero[data-variant="solid"] .wrn-split-hero__visual {
|
||||
color: var(--wrn-color-text);
|
||||
background: var(--wrn-color-surface-raised);
|
||||
border-color: color-mix(in srgb, white 24%, transparent);
|
||||
}
|
||||
|
||||
.wire-split-hero__visual-media {
|
||||
.wrn-split-hero__visual-media {
|
||||
position: relative;
|
||||
aspect-ratio: 16 / 10;
|
||||
overflow: hidden;
|
||||
background: var(--wire-color-surface-soft);
|
||||
background: var(--wrn-color-surface-soft);
|
||||
}
|
||||
|
||||
.wire-split-hero__visual-image {
|
||||
.wrn-split-hero__visual-image {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.wire-split-hero__visual-header {
|
||||
.wrn-split-hero__visual-header {
|
||||
display: grid;
|
||||
grid-template-columns: auto minmax(0, 1fr);
|
||||
gap: 1rem;
|
||||
padding: 1.5rem;
|
||||
}
|
||||
|
||||
.wire-split-hero__visual-icon,
|
||||
.wire-split-hero__visual-item-icon {
|
||||
.wrn-split-hero__visual-icon,
|
||||
.wrn-split-hero__visual-item-icon {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@@ -688,12 +688,12 @@ component SplitHero {
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
.wire-split-hero__visual-copy,
|
||||
.wire-split-hero__visual-item-copy {
|
||||
.wrn-split-hero__visual-copy,
|
||||
.wrn-split-hero__visual-item-copy {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.wire-split-hero__visual-eyebrow {
|
||||
.wrn-split-hero__visual-eyebrow {
|
||||
margin: 0 0 0.35rem;
|
||||
color: var(--split-accent);
|
||||
font-size: 0.69rem;
|
||||
@@ -702,114 +702,114 @@ component SplitHero {
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.wire-split-hero__visual-title {
|
||||
.wrn-split-hero__visual-title {
|
||||
margin: 0;
|
||||
color: var(--wire-color-text);
|
||||
color: var(--wrn-color-text);
|
||||
font-size: 1.15rem;
|
||||
font-weight: 650;
|
||||
line-height: 1.35;
|
||||
}
|
||||
|
||||
.wire-split-hero__visual-description {
|
||||
.wrn-split-hero__visual-description {
|
||||
margin: 0.5rem 0 0;
|
||||
color: var(--wire-color-text-muted);
|
||||
color: var(--wrn-color-text-muted);
|
||||
font-size: 0.82rem;
|
||||
line-height: 1.65;
|
||||
}
|
||||
|
||||
.wire-split-hero__visual-list {
|
||||
.wrn-split-hero__visual-list {
|
||||
display: grid;
|
||||
gap: 0;
|
||||
border-top: 1px solid var(--wire-color-border);
|
||||
border-top: 1px solid var(--wrn-color-border);
|
||||
}
|
||||
|
||||
.wire-split-hero__visual-item {
|
||||
.wrn-split-hero__visual-item {
|
||||
display: grid;
|
||||
grid-template-columns: auto minmax(0, 1fr);
|
||||
gap: 0.85rem;
|
||||
padding: 1.1rem 1.5rem;
|
||||
}
|
||||
|
||||
.wire-split-hero__visual-item + .wire-split-hero__visual-item {
|
||||
border-top: 1px solid var(--wire-color-border);
|
||||
.wrn-split-hero__visual-item + .wrn-split-hero__visual-item {
|
||||
border-top: 1px solid var(--wrn-color-border);
|
||||
}
|
||||
|
||||
.wire-split-hero__visual-item-icon {
|
||||
.wrn-split-hero__visual-item-icon {
|
||||
width: 2.25rem;
|
||||
height: 2.25rem;
|
||||
border-radius: 0.72rem;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.wire-split-hero__visual-item-heading {
|
||||
.wrn-split-hero__visual-item-heading {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
color: var(--wire-color-text);
|
||||
color: var(--wrn-color-text);
|
||||
font-size: 0.82rem;
|
||||
}
|
||||
|
||||
.wire-split-hero__visual-item-heading > span {
|
||||
.wrn-split-hero__visual-item-heading > span {
|
||||
color: var(--split-accent);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.wire-split-hero__visual-item p {
|
||||
.wrn-split-hero__visual-item p {
|
||||
margin: 0.35rem 0 0;
|
||||
color: var(--wire-color-text-muted);
|
||||
color: var(--wrn-color-text-muted);
|
||||
font-size: 0.75rem;
|
||||
line-height: 1.55;
|
||||
}
|
||||
|
||||
@media (min-width: 960px) {
|
||||
.wire-split-hero__layout {
|
||||
.wrn-split-hero__layout {
|
||||
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
||||
gap: 4.5rem;
|
||||
}
|
||||
|
||||
.wire-split-hero[data-ratio="content"] .wire-split-hero__layout {
|
||||
.wrn-split-hero[data-ratio="content"] .wrn-split-hero__layout {
|
||||
grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
|
||||
}
|
||||
|
||||
.wire-split-hero[data-ratio="visual"] .wire-split-hero__layout {
|
||||
.wrn-split-hero[data-ratio="visual"] .wrn-split-hero__layout {
|
||||
grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
|
||||
}
|
||||
|
||||
.wire-split-hero[data-position="left"] .wire-split-hero__content {
|
||||
.wrn-split-hero[data-position="left"] .wrn-split-hero__content {
|
||||
order: 2;
|
||||
}
|
||||
|
||||
.wire-split-hero[data-position="left"] .wire-split-hero__visual-column {
|
||||
.wrn-split-hero[data-position="left"] .wrn-split-hero__visual-column {
|
||||
order: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 639px) {
|
||||
.wire-split-hero__inner {
|
||||
.wrn-split-hero__inner {
|
||||
padding-block: 3.25rem;
|
||||
}
|
||||
|
||||
.wire-split-hero__actions {
|
||||
.wrn-split-hero__actions {
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.wire-split-hero__action {
|
||||
.wrn-split-hero__action {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.wire-split-hero__visual-header,
|
||||
.wire-split-hero__visual-item {
|
||||
.wrn-split-hero__visual-header,
|
||||
.wrn-split-hero__visual-item {
|
||||
padding-inline: 1.15rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.wire-split-hero__action {
|
||||
.wrn-split-hero__action {
|
||||
transition: none;
|
||||
}
|
||||
|
||||
.wire-split-hero__action:hover {
|
||||
.wrn-split-hero__action:hover {
|
||||
transform: none;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user