Revert "fix(frontend): drop 12px font pin on header icon cards to match reference"

This reverts commit 6fcd63b923.
This commit is contained in:
2026-09-19 17:06:19 +08:00
parent 6fcd63b923
commit ad714bb59c
4 changed files with 19 additions and 10 deletions
+8
View File
@@ -2512,6 +2512,14 @@ main.container,
box-sizing: border-box;
}
/* Header multifunc icon cards: pin typography baseline so cards render
* identically on all pages. .px12-sm is only defined globally in
* legacy-utilities.css, which is @import'd by the single-post aggregator;
* vendor CSS pins it at <=640px / .sidebar / .mobile-nav-widget only. */
.header-slider-card .icon-cover-card {
font-size: 12px;
}
/* Keep the header multifunction search stable across route-specific CSS.
* Some routes load a later .abs-right utility, while the global input focus
* ring looks like an extra border against this transparent pill field. */
+1 -1
View File
File diff suppressed because one or more lines are too long
+8
View File
@@ -104,6 +104,14 @@ main.container,
box-sizing: border-box;
}
/* Header multifunc icon cards: pin typography baseline so cards render
* identically on all pages. .px12-sm is only defined globally in
* legacy-utilities.css, which is @import'd by the single-post aggregator;
* vendor CSS pins it at <=640px / .sidebar / .mobile-nav-widget only. */
.header-slider-card .icon-cover-card {
font-size: 12px;
}
/* Keep the header multifunction search stable across route-specific CSS.
* Some routes load a later .abs-right utility, while the global input focus
* ring looks like an extra border against this transparent pill field. */
@@ -33,16 +33,9 @@ test('homepage horizontal cards render fully from legacy CSS with no dedicated s
assert.equal(fs.existsSync(path.join(root, 'assets/css/frontend/header-cards.css')), false);
assert.doesNotMatch(baseCss, /\.icon-cover-card\.aksrt-icon-cover-card/);
assert.doesNotMatch(baseCss, /\.header-components-card/);
// Reference theme pins no font-size on header cards: text inherits the
// bootstrap 14px baseline (title .em12 -> 16.8px). A local 12px override
// made AKSRT cards visually smaller than the reference.
assert.doesNotMatch(
assert.match(
baseCss,
/\.header-slider-card\s+\.icon-cover-card\s*\{[^}]*font-size/s,
);
assert.doesNotMatch(
read('assets/css/build/public.css'),
/\.header-slider-card\s+\.icon-cover-card\s*\{[^}]*font-size/s,
/\.header-slider-card\s+\.icon-cover-card\s*\{[^}]*font-size:\s*12px/s,
);
assert.doesNotMatch(scripts, /header-cards/);
assert.doesNotMatch(widgetCss, /aksrt-widget-icon-cards \.icon-cover-card/);