winzik/skeleton-app/ui/style.css
David Nurdin 54415b60f0 Desktop apps (Tauri): native windows with HTML pages, driven by PHP
PHP stays the program: JumPHP\Tauri\App starts the Tauri runtime (tauri/, a Rust C library loaded with FFI) from
its main thread; Tauri runs its native loop there and calls PHP back at every frame, like the browser engine.
Pages talk to PHP with window.jumphp (invoke / send / on); PHP drives windows, dialogs, notifications and decides
what closing does. Native only, Linux for now.

- tauri/: libjumphp_tauri (jt_run / jt_poll / jt_send / jt_version), pages served from the app's folder at run time
- engine: JumPHP\Tauri (App, Window, AppMain, TauriRuntime, FakeRuntime, NativeCommands), JumPHP\Native (Dialog,
  FilePicker, Notification, Shell; providers tauri / sdl / browser / none), Testing\AppTestCase (no window)
- bin/jumphp app:new / app:run / app:test / app:shot / app:export, tauri:setup / tauri:build (tools/app-commands.sh);
  run / test / shot hand over to them for an app, pages skips apps
- app:export: export:standalone with optional settings (extension list with FFI, boot class, native library,
  injected php.ini); unset, games build and find the same micro as before (same key)
- skeleton-app/, games/hello-desktop (a notepad), docker/tauri, docs/tauri.md + docs/tauri.fr.md, AGENTS.md §16

Nothing changes for SDL games (desktop, browser, standalone, Android, Apple).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01JkYTqpYNZKwTnRZHQRD5HP
2026-10-31 21:41:41 +01:00

12 lines
977 B
CSS

:root { color-scheme: light dark; --bg: #f6f5f2; --fg: #1d1d22; --muted: #6b6b75; --accent: #4f5bd5; --card: #fff; }
@media (prefers-color-scheme: dark) { :root { --bg: #17171c; --fg: #ececf1; --muted: #9a9aa6; --card: #22222a; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.5 system-ui, sans-serif; }
main { max-width: 560px; margin: 0 auto; padding: 40px 16px; }
h1 { margin: 0 0 4px; font-size: 28px; }
.muted { color: var(--muted); }
form { display: flex; gap: 8px; margin: 24px 0 8px; }
input { flex: 1; padding: 10px 12px; border: 1px solid #8884; border-radius: 8px; background: var(--card); color: var(--fg); font: inherit; }
button { padding: 10px 16px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; font: inherit; cursor: pointer; }
button.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.answer { min-height: 1.5em; font-weight: 600; }