pub fn geometry_css(path: impl AsRef<Path>, explicit_touch: Option<&str>)Expand description
Write makeover-geometry’s spacing layer, with its canonical density
selection, to path.
The policy is the crate’s, not this one’s: touch hangs off
(hover: none), (pointer: coarse) because density is a capability rather
than a device or a width, and explicit_touch names a selector an app sets
when the user has chosen. See makeover_geometry::density_css. All this
adds is the generated-file banner and the write.
Both spacing axes land here, in the order the crate defines them.
makeover_geometry::size_class_css follows the density block because it
is the narrower claim: density says what is pointing at the screen, size
class says how much screen there is, and on a compact window the two shells
tighten regardless of which density selected them. Shipped in
makeover-geometry 0.7.0 and emitted by nobody until 2026-08-10, which meant
the axis existed in the crate and reached no stylesheet.
§Panics
If the file cannot be written.