its-swiss 0.7.1 → 0.7.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 21caf44ed83d26ed7f70b687206792252028a0120aafd843821322c776f0fd87
4
- data.tar.gz: 3b3612935647de8dfc405d205a3adf6fd170b5f0493faa34d019cac02d237e4c
3
+ metadata.gz: 7f884ebf4471bd9c1bdc232a35cf327949466b3db98748a6bb008f985314e091
4
+ data.tar.gz: d8a1e3b75d21f52e96850a57adf3dcbc72242638f9f7d62fe71126bf8ffa5272
5
5
  SHA512:
6
- metadata.gz: 478f0c8ded5c737b5370029359ab04c18b717b6398a9c2c6c3985a2289ebe8e8fc62797e3303d3e05bc593a23b0c565ae0fc88591afb53de3d4f20be638f54a5
7
- data.tar.gz: 8bcebb3045f45a9d2a9a636b1544936badd47ea45c16ff6f8bcf79c45fe9706b1663da0f70b7d8ad262744d70589f8ede84fca40f30ca4289f4944df30c35ed6
6
+ metadata.gz: 5157d8c0cd8ad7db0db4025199d76ce4888ed2ad85d4ffb69a4427c97539482f646f56fe1fb274c831cf9f4d4a99a02185e9eb230cbc6516294bb805f631f815
7
+ data.tar.gz: 7a2ca8413c7cfdaa998a033bdeb9cae176cf7487cdab8af8162b784d01006f264c835a092a11f48bff1c549459dd61166259b6ca9f73771cd3241d0bbfc1430c
data/CHANGELOG.md CHANGED
@@ -2,6 +2,16 @@
2
2
 
3
3
  Semver. Consumers pin `~> 0.1`.
4
4
 
5
+ ## 0.7.2 — 2026-09-04
6
+
7
+ ### Changed
8
+
9
+ - **A control's text sits on its rule.** 0.7.1 took the text off the faces
10
+ and left it on the first of the control's two lines, a whole line above
11
+ the rule. It is set on the second line now, the one the rule closes, so
12
+ the type stands on its rule; the first line is air under the label. The
13
+ box is still two lines and still on the grid.
14
+
5
15
  ## 0.7.1 — 2026-09-04
6
16
 
7
17
  ### Fixed
data/README.md CHANGED
@@ -171,8 +171,10 @@ be corrected twice. Plain text dropped straight into a `<footer>` or a `<div>`
171
171
  is in step and, in Safari, off the baseline; put it in a paragraph. The shell
172
172
  does, for the `:footer` slot.
173
173
 
174
- A control is two lines: one the type is set on, one the rule closes, with the
175
- rule's width taken out of the second. A button is a box, two lines tall with
174
+ A control is two lines: a line of air under the label, then the line the
175
+ type is set on, which the rule closes, with the rule's width taken out of the
176
+ first — so the type stands on its rule the way a line of handwriting stands
177
+ on a ruled page. A button is a box, two lines tall with
176
178
  its label centred in it, and its label's baseline is the one baseline in the
177
179
  library that is not on a line — on purpose, since a label set on the second
178
180
  line of a two-line box reads as a field with a rule under it. Its keyline is
@@ -184,9 +186,8 @@ type the library takes off the baseline, and it does so on purpose too. A
184
186
  browser sets that text in a box of its own, centres it there and clips it
185
187
  there, and on a face with no descent every descender was cut off at the
186
188
  rule. So the text is set in `--font-family` itself, with the font's own
187
- metrics, on one line inside the two-line box: the box is on the grid, the
188
- line is the ladder's, and where the baseline falls inside the line is the
189
- font's. Which means the typeface has to exist under its own name as well as
189
+ metrics, on the line the rule closes: the box is on the grid, the line is
190
+ the ladder's, and where the baseline falls inside the line is the font's. Which means the typeface has to exist under its own name as well as
190
191
  under the faces; `its_swiss_typeface` declares it there when given
191
192
  `family:`, and `--font-family` names it.
192
193
 
@@ -285,13 +285,13 @@
285
285
  font-size: inherit;
286
286
  font-weight: inherit;
287
287
  line-height: var(--line);
288
- /* No padding above it: the rule belongs under the text, not a line's
289
- height below it, or the label reads as belonging to nothing. */
288
+ /* A control is two lines of box, and the text sits on the second: the
289
+ line the rule closes, so the type stands on its rule the way a line of
290
+ handwriting stands on a ruled page, and the rule is on the grid. The
291
+ first line is air between the label and the text — the rule's width
292
+ comes out of it, so the box stays two lines exactly. */
290
293
  block-size: var(--line-2);
291
- /* The rule sits a whole line under the text rather than a few pixels
292
- under it. A control is two lines of box: one the text is set on, one
293
- the rule closes. */
294
- padding-block: 0 calc(var(--line) - var(--rule-hair));
294
+ padding-block: calc(var(--line) - var(--rule-hair)) 0;
295
295
  }
296
296
 
297
297
  .field textarea {
@@ -1,3 +1,3 @@
1
1
  module ItsSwiss
2
- VERSION = "0.7.1"
2
+ VERSION = "0.7.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: its-swiss
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bobby Meyer