diff --git a/assets/css/frontend/base.css b/assets/css/frontend/base.css index 35dbda7e..2db88dd4 100644 --- a/assets/css/frontend/base.css +++ b/assets/css/frontend/base.css @@ -37,6 +37,15 @@ body { background-color: var(--surface-page); } +/* Shared horizontal icon-card contract. + * Header components and widget areas use different layout wrappers, but the + * card itself must retain the compact Zibll proportions in every context. */ +.icon-cover-card.aksrt-icon-cover-card { + padding: 10px; + font-size: 16px; + line-height: 1.6; +} + /* zibll compat: global link composite transition */ a[href] { transition: color 0.2s, background 0.3s, opacity 0.3s, box-shadow 0.3s, transform 0.3s; diff --git a/inc/helpers/aksrt-icon-cards.php b/inc/helpers/aksrt-icon-cards.php index 5a512a92..e4be12b1 100644 --- a/inc/helpers/aksrt-icon-cards.php +++ b/inc/helpers/aksrt-icon-cards.php @@ -280,7 +280,9 @@ if (!function_exists('aksrt_icon_cover_card')) : // zibll: $html .= ''; } - $html .= '
'; + // Keep every horizontal icon card on the same compact visual contract, + // regardless of the page-specific wrapper that renders it. + $html .= '
'; $html .= $icon; $html .= $text !== '' ? '
' . $text . '
' : ''; $html .= '
'; diff --git a/tests/widget-system/icon-card-contract.test.cjs b/tests/widget-system/icon-card-contract.test.cjs index 108850ab..ab28e6ce 100644 --- a/tests/widget-system/icon-card-contract.test.cjs +++ b/tests/widget-system/icon-card-contract.test.cjs @@ -14,20 +14,22 @@ test('icon card renderers keep vertical and horizontal Zibll DOM contracts separ const header = read('inc/helpers/homepage/header-components.php'); assert.match(helper, /