Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,15 @@ jobs:
- name: Verify HTTP headers, browser OCR and downloads on built artifact
run: node tests/production/local-smoke.mjs

- name: Verify responsive navigation, metadata layouts and accessibility
run: node tests/browser/responsive.mjs

- name: Retain artifact browser diagnostics
if: failure()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: artifact-browser-diagnostics
path: .ts-build/production-smoke
path: |
.ts-build/production-smoke
.ts-build/responsive
retention-days: 7
4 changes: 3 additions & 1 deletion 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
</head>
<body class="page-shell" data-page="notFound">
<a class="skip-link" href="#main" data-i18n="common.skip">Skip to main content</a>
<header class="site-header"><div class="container header-inner"><a class="brand" href="./" aria-label="Secure Tools home" data-i18n-aria-label="common.aria.home"><span class="brand-mark" aria-hidden="true"></span><span>Secure Tools</span></a><div class="header-controls"><label class="control-label"><span data-i18n="common.language">Language</span><select class="control" data-language-select><option value="en">English</option><option value="ko">한국어</option><option value="ja">日本語</option><option value="es">Español</option><option value="de">Deutsch</option><option value="fr">Français</option></select></label><label class="control-label"><span data-i18n="common.theme">Theme</span><select class="control" data-theme-select><option value="system" data-i18n="common.themes.system">System</option><option value="light" data-i18n="common.themes.light">Light</option><option value="dark" data-i18n="common.themes.dark">Dark</option></select></label></div></div></header>
<header class="site-header"><div class="container header-inner"><a class="brand" href="./" aria-label="Secure Tools home" data-i18n-aria-label="common.aria.home"><span class="brand-mark" aria-hidden="true"></span><span>Secure Tools</span></a>
<details class="header-menu"><summary data-i18n="common.menu">Menu</summary><div class="header-menu__content"><nav class="site-nav" aria-label="Primary navigation" data-i18n-aria-label="common.aria.primaryNavigation"><a href="./#tools" data-i18n="common.nav.tools">Tools</a><a href="./privacy/" data-i18n="common.nav.privacy">Privacy</a><a href="./about/" data-i18n="common.nav.about">About</a><a href="https://github.com/SecureToolsProject/Secure_Tools" data-repository-link target="_blank" rel="noreferrer" data-i18n="common.nav.source">Source</a></nav><div class="header-controls"><label class="control-label"><span data-i18n="common.language">Language</span><select class="control" data-language-select><option value="en">English</option><option value="ko">한국어</option><option value="ja">日本語</option><option value="es">Español</option><option value="de">Deutsch</option><option value="fr">Français</option></select></label><label class="control-label"><span data-i18n="common.theme">Theme</span><select class="control" data-theme-select><option value="system" data-i18n="common.themes.system">System</option><option value="light" data-i18n="common.themes.light">Light</option><option value="dark" data-i18n="common.themes.dark">Dark</option></select></label></div></div></details>
</div></header>
<main id="main" class="page-main not-found"><div class="container prose"><p class="eyebrow" data-i18n="notFound.eyebrow">404</p><h1 data-i18n="notFound.title">This page is not here.</h1><p data-i18n="notFound.description">The address may be outdated or mistyped.</p><a class="button button--primary" href="./" data-i18n="notFound.action">Return home</a></div></main>
<footer class="site-footer"><div class="container footer-inner"><div><a class="brand" href="./" aria-label="Secure Tools home" data-i18n-aria-label="common.aria.home"><span class="brand-mark" aria-hidden="true"></span><span>Secure Tools</span></a><p data-i18n="common.footerStatement">Your files stay on your device.</p></div><nav aria-label="Footer navigation" data-i18n-aria-label="common.aria.footerNavigation"><a href="./#tools" data-i18n="common.nav.tools">Tools</a><a href="./privacy/" data-i18n="common.nav.privacy">Privacy</a><a href="./about/" data-i18n="common.nav.about">About</a><a href="https://github.com/SecureToolsProject/Secure_Tools" data-repository-link target="_blank" rel="noreferrer" data-i18n="common.nav.source">Source</a></nav></div></footer>
<script type="module" src="./js/main.js"></script>
Expand Down
14 changes: 5 additions & 9 deletions about/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,17 @@
</head>
<body class="page-shell" data-page="about">
<a class="skip-link" href="#main" data-i18n="common.skip">Skip to main content</a>
<header class="site-header">
<div class="container header-inner">
<a class="brand" href="../" aria-label="Secure Tools home" data-i18n-aria-label="common.aria.home"><span class="brand-mark" aria-hidden="true"></span><span>Secure Tools</span></a>
<nav class="site-nav" aria-label="Primary navigation" data-i18n-aria-label="common.aria.primaryNavigation">
<header class="site-header"><div class="container header-inner"><a class="brand" href="../" aria-label="Secure Tools home" data-i18n-aria-label="common.aria.home"><span class="brand-mark" aria-hidden="true"></span><span>Secure Tools</span></a>
<details class="header-menu"><summary data-i18n="common.menu">Menu</summary><div class="header-menu__content"><nav class="site-nav" aria-label="Primary navigation" data-i18n-aria-label="common.aria.primaryNavigation">
<a href="../#tools" data-i18n="common.nav.tools">Tools</a>
<a href="../privacy/" data-i18n="common.nav.privacy">Privacy</a>
<a href="./" aria-current="page" data-i18n="common.nav.about">About</a>
<a href="https://github.com/SecureToolsProject/Secure_Tools" data-repository-link target="_blank" rel="noreferrer" data-i18n="common.nav.source">Source</a>
</nav>
<div class="header-controls">
</nav><div class="header-controls">
<label class="control-label"><span data-i18n="common.language">Language</span><select class="control" data-language-select><option value="en">English</option><option value="ko">한국어</option><option value="ja">日本語</option><option value="es">Español</option><option value="de">Deutsch</option><option value="fr">Français</option></select></label>
<label class="control-label"><span data-i18n="common.theme">Theme</span><select class="control" data-theme-select><option value="system" data-i18n="common.themes.system">System</option><option value="light" data-i18n="common.themes.light">Light</option><option value="dark" data-i18n="common.themes.dark">Dark</option></select></label>
</div>
</div>
</header>
</div></div></details>
</div></header>
<main id="main" class="page-main subpage-main">
<article class="container prose">
<p class="eyebrow" data-i18n="about.eyebrow">About</p>
Expand Down
4 changes: 2 additions & 2 deletions css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
html { font-family: var(--font-sans); scroll-behavior: smooth; scroll-padding-top: 6rem; }

