Web and static sites

all: unset after display undoes the display#

  • Symptom: a button meant to be hidden on desktop (display:none) shows up anyway; on phones the menu shows next to the full nav.
  • Cause: in .menu{display:none;all:unset;...} the later all:unset resets display back to its initial value.
  • Fix: put all:unset first in the rule, then display and the rest.
  • Found in: altmp.app wiki, 2026-11-20.

The hidden attribute loses to a display rule#

  • Symptom: an empty search-results box shows under the search field even though it has hidden.
  • Cause: a class rule such as .results{display:grid} beats the browser's [hidden]{display:none}.
  • Fix: add [hidden]{display:none!important} to the site stylesheet.
  • Found in: altmp.app wiki, 2026-11-20.

A modifier class collides with a scoped layout class#

  • Symptom: a small chip in the hero covers the whole hero and the heading overlaps it.
  • Cause: the chip had the modifier warm, and .hero .warm{position:absolute;inset:0} was the hero's colour overlay.
  • Fix: give overlays and modifiers different names (.chip.sunny), and check new class names with a search of the stylesheet.
  • Found in: altmp.app homepage, 2026-11-20.

MediaWiki sites refuse automated page fetches#

  • Symptom: fetching https://wiki.rage.mp/wiki/<Page> returns 403; the browser extension times out reading the page.
  • Fix: request the page source: curl -sL -A "Mozilla/5.0 ..." "https://<wiki>/index.php?title=<Page>&action=raw". Read it for structure and tone only.
  • Found in: altmp.app wiki research, 2026-11-20.

Site content pulled from a sibling repo's working tree#

  • Symptom: the site shows docs or release notes from an unmerged feature branch, because another session has that branch checked out next door.
  • Fix: read sibling repos at a ref (git -C ../Repo show origin/main:path), never from their working tree. altmp.app's tools/sync-site.cjs does this for every source.
  • Found in: altmp.app, 2026-11-20 (the engine checkout was on feature/proper-shaders-m2 while dev was still at v0.4.0).