Skip to main content

COMPACTNESS_ATTRIBUTE

Constant COMPACTNESS_ATTRIBUTE 

Source
pub const COMPACTNESS_ATTRIBUTE: &str = "data-compactness";
Expand description

The root-element attribute a reader’s row-packing choice is written to.

compactness_css emits the compact arm of this attribute on :root, so setting data-compactness="compact" on <html> densens the rows and removing it hands the choice back to the comfortable default. Like DENSITY_ATTRIBUTE, it belongs to the device rather than the account.