site 2.0.1: flash bar stays in place under the mods, tidied up for phones

- The flash bar is a plain card in the page flow (no sticky/floating).
- Head, legend and "What each mod takes" tidied: values no longer break
  mid-number, sizes like "< 0.1 KB" stay on one line, the shared row is set
  apart; on phones each mod's name and size sit over a full-width bar.
- The list stays open when a mod is ticked or unticked.
- Phones: each mod's tags and flash share sit under its text instead of
  spilling out of the checkbox column.
- make_builder_data.py: the boot text stamp leaves the release tags'
  "New in Pionaarr Mods 2.0.0" alone.
- Boot text Pionaarr Mods 2.0.1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Thiemo TizianiandClaude Opus 5.5 committed 2026-11-15 20:05:58 +01:00
1 parent ff32f83297
commit d77c7a9dc1
14 files changed
+115 -54

No files matched your search

+5 -2
View File
@@ -385,6 +385,9 @@ def write_versions(p):
# the pages load the site's own CSS and scripts with ?v=<site version>, so
# a browser takes the new ones after an update
import re
# the boot text follows the site's version; a release tag's "New in
# Pionaarr Mods 2.0.0" names the release the mod came with and stays
BOOT_TEXT = r'(?<!New in )Pionaarr Mods \d+\.\d+(\.\d+)?'
for name in sorted(os.listdir(WEB)):
if not name.endswith('.html'):
continue
@@ -393,7 +396,7 @@ def write_versions(p):
html = f.read()
new = re.sub(r'(href|src)="((?:style\.css|script\.js|assets/versions\.js|builder/[a-z]+\.js))(\?v=[^"]*)?"',
lambda m: '%s="%s?v=%s"' % (m.group(1), m.group(2), data['site']), html)
new = re.sub(r'Pionaarr Mods \d+\.\d+(\.\d+)?', 'Pionaarr Mods ' + data['site'], new) # the boot text
new = re.sub(BOOT_TEXT, 'Pionaarr Mods ' + data['site'], new) # the boot text
if new != html:
with open(path, 'w', encoding='utf-8', newline='\n') as f:
f.write(new)
@@ -401,7 +404,7 @@ def write_versions(p):
ui = os.path.join(WEB, 'builder', 'ui.js')
with open(ui, encoding='utf-8') as f:
js = f.read()
new = re.sub(r'Pionaarr Mods \d+\.\d+(\.\d+)?', 'Pionaarr Mods ' + data['site'], js)
new = re.sub(BOOT_TEXT, 'Pionaarr Mods ' + data['site'], js)
if new != js:
with open(ui, 'w', encoding='utf-8', newline='\n') as f:
f.write(new)