Terminal interface to find, download, and stream movies, TV shows, and live TV using local media players.
docs: enhance typography, code badges, and responsive styles
Samir Hossains7f8dd381281e
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex bc5381e..43c8fc0 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -32,6 +32,13 @@- Replaced unparsed LaTeX syntax (`$\to$`, `$\ge$`, `$\mu\text{s}$`, `$N\times$`) across all documentation guides with standard Unicode characters (`→`, `≥`, `µs`, `N×`), eliminating raw unrendered markup in mdBook output.- Added responsive documentation stylesheet (`docs/custom.css`) integrated via `book.toml`, enabling smooth touch horizontal scrolling, compact cell padding, visible scrollbars, and dynamic code text wrapping across mobile and small screen viewports.- Formatted provider matrix table in `docs/providers.md` with explicit column alignments and bold provider labels to optimize scannability on narrow screens.++### Changed+- **Documentation Readability & Typography Polish**:+ - Expanded reading container width (`--content-max-width: 860px`) and relaxed line-height (`1.62em`) with vertical list spacing (`0.45em`) in `docs/custom.css`.+ - Added theme-adaptive inline code badge containers (`:not(pre) > code`) with bordered backgrounds, and framed `<pre>` code blocks with rounded corners and drop shadows.+ - Added table row hover transitions and container borders across configuration, platform, and player documentation tables.+ - Implemented responsive mobile header title scaling (`.menu-title`) and smooth anchor navigation scrolling (`scroll-behavior: smooth`).## [0.1.16] - 2026-09-05### Addeddiff --git a/docs/config.md b/docs/config.mdindex 934ba78..359d676 100644--- a/docs/config.md+++ b/docs/config.md@@ -6,7 +6,7 @@ Written atomically under the config directory (`dirs::config_dir()/moviebox-tui/macOS `~/Library/Application Support/moviebox-tui`, Linux `~/.config/moviebox-tui`).| Field | Type | Meaning |-| ------------------- | -------------- | ----------------------------------------------------------------------------------------------------------- |+| :--- | :--- | :--- || `auto_update` | bool | Check for updates on startup (max once/hour). || `last_update_check` | u64 | Epoch seconds of the last update check. || `active_mode` | string | Last active mode (`streaming`, `tv`, `addon`) restored on startup. |@@ -40,7 +40,7 @@ All settings in `config.json` can be configured interactively inside the applica## Environment variables| Variable | Purpose |-| ------------------------- | --------------------------------------------------------------------------------- |+| :--- | :--- || `MOVIEBOX_LOG` | Log level: `off`, `error`, `warn`, `info`, `debug`, `trace`. See [logging.md](logging.md). || `MOVIEBOX_PLAYER` | Preferred player (overrides `default_player`). || `MOVIEBOX_MPV_PATH` | Custom mpv executable. |diff --git a/docs/cross-platform.md b/docs/cross-platform.mdindex 7f5dee1..0382580 100644--- a/docs/cross-platform.md+++ b/docs/cross-platform.md@@ -11,7 +11,7 @@ the release checks in [`release-checklist.md`](release-checklist.md).## OS notes| Platform | Notes |-| ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |+| :--- | :--- || macOS | IINA preferred player (via the installed IINA `iina-cli`); VLC/mpv `.app` paths detected. `process_group(0)` on spawn. || Windows | mpv/VLC detected via Program Files + `%LOCALAPPDATA%`; path-safe file stems; static MSVC CRT linking (`+crt-static`) for zero-dependency standalone binaries; handle-safe atomic download replacement (dropping file handles before renames); background update helper spawned with `CREATE_NO_WINDOW` (`0x08000000`). || Linux | Flatpak mpv/VLC supported (`flatpak run …`); xdg data/cache dirs. |diff --git a/docs/custom.css b/docs/custom.cssindex 528dbf7..6a92bad 100644--- a/docs/custom.css+++ b/docs/custom.css@@ -1,7 +1,68 @@+/* Typography & Content Layout */+:root {+ --content-max-width: 860px;+}++html {+ scroll-behavior: smooth;+}++.content p,+.content ol,+.content ul {+ line-height: 1.62em;+}++.content ul > li,+.content ol > li {+ margin-bottom: 0.45em;+}++/* Inline Code Badges */+:not(pre) > code {+ background-color: var(--theme-hover);+ padding: 0.15em 0.38em;+ border-radius: 4px;+ font-size: 0.88em;+ border: 1px solid var(--table-border-color);+}++h1 code,+h2 code,+h3 code,+h4 code,+h5 code,+h6 code {+ font-size: inherit;+ background: none;+ border: none;+ padding: 0;+}++/* Code Block Containers */+pre {+ border-radius: 8px;+ border: 1px solid var(--table-border-color);+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);+ scrollbar-width: thin;+ scrollbar-color: var(--table-border-color) transparent;+}++pre::-webkit-scrollbar {+ height: 6px;+}++pre::-webkit-scrollbar-thumb {+ background: var(--table-border-color);+ border-radius: 3px;+}++/* Table Containers & Interactive Rows */.table-wrapper {overflow-x: auto;-webkit-overflow-scrolling: touch;margin: 1.2em 0;+ border: 1px solid var(--table-border-color);border-radius: 6px;scrollbar-width: thin;scrollbar-color: var(--table-border-color) transparent;@@ -26,12 +87,26 @@ table th {white-space: nowrap;}+table tbody tr:hover {+ background-color: var(--theme-hover);+ transition: background-color 0.15s ease;+}++/* Media Presentation */+.content img,+.content video {+ border-radius: 8px;+ box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);+}++/* Mobile & Small Screen Responsiveness */@media only screen and (max-width: 768px) {table {font-size: 0.88rem;}- table td, table th {+ table td,+ table th {padding: 6px 8px;}@@ -43,8 +118,17 @@ table th {}}+@media only screen and (max-width: 600px) {+ .menu-title {+ font-size: 1.15rem;+ font-weight: 600;+ letter-spacing: -0.01em;+ }+}+@media only screen and (max-width: 480px) {- table td, table th {+ table td,+ table th {padding: 5px 6px;font-size: 0.82rem;}diff --git a/docs/players.md b/docs/players.mdindex 9996d0c..fddc52e 100644--- a/docs/players.md+++ b/docs/players.md@@ -17,7 +17,7 @@ Resolution caches detected paths across runs while allowing newly installed play## Command construction| Player | Invocation | Notes |-| --------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ |+| :--- | :--- | :--- || mpv | `mpv --autofit=WxH --geometry=50%:50% --idle=no --keep-open=no [--start=..] [--script=..] [--script-opts=..] [--http-header-fields=..] [--sub-file=..] <url>` | Window sized to the terminal. Injects `moviebox_tracker.lua` for position tracking and resume. Flatpak mpv is launched via `flatpak run`. || VLC | `vlc --width=W --height=H --play-and-exit [--start-time=..] [--http-referrer=..] [--http-user-agent=..] [--sub-file=..] <url>` | Supports start time resume via `--start-time`. || IINA | `iina-cli --keep-running --no-stdin --mpv-autofit=.. [--mpv-start=..] --mpv-http-header-fields=.. --mpv-sub-files=.. <url>` | Uses the installed IINA `iina-cli`; falls back to `open -a IINA <url>` only if the CLI is absent. |