body {
margin: 0;
min-width: 20rem;
min-width: 0;
min-height: 100vh;
background: var(--bg-primary);
color: var(--text-primary);
Expand Down
5 changes: 5 additions & 0 deletions css/categories.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,8 @@ a.category-tool:hover { border-color: var(--border-strong); transform: translate
.category-tool { min-height: 10rem; }
}
@media (prefers-reduced-motion: reduce) { a.category-tool:hover { transform: none; } }

@media (max-width: 38rem) {
.category-nav__inner { flex-wrap: nowrap; padding-block: var(--space-1); gap: var(--space-1); }
.category-nav a { white-space: nowrap; padding-inline: var(--space-3); }
}
45 changes: 43 additions & 2 deletions css/components.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
.button:disabled { border-color: var(--border); background: var(--bg-subtle); color: var(--status-muted); cursor: not-allowed; }

.control {
min-height: 2.5rem;
min-height: 2.75rem;
min-width: 0;
max-width: 7.5rem;
padding: 0.4rem 1.8rem 0.4rem 0.65rem;
Expand Down Expand Up @@ -59,22 +59,63 @@
.header-inner > *, .header-controls > *, .control-label > span { min-width: 0; }
.header-controls { display: flex; min-width: 0; flex: 0 1 auto; align-items: center; gap: var(--space-3); }

.header-menu { min-width: 0; flex: 1; margin: 0; }
.header-menu > summary { width: fit-content; min-height: 2.75rem; margin-left: auto; padding: var(--space-2) var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-secondary); font-weight: var(--font-weight-semibold); cursor: pointer; }
.header-menu__content { display: flex; align-items: center; gap: var(--space-5); }
.header-menu[data-desktop] > summary { display: none; }

/* Keep native form semantics and mobile pickers; inherit the resolved theme. */
select.control, .field select {
appearance: none;
padding-inline-end: var(--space-7);
background-image: linear-gradient(45deg, transparent 50%, var(--text-secondary) 50%), linear-gradient(135deg, var(--text-secondary) 50%, transparent 50%);
background-position: right 1rem center, right .7rem center;
background-size: .3rem .3rem;
background-repeat: no-repeat;
color-scheme: inherit;
text-overflow: ellipsis;
}
select option, select optgroup { background: var(--bg-secondary); color: var(--text-primary); }
.field select { max-width: 100%; padding-inline-start: .7rem; }
.field select:disabled { background-color: var(--bg-subtle); color: var(--status-muted); cursor: not-allowed; }
select:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* Enhance only fine-pointer desktop pickers where the browser supports it. */
@supports (appearance: base-select) {
@media (min-width: 38.001rem) and (pointer: fine) {
select.control, .field select, ::picker(select) { appearance: base-select; }
select.control, .field select { background-image: none; padding-inline-end: var(--space-3); }
::picker(select) { padding: var(--space-1); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--bg-secondary); color: var(--text-primary); box-shadow: var(--shadow-sm); }
select::picker-icon { color: var(--text-secondary); }
select option { min-height: 2.75rem; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); overflow-wrap: anywhere; }
select option:checked { background: var(--accent-soft); color: var(--text-primary); }
select option:hover, select option:focus { background: var(--bg-subtle); outline: 2px solid var(--focus); outline-offset: -2px; }
}
}
@media (forced-colors: active) { select.control, .field select { appearance: auto; background-image: none; } }

