Add margin-top only CSS reset to code style guidelines

This commit is contained in:
Ruben 2026-02-07 17:15:23 +01:00
parent 002395946d
commit 7205a02b75

View file

@ -24,7 +24,7 @@ Minimal PHP for modern conveniences. Decade-scale maintainability. No volatile d
## Code Style ## Code Style
**PHP:** Arrow functions, null coalescing, match. Type hints where practical. Single-purpose functions. **PHP:** Arrow functions, null coalescing, match. Type hints where practical. Single-purpose functions.
**CSS:** Variables, native nesting, grid. `clamp()` over `@media`. Relative units. **CSS:** Variables, native nesting, grid. `clamp()` over `@media`. Relative units. Margin-top only (reset: `* { margin-bottom: 0 }`).
**Templates:** `<?= htmlspecialchars($var) ?>` for UGC. `<?= $content ?>` for pre-rendered HTML. **Templates:** `<?= htmlspecialchars($var) ?>` for UGC. `<?= $content ?>` for pre-rendered HTML.
## Project Structure ## Project Structure