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 +4 -4
- data/CHANGELOG.md +10 -0
- data/README.md +6 -5
- data/app/assets/stylesheets/its_swiss/components.css +6 -6
- data/lib/its_swiss/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7f884ebf4471bd9c1bdc232a35cf327949466b3db98748a6bb008f985314e091
|
|
4
|
+
data.tar.gz: d8a1e3b75d21f52e96850a57adf3dcbc72242638f9f7d62fe71126bf8ffa5272
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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:
|
|
175
|
-
|
|
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
|
|
188
|
-
|
|
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
|
-
/*
|
|
289
|
-
|
|
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
|
-
|
|
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 {
|
data/lib/its_swiss/version.rb
CHANGED