Merge pull request 'fix(nav): align header user-card VIP CTA with check-in button' (#284) from worktree-fix-user-card-vip-btn into main
Reviewed-on: CYL/wordpress-theme-aksrt#284
This commit is contained in:
commit
3df37a4404
2 files changed
+54
-12
No files matched your search
@@ -109,23 +109,64 @@
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* VIP open CTA: same geometry as .aksrt-header-checkin (full width, 6px radius).
|
||||||
|
* Override any leftover .navbar-cta / .but.radius pill rules from top-nav. */
|
||||||
|
.user-dropdown .aksrt-header-payvip .payvip-icon,
|
||||||
|
.user-dropdown .aksrt-header-payvip .but,
|
||||||
|
.user-dropdown .aksrt-header-payvip__cta,
|
||||||
.aksrt-header-payvip .payvip-icon,
|
.aksrt-header-payvip .payvip-icon,
|
||||||
.aksrt-header-payvip .but {
|
.aksrt-header-payvip .but,
|
||||||
display: flex;
|
.aksrt-header-payvip__cta {
|
||||||
align-items: center;
|
display: inline-flex !important;
|
||||||
justify-content: center;
|
flex-direction: row !important;
|
||||||
gap: 6px;
|
align-items: center !important;
|
||||||
|
justify-content: center !important;
|
||||||
|
gap: 6px !important;
|
||||||
|
width: 100% !important;
|
||||||
|
max-width: 100% !important;
|
||||||
|
min-width: 0 !important;
|
||||||
|
height: auto !important;
|
||||||
|
min-height: 36px;
|
||||||
|
max-height: none !important;
|
||||||
|
box-sizing: border-box;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
padding: 8px 10px;
|
padding: 8px 10px !important;
|
||||||
border-radius: 6px;
|
margin: 0 !important;
|
||||||
background: linear-gradient(90deg, #ff6b6b, #f04494);
|
border: 0 !important;
|
||||||
color: #fff;
|
border-radius: 6px !important;
|
||||||
|
font-size: 13px !important;
|
||||||
|
font-weight: 600;
|
||||||
|
line-height: 1.3;
|
||||||
|
white-space: nowrap;
|
||||||
|
background: linear-gradient(90deg, #ff6b6b, #f04494) !important;
|
||||||
|
color: #fff !important;
|
||||||
|
flex: none !important;
|
||||||
|
transform: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.user-dropdown .aksrt-header-payvip .payvip-icon > i,
|
||||||
|
.user-dropdown .aksrt-header-payvip .but > i,
|
||||||
|
.user-dropdown .aksrt-header-payvip__cta > i,
|
||||||
.aksrt-header-payvip .payvip-icon > i,
|
.aksrt-header-payvip .payvip-icon > i,
|
||||||
.aksrt-header-payvip .but > i {
|
.aksrt-header-payvip .but > i,
|
||||||
|
.aksrt-header-payvip__cta > i {
|
||||||
margin: 0 !important;
|
margin: 0 !important;
|
||||||
|
flex: 0 0 auto;
|
||||||
|
line-height: 1;
|
||||||
|
color: inherit !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.user-dropdown .aksrt-header-payvip__cta > span,
|
||||||
|
.aksrt-header-payvip__cta > span {
|
||||||
|
line-height: 1.3;
|
||||||
|
color: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
.user-dropdown .aksrt-header-payvip__cta:hover,
|
||||||
|
.aksrt-header-payvip__cta:hover {
|
||||||
|
opacity: 0.92;
|
||||||
|
color: #fff !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Active VIP: level on line 1, smaller expiry on line 2 (no orange pill). */
|
/* Active VIP: level on line 1, smaller expiry on line 2 (no orange pill). */
|
||||||
|
|||||||
@@ -148,10 +148,11 @@ if (!function_exists('aksrt_header_payvip_bar')) :
|
|||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Match check-in CTA geometry (full width, 6px radius) — not top-nav navbar-cta chips.
|
||||||
return '<div class="mt10 em09 aksrt-header-payvip">'
|
return '<div class="mt10 em09 aksrt-header-payvip">'
|
||||||
. '<a class="pay-vip but radius4 payvip-icon btn-block navbar-cta" href="javascript:;" vip-level="1">'
|
. '<a class="pay-vip but block payvip-icon aksrt-header-payvip__cta" href="javascript:;" vip-level="1">'
|
||||||
. '<i class="fas fa-gem" aria-hidden="true"></i>'
|
. '<i class="fas fa-gem" aria-hidden="true"></i>'
|
||||||
. esc_html__('开通会员 尊享会员权益', 'aksrt')
|
. '<span>' . esc_html__('开通会员 尊享会员权益', 'aksrt') . '</span>'
|
||||||
. '</a></div>';
|
. '</a></div>';
|
||||||
}
|
}
|
||||||
endif;
|
endif;
|
||||||
|
|||||||
Reference in new issue
Block a user