runloopable / web /src /styles /wave59 /templates.css
fsanyoto's picture
Deploy AIOS web (React glide grid + FastAPI slice)
8873406 verified
Raw History Blame Contribute Delete
9.3 kB
/* W59-T30: scoped by :has() rather than by a class this component adds to another
component's panel at runtime. The kit's dialog owns its own markup. */
.lp-dialog:has(.sheet-template-gallery) {
width: min(640px, calc(100vw - 32px));
overflow: hidden;
}
.lp-dialog:has(.sheet-template-gallery) > .lp-dialog-head,
.lp-dialog:has(.sheet-template-gallery) > .lp-dialog-actions {
flex-shrink: 0;
}
.lp-dialog:has(.sheet-template-gallery) > .lp-dialog-body {
display: flex;
flex-direction: column;
min-height: 0;
}
.sheet-template-gallery {
display: flex;
flex-direction: column;
gap: 16px;
min-height: 0;
color: var(--lp-ink);
font-size: var(--lp-fs-sm);
line-height: var(--lp-lh);
}
.sheet-template-list {
display: flex;
flex-direction: column;
height: 216px;
min-height: 0;
overflow: auto;
overscroll-behavior: contain;
}
.sheet-template-row {
appearance: none;
border: 0;
background: transparent;
font: inherit;
color: inherit;
cursor: pointer;
text-align: left;
}
.sheet-template-row,
.sheet-template-skeleton {
display: flex;
flex: 0 0 72px;
flex-direction: column;
justify-content: center;
gap: 4px;
width: 100%;
min-width: 0;
height: 72px;
padding: 12px;
border-bottom: 1px solid var(--lp-line);
}
.sheet-template-row[aria-pressed="true"] {
background: var(--lp-blue-tint);
color: var(--lp-ink);
}
.sheet-template-title,
.sheet-template-answer {
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.sheet-template-title {
font-size: var(--lp-fs-sm);
font-weight: 500;
}
.sheet-template-answer {
color: var(--lp-muted);
font-size: var(--lp-fs-xs);
}
.sheet-template-skeleton-title,
.sheet-template-skeleton-answer {
display: block;
height: 20px;
border-radius: var(--lp-r-md);
background: var(--lp-surface-2);
}
.sheet-template-skeleton-title {
width: 40%;
}
.sheet-template-skeleton-answer {
width: 88%;
}
.sheet-template-database {
display: flex;
flex: 0 0 auto;
flex-direction: column;
gap: 8px;
}
.sheet-template-select {
width: 100%;
min-width: 0;
height: 40px;
padding: 8px 12px;
border: 1px solid var(--lp-line);
border-radius: var(--lp-r-md);
background: var(--lp-surface);
color: var(--lp-ink);
font: inherit;
}
.sheet-template-row:focus-visible,
.sheet-template-select:focus-visible,
.sheet-template-row:disabled,
.sheet-template-select:disabled,
.lp-dialog:has(.sheet-template-gallery) .lp-dialog-btn:disabled {
opacity: 0.55;
cursor: not-allowed;
}
.sheet-template-note,
.sheet-template-error {
margin: 0;
color: var(--lp-muted);
font-size: var(--lp-fs-sm);
}
.sheet-template-error {
flex-shrink: 0;
min-height: 1lh;
color: var(--lp-red-deep);
overflow-wrap: anywhere;
}
@media (hover: hover) and (pointer: fine) {
.sheet-template-row:hover:not(:disabled):not([aria-pressed="true"]) {
background: var(--lp-surface-2);
}
}
.home-tpl .home-tpl-gallery {
min-width: 0;
padding-block: var(--lp-home-tile-inset);
color: var(--lp-ink);
font-size: var(--lp-fs-sm);
line-height: var(--lp-lh);
}
.home-tpl .home-tpl-browse {
display: grid;
grid-template-columns: 160px minmax(0, 1fr);
align-items: start;
gap: var(--lp-section-gap);
}
.home-tpl .home-tpl-categories {
display: flex;
flex-direction: column;
gap: 4px;
min-width: 0;
}
.home-tpl .home-tpl-categories-title {
margin: 0 0 8px;
color: var(--lp-muted);
font-size: var(--lp-fs-xs);
font-weight: var(--lp-fw-semibold);
}
.home-tpl .home-tpl-category,
.home-tpl .home-tpl-pick,
.home-tpl .home-tpl-quiet {
appearance: none;
border: 0;
background: transparent;
font: inherit;
color: inherit;
text-align: left;
}
.home-tpl .home-tpl-category,
.home-tpl button.home-tpl-pick,
.home-tpl .home-tpl-quiet {
cursor: pointer;
}
/* The selected section tab reads as ink on the blue tint, like the selected category chip. */
.home-tpl .home-layout-btn.is-on {
color: var(--lp-ink);
}
.home-tpl .home-tpl-category {
min-height: 36px;
padding: 8px 12px;
border-radius: var(--lp-r-md);
font-size: var(--lp-fs-xs);
overflow-wrap: anywhere;
}
.home-tpl .home-tpl-category[aria-pressed="true"] {
background: var(--lp-blue-tint);
color: var(--lp-ink);
font-weight: var(--lp-fw-semibold);
}
.home-tpl .home-tpl-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: var(--lp-home-tile-inset);
margin: 0;
padding: 0;
list-style: none;
min-width: 0;
}
.home-tpl .home-tpl-card,
.home-tpl .home-tpl-skeleton {
display: flex;
flex-direction: column;
gap: 12px;
min-width: 0;
padding: var(--lp-home-tile-inset);
border: var(--lp-content-border-width);
border-radius: var(--lp-r-home-tile);
background: var(--lp-surface);
box-shadow: var(--lp-home-tile-shadow);
}
/* The card body is the click target, so the inset moves from the card onto the body. */
.home-tpl .home-tpl-card {
gap: 0;
padding: 0;
transform: none;
transition: transform var(--lp-motion-feedback-duration) var(--lp-motion-feedback-easing);
}
.home-tpl .home-tpl-pick {
display: flex;
flex: 1;
flex-direction: column;
align-items: flex-start;
gap: 8px;
width: 100%;
min-width: 0;
padding: var(--lp-home-tile-inset);
border-radius: inherit;
}
.home-tpl .home-tpl-card-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 8px;
width: 100%;
min-width: 0;
}
/* A text cue, never a fill. Add and Added share one box, so the press changes colour only. */
.home-tpl .home-tpl-cue {
flex-shrink: 0;
padding: 2px 8px;
border-radius: var(--lp-r-md);
color: var(--lp-freeze-navy);
font-size: var(--lp-fs-xs);
font-weight: var(--lp-fw-semibold);
white-space: nowrap;
}
.home-tpl .home-tpl-cue[data-added="true"] {
background: var(--lp-green-tint);
color: var(--lp-green-deep);
}
.home-tpl .home-tpl-card-title {
margin-top: 4px;
font-size: var(--lp-fs-sm);
font-weight: var(--lp-fw-semibold);
overflow-wrap: anywhere;
}
.home-tpl .home-tpl-description,
.home-tpl .home-tpl-blocker,
.home-tpl .home-tpl-empty {
margin: 0;
color: var(--lp-muted);
font-size: var(--lp-fs-xs);
overflow-wrap: anywhere;
}
.home-tpl .home-tpl-pick .home-tpl-description {
display: block;
width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.home-tpl .home-tpl-category-label {
color: var(--lp-muted);
font-size: var(--lp-fs-2xs);
}
.home-tpl .home-tpl-card-footer {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 8px;
padding: 0 var(--lp-home-tile-inset) var(--lp-home-tile-inset);
}
.home-tpl .home-tpl-quiet {
min-height: 36px;
max-width: 100%;
padding: 8px 12px;
border-radius: var(--lp-r-md);
background: var(--lp-surface-2);
color: var(--lp-ink);
font-size: var(--lp-fs-xs);
overflow-wrap: anywhere;
}
.home-tpl .home-tpl-category:disabled,
.home-tpl .home-tpl-quiet:disabled {
opacity: var(--lp-home-disabled-opacity);
cursor: not-allowed;
}
/* While one card works, the others dim and the working card keeps full ink. */
.home-tpl button.home-tpl-pick:disabled {
cursor: not-allowed;
}
.home-tpl button.home-tpl-pick[aria-busy="true"] {
cursor: progress;
}
.home-tpl .home-tpl-card:has(> button.home-tpl-pick:disabled:not([aria-busy="true"])) {
opacity: var(--lp-home-disabled-opacity);
}
.home-tpl .home-tpl-category:focus-visible,
.home-tpl .home-tpl-quiet:focus-visible,
.home-tpl .home-tpl-card:has(> .home-tpl-pick:focus-visible) {
outline: calc(var(--lp-hairline-width) + var(--lp-hairline-width)) solid var(--lp-blue-deep);
outline-offset: 2px;
}
.home-tpl .home-tpl-pick:focus-visible {
outline: none;
}
.home-tpl .home-tpl-skeleton-image,
.home-tpl .home-tpl-skeleton-name,
.home-tpl .home-tpl-skeleton-line {
display: block;
border-radius: var(--lp-r-md);
background: var(--lp-surface-2);
}
.home-tpl .home-tpl-skeleton-image {
width: 100%;
aspect-ratio: 8 / 5;
}
.home-tpl .home-tpl-skeleton-name { width: 55%; height: 20px; }
.home-tpl .home-tpl-skeleton-line { width: 85%; height: 16px; }
@media (hover: hover) and (pointer: fine) {
.home-tpl .home-tpl-card[data-creatable="true"]:hover {
box-shadow: var(--lp-home-tile-shadow-hover);
}
.home-tpl .home-tpl-card[data-creatable="true"]:hover .home-tpl-cue[data-added="false"] {
text-decoration: underline;
text-underline-offset: 2px;
}
.home-tpl .home-tpl-category:hover:not(:disabled):not([aria-pressed="true"]),
.home-tpl .home-tpl-quiet:hover:not(:disabled) {
background: var(--lp-wash);
}
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
.home-tpl .home-tpl-card[data-creatable="true"]:hover {
transform: translateY(var(--lp-home-tile-lift));
}
}
@media (prefers-reduced-motion: reduce) {
.home-tpl .home-tpl-card { transition: none; }
}
@media (max-width: 760px) {
.home-tpl .home-tpl-browse { grid-template-columns: minmax(0, 1fr); }
.home-tpl .home-tpl-categories { flex-direction: row; flex-wrap: wrap; }
.home-tpl .home-tpl-categories-title { width: 100%; margin-bottom: 4px; }
}
@media (max-width: 480px) {
.home-tpl .home-tpl-grid { grid-template-columns: minmax(0, 1fr); }
}