Skip to main content

geometry_css

Function geometry_css 

Source
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.

§Panics

If the file cannot be written.