@apliteni/apliteni-ui 0.151.0 → 0.155.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,7 @@
1
1
  /* ============================================================================
2
2
  * Card — .ui-card (a filled surface one step off the page: edged in both themes)
3
3
  * Rows: .ui-card__row / headers: .ui-card__title / .ui-card__sub
4
+ * Title row: .ui-card__head holds the title and .ui-card__tools at its end
4
5
  * ========================================================================== */
5
6
 
6
7
  /* The surface is the step; the line makes it legible. Both themes edge the card with
@@ -136,6 +137,17 @@
136
137
  /* Title to description: the step, not the 5px it was. why: docs/foundations.md#spacing-and-rhythm */
137
138
  margin: 0 0 var(--space-2);
138
139
  }
140
+ /* The title row: the title, then the card's tools centred on its line, in the
141
+ title's step. why: docs/components.md#content-and-status */
142
+ .ui-card__head {
143
+ display: flex;
144
+ align-items: center;
145
+ gap: var(--space-2);
146
+ margin: 0 0 var(--space-2);
147
+ }
148
+ .ui-card__head > .ui-card__title { flex: 1 1 auto; min-width: 0; margin: 0; }
149
+ .ui-card__tools { display: flex; flex: none; align-items: center; gap: var(--space-1); margin-inline-start: auto; }
150
+ .ui-card__tools:empty { display: none; }
139
151
  /* The title of a card that supports its neighbour, such as a document beside the
140
152
  data read from it. The size, weight and rank stay the card title's.
141
153
  why: docs/foundations.md#text-ink */
@@ -248,10 +248,16 @@
248
248
  .ui-chart__dot { fill: var(--ui-chart-tone); stroke: var(--ui-chart-ground); stroke-width: 2; }
249
249
  .ui-chart--line-thin .ui-chart__line { stroke-width: 1.5; }
250
250
  .ui-chart--line-points .ui-chart__line { stroke-width: 2.5; }
251
+ /* The curves look's point is a ring of its tone around the ground. */
252
+ .ui-chart--area-curves .ui-chart__dot { fill: var(--ui-chart-ground); stroke: var(--ui-chart-tone); }
251
253
  /* An area is the fade of its tone. Where its values vary, the component names a
252
254
  ramp as --ui-chart-paint: the fade at the lowest value, the tone at the highest.
253
255
  The edge line on top of it holds the value. */
254
256
  .ui-chart__area { fill: var(--ui-chart-paint, var(--ui-chart-fade)); stroke: none; }
257
+ /* A curves area washes its tone from its highest value to clear at zero. The
258
+ series overlap, so the wash is thin enough to show the ones under it. */
259
+ .ui-chart__wash-top { stop-color: var(--ui-chart-tone); stop-opacity: 0.32; }
260
+ .ui-chart__wash-floor { stop-color: var(--ui-chart-tone); stop-opacity: 0; }
255
261
  /* A stacked part, a share band and a ring slice. The ground between two parts
256
262
  keeps them apart where two tones of one hue meet. */
257
263
  .ui-chart__segment {
@@ -169,6 +169,14 @@
169
169
  }
170
170
  .ui-table__act { --tap-clear-x: var(--tap-gap); --tap-clear-y: 0px; }
171
171
 
172
+ /* A card's title row holds small tools at its end, such as a 24px icon-only
173
+ button: across, the room beside it is title text, and down, the row opens
174
+ to 12px, because the layer reaches 10px under it and the title gap is 8.
175
+ Between two tools the gap opens to --tap-gap, so neither layer reaches the
176
+ other. A chart's switch there keeps the clearance .ui-seg declares. */
177
+ .ui-card__head { margin-bottom: var(--space-3, 12px) !important; }
178
+ .ui-card__tools { column-gap: var(--tap-gap) !important; --tap-clear-x: var(--tap-gap); --tap-clear-y: var(--tap-gap); }
179
+
172
180
  /* The selection box is 19px in a 58px row and a 34px header: the layer has room to reach the floor both ways. */
173
181
  .ui-table__selection { --tap-clear-x: var(--tap-min); --tap-clear-y: var(--tap-min); }
174
182
  /* A dense or compact table's rows are 33px to 40px apart and share an edge, so a layer that grows down takes the pixels nearest the next row's box. Those rows keep the 24px floor. */