@axiapps/axi-design 1.31.0 → 1.32.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.
package/README.md CHANGED
@@ -140,6 +140,8 @@ not "what does the system look like". Everything else is
140
140
  | `--axi-textarea-h` | the minimum height of a `<textarea class="axi-input">` | `90px` | `<textarea class="axi-input" style="--axi-textarea-h: 200px">` |
141
141
  | `--axi-btn-pad` | the padding inside an `.axi-btn`. The three named steps set it for you; reach for the knob only for a size they do not cover | `12px 20px` | `<button class="axi-btn" style="--axi-btn-pad: 3px 7px">` |
142
142
  | `--axi-btn-size` | an `.axi-btn`'s text size, which travels with its padding | `13px` | `<button class="axi-btn" style="--axi-btn-size: 10px">` |
143
+ | `--axi-pill-pad` | the padding inside an `.axi-pill`. The same scale and the same two named steps as the button, because a pill is a button that holds a state | `12px 20px` | `<button class="axi-pill" style="--axi-pill-pad: 3px 7px">` |
144
+ | `--axi-pill-size` | an `.axi-pill`'s text size, which travels with its padding | `13px` | `<button class="axi-pill" style="--axi-pill-size: 10px">` |
143
145
  | `--axi-input-pad` | the padding inside an `.axi-input`, for a field that is furniture in a header rather than a control on a page | `11px 12px` | `<input class="axi-input" style="--axi-input-pad: 7px 12px">` |
144
146
  | `--axi-input-size` | an `.axi-input`'s text size, which travels with its padding | `14px` | `<input class="axi-input" style="--axi-input-size: 13px">` |
145
147
  | `--axi-well-pad` | the padding inside an `.axi-well` | `10px` | `<div class="axi-well" style="--axi-well-pad: 18px">` |
package/dist/axi.css CHANGED
@@ -448,19 +448,30 @@ button.axi-panel--tile:hover,
448
448
  as a generic "selected". Consumers set that colour with --axi-pill-fill,
449
449
  on the pill or on any ancestor - it is read through a fallback and never
450
450
  declared on the component, which is what keeps both placements working. */
451
+ /* On the button's scale, and deliberately the same numbers. The only thing a
452
+ pill has that a button does not is a state, so two of them carrying the same
453
+ 13px uppercase label have no reason to be different shapes - and they were:
454
+ measured at 12px/20px against 10px/9px, the pill's sides less than half the
455
+ button's, 43px tall against 39px. Side by side that reads as two components
456
+ rather than one component holding a state. The steps below are the button's
457
+ steps verbatim for the same reason, and a test holds the two in step. */
451
458
  .axi-pill {
452
459
  display: inline-flex; align-items: center; gap: 6px;
453
- padding: 10px 9px;
460
+ padding: var(--axi-pill-pad, 12px 20px);
454
461
  border: var(--axi-border-control) solid var(--axi-ink-line);
455
462
  border-radius: var(--axi-radius-sm);
456
463
  background: var(--axi-ground);
457
464
  color: var(--axi-text-dim);
458
465
  font: var(--axi-t-label);
459
466
  letter-spacing: var(--axi-ls-label);
467
+ /* After the `font` shorthand, which sets 13px and would otherwise reset it. */
468
+ font-size: var(--axi-pill-size, 13px);
460
469
  text-transform: uppercase;
461
470
  cursor: pointer;
462
471
  transition: transform .1s, box-shadow .1s;
463
472
  }
473
+ .axi-pill--sm { --axi-pill-pad: 8px 13px; --axi-pill-size: 12px; }
474
+ .axi-pill--xs { --axi-pill-pad: 5px 9px; --axi-pill-size: 11px; }
464
475
  /* :where() for the same reason the button's hover has it - the brighten is
465
476
  what a pill that has not been told its colour falls back to, not an override
466
477
  of one that has. See rule 6's addendum. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axiapps/axi-design",
3
- "version": "1.31.0",
3
+ "version": "1.32.0",
4
4
  "description": "The design language for the axi suite — flat and outlined, dark, drawn in saturated ink.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -174,19 +174,30 @@ button.axi-panel--tile:hover,
174
174
  as a generic "selected". Consumers set that colour with --axi-pill-fill,
175
175
  on the pill or on any ancestor - it is read through a fallback and never
176
176
  declared on the component, which is what keeps both placements working. */
177
+ /* On the button's scale, and deliberately the same numbers. The only thing a
178
+ pill has that a button does not is a state, so two of them carrying the same
179
+ 13px uppercase label have no reason to be different shapes - and they were:
180
+ measured at 12px/20px against 10px/9px, the pill's sides less than half the
181
+ button's, 43px tall against 39px. Side by side that reads as two components
182
+ rather than one component holding a state. The steps below are the button's
183
+ steps verbatim for the same reason, and a test holds the two in step. */
177
184
  .axi-pill {
178
185
  display: inline-flex; align-items: center; gap: 6px;
179
- padding: 10px 9px;
186
+ padding: var(--axi-pill-pad, 12px 20px);
180
187
  border: var(--axi-border-control) solid var(--axi-ink-line);
181
188
  border-radius: var(--axi-radius-sm);
182
189
  background: var(--axi-ground);
183
190
  color: var(--axi-text-dim);
184
191
  font: var(--axi-t-label);
185
192
  letter-spacing: var(--axi-ls-label);
193
+ /* After the `font` shorthand, which sets 13px and would otherwise reset it. */
194
+ font-size: var(--axi-pill-size, 13px);
186
195
  text-transform: uppercase;
187
196
  cursor: pointer;
188
197
  transition: transform .1s, box-shadow .1s;
189
198
  }
199
+ .axi-pill--sm { --axi-pill-pad: 8px 13px; --axi-pill-size: 12px; }
200
+ .axi-pill--xs { --axi-pill-pad: 5px 9px; --axi-pill-size: 11px; }
190
201
  /* :where() for the same reason the button's hover has it - the brighten is
191
202
  what a pill that has not been told its colour falls back to, not an override
192
203
  of one that has. See rule 6's addendum. */