/** * Feature sheets for the responsive layout blocks. * * All placement is static attribute CSS: the CSP forbids inline styles, so a * span is a `data-ak-span="8"` attribute matched by a rule generated here once * at module load. The loops run over fixed ranges, so the text is identical on * every run and output stays byte-deterministic. * * Three features, each emitted only when a page uses it: * - `layout-options`: grid columns 7–12 and `auto`, grid `gap`/`align`, stack * `align`. A grid or stack opts in from its `check` only when it uses a * non-default option, so existing pages keep their exact bytes. * - `layout-tracks`: the 12-track grid a `grid-item` turns on. * - `semantic-layout`: `sidebar-layout`, `main-aside` and `rail-layout`. * * The `visibleWhen` wrapper is matched as `[data-ak-when]`: its class is the * `state` feature's marker, which must not appear unless that feature is used. * * The base sheet collapses every grid to one column at ≤480px with * `!important`. A tracked grid keeps its 12 tracks through a more specific * `!important` rule here, and places its children with `mobileSpan` instead. */ import type { IrNode } from '../../ir.js'; import type { FeatureModule } from '../../registry/block-module.js'; export declare const LAYOUT_OPTIONS_FEATURE = "layout-options"; export declare const LAYOUT_TRACKS_FEATURE = "layout-tracks"; export declare const SEMANTIC_LAYOUT_FEATURE = "semantic-layout"; /** Number of tracks in a grid that holds grid items. */ export declare const GRID_TRACKS = 12; /** `minItemWidth` for `columns: auto`, in rem. */ export declare const MIN_ITEM_WIDTHS: Readonly>; /** * Adds a module feature to a node from its `check`. Normalization copies * `runtimeFeatures` from the definition and appends `state` for `visibleWhen` * the same way; this lets a long-standing block (grid, stack) opt in only when * a new option is actually used. */ export declare function useFeature(node: IrNode, feature: string): void; export declare const LAYOUT_FEATURES: readonly FeatureModule[]; //# sourceMappingURL=layout-styles.d.ts.map