Rules Hub
Coding Rules Library
← Back to all rules
Rule priority, scope & exceptions
Use this to align rules with the senior-level structure (P0/P1/P2, scope, exceptions/tradeoffs).
frontend ruleP2universalStack: css
csslayoutreuse
Reuse the shared layout/grid system instead of bespoke per-page exceptions
Restructure a page to use the standard grid/components rather than adding one-off margin/padding overrides for that page; exceptions multiply and are hard to maintain.
PR: frontpage-web · org-mining-hist-2026-06Created: Jun 18, 2026
Bad example
Old codecss
| 1 | @include breakpoint(medium) { padding-left: rem-calc(60); } // page-specific exception |
Explanation (EN)
Objašnjenje (HR)
Good example
New codecss
| 1 | // move header into the standard foundation grid / shared container |
Explanation (EN)
Objašnjenje (HR)