Responsive and modularity rules
Modularity rules
In general terms, float, margins, positions, top, bottom (...etc) properties are context based. In order to be as reusable and modular as possible, blocks entities should not set those properties. That responsibility should fall to layout and utilities classes or to the containing element entity of another components.
Sizes rules :
Components block level entities should not set sizes other than a fixed one (14px), or 100% / fluid.
You can use elements entities to define sizes, margins, or context of lower levels components
Positioning rules :
Components block entities should not use positions values other than relative. Use instead Layouts, Utilities or higher level component elements to set positions
For the same reason as above. Relative positions are allowed since they are used to set a context for children elements that may have absolute or fixed position.
Components block entities should not use top, right, left, bottom properties. Use instead Layouts, Utilities or higher level component elements to set positions
Last updated