style: polish responsive typography and transcript states
Deploy Speaking Practice / deploy (push) Successful in 2m13s
Deploy Speaking Practice / deploy (push) Successful in 2m13s
This commit is contained in:
1 parent
cd29764963
commit
67dcea21d0
10 files changed
+291
-75
No files matched your search
@@ -0,0 +1,31 @@
|
||||
import assert from "node:assert/strict";
|
||||
import { readFileSync } from "node:fs";
|
||||
import { dirname, join } from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
const __dirname = dirname(fileURLToPath(import.meta.url));
|
||||
const css = readFileSync(join(__dirname, "..", "styles.css"), "utf8");
|
||||
|
||||
assert.match(
|
||||
css,
|
||||
/@media\s*\(max-width:\s*720px\)[\s\S]*\.home-topbar\s*\{[\s\S]*position:\s*static;/,
|
||||
"mobile home topbar should not remain sticky and tall above the content",
|
||||
);
|
||||
|
||||
assert.match(
|
||||
css,
|
||||
/@media\s*\(max-width:\s*720px\)[\s\S]*\.home-topbar\s+\.top-actions\s*\{[\s\S]*display:\s*grid;[\s\S]*grid-template-columns:\s*minmax\(0,\s*1fr\)\s+auto;/,
|
||||
"mobile top actions should keep search and account controls compact",
|
||||
);
|
||||
|
||||
assert.match(
|
||||
css,
|
||||
/@media\s*\(max-width:\s*720px\)[\s\S]*\.home-metrics\s*\{[\s\S]*grid-template-columns:\s*1fr;/,
|
||||
"mobile dashboard metrics should use one readable column",
|
||||
);
|
||||
|
||||
assert.match(
|
||||
css,
|
||||
/\.home-favorite\s*\{[\s\S]*min-width:\s*44px;[\s\S]*min-height:\s*44px;/,
|
||||
"favorite buttons should meet mobile touch target sizing",
|
||||
);
|
||||
Reference in new issue
Block a user