refactor: migrate legacy wire namespace to wrn
This commit is contained in:
+177
-177
@@ -80,18 +80,18 @@ component Card {
|
||||
data-layout='{layout}'
|
||||
data-hover='{hover}'
|
||||
data-align='{align}'
|
||||
class='wire-component wire-next--card wire-component--color-{color} wire-component--size-{size} wire-next--variant-{variant} {class}'
|
||||
class='wrn-component wrn-next--card wrn-component--color-{color} wrn-component--size-{size} wrn-next--variant-{variant} {class}'
|
||||
>
|
||||
{#if items.length > 0}
|
||||
<div class="wire-next__card-group">
|
||||
<div class="wrn-next__card-group">
|
||||
{#each items as item, itemIndex}
|
||||
<article
|
||||
class="wire-next__card-panel"
|
||||
class="wrn-next__card-panel"
|
||||
aria-label='{item.ariaLabel || item.title || item.label || "Card item"}'
|
||||
data-index='{itemIndex}'
|
||||
>
|
||||
{#if item.imageSrc || item.image}
|
||||
<div class="wire-next__card-media">
|
||||
<div class="wrn-next__card-media">
|
||||
<img
|
||||
src='{item.imageSrc || item.image}'
|
||||
alt='{item.imageAlt || item.alt || ""}'
|
||||
@@ -103,20 +103,20 @@ component Card {
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="wire-next__card-content">
|
||||
<div class="wrn-next__card-content">
|
||||
{#if item.title || item.label}
|
||||
<h3>{item.title || item.label}</h3>
|
||||
{/if}
|
||||
{#if item.subtitle}
|
||||
<p class="wire-next__card-subtitle">{item.subtitle}</p>
|
||||
<p class="wrn-next__card-subtitle">{item.subtitle}</p>
|
||||
{/if}
|
||||
{#if item.description}
|
||||
<p class="wire-next__card-description">{item.description}</p>
|
||||
<p class="wrn-next__card-description">{item.description}</p>
|
||||
{/if}
|
||||
{#if item.actionLabel || item.href}
|
||||
<a
|
||||
href='{item.actionHref || item.href || "#"}'
|
||||
class="wire-next__card-action"
|
||||
class="wrn-next__card-action"
|
||||
@click='output.action({ item: item, index: itemIndex })'
|
||||
>
|
||||
<span>{item.actionLabel || "Learn more"}</span>
|
||||
@@ -129,12 +129,12 @@ component Card {
|
||||
</div>
|
||||
{:else}
|
||||
<article
|
||||
class="wire-next__card-panel"
|
||||
class="wrn-next__card-panel"
|
||||
aria-label='{ariaLabel || title || "Card"}'
|
||||
hidden='{dismissed}'
|
||||
>
|
||||
{#if imageSrc && imagePosition === "overlay"}
|
||||
<div class="wire-next__card-overlay">
|
||||
<div class="wrn-next__card-overlay">
|
||||
<img
|
||||
src='{imageSrc}'
|
||||
alt='{imageAlt}'
|
||||
@@ -143,12 +143,12 @@ component Card {
|
||||
@load='output.load({ src: imageSrc })'
|
||||
@error='output.error({ src: imageSrc })'
|
||||
/>
|
||||
<div class="wire-next__card-overlay-shade" aria-hidden="true"></div>
|
||||
<div class="wrn-next__card-overlay-shade" aria-hidden="true"></div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{#if imageSrc && (imagePosition === "top" || imagePosition === "left")}
|
||||
<div class="wire-next__card-media wire-next__card-media--{imagePosition}">
|
||||
<div class="wrn-next__card-media wrn-next__card-media--{imagePosition}">
|
||||
<img
|
||||
src='{imageSrc}'
|
||||
alt='{imageAlt}'
|
||||
@@ -160,23 +160,23 @@ component Card {
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="wire-next__card-content">
|
||||
<div class="wrn-next__card-content">
|
||||
{#if header || title || subtitle || headerActions.length > 0 || dismissible}
|
||||
<header class="wire-next__card-header">
|
||||
<div class="wire-next__card-heading">
|
||||
<header class="wrn-next__card-header">
|
||||
<div class="wrn-next__card-heading">
|
||||
{#if header}
|
||||
<p class="wire-next__card-eyebrow">{header}</p>
|
||||
<p class="wrn-next__card-eyebrow">{header}</p>
|
||||
{/if}
|
||||
{#if title}
|
||||
<h3>{title}</h3>
|
||||
{/if}
|
||||
{#if subtitle}
|
||||
<p class="wire-next__card-subtitle">{subtitle}</p>
|
||||
<p class="wrn-next__card-subtitle">{subtitle}</p>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
{#if headerActions.length > 0 || dismissible}
|
||||
<div class="wire-next__card-header-actions">
|
||||
<div class="wrn-next__card-header-actions">
|
||||
{#each headerActions as headerAction, actionIndex}
|
||||
<button
|
||||
type="button"
|
||||
@@ -207,10 +207,10 @@ component Card {
|
||||
{/if}
|
||||
|
||||
{#if navigation.length > 0}
|
||||
<nav aria-label='{ariaLabel || title || "Card navigation"}' class="wire-next__card-navigation">
|
||||
<nav aria-label='{ariaLabel || title || "Card navigation"}' class="wrn-next__card-navigation">
|
||||
{#if mobileNavigation}
|
||||
<select
|
||||
class="wire-next__card-navigation-select"
|
||||
class="wrn-next__card-navigation-select"
|
||||
aria-label='{ariaLabel || title || "Card navigation"}'
|
||||
@change='dispatchCardNavigationValue(event)'
|
||||
>
|
||||
@@ -225,7 +225,7 @@ component Card {
|
||||
</select>
|
||||
{/if}
|
||||
|
||||
<div class="wire-next__card-tabs" data-mobile-navigation='{mobileNavigation}'>
|
||||
<div class="wrn-next__card-tabs" data-mobile-navigation='{mobileNavigation}'>
|
||||
{#each navigation as navItem, navIndex}
|
||||
<button
|
||||
type="button"
|
||||
@@ -237,7 +237,7 @@ component Card {
|
||||
{/if}
|
||||
<span>{navItem.label}</span>
|
||||
{#if navItem.badge}
|
||||
<span class="wire-next__card-tab-badge">{navItem.badge}</span>
|
||||
<span class="wrn-next__card-tab-badge">{navItem.badge}</span>
|
||||
{/if}
|
||||
</button>
|
||||
{/each}
|
||||
@@ -246,7 +246,7 @@ component Card {
|
||||
{/if}
|
||||
|
||||
{#if alertTitle || alertDescription}
|
||||
<div class="wire-next__card-alert" role="status">
|
||||
<div class="wrn-next__card-alert" role="status">
|
||||
{#if alertTitle}
|
||||
<strong>{alertTitle}</strong>
|
||||
{/if}
|
||||
@@ -257,32 +257,32 @@ component Card {
|
||||
{/if}
|
||||
|
||||
<div
|
||||
class="wire-next__card-body"
|
||||
class="wrn-next__card-body"
|
||||
data-scrollable='{scrollable}'
|
||||
style='max-height: {scrollable ? maxHeight : "none"};'
|
||||
>
|
||||
{#if empty}
|
||||
<div class="wire-next__card-empty">
|
||||
<div class="wrn-next__card-empty">
|
||||
<span class='{emptyIcon}' aria-hidden="true"></span>
|
||||
<p>{emptyTitle}</p>
|
||||
</div>
|
||||
{:else}
|
||||
{#if description}
|
||||
<p class="wire-next__card-description">{description}</p>
|
||||
<p class="wrn-next__card-description">{description}</p>
|
||||
{/if}
|
||||
<slot></slot>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
{#if footer || actionLabel}
|
||||
<footer class="wire-next__card-footer">
|
||||
<footer class="wrn-next__card-footer">
|
||||
{#if footer}
|
||||
<span>{footer}</span>
|
||||
{/if}
|
||||
{#if actionLabel}
|
||||
<a
|
||||
href='{actionHref || "#"}'
|
||||
class="wire-next__card-action"
|
||||
class="wrn-next__card-action"
|
||||
@click='output.action({ href: actionHref, label: actionLabel })'
|
||||
>
|
||||
<span>{actionLabel}</span>
|
||||
@@ -294,7 +294,7 @@ component Card {
|
||||
</div>
|
||||
|
||||
{#if imageSrc && (imagePosition === "bottom" || imagePosition === "right")}
|
||||
<div class="wire-next__card-media wire-next__card-media--{imagePosition}">
|
||||
<div class="wrn-next__card-media wrn-next__card-media--{imagePosition}">
|
||||
<img
|
||||
src='{imageSrc}'
|
||||
alt='{imageAlt}'
|
||||
@@ -311,137 +311,137 @@ component Card {
|
||||
}
|
||||
|
||||
style {
|
||||
.wire-next__card-media--overlay {
|
||||
.wrn-next__card-media--overlay {
|
||||
aspect-ratio: 16 / 9;
|
||||
min-height: 18rem;
|
||||
}
|
||||
.wire-next__card-media--overlay > img {
|
||||
.wrn-next__card-media--overlay > img {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
@media (max-width: 480px) {
|
||||
.wire-next__card-media--overlay {
|
||||
.wrn-next__card-media--overlay {
|
||||
aspect-ratio: 4 / 3;
|
||||
min-height: 16rem;
|
||||
}
|
||||
}
|
||||
|
||||
.wire-next--card {
|
||||
--wire-card-color: var(--wire-component-color, var(--wire-color-primary));
|
||||
--wire-card-padding: 1.25rem;
|
||||
.wrn-next--card {
|
||||
--wrn-card-color: var(--wrn-component-color, var(--wrn-color-primary));
|
||||
--wrn-card-padding: 1.25rem;
|
||||
display: block;
|
||||
width: 100%;
|
||||
color: var(--wire-color-text);
|
||||
color: var(--wrn-color-text);
|
||||
}
|
||||
|
||||
.wire-next--card[data-size="sm"] {
|
||||
--wire-card-padding: 0.85rem;
|
||||
.wrn-next--card[data-size="sm"] {
|
||||
--wrn-card-padding: 0.85rem;
|
||||
}
|
||||
|
||||
.wire-next--card[data-size="lg"] {
|
||||
--wire-card-padding: 1.75rem;
|
||||
.wrn-next--card[data-size="lg"] {
|
||||
--wrn-card-padding: 1.75rem;
|
||||
}
|
||||
|
||||
.wire-next__card-panel {
|
||||
.wrn-next__card-panel {
|
||||
position: relative;
|
||||
display: flex;
|
||||
overflow: hidden;
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-md);
|
||||
background: var(--wire-color-surface);
|
||||
box-shadow: var(--wire-shadow-1);
|
||||
border: 1px solid var(--wrn-color-border);
|
||||
border-radius: var(--wrn-radius-md);
|
||||
background: var(--wrn-color-surface);
|
||||
box-shadow: var(--wrn-shadow-1);
|
||||
transition:
|
||||
transform var(--wire-motion-base) var(--wire-ease-emphasized),
|
||||
border-color var(--wire-motion-base) ease,
|
||||
box-shadow var(--wire-motion-base) var(--wire-ease-emphasized);
|
||||
transform var(--wrn-motion-base) var(--wrn-ease-emphasized),
|
||||
border-color var(--wrn-motion-base) ease,
|
||||
box-shadow var(--wrn-motion-base) var(--wrn-ease-emphasized);
|
||||
}
|
||||
|
||||
.wire-next--card[data-variant="top-border"] > .wire-next__card-panel,
|
||||
.wire-next--card[data-variant="accent"] > .wire-next__card-panel {
|
||||
border-top: 4px solid var(--wire-card-color);
|
||||
.wrn-next--card[data-variant="top-border"] > .wrn-next__card-panel,
|
||||
.wrn-next--card[data-variant="accent"] > .wrn-next__card-panel {
|
||||
border-top: 4px solid var(--wrn-card-color);
|
||||
}
|
||||
|
||||
.wire-next--card[data-hover="raise"] > .wire-next__card-panel:hover {
|
||||
border-color: color-mix(in srgb, var(--wire-card-color) 38%, var(--wire-color-border));
|
||||
box-shadow: var(--wire-shadow-3);
|
||||
.wrn-next--card[data-hover="raise"] > .wrn-next__card-panel:hover {
|
||||
border-color: color-mix(in srgb, var(--wrn-card-color) 38%, var(--wrn-color-border));
|
||||
box-shadow: var(--wrn-shadow-3);
|
||||
transform: translateY(-4px);
|
||||
}
|
||||
|
||||
.wire-next__card-header,
|
||||
.wire-next__card-footer {
|
||||
.wrn-next__card-header,
|
||||
.wrn-next__card-footer {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 0.85rem var(--wire-card-padding);
|
||||
background: var(--wire-color-surface-2);
|
||||
color: var(--wire-color-muted);
|
||||
padding: 0.85rem var(--wrn-card-padding);
|
||||
background: var(--wrn-color-surface-2);
|
||||
color: var(--wrn-color-muted);
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
.wire-next__card-header {
|
||||
border-bottom: 1px solid var(--wire-color-border);
|
||||
.wrn-next__card-header {
|
||||
border-bottom: 1px solid var(--wrn-color-border);
|
||||
}
|
||||
|
||||
.wire-next__card-footer {
|
||||
.wrn-next__card-footer {
|
||||
margin-top: auto;
|
||||
border-top: 1px solid var(--wire-color-border);
|
||||
border-top: 1px solid var(--wrn-color-border);
|
||||
}
|
||||
|
||||
.wire-next__card-header-actions {
|
||||
.wrn-next__card-header-actions {
|
||||
display: inline-flex;
|
||||
gap: 0.2rem;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.wire-next__card-header-actions button {
|
||||
.wrn-next__card-header-actions button {
|
||||
display: inline-grid;
|
||||
width: 2rem;
|
||||
height: 2rem;
|
||||
border: 0;
|
||||
border-radius: var(--wire-radius-sm);
|
||||
border-radius: var(--wrn-radius-sm);
|
||||
background: transparent;
|
||||
color: var(--wire-color-muted);
|
||||
color: var(--wrn-color-muted);
|
||||
cursor: pointer;
|
||||
place-items: center;
|
||||
}
|
||||
|
||||
.wire-next__card-header-actions button:hover {
|
||||
background: color-mix(in srgb, var(--wire-card-color) 12%, transparent);
|
||||
color: var(--wire-card-color);
|
||||
.wrn-next__card-header-actions button:hover {
|
||||
background: color-mix(in srgb, var(--wrn-card-color) 12%, transparent);
|
||||
color: var(--wrn-card-color);
|
||||
}
|
||||
|
||||
.wire-next__card-header-actions button:focus-visible {
|
||||
outline: 2px solid var(--wire-card-color);
|
||||
.wrn-next__card-header-actions button:focus-visible {
|
||||
outline: 2px solid var(--wrn-card-color);
|
||||
outline-offset: 1px;
|
||||
}
|
||||
|
||||
.wire-next__card-media {
|
||||
.wrn-next__card-media {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
min-height: 10rem;
|
||||
background: var(--wire-color-surface-2);
|
||||
background: var(--wrn-color-surface-2);
|
||||
}
|
||||
|
||||
.wire-next__card-media > img {
|
||||
.wrn-next__card-media > img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
min-height: inherit;
|
||||
object-fit: cover;
|
||||
transition: transform 420ms var(--wire-ease-emphasized);
|
||||
transition: transform 420ms var(--wrn-ease-emphasized);
|
||||
}
|
||||
|
||||
.wire-next--card[data-hover="image"] .wire-next__card-panel:hover .wire-next__card-media > img {
|
||||
.wrn-next--card[data-hover="image"] .wrn-next__card-panel:hover .wrn-next__card-media > img {
|
||||
transform: scale(1.06);
|
||||
}
|
||||
|
||||
.wire-next__card-overlay {
|
||||
.wrn-next__card-overlay {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
display: flex;
|
||||
@@ -459,12 +459,12 @@ component Card {
|
||||
text-shadow: 0 1px 2px rgb(0 0 0 / 0.42);
|
||||
}
|
||||
|
||||
.wire-next__card-overlay h3 {
|
||||
.wrn-next__card-overlay h3 {
|
||||
color: white;
|
||||
font-size: clamp(1.1rem, 2.2vw, 1.35rem);
|
||||
}
|
||||
|
||||
.wire-next__card-overlay p {
|
||||
.wrn-next__card-overlay p {
|
||||
max-width: 48rem;
|
||||
color: #fff;
|
||||
font-weight: 500;
|
||||
@@ -474,268 +474,268 @@ component Card {
|
||||
0 2px 8px rgb(0 0 0 / 0.62);
|
||||
}
|
||||
|
||||
.wire-next__card-overlay .wire-next__card-subtitle {
|
||||
.wrn-next__card-overlay .wrn-next__card-subtitle {
|
||||
color: rgb(255 255 255 / 0.78);
|
||||
}
|
||||
|
||||
.wire-next__card-overlay small {
|
||||
.wrn-next__card-overlay small {
|
||||
margin-top: auto;
|
||||
color: rgb(255 255 255 / 0.88);
|
||||
font-weight: 600;
|
||||
text-shadow: 0 1px 2px rgb(0 0 0 / 0.55);
|
||||
}
|
||||
|
||||
.wire-next__card-body {
|
||||
.wrn-next__card-body {
|
||||
display: grid;
|
||||
gap: 0.65rem;
|
||||
min-width: 0;
|
||||
padding: var(--wire-card-padding);
|
||||
padding: var(--wrn-card-padding);
|
||||
}
|
||||
|
||||
.wire-next__card-body[data-scrollable="true"] {
|
||||
max-height: var(--wire-card-max-height);
|
||||
.wrn-next__card-body[data-scrollable="true"] {
|
||||
max-height: var(--wrn-card-max-height);
|
||||
overflow: auto;
|
||||
overscroll-behavior: contain;
|
||||
scrollbar-color: var(--wire-card-color) transparent;
|
||||
scrollbar-color: var(--wrn-card-color) transparent;
|
||||
scrollbar-width: thin;
|
||||
}
|
||||
|
||||
.wire-next__card-body h3,
|
||||
.wire-next__card-body p,
|
||||
.wire-next__card-overlay h3,
|
||||
.wire-next__card-overlay p {
|
||||
.wrn-next__card-body h3,
|
||||
.wrn-next__card-body p,
|
||||
.wrn-next__card-overlay h3,
|
||||
.wrn-next__card-overlay p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.wire-next__card-body p {
|
||||
color: var(--wire-color-muted);
|
||||
.wrn-next__card-body p {
|
||||
color: var(--wrn-color-muted);
|
||||
line-height: 1.65;
|
||||
}
|
||||
|
||||
.wire-next__card-subtitle {
|
||||
color: var(--wire-color-muted);
|
||||
.wrn-next__card-subtitle {
|
||||
color: var(--wrn-color-muted);
|
||||
font-size: 0.72rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.06em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.wire-next__card-action {
|
||||
.wrn-next__card-action {
|
||||
display: inline-flex;
|
||||
gap: 0.25rem;
|
||||
align-items: center;
|
||||
width: fit-content;
|
||||
margin-top: 0.2rem;
|
||||
color: var(--wire-card-color);
|
||||
color: var(--wrn-card-color);
|
||||
font-weight: 700;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.wire-next__card-action:hover {
|
||||
.wrn-next__card-action:hover {
|
||||
text-decoration: underline;
|
||||
text-underline-offset: 0.2em;
|
||||
}
|
||||
|
||||
.wire-next__card-navigation {
|
||||
background: var(--wire-color-surface-2);
|
||||
.wrn-next__card-navigation {
|
||||
background: var(--wrn-color-surface-2);
|
||||
}
|
||||
|
||||
.wire-next__card-tabs {
|
||||
.wrn-next__card-tabs {
|
||||
display: flex;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.wire-next__card-tabs button {
|
||||
.wrn-next__card-tabs button {
|
||||
min-height: 3rem;
|
||||
flex: 1 0 auto;
|
||||
padding-inline: 1rem;
|
||||
border: 0;
|
||||
border-bottom: 2px solid transparent;
|
||||
background: transparent;
|
||||
color: var(--wire-color-muted);
|
||||
color: var(--wrn-color-muted);
|
||||
cursor: pointer;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.wire-next__card-tabs button[data-active="true"] {
|
||||
border-color: var(--wire-card-color);
|
||||
color: var(--wire-color-text);
|
||||
.wrn-next__card-tabs button[data-active="true"] {
|
||||
border-color: var(--wrn-card-color);
|
||||
color: var(--wrn-color-text);
|
||||
}
|
||||
|
||||
.wire-next__card-navigation-select {
|
||||
.wrn-next__card-navigation-select {
|
||||
display: none;
|
||||
width: calc(100% - 2rem);
|
||||
min-height: 2.75rem;
|
||||
margin: 1rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: var(--wire-color-surface);
|
||||
color: var(--wire-color-text);
|
||||
border: 1px solid var(--wrn-color-border);
|
||||
border-radius: var(--wrn-radius-sm);
|
||||
background: var(--wrn-color-surface);
|
||||
color: var(--wrn-color-text);
|
||||
}
|
||||
|
||||
.wire-next__card-alert {
|
||||
.wrn-next__card-alert {
|
||||
display: flex;
|
||||
gap: 0.35rem;
|
||||
padding: 0.8rem var(--wire-card-padding);
|
||||
background: color-mix(in srgb, var(--wire-card-color) 14%, var(--wire-color-surface-2));
|
||||
color: var(--wire-color-text);
|
||||
padding: 0.8rem var(--wrn-card-padding);
|
||||
background: color-mix(in srgb, var(--wrn-card-color) 14%, var(--wrn-color-surface-2));
|
||||
color: var(--wrn-color-text);
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
.wire-next__card-empty {
|
||||
.wrn-next__card-empty {
|
||||
display: grid;
|
||||
min-height: 12rem;
|
||||
color: var(--wire-color-muted);
|
||||
color: var(--wrn-color-muted);
|
||||
place-content: center;
|
||||
place-items: center;
|
||||
}
|
||||
|
||||
.wire-next__card-empty > span {
|
||||
.wrn-next__card-empty > span {
|
||||
margin-bottom: 0.75rem;
|
||||
font-size: 2.25rem;
|
||||
}
|
||||
|
||||
.wire-next--card[data-align="center"] .wire-next__card-body {
|
||||
.wrn-next--card[data-align="center"] .wrn-next__card-body {
|
||||
text-align: center;
|
||||
place-items: center;
|
||||
}
|
||||
|
||||
.wire-next--card[data-layout="horizontal"] > .wire-next__card-panel {
|
||||
.wrn-next--card[data-layout="horizontal"] > .wrn-next__card-panel {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(12rem, 42%) minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.wire-next--card[data-layout="horizontal"] .wire-next__card-media {
|
||||
.wrn-next--card[data-layout="horizontal"] .wrn-next__card-media {
|
||||
grid-row: 1 / span 4;
|
||||
min-height: 100%;
|
||||
}
|
||||
|
||||
.wire-next__card-group {
|
||||
.wrn-next__card-group {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(var(--wire-card-columns, 3), minmax(0, 1fr));
|
||||
grid-template-columns: repeat(var(--wrn-card-columns, 3), minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.wire-next__card-group > .wire-next__card-panel {
|
||||
.wrn-next__card-group > .wrn-next__card-panel {
|
||||
border-radius: 0;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.wire-next__card-group > .wire-next__card-panel:not(:first-child) {
|
||||
.wrn-next__card-group > .wrn-next__card-panel:not(:first-child) {
|
||||
margin-inline-start: -1px;
|
||||
}
|
||||
|
||||
.wire-next__card-group > .wire-next__card-panel:first-child {
|
||||
border-start-start-radius: var(--wire-radius-md);
|
||||
border-end-start-radius: var(--wire-radius-md);
|
||||
.wrn-next__card-group > .wrn-next__card-panel:first-child {
|
||||
border-start-start-radius: var(--wrn-radius-md);
|
||||
border-end-start-radius: var(--wrn-radius-md);
|
||||
}
|
||||
|
||||
.wire-next__card-group > .wire-next__card-panel:last-child {
|
||||
border-start-end-radius: var(--wire-radius-md);
|
||||
border-end-end-radius: var(--wire-radius-md);
|
||||
.wrn-next__card-group > .wrn-next__card-panel:last-child {
|
||||
border-start-end-radius: var(--wrn-radius-md);
|
||||
border-end-end-radius: var(--wrn-radius-md);
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.wire-next--card[data-layout="horizontal"] > .wire-next__card-panel {
|
||||
.wrn-next--card[data-layout="horizontal"] > .wrn-next__card-panel {
|
||||
display: flex;
|
||||
}
|
||||
.wire-next--card[data-layout="horizontal"] .wire-next__card-media {
|
||||
.wrn-next--card[data-layout="horizontal"] .wrn-next__card-media {
|
||||
min-height: 12rem;
|
||||
}
|
||||
.wire-next__card-group {
|
||||
.wrn-next__card-group {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.wire-next__card-group > .wire-next__card-panel:not(:first-child) {
|
||||
.wrn-next__card-group > .wrn-next__card-panel:not(:first-child) {
|
||||
margin-top: -1px;
|
||||
margin-inline-start: 0;
|
||||
}
|
||||
.wire-next__card-group > .wire-next__card-panel {
|
||||
.wrn-next__card-group > .wrn-next__card-panel {
|
||||
border-radius: 0;
|
||||
}
|
||||
.wire-next__card-group > .wire-next__card-panel:first-child {
|
||||
border-start-start-radius: var(--wire-radius-md);
|
||||
border-start-end-radius: var(--wire-radius-md);
|
||||
.wrn-next__card-group > .wrn-next__card-panel:first-child {
|
||||
border-start-start-radius: var(--wrn-radius-md);
|
||||
border-start-end-radius: var(--wrn-radius-md);
|
||||
}
|
||||
.wire-next__card-group > .wire-next__card-panel:last-child {
|
||||
border-end-start-radius: var(--wire-radius-md);
|
||||
border-end-end-radius: var(--wire-radius-md);
|
||||
.wrn-next__card-group > .wrn-next__card-panel:last-child {
|
||||
border-end-start-radius: var(--wrn-radius-md);
|
||||
border-end-end-radius: var(--wrn-radius-md);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.wire-next__card-tabs:has(+ .wire-next__card-navigation-select) {
|
||||
.wrn-next__card-tabs:has(+ .wrn-next__card-navigation-select) {
|
||||
display: none;
|
||||
}
|
||||
.wire-next__card-navigation-select {
|
||||
.wrn-next__card-navigation-select {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
/* Shared component foundation. */
|
||||
|
||||
.wire-component {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
--wire-component-scale: 1;
|
||||
.wrn-component {
|
||||
--wrn-component-color: var(--wrn-color-primary);
|
||||
--wrn-component-scale: 1;
|
||||
margin: 0;
|
||||
color: var(--wire-color-text);
|
||||
color: var(--wrn-color-text);
|
||||
font-family: var(--wrn-font-sans, inherit);
|
||||
}
|
||||
|
||||
.wire-component--color-primary {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
.wrn-component--color-primary {
|
||||
--wrn-component-color: var(--wrn-color-primary);
|
||||
}
|
||||
|
||||
.wire-component--color-secondary {
|
||||
--wire-component-color: var(--wire-color-secondary);
|
||||
.wrn-component--color-secondary {
|
||||
--wrn-component-color: var(--wrn-color-secondary);
|
||||
}
|
||||
|
||||
.wire-component--color-success {
|
||||
--wire-component-color: var(--wire-color-success);
|
||||
.wrn-component--color-success {
|
||||
--wrn-component-color: var(--wrn-color-success);
|
||||
}
|
||||
|
||||
.wire-component--color-warning {
|
||||
--wire-component-color: var(--wire-color-warning);
|
||||
.wrn-component--color-warning {
|
||||
--wrn-component-color: var(--wrn-color-warning);
|
||||
}
|
||||
|
||||
.wire-component--color-danger {
|
||||
--wire-component-color: var(--wire-color-danger);
|
||||
.wrn-component--color-danger {
|
||||
--wrn-component-color: var(--wrn-color-danger);
|
||||
}
|
||||
|
||||
.wire-component--color-info {
|
||||
--wire-component-color: var(--wire-color-info);
|
||||
.wrn-component--color-info {
|
||||
--wrn-component-color: var(--wrn-color-info);
|
||||
}
|
||||
|
||||
.wire-component--size-xs {
|
||||
--wire-component-scale: 0.78;
|
||||
.wrn-component--size-xs {
|
||||
--wrn-component-scale: 0.78;
|
||||
}
|
||||
|
||||
.wire-component--size-sm {
|
||||
--wire-component-scale: 0.88;
|
||||
.wrn-component--size-sm {
|
||||
--wrn-component-scale: 0.88;
|
||||
}
|
||||
|
||||
.wire-component--size-default,
|
||||
.wire-component--size-md {
|
||||
--wire-component-scale: 1;
|
||||
.wrn-component--size-default,
|
||||
.wrn-component--size-md {
|
||||
--wrn-component-scale: 1;
|
||||
}
|
||||
|
||||
.wire-component--size-lg {
|
||||
--wire-component-scale: 1.14;
|
||||
.wrn-component--size-lg {
|
||||
--wrn-component-scale: 1.14;
|
||||
}
|
||||
|
||||
.wire-component--size-xl {
|
||||
--wire-component-scale: 1.28;
|
||||
.wrn-component--size-xl {
|
||||
--wrn-component-scale: 1.28;
|
||||
}
|
||||
|
||||
.wire-component:not(.wire-btn) {
|
||||
font-size: calc(1em * var(--wire-component-scale));
|
||||
.wrn-component:not(.wrn-btn) {
|
||||
font-size: calc(1em * var(--wrn-component-scale));
|
||||
}
|
||||
|
||||
.wire-component :is(a, button, input, select, textarea):focus-visible {
|
||||
outline-color: var(--wire-component-color);
|
||||
.wrn-component :is(a, button, input, select, textarea):focus-visible {
|
||||
outline-color: var(--wrn-component-color);
|
||||
}
|
||||
|
||||
.wire-component p {
|
||||
.wrn-component p {
|
||||
margin: 0;
|
||||
color: var(--wire-color-muted);
|
||||
color: var(--wrn-color-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user