.site-footer { padding-block: var(--space-7); border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-6); }
.footer-inner p { margin: var(--space-3) 0 0; color: var(--text-secondary); font-size: var(--font-size-sm); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: var(--space-5); }

@media (max-width: 68rem) {
.header-inner { flex-wrap: wrap; padding-block: var(--space-3); gap: var(--space-3) var(--space-5); }
.header-menu__content { flex-wrap: wrap; gap: var(--space-3); }
.site-nav { order: 3; width: 100%; padding-top: var(--space-3); border-top: 1px solid var(--border); }
.header-controls { margin-left: auto; }
}

@media (max-width: 38rem) {
.header-inner { position: relative; min-height: 4.25rem; gap: var(--space-3); }
.header-menu { flex: 0 0 auto; margin-left: auto; }
.header-menu[open] { flex-basis: 100%; }
.header-menu[open] > summary { position: absolute; top: var(--space-3); right: 0; }
.header-menu__content { flex-direction: column; align-items: stretch; padding-block: var(--space-4); gap: var(--space-5); }
.header-controls { width: 100%; align-items: stretch; flex-direction: column; margin-left: 0; }
.control-label { width: 100%; justify-content: space-between; }
.control, .control[data-language-select] { width: min(100%, 12rem); max-width: none; }
.site-nav { justify-content: flex-start; gap: var(--space-2) var(--space-4); }
.site-nav { order: 0; justify-content: flex-start; gap: var(--space-2) var(--space-4); }
.site-nav a { font-size: 0.8rem; }
.footer-inner { flex-direction: column; }
}
87 changes: 87 additions & 0 deletions docs/v2.3-mobile-ux.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
# Mobile UX pass — Issue #128

This development pass follows the PR #127 normal merge into `v2.3` at
`91e89a70fe37452b3e2b767135a387f400f04436`. It does not promote production
or close the security audit's outstanding activation/coverage/live-delivery limits.

## Shared UI inventory and decisions

- The 19 canonical pages and 404 page repeat one header structure. Navigation
and language/theme controls now share one native `details` disclosure, with
a translated Menu summary in all six catalogs. No duplicate controls or IDs.
Without JavaScript it remains a working disclosure at every width. With JS,
desktop/tablet navigation is open and the summary hidden above 38rem; mobile
starts closed. Enter/Space and expanded semantics are native, Escape returns
focus to the summary, and there is no modal or focus trap. Crossing the
breakpoint resets the disclosure and preserves a visible keyboard focus.
- All category/tool pages use `.category-nav__inner`. Mobile reduces padding
to `--space-1`, keeps a single scrollable row and 44px link targets, and
retains `aria-current`. Neither header nor categories become sticky.
- Inspected `base`, `components`, `pages`, `categories`, shared tool CSS and all
eleven per-tool stylesheets. Existing layout breakpoints span 24, 30, 38,
42, 44, 46, 48, 52, 54, 56 and 68rem; this pass retains existing desktop and
tool grid breakpoints. Shared mobile workspace/section gaps use `--space-6`
instead of scattered child margins. Metadata cards/results/limitations and
status spacing use the same tokens; desktop gaps remain unchanged.
- Both metadata scope asides move in actual document order after the cleaning
result/comparison and before the existing polite live status. All scope text,
localized keys, heading IDs and supported/unsupported claims are retained.
Shared typography/padding removes the large heading/accent-bar treatment;
limitations remain visible, without an extra disclosure.
- The inherited font reset previously reset body/controls to the root's browser
default. Root font-family now establishes the existing intended system font.
Removing the body's 320px minimum avoids overflow when a classic scrollbar
reduces the available content width at a 320px viewport.

### Select inventory

Every production header has language and theme selects. Tool-specific selects:

| Tool | Native selects |
| --- | --- |
| Image Converter, Resize, Compressor | Output format |
| Image to Text, PDF to Text | OCR language |
| Images to PDF | Page size, orientation, fit, quality |
| PDF to Images | Image format, render scale |
| Metadata, PDF Merge/Split/Organizer | Global preference selects only |

Resize dimensions/compression quality use existing inputs/radio/range controls;
these do not need dropdown adapters. The retired `/tools/privacy/` source is
not a canonical built page; its URL is a permanent redirect to `/privacy/`.

**Strategy: enhanced native selects.** Shared appearance, CSS arrow, option
palette, resolved `color-scheme`, focus and disabled treatment cover all selects.
Fine-pointer desktop browsers supporting `appearance: base-select` also receive
a themed native picker with selected/hover/focus states. Other browsers retain
native options and apply supported colors; mobile keeps its platform picker.
Forced-colors restores the native appearance. No custom ARIA listbox, library,
portal, script-based option rendering or new runtime dependency is introduced.

This deliberately preserves platform keyboard, typeahead, touch and assistive
technology behavior. Complete identical OS popup rendering is not promised.
See [MDN's native select customization](https://developer.mozilla.org/en-US/docs/Learn_web_development/Extensions/Forms/Customizable_select)
and [option styling limits](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/option).

## Reproducible verification

`node tests/browser/responsive.mjs` uses the real built artifact/server and
strict hosting-header validation. It covers 441 combinations: seven viewports
(320×568, 360×800, 375×812, 390×844, 430×932, 768×1024, 1280×900), seven routes
(home, Image category, Converter, Image OCR, PDF Merge, both Metadata tools),
EN/KO/JA, and System/Light/Dark. It checks compact height, native disclosure tab
order/Escape, current/single-row categories, overflow/control bounds, heading/skip
targets, scope order, long CJK PDF metadata and real metadata-clean downloads.
It also checks system theme changes, native select keyboard selection, and no-JS
navigation. Existing full i18n checks cover all six catalogs. Diagnostics and
screenshots are written under `.ts-build/responsive` and retained on CI failure.

Local pinned install, build/artifact validation, real English/Korean/combined OCR,
fresh lockfile/vendor advisories and structural tests passed. Local full tests
reach the strict HTTP gate and fail closed because installed AdGuard rewrites
CSP to allow `local.adguard.org`, changes `connect-src`, and injects scripts.
No expected policy, network assertion or app CSP is relaxed for that environment.
Clean GitHub CI is required for the complete HTTP/browser/security result.

The review PR records final CI evidence. A physical iOS/Android picker and a
screen reader on each OS remain useful manual follow-up; browser emulation and
semantic/keyboard checks do not claim to replace those device/AT combinations.
14 changes: 5 additions & 9 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,16 @@
<body class="page-shell" data-page="home">
<a class="skip-link" href="#main" data-i18n="common.skip">Skip to main content</a>

<header class="site-header">
<div class="container header-inner">
<a class="brand" href="./" aria-label="Secure Tools home" data-i18n-aria-label="common.aria.home">
<header class="site-header"><div class="container header-inner"><a class="brand" href="./" aria-label="Secure Tools home" data-i18n-aria-label="common.aria.home">
<span class="brand-mark" aria-hidden="true"></span>
<span>Secure Tools</span>
</a>
<nav class="site-nav" aria-label="Primary navigation" data-i18n-aria-label="common.aria.primaryNavigation">
<details class="header-menu"><summary data-i18n="common.menu">Menu</summary><div class="header-menu__content"><nav class="site-nav" aria-label="Primary navigation" data-i18n-aria-label="common.aria.primaryNavigation">
<a href="#tools" data-i18n="common.nav.tools">Tools</a>
<a href="./privacy/" data-i18n="common.nav.privacy">Privacy</a>
<a href="./about/" data-i18n="common.nav.about">About</a>
<a href="https://github.com/SecureToolsProject/Secure_Tools" data-repository-link target="_blank" rel="noreferrer" data-i18n="common.nav.source">Source</a>
</nav>
<div class="header-controls">
</nav><div class="header-controls">
<label class="control-label">
<span data-i18n="common.language">Language</span>
<select class="control" data-language-select>
Expand All @@ -62,9 +59,8 @@
<option value="dark" data-i18n="common.themes.dark">Dark</option>
</select>
</label>
</div>
</div>
</header>
</div></div></details>
</div></header>

<main id="main" class="page-main">
<section class="hero container">
Expand Down
1 change: 1 addition & 0 deletions js/locales/de.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export const de = {
}
},
"common": {
"menu": "Menü",
"skip": "Zum Hauptinhalt springen",
"brandTagline": "Private Dateitools, direkt auf Ihrem Gerät",
"nav": {
Expand Down
Loading
Loading