File size: 4,279 Bytes
f5696cb bdac669 f5696cb dcd43e2 bdac669 f5696cb dcd43e2 b80130d dcd43e2 f5696cb | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 | /* ---------------------------------------------------------------------------
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);
}
|