Files
DataStack/public/assets/aistudio/Forms.size_62bad673.md
T

174 lines
34 KiB
Markdown
Raw Normal View History

2026-10-23 11:43:49 -05:00
# Sandbox Form And Input Size Tokens
## Audit Scope
Source: canonical [`sandbox/index.html`](../index.html). This review-only inventory records explicit size-related CSS for form layouts, text inputs, selects, textareas, checkboxes, color/range controls, and radio-style review controls. Host and generated mock-tool iframe styles are kept separate. Typography values are included where they size control text; see [`fonts.md`](fonts.md) and [`fonts.size.md`](fonts.size.md) for the complete typography ledgers.
The current rendered markup includes text, search, URL, email, file, checkbox, color and select controls, textareas, and custom star choices with `role="radio"`. There are no native `input[type=radio]` declarations in the source. Repeated controls in multiple rendered pages are not treated as unique design tokens. No inline size styles were found on rendered host or mock form controls.
Values below are literal source declarations. Browser-native defaults are not presented as authored dimensions.
## Host Form Layouts
| Selector | Exact size declarations |
| ----------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `.prototype-dialog` | `margin:auto; width:min(520px,calc(100vw - 28px)); max-height:min(82dvh,680px); padding:0; overflow:auto; border:1px solid var(--border-strong); border-radius:8px` |
| `.workspace-create-dialog` | `width:min(440px,calc(100vw - 28px))` |
| `.prototype-modal-form` | `display:grid; gap:0` |
| `.prototype-modal-fields` | `display:grid; gap:11px; padding:14px 16px` |
| `.prototype-form-field` | `display:grid; gap:5px; min-width:0` |
| `.prototype-form-grid` | `display:grid; grid-template-columns:minmax(0,1fr) 144px; gap:10px` |
| `.prototype-modal-foot` | `display:flex; gap:7px; padding:11px 16px; border-top:1px solid var(--border)` |
| `.team-name-edit-form` | `display:flex; gap:6px; margin:0 0 6px` |
| `.team-name-form,.team-invite-form` | `display:grid; gap:9px` |
| `.team-field` | `display:grid; gap:5px` |
| `.team-settings-fields` | `display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px` |
| `.team-settings-actions` | `display:flex; gap:7px; padding-top:4px` |
| `.team-invite-fields` | `display:grid; grid-template-columns:minmax(0,1fr) 108px auto; gap:6px` |
| `.team-members-toolbar` | `display:flex; gap:8px; margin:0 14px 10px` |
| `.review-reply-form` | `display:grid; gap:6px; margin:9px 0 0 38px` |
| `.review-composer` | `margin:0 0 12px; padding:12px; border:1px solid var(--border); border-radius:7px` |
| `.review-composer-head` | `display:flex; gap:10px; margin-bottom:8px` |
| `.review-rating` | `display:flex; gap:7px; margin:0 0 8px; padding:0; border:0` |
| `.review-rating-options` | `display:flex; gap:2px` |
| `.review-compose-footer` | `display:flex; gap:10px; margin-top:8px` |
| `.profile-edit-form` | `display:grid; gap:12px` |
| `.profile-field` | `display:grid; gap:5px` |
| `.profile-form-actions` | `display:flex; gap:8px; flex-wrap:wrap` |
| `.setting-row` | `display:flex; gap:20px; padding:14px 0; border-bottom:1px solid var(--border)` |
| `.settings-section .setting-row` | `min-height:54px; gap:14px; padding:10px 0` |
| `.settings-switch` | `display:flex; gap:8px; font-size:11.5px` |
## Host Text Inputs, Selects, And Textareas
| Selector | Exact size declarations |
| ------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `input,select,textarea` | `font-family:inherit` |
| `.search-wrap` | `display:flex; gap:7px; border:1px solid var(--border-strong); border-radius:6px; padding:0 9px; height:30px` |
| `.search-input` | `flex:1; border:none; outline:none; font-size:12.5px` |
| `.side-select` | `width:100%; border:1px solid var(--border-strong); font-size:12.5px; padding:6px 8px; border-radius:5px; outline:none` |
| `.palette-searchbar` | `height:48px; flex:none; display:flex; gap:12px; padding:0 14px; border-bottom:1px solid var(--border-strong)` |
| `.palette-input` | `width:100%; min-width:0; height:100%; border:0; outline:0; font:inherit; font-size:14px` |
| `.search-palette` | `width:min(640px,calc(100vw - 28px)); max-height:min(680px,calc(100dvh - 66px)); display:flex; overflow:hidden; border:1px solid var(--border-palette); border-radius:10px` |
| `.team-name-edit-form input` | `width:min(280px,60vw); min-height:30px; padding:5px 8px; border:1px solid var(--border-strong); border-radius:5px; font:inherit; font-size:11px` |
| `.team-member-search` | `min-width:0; min-height:32px; flex:1; padding:6px 9px; border:1px solid var(--border); border-radius:5px; font:inherit; font-size:11px` |
| `.team-member-filter` | `min-width:112px; min-height:32px; padding:5px 8px; border:1px solid var(--border); border-radius:5px; font:inherit; font-size:10.5px` |
| `.team-field input`, `.team-field select` | `width:100%; min-height:34px; padding:7px 9px; border:1px solid var(--border-strong); border-radius:5px; font:inherit; font-size:11.5px` |
| `.team-field label`, `.prototype-form-field label` | `font-size:10.5px; font-weight:600` |
| `.team-role-select` | `width:100%; max-width:110px; min-height:28px; padding:4px 6px; border:1px solid var(--border); border-radius:4px; font:inherit; font-size:10px` |
| `.prototype-form-field input:not([type="checkbox"]):not([type="color"])`, `.prototype-form-field select`, `.prototype-form-field textarea` | `width:100%; min-height:34px; padding:7px 9px; border:1px solid var(--border-strong); border-radius:5px; font:inherit; font-size:11.5px` |
| `.prototype-form-field textarea` | `min-height:74px; resize:vertical; line-height:1.5` |
| `.collection-picker-search` | `width:100%; min-height:34px; padding:7px 9px; border:1px solid var(--border-strong); border-radius:5px; font:inherit; font-size:11.5px` |
| `.workspace-scratchpad` | `width:100%; min-height:270px; resize:vertical; padding:11px 12px; border:1px solid var(--border-strong); border-radius:6px; font:inherit; font-size:12px; line-height:1.55` |
| `.review-reply-form textarea` | `min-height:58px; padding:7px 8px; border:1px solid var(--border-strong); border-radius:5px; font:inherit; font-size:10.5px; line-height:1.45; resize:vertical` |
| `.review-composer textarea` | `display:block; width:100%; min-height:64px; resize:vertical; padding:8px 9px; border:1px solid var(--border-strong); border-radius:5px; font:inherit; font-size:12px; line-height:1.45` |
| `.profile-field input`, `.profile-field textarea` | `width:100%; border:1px solid var(--border-strong); border-radius:6px; padding:9px 10px; font:inherit; font-size:12.5px; resize:vertical` |
| `.settings-control` | `min-width:140px; max-width:190px` |
## Host Checkboxes, Color, And Radio Controls
| Selector | Exact size declarations |
| ----------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
| `.switch-row` | `display:flex; gap:8px; padding:6px 8px; border-radius:5px; font-size:12.5px` |
| `.switch-row input` | `accent-color:var(--accent)`; no authored width/height |
| `.settings-switch input` | `accent-color:var(--accent); width:15px; height:15px` |
| `.collection-tool-option` | `display:flex; gap:8px; min-width:0; min-height:34px; padding:5px 7px; border:1px solid transparent; border-radius:4px` |
| `.collection-tool-option input` | `flex:none; margin:0; accent-color:var(--accent)`; no authored width/height |
| `.collection-add-option` | `display:flex; gap:8px; min-width:0; min-height:40px; padding:6px 8px; border:1px solid var(--border); border-radius:5px` |
| `.collection-add-option input` | `flex:none; margin:0; accent-color:var(--accent)`; no authored width/height |
| `.prototype-color-control` | `width:48px; height:34px; padding:3px; border:1px solid var(--border-strong); border-radius:5px` |
| `.prototype-check-row` | `display:flex; gap:7px; font-size:11px` |
| `.review-rating-options button[role="radio"]` | `width:26px; height:26px; display:grid; padding:0; border:0; border-radius:4px` |
| `.review-rating-options button[role="radio"]:focus-visible` | `outline:1px solid var(--accent)` |
Review stars are buttons with `role="radio"`, not native radio inputs. Native checkbox/radio dimensions are browser defaults unless the selectors above specify otherwise.
## Host Responsive Overrides
All conditions below are `@media (max-width:640px)`; values are literal source declarations.
| Selector | Exact responsive size declarations |
| -------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
| `.team-name-edit-form input` | `width:min(220px,48vw)` |
| `.team-invite-fields` | First: `grid-template-columns:minmax(0,1fr) 92px auto`; later: `grid-template-columns:minmax(0,1fr) 84px auto; gap:5px` |
| `.team-member-filter` | `min-width:96px` |
| `.team-role-select` | `padding-inline:3px; font-size:9px` |
| `.workspace-scratchpad` | First: `min-height:220px`; later: `min-height:180px` |
| `.palette-searchbar` | `height:44px; padding-inline:11px; gap:9px` |
| `.settings-section .setting-row` | `min-height:46px; gap:8px; padding:7px 0` |
| `.settings-control` | `min-width:112px; max-width:148px` |
| `.settings-switch` | `gap:6px; font-size:10.5px` |
## Mock-Tool Form Controls
Each iframe owns its own form-control styling. Unlisted controls use the preview document's native browser defaults.
| Preview | Selector | Exact size declarations |
| ------------------- | ---------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| JSON Formatter | `.panes` | `flex:1; display:grid; grid-template-columns:1fr 1fr; gap:1px; min-height:0` |
| JSON Formatter | `.pane` | `display:flex; min-height:0` |
| JSON Formatter | `.pane label` | `font-size:11px; padding:8px 14px` |
| JSON Formatter | `textarea` | `flex:1; border:none; padding:14px; font-family:inherit; font-size:13px; resize:none; line-height:1.5` |
| Color Picker | `input[type=color]` | `width:60px; height:40px; border:1px solid var(--frame-border); border-radius:8px; padding:2px` |
| Password Generator | `.row label` | `font-size:13px; flex:1` |
| Password Generator | `input[type=range]` | `flex:2; accent-color:var(--frame-accent)`; no authored width/height |
| Password Generator | `input[type=checkbox]` | No authored dimensions; uses native browser defaults |
| Text Case Converter | `.panes` | `flex:1; display:grid; grid-template-columns:1fr 1fr; min-height:0` |
| Text Case Converter | `.pane` | `display:flex` |
| Text Case Converter | `.pane label` | `font-size:11px; padding:10px 20px; font-weight:600` |
| Text Case Converter | `textarea` | `flex:1; border:none; padding:0 20px 20px; font-size:14px; resize:none; line-height:1.6` |
| SQL Studio | `.editor-wrap` | `height:38%; flex-shrink:0; display:flex; min-height:120px; border-bottom:1px solid var(--frame-border)` |
| SQL Studio | `textarea` | `flex:1; border:none; outline:none; padding:12px 16px; font-family:ui-monospace,"SF Mono",monospace; font-size:13px; resize:none; line-height:1.65` |
## Auxiliary Form Geometry And Focus States
| Selector | Exact size declarations |
| ------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------- |
| `.workspace-scratchpad:focus` | `outline:2px solid var(--accent); outline-offset:1px` |
| `.search-palette-backdrop[hidden],.search-palette[hidden]` | `display:none` |
| `.workspace-scratchpad-meta` | `display:flex; gap:8px; margin-top:6px` |
| `.team-name-edit-form input:focus` | `outline:2px solid var(--accent); outline-offset:1px` |
| `.team-member-search:focus` | `outline:2px solid var(--accent); outline-offset:1px` |
| `.team-field input:focus`, `.team-field select:focus` | `outline:2px solid var(--accent); outline-offset:1px` |
| `.prototype-modal-head` | `display:flex; gap:12px; padding:14px 16px; border-bottom:1px solid var(--border)` |
| `.prototype-modal-head p` | `margin-top:3px` |
| `.sr-only` | `position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0` |
| `.prototype-form-field input:focus`, `.prototype-form-field select:focus`, `.prototype-form-field textarea:focus` | `outline:2px solid var(--accent); outline-offset:1px` |
| `.collection-picker-search:focus` | `outline:2px solid var(--accent); outline-offset:1px` |
| `.collection-picker-meta` | `display:flex; gap:8px; font-size:9.5px` |
| `.collection-tool-results` | `display:grid; gap:3px; max-height:192px; padding:2px; overflow-y:auto; border:1px solid var(--border); border-radius:5px` |
| `.collection-tool-option-copy` | `min-width:0; flex:1` |
| `.collection-tool-empty` | `padding:15px 10px; font-size:10.5px` |
| `.collection-add-count` | `flex:none; padding:3px 6px; border-radius:4px; font-size:9.5px` |
| `.collection-add-options` | `display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; max-height:220px; padding:1px; overflow-y:auto` |
| `.collection-add-option-copy` | `min-width:0; flex:1` |
| `.collection-add-actions` | `display:flex; gap:10px; padding-top:9px; border-top:1px solid var(--border)` |
| `.collection-add-hint` | `min-width:0; font-size:9.5px; line-height:1.4` |
| `.review-reply-form textarea:focus` | `outline:2px solid var(--accent); outline-offset:1px` |
| `.review-composer-head` | `display:flex; gap:10px; margin-bottom:8px` |
| `.review-rating-options button:hover`, `.review-rating-options button:focus-visible` | `outline:1px solid var(--accent)` |
| `.review-composer textarea:focus` | `outline:2px solid var(--accent); outline-offset:1px` |
| `.profile-field input:focus`, `.profile-field textarea:focus` | `outline:2px solid var(--accent); outline-offset:1px` |
| `.profile-visibility` | `display:flex; gap:12px` |
| `.settings-section .setting-row:focus` | `outline:1px solid var(--accent); outline-offset:2px; border-radius:4px` |
| `.team-name-form,.team-invite-form` | `display:grid; gap:9px` |
| `.team-field input,.team-field select` | `width:100%; min-height:34px; padding:7px 9px; border:1px solid var(--border-strong); border-radius:5px; font:inherit; font-size:11.5px` |
| `.team-field input:focus,.team-field select:focus` | `outline:2px solid var(--accent); outline-offset:1px` |
| `.prototype-form-field input:not([type="checkbox"]):not([type="color"]),.prototype-form-field select,.prototype-form-field textarea` | `width:100%; min-height:34px; padding:7px 9px; border:1px solid var(--border-strong); border-radius:5px; font:inherit; font-size:11.5px` |
| `.prototype-form-field input:focus,.prototype-form-field select:focus,.prototype-form-field textarea:focus` | `outline:2px solid var(--accent); outline-offset:1px` |
| `.profile-field input,.profile-field textarea` | `width:100%; border:1px solid var(--border-strong); border-radius:6px; padding:9px 10px; font:inherit; font-size:12.5px; resize:vertical` |
| `.profile-field input:focus,.profile-field textarea:focus` | `outline:2px solid var(--accent); outline-offset:1px` |
| `.review-rating-options button:hover,.review-rating-options button:focus-visible` | `outline:1px solid var(--accent)` |
| `.collection-add-tools` | `display:grid; gap:10px; margin-top:14px; padding:12px; border:1px solid var(--border); border-radius:7px` |
| `.collection-add-head` | `display:flex; gap:10px` |
| `.collection-add-actions .btn` | `flex:none` |
| `.settings-section .profile-form-actions` at `max-width:640px` | `gap:5px` |
| `.search-palette` at `max-width:640px` | `width:calc(100vw - 16px); max-height:min(72dvh,560px); border-radius:8px` |
## Inline And Coverage Notes
- No inline geometry was found on rendered host or mock native form elements. The Password Generator mock preview has inline sizing on the checkbox group row and its four labels: `.row` uses `gap:16px; font-size:13px; flex-wrap:wrap`, and each checkbox label uses `display:flex; gap:6px; align-items:center; flex:none`.
- Page-shell bounds, generic panel/table geometry, and mock iframe app frames are cross-referenced in [`Pages.size.md`](Pages.size.md), [`Sections.size.md`](Sections.size.md), and [`cards.size.md`](cards.size.md); they are not duplicated here unless they directly size a form/control group.
- The rendered host inventory spans text/search/url/email/file inputs, selects, textareas, checkboxes, a color input, and `role="radio"` buttons. Generated preview controls include textareas, a color input, a range input, and checkboxes.
- The CSS extraction includes form wrappers and responsive overrides so dimensions are not reduced to individual input boxes alone. It preserves authored declarations rather than inferring native control sizes.
- Refresh this audit whenever form/control markup or sizing in `sandbox/index.html` changes. This is a source inventory, not a production form-system contract.