pub struct Emit {
pub border_width: &'static str,
pub focus_width: &'static str,
pub class_prefix: &'static str,
}Expand description
Re-exported so a consumer’s build.rs needs one dependency rather than
three. Nothing here wraps it; the emitter’s options are the emitter’s.
How the emitted CSS is shaped.
Fields§
§border_width: &'static strBevel thickness, as a CSS length.
A value, so it arrives from the caller: border widths belong to
makeover-geometry and will come from there once it carries them.
focus_width: &'static strFocus ring thickness, as a CSS length.
Separate from border_width, which it reused
until 0.12.0. That reuse was an implementation convenience dressed as
consistency, and it emitted a 1px ring: a bevel and a focus indicator
are answering different questions, and only one of them has to be
noticed from across a desk.
The default is the measured consensus rather than a new opinion. Every consumer had already written its own ring and all three chose at least 2px: the MNW server 2px across 10 rules, Balanced Breakfast 2px, goingson 2px on three rules and 3px on the one covering twelve selectors. The design system was the only thing in the tree saying 1px.
class_prefix: &'static strPrefix for emitted class names, without the leading dot.