Bento, the office suite that fits in a file
TypeScript mit-licenseofficeoffice-365office-suiteoffice-toolsoffice365open-sourcepowerpointself-hostedsingle-page-appslidesslideshareslideshowslideshow-galleryslideshow-makerslideshows
/* SPDX-License-Identifier: MIT
* Copyright (c) 2026 The Bento authors
*/
/* --- the modal form that replaced window.prompt --------------------------- */
/* Native prompts are unavailable in embedded webviews, sandboxed iframes and
any tab where the reader has blocked extra dialogs — see `askForm` in
main.ts. This is that dialog, styled to sit with .dx-pop rather than beside
it, because they are the same kind of object at different sizes. */
.dx-ask-back {
position: fixed;
inset: 0;
z-index: 10000;
display: flex;
align-items: center;
justify-content: center;
padding: 24px;
background: var(--scrim);
}
.dx-ask {
width: min(30rem, 100%);
max-height: 100%;
overflow: auto;
background: var(--surface);
border: 1px solid var(--line-strong);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-dialog);
padding: 18px 20px 14px;
}
.dx-ask-title { margin: 0 0 14px; font-size: 15px; font-weight: 600; }
.dx-ask-row { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.dx-ask-row > span { font-size: 12px; color: var(--muted); }
/* The look and the focus ring are THE FIELD (styles.css); this only sizes.
The shared ring is --accent-ink, not --accent: dark amber passes the 3:1
WCAG 2.2 SC 1.4.11 asks of a focus indicator where bright amber did not. */
.dx-ask-in { width: 100%; }
/* A formula is read character by character — an l and a 1 have to differ. */
.dx-ask-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.dx-ask-hint {
margin: 0 0 10px;
font-size: 12px;
line-height: 1.5;
color: var(--muted);
white-space: pre-line;
overflow-wrap: anywhere;
}
.dx-ask-err { margin: 0 0 10px; font-size: 12px; color: var(--err-ink); }
.dx-ask-foot { display: flex; justify-content: flex-end; gap: 8px; }
/* Scoped through .dx-ask-foot to out-rank styles.css's `.dx-ask-foot .dx-btn`
boxed rule, which is two classes and would otherwise repaint the primary as
an ordinary outlined button — the same specificity trap the .dx-dirty and
.dx-people-me notes in styles.css describe. */
.dx-ask-foot .dx-ask-go { background: var(--ink); color: var(--surface); border-color: var(--ink); }
/* ink-filled, as slides' .ed-btn-primary and the Save button: ONE accent in
the chrome, and it is not the primary button's colour */
.dx-ask-foot .dx-ask-go:hover { background: var(--ink-2); border-color: var(--ink-2); }
.dx-ask-go:disabled { opacity: 0.35; cursor: not-allowed; }
/* --- the formula dialog's reference (fnpicker.ts) ------------------------- */
/* Columns as chips, then every function with its signature in a scrolling
list that narrows to the word being typed. Signatures are mono for the same
reason the formula field is: they are read character by character. */
.dx-fn { margin: 0 0 12px; display: flex; flex-direction: column; gap: 6px; }
.dx-fn-h { font-size: 12px; color: var(--muted); }
.dx-fn-cols { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }
.dx-fn-col,
.dx-fn-item {
font: inherit;
font-size: 12px;
color: var(--ink);
background: var(--field);
border: 1px solid var(--line);
border-radius: 6px;
cursor: pointer;
}
.dx-fn-col { padding: 2px 8px; }
.dx-fn-search { width: 100%; }
.dx-fn-list {
max-height: 168px;
overflow-y: auto;
border: 1px solid var(--line);
border-radius: 6px;
padding: 2px;
display: flex;
flex-direction: column;
}
.dx-fn-item { text-align: left; border-color: transparent; background: transparent; padding: 3px 6px; }
.dx-fn-item code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.dx-fn-col:hover, .dx-fn-item:hover { background: var(--hover); }
.dx-fn-col:focus-visible, .dx-fn-item:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: -1px; }
.dx-fn-none { font-size: 12px; color: var(--muted); padding: 4px 6px; }