loopable / web /src /styles /wave67 /cell-menu.css
fsanyoto's picture
Deploy AIOS web (React glide grid + FastAPI slice)
a93637f verified
Raw History Blame
5.07 kB
/* ── S67-T07 (QI19, R31): Excel desktop's cell right-click menu and its mini toolbar ──────────
Tokens only (DESIGN.md Β§3); motion stays within the overlay's own; the submenu opens to the
right of its row. Font sizes ride the --lp-fs-* scale (verify_ui R5). */
.sheet-cell-menu-pop {
padding: 4px;
min-width: 248px;
}
.sheet-cell-mini {
display: flex;
flex-direction: column;
gap: 2px;
padding: 4px 4px 6px;
margin-bottom: 4px;
border-bottom: 1px solid var(--lp-line);
}
.sheet-cell-mini-row {
display: flex;
align-items: center;
gap: 2px;
}
.sheet-cell-mini-font,
.sheet-cell-mini-size {
height: 24px;
border: 1px solid var(--lp-line);
border-radius: var(--lp-r-sm);
background: var(--lp-surface);
color: var(--lp-ink);
font: inherit;
font-size: var(--lp-fs-xs);
}
.sheet-cell-mini-font { width: 104px; }
.sheet-cell-mini-size { width: 48px; }
.sheet-cell-mini-btn {
display: inline-flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
padding: 0;
border: 0;
border-radius: var(--lp-r-sm);
background: transparent;
color: var(--lp-ink);
font: inherit;
font-size: var(--lp-fs-sm);
cursor: pointer;
}
.sheet-cell-mini-b { font-weight: 700; }
.sheet-cell-mini-i { font-style: italic; font-family: Georgia, serif; }
.sheet-cell-mini-btn:hover:not(:disabled),
.sheet-cell-mini-btn:focus-visible {
background: var(--lp-blue-tint);
outline: none;
}
.sheet-cell-mini-btn:disabled,
.sheet-cell-menu-item:disabled,
.sheet-cell-menu-paste:disabled {
color: var(--lp-muted);
cursor: default;
opacity: 0.55;
}
.sheet-cell-menu,
.sheet-cell-submenu {
display: flex;
flex-direction: column;
}
.sheet-cell-menu-item {
display: grid;
grid-template-columns: 24px 1fr auto 14px;
align-items: center;
gap: 6px;
min-height: 26px;
padding: 2px 8px 2px 4px;
border: 0;
border-radius: var(--lp-r-sm);
background: transparent;
color: var(--lp-ink);
font: inherit;
font-size: var(--lp-fs-xs);
text-align: left;
cursor: pointer;
white-space: nowrap;
}
.sheet-cell-menu-item:hover:not(:disabled),
.sheet-cell-menu-item:focus-visible,
.sheet-cell-menu-item[aria-expanded="true"] {
background: var(--lp-blue-tint);
outline: none;
}
.sheet-cell-menu-icon-slot {
display: inline-flex;
align-items: center;
justify-content: center;
width: 24px;
height: 20px;
color: var(--lp-ink-muted);
}
.sheet-cell-menu-shortcut {
color: var(--lp-muted);
font-size: var(--lp-fs-2xs);
}
.sheet-cell-menu-chevron {
width: 12px;
height: 12px;
fill: none;
stroke: currentColor;
stroke-width: 1.4;
}
.sheet-cell-menu-heading {
display: grid;
grid-template-columns: 24px 1fr;
gap: 6px;
align-items: center;
padding: 4px 8px 0 4px;
color: var(--lp-ink);
font-size: var(--lp-fs-xs);
font-weight: 600;
}
.sheet-cell-menu-paste-row {
display: flex;
gap: 2px;
padding: 2px 8px 4px 34px;
}
.sheet-cell-menu-paste {
display: inline-flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
padding: 0;
border: 1px solid var(--lp-line);
border-radius: var(--lp-r-sm);
background: var(--lp-surface);
color: var(--lp-ink);
cursor: pointer;
}
.sheet-cell-menu-paste:hover:not(:disabled),
.sheet-cell-menu-paste:focus-visible {
background: var(--lp-blue-tint);
outline: none;
}
.sheet-cell-menu-sep {
height: 1px;
margin: 4px 6px;
background: var(--lp-line);
}
.sheet-cell-menu-subwrap {
position: relative;
display: flex;
flex-direction: column;
}
.sheet-cell-submenu {
position: absolute;
top: -4px;
left: calc(100% + 4px);
min-width: 240px;
padding: 4px;
border: 1px solid var(--lp-line-strong);
border-radius: var(--lp-r-md);
background: var(--lp-surface);
/* the `.cg-view-menu` shadow, matched by value: the product has no shadow token */
box-shadow: 0 8px 24px rgba(20, 24, 40, 0.13);
z-index: 1;
}
.sheet-cell-menu-ask {
display: flex;
flex-direction: column;
gap: 6px;
padding: 6px 8px 8px;
font-size: var(--lp-fs-xs);
color: var(--lp-ink);
}
.sheet-cell-menu-ask-title {
font-weight: 600;
font-size: var(--lp-fs-sm);
}
.sheet-cell-menu-ask-option {
display: flex;
align-items: center;
gap: 8px;
}
.sheet-cell-menu-ask-actions {
display: flex;
justify-content: flex-end;
gap: 6px;
margin-top: 4px;
}
.sheet-cell-menu-ask-ok,
.sheet-cell-menu-ask-cancel {
min-width: 64px;
height: 26px;
border: 1px solid var(--lp-line-strong);
border-radius: var(--lp-r-sm);
background: var(--lp-surface);
color: var(--lp-ink);
font: inherit;
font-size: var(--lp-fs-xs);
cursor: pointer;
}
.sheet-cell-menu-ask-ok {
background: var(--lp-blue);
border-color: var(--lp-blue);
color: var(--lp-surface);
}
.sheet-cell-note-input {
width: 240px;
padding: 6px 8px;
border: 1px solid var(--lp-line-strong);
border-radius: var(--lp-r-sm);
background: var(--lp-surface);
color: var(--lp-ink);
font: inherit;
font-size: var(--lp-fs-xs);
resize: vertical;
}