The card
On the ground, which is where it belongs. The lattice is still there — softened, not
hidden, which is the difference between glass and a scrim.
01 / 04
Maschinenbau
Rotierende Assets
Drehzahl, Schwingung, Temperatur, Druck: rotierende Maschinen erzeugen die
dichtesten Telemetriedaten im ganzen Portfolio, oft im Millisekundentakt und über
Jahre hinweg.
Frage
Welche Einheit läuft aus dem Muster — und seit wann?
Signale
- Drehzahl
- Schwingung
- Lagertemperatur
Assets
- Motoren
- Gasturbinen
- Generatoren
<article class="cf-info-card cf-info-card--glass">
<p class="cf-info-card__count t-label">01 / 04</p>
<h3 class="cf-info-card__title text-foil text-foil--ink">Maschinenbau</h3>
<p class="cf-info-card__sub t-label">Rotierende Assets</p>
<p class="cf-info-card__body">…</p>
<p class="cf-info-card__ask-tag">Frage</p>
<p class="cf-info-card__ask">Welche Einheit läuft aus dem Muster?</p>
<div class="cf-info-card__facts tiles tiles--fit">
<div>
<p class="cf-info-card__label t-label">Signale</p>
<ul class="cf-info-card__chips" role="list">
<li>Drehzahl</li>…
</ul>
</div>
</div>
</article>
Every part is optional except the card. A count with no facts, a title with a paragraph
and nothing else, facts with one column — all of them are the same component with fewer
children, because the spacing is declared on the parts rather than between them.
The material is a modifier
The base card is layout, type and a plain surface. .cf-info-card--glass
replaces that surface with the material, and it is a modifier rather than the default
for two reasons that turned out to be the same reason.
Glass exists to calm a complex graphic beneath it, never to sit on a flat
surface. That is the material's own rule, in one line, from
Materials. Add
--glass to a card
that stands on the ground, on an illustration, on anything the reader can still see
through it. Add it over a flat
--surface-page and it is only a grey box —
and the base card, which has a border, is what you wanted.
And the budget has to be legible from the markup. The first version of
this component was glass unconditionally, and Expertise turned the material off again in
its own stylesheet for the four cards that did not need it.
check-glass-budget.py counted that as six blurred layers on a two-layer
page, and it was right twice over: it reads the HTML rather than resolving the cascade,
because a census with an unstated exception in it is worse than no census — and a class
that says I am glass with a page-local rule saying except here is the
drift these scripts exist to stop. Carry the modifier where the material is spent.
The same card with --glass, on nothing:
01 / 04
Maschinenbau
No lattice under it, so no material — a grey box with a pale rim, which is what
the rule above is describing rather than warning about.
Bearing glass, and its floor
Text sits directly on this card, so it takes --surface-glass — the bearing
tint, whose 46 % white is the floor at which black type still clears 4.5:1 composited
over a pure black backdrop. The measurement and the reason that value has
almost no room to move are both in tokens.css, section 9. Veil glass is the
other tint and it is not this: it carries nothing but opaque objects.
Which tint depends on what is behind the pane. The default is
--surface-glass, the floor for a backdrop nobody controls. A page that can
name its backdrop can set --info-card-tint to
--surface-glass-thin and let more of it through — Expertise does, because
what is behind its plate is the system's own lattice on the wash.
Measured on the shipping card at the thin tint, over the lattice at stage size: the
plate composites to rgb(228, 229, 230), and its darkest single pixel — a
blurred lattice line — to rgb(220, 221, 223). Against that worst pixel the
body copy reads 6.73:1, the five stops of the ink foil land between
6.01:1 and 9.78:1, and the ruled question 15.45:1. All of it better
than the 5.24:1 the foil class guarantees on CF-Grau, because glass is lighter than
CF-Grau.
There is no fallback to write. When the browser cannot blur, or the reader has asked for
less transparency, tokens.css redefines --surface-glass to the
opaque stand-in and the card goes to a solid plate with its contrast intact.
Count your blurred layers
A page may carry one of these frosted. The system allows exactly two
blurred layers on a page and the navigation band is always one of them. That is a
measured budget, not a stylistic one — see the note on --glass-blur.
Anywhere a second card is wanted on the same screen, the second one is not glass.
Expertise is the case that already came up, and its answer is worth copying. Four cards
stacked in one grid area would have been four blurred layers, so the material is spent
once — on a single empty .cf-info-card--glass under the copy column — and
the four cards hand over on top of it as plain cards, giving up only their own opaque
back so the plate shows through. One lectern, changing copy, which is also the better
drawing: a lectern does not change when the page on it does. Below the enhancement
threshold the plate is display: none and the four are ordinary bordered
cards, so the census counts what is actually drawn on either path.