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 ruleP2project specificStack: css
responsivebreakpointsscssmixins
Use the design-system breakpoint mixin and the right range modifier
Apply responsive styles through the shared breakpoint mixin, and be precise about 'only' vs 'up'/'down' — `breakpoint(x)` defaults to 'x up', use 'x only' to target a single range.
PR: frontpage-web · org-mining-hist-2026-06Created: Jun 18, 2026
Bad example
Old codescss
| 1 | @include breakpoint(smallish) { /* meant only smallish, but matches smallish+ */ } |
Explanation (EN)
Objašnjenje (HR)
Good example
New codescss
| 1 | @include breakpoint(smallish only) { /* only the smallish range */ } |
Explanation (EN)
Objašnjenje (HR)