fix(navigation): restore header VIP CTA gradient

This commit is contained in:
2026-10-13 17:33:01 +08:00
parent 7ed739615e
commit bd01199930
4 changed files with 17 additions and 1 deletions
+7
View File
@@ -2886,6 +2886,13 @@ main.container,
padding: 6px; padding: 6px;
} }
/* The later .but compatibility layer otherwise replaces the legacy payvip surface. */
.aksrt-header-userbox .pay-vip.but.payvip-icon {
background: linear-gradient(300deg, #4c4d51, #2a2a31 15%, #85858a 40%, #393a3c 60%, #393838 80%, #5e5f62 100%);
color: #ece0e0;
--this-color: #ece0e0;
}
/* Keep the header check-in action flush with the VIP row's padded inner width. */ /* Keep the header check-in action flush with the VIP row's padded inner width. */
.aksrt-header-userbox > .mt6.em09 > .but.block { .aksrt-header-userbox > .mt6.em09 > .but.block {
display: block; display: block;
+1 -1
View File
File diff suppressed because one or more lines are too long
+7
View File
@@ -179,6 +179,13 @@
padding: 6px; padding: 6px;
} }
/* The later .but compatibility layer otherwise replaces the legacy payvip surface. */
.aksrt-header-userbox .pay-vip.but.payvip-icon {
background: linear-gradient(300deg, #4c4d51, #2a2a31 15%, #85858a 40%, #393a3c 60%, #393838 80%, #5e5f62 100%);
color: #ece0e0;
--this-color: #ece0e0;
}
/* Keep the header check-in action flush with the VIP row's padded inner width. */ /* Keep the header check-in action flush with the VIP row's padded inner width. */
.aksrt-header-userbox > .mt6.em09 > .but.block { .aksrt-header-userbox > .mt6.em09 > .but.block {
display: block; display: block;
@@ -184,6 +184,7 @@ test('the account popover rows match the reference user box structure', () => {
const identity = read('inc/helpers/aksrt-identity.php'); const identity = read('inc/helpers/aksrt-identity.php');
const legacyMainCss = read('assets/css/main.css'); const legacyMainCss = read('assets/css/main.css');
const buttonsCss = read('assets/css/core/buttons.css'); const buttonsCss = read('assets/css/core/buttons.css');
const userboxCss = read('assets/css/frontend/header-userbox.css');
// Stats row is wired with the reference wrapper and carries the posts chip. // Stats row is wired with the reference wrapper and carries the posts chip.
assert.match(header, /aksrt_header_user_badges_row\(\$user_id\)/); assert.match(header, /aksrt_header_user_badges_row\(\$user_id\)/);
@@ -216,6 +217,7 @@ test('the account popover rows match the reference user box structure', () => {
assert.match(header, /radius4 payvip-icon btn-block text-center/); assert.match(header, /radius4 payvip-icon btn-block text-center/);
assert.match(header, /vip-expdate-tag/); assert.match(header, /vip-expdate-tag/);
assert.match(header, /pay-vip but radius4 payvip-icon btn-block/); assert.match(header, /pay-vip but radius4 payvip-icon btn-block/);
assert.match(userboxCss, /\.aksrt-header-userbox \.pay-vip\.but\.payvip-icon\s*\{[\s\S]*?background:\s*linear-gradient\(300deg,[\s\S]*?color:\s*#ece0e0;[\s\S]*?--this-color:\s*#ece0e0;/s);
assert.doesNotMatch(header, /vipbg-v2/); assert.doesNotMatch(header, /vipbg-v2/);
// Check-in entry is an anchor with the reference button classes. // Check-in entry is an anchor with the reference button classes.