Download web/src/styles/wave57/binding-actions.css from fsanyoto/loopable: direct link, hf CLI and curl.
- Browser
- Download file 4.28 kB
-
https://huggingface.co/spaces/fsanyoto/loopable/resolve/main/web/src/styles/wave57/binding-actions.css
- Command line
-
hf download hf://spaces/fsanyoto/loopable/web/src/styles/wave57/binding-actions.css
-
curl -L -o binding-actions.css https://huggingface.co/spaces/fsanyoto/loopable/resolve/main/web/src/styles/wave57/binding-actions.css
4.28 kB
| /* --------------------------------------------------------------------------- | |
| styles/wave57/binding-actions.css - the cell binding panel's own chrome. | |
| ⭐⭐ W57-T18 (ruling R5, contract C3) - THE PANEL GAINS A SECTION RAIL, and | |
| this sheet carries its geometry. C3 puts the Period under "a section keyed | |
| `period`" in the Cell database navigation rail, so the panel stops being one | |
| long scroller and becomes a rail plus one section at a time. `BindingEditor` | |
| is the only consumer and imports it directly, which is this tree's convention | |
| since wave 43 (`SheetChartLayer.tsx` imports `wave56/charts.css` the same | |
| way); `wave51/kit.css` is the deliberate exception, and its own header says | |
| why it had to be. | |
| This sheet now carries the binding rail (W57-T18) and the shared button kit | |
| (W57-T23). The `.lp-btn` classes are named for the kit so other surfaces can | |
| reuse them without adopting this panel's selectors. | |
| ⛔ THE CLASS NAMES ARE THIS PANEL'S OWN AND NOT `.set-rail`'s. The Settings | |
| modal's rail is the pattern (`SettingsModal.tsx`, `index.css:6689`) and its | |
| hover, active and focus values are reused verbatim below, so "where am I" is | |
| answered the same way in both. Its WIDTH is not reusable: `.set-rail` is | |
| 196px inside a modal, and this panel is a 380px column, so borrowing the | |
| class would leave 184px for every control the section holds. | |
| ⛔ TOKENS ONLY, AND NO LITERAL `font-size` ANYWHERE IN THIS FILE. `--lp-fs-*` | |
| or nothing - `verify_ui.py` goes red on a literal, and DESIGN.md section 5 is | |
| what earned that rule. | |
| ⛔ EVERY CLASS-STYLED BUTTON RESETS NATIVE CHROME IN ITS BASE RULE | |
| (`border/background/font/color`, DESIGN.md section 4). That reset is the | |
| named cause of the "mystery outer lines and tinted fill" defect, so it is | |
| written first in `.sheet-binding-rail-item` rather than left to a browser. | |
| --------------------------------------------------------------------------- */ | |
| .sheet-binding-body { | |
| display: flex; | |
| gap: 12px; | |
| min-width: 0; | |
| } | |
| .sheet-binding-rail { | |
| /* Active "When copied" measures 82px in Inter; leave 87px after chrome. */ | |
| flex: 0 0 136px; | |
| min-width: 0; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 2px; | |
| border-right: 1px solid var(--lp-line); | |
| padding-right: 8px; | |
| } | |
| .sheet-binding-rail-item { | |
| border: 0; | |
| background: transparent; | |
| font: inherit; | |
| color: inherit; | |
| display: grid; | |
| grid-template-columns: 16px minmax(0, 1fr); | |
| column-gap: 8px; | |
| align-items: center; | |
| align-content: center; | |
| min-height: 32px; | |
| padding: 6px 8px; | |
| border-radius: var(--lp-r-sm); | |
| text-align: left; | |
| cursor: pointer; | |
| font-size: var(--lp-fs-2xs); | |
| } | |
| .sheet-binding-rail-icon { | |
| display: flex; | |
| width: 16px; | |
| height: 16px; | |
| } | |
| .sheet-binding-rail-icon > svg { | |
| display: block; | |
| width: 16px; | |
| height: 16px; | |
| } | |
| .sheet-binding-rail-label { | |
| white-space: nowrap; | |
| } | |
| .sheet-binding-rail-hint { | |
| grid-column: 2; | |
| justify-self: start; | |
| } | |
| .sheet-binding-rail-item:hover { | |
| background: var(--lp-surface); | |
| } | |
| .sheet-binding-rail-item.is-active { | |
| background: var(--lp-blue-tint); | |
| font-weight: 600; | |
| } | |
| .sheet-binding-rail-item:focus-visible { | |
| outline: 2px solid var(--lp-blue-deep); | |
| outline-offset: -2px; | |
| } | |
| .sheet-binding-section { | |
| flex: 1 1 auto; | |
| min-width: 0; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 12px; | |
| } | |
| .lp-btn { | |
| border: 0; | |
| background: transparent; | |
| font: inherit; | |
| color: inherit; | |
| display: inline-flex; | |
| align-items: center; | |
| justify-content: center; | |
| padding: 5px 10px; | |
| border-radius: var(--lp-r-md); | |
| cursor: pointer; | |
| font-size: var(--lp-fs-xs); | |
| transition: background-color 150ms ease-out, opacity 150ms ease-out; | |
| } | |
| .lp-btn:disabled { | |
| opacity: 0.55; | |
| cursor: default; | |
| } | |
| .lp-btn:focus-visible { | |
| outline: 2px solid var(--lp-primary); | |
| outline-offset: 1px; | |
| } | |
| .lp-btn-primary { | |
| background: var(--lp-primary); | |
| color: var(--lp-surface); | |
| border: 1px solid var(--lp-primary); | |
| } | |
| .lp-btn-primary:hover:not(:disabled) { | |
| background: var(--lp-primary-hover); | |
| border-color: var(--lp-primary-hover); | |
| } | |
| .lp-btn-quiet { | |
| border: 1px solid var(--lp-line); | |
| background: var(--lp-surface); | |
| color: var(--lp-ink); | |
| } | |
| .lp-btn-quiet:hover:not(:disabled) { | |
| background: var(--lp-blue-tint); | |
| } | |