fix(nav): win cascade for CTA and icon baseline
Scope multi-type newadd wrapper rules so they cannot collapse single CTA links; re-enqueue nav.css after header-menu-buttons for final zibll alignment.
This commit is contained in:
1 parent
4f5430cdba
commit
a9aba6bdd1
2 files changed
+43
No files matched your search
@@ -309,3 +309,34 @@
|
|||||||
margin: 0 !important;
|
margin: 0 !important;
|
||||||
line-height: 1 !important;
|
line-height: 1 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Direct single-type publish CTA (<a class="newadd-btns ... navbar-cta">) — never line-height:0 */
|
||||||
|
.navbar-top a.newadd-btns.navbar-cta,
|
||||||
|
.navbar-top a.navbar-newposts.navbar-cta,
|
||||||
|
.navbar-top a.payvip-icon.navbar-cta {
|
||||||
|
display: inline-flex !important;
|
||||||
|
align-items: center !important;
|
||||||
|
justify-content: center !important;
|
||||||
|
line-height: 1.44 !important;
|
||||||
|
height: auto !important;
|
||||||
|
min-height: 0 !important;
|
||||||
|
max-height: none !important;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
.navbar-top a.newadd-btns.navbar-cta > i,
|
||||||
|
.navbar-top a.navbar-newposts.navbar-cta > i,
|
||||||
|
.navbar-top a.payvip-icon.navbar-cta > i {
|
||||||
|
margin: 0 0.25em 0 0 !important;
|
||||||
|
line-height: 1 !important;
|
||||||
|
position: static !important;
|
||||||
|
transform: none !important;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
.navbar-top a.newadd-btns.navbar-cta > .navbar-cta-text,
|
||||||
|
.navbar-top a.navbar-newposts.navbar-cta > .navbar-cta-text,
|
||||||
|
.navbar-top a.payvip-icon.navbar-cta > .navbar-cta-text {
|
||||||
|
line-height: 1.44 !important;
|
||||||
|
display: inline-block;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
@@ -174,6 +174,18 @@ trait ScriptsPart1b {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Final nav alignment overrides AFTER header-menu-buttons (zibll text/icon baseline).
|
||||||
|
// Re-enqueue shell nav.css last so inline critical rules win the cascade.
|
||||||
|
$nav_css = get_template_directory() . '/assets/css/frontend/nav.css';
|
||||||
|
if (file_exists($nav_css)) {
|
||||||
|
wp_enqueue_style(
|
||||||
|
'aksrt-nav-align',
|
||||||
|
$base_uri . '/assets/css/frontend/nav.css',
|
||||||
|
['aksrt-header-menu-buttons'],
|
||||||
|
(string) filemtime($nav_css)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
$inline_search_js = get_template_directory() . '/assets/js/header-inline-search.js';
|
$inline_search_js = get_template_directory() . '/assets/js/header-inline-search.js';
|
||||||
if (file_exists($inline_search_js)) {
|
if (file_exists($inline_search_js)) {
|
||||||
|
|||||||
Reference in new issue
Block a user