diff --git a/assets/css/core/buttons.css b/assets/css/core/buttons.css index b5882604..47f1bc71 100644 --- a/assets/css/core/buttons.css +++ b/assets/css/core/buttons.css @@ -179,7 +179,11 @@ .but a { color: inherit; } .but .icon, -.but > .fa:not(.fa-angle-right) { margin-right: 0.25em; } +.but > .fa:not(.fa-angle-right), +.but > .fas:not(.fa-angle-right), +.but > .far:not(.fa-angle-right), +.but > .fab:not(.fa-angle-right), +.but > i[class*="fa-"]:not(.fa-angle-right) { margin-right: 0.25em; } /* hover / active */ .but:focus, diff --git a/assets/css/frontend/nav.css b/assets/css/frontend/nav.css index f06e9a4a..fcbe8d93 100644 --- a/assets/css/frontend/nav.css +++ b/assets/css/frontend/nav.css @@ -149,3 +149,58 @@ display: flex; align-items: center; } + +/* Dropdown / user-href circular icon badges (zibll header-user-href) */ +.navbar-top .header-user-href .toggle-radius, +.navbar-top .badg.toggle-radius { + position: relative; + display: inline-block; + text-align: center; + vertical-align: middle; + overflow: hidden; +} +.navbar-top .header-user-href .toggle-radius > i, +.navbar-top .header-user-href .toggle-radius .fa, +.navbar-top .header-user-href .toggle-radius .fas, +.navbar-top .badg.toggle-radius > i, +.navbar-top .badg.toggle-radius .fa, +.navbar-top .badg.toggle-radius .fas { + position: absolute !important; + top: 50% !important; + left: 0 !important; + right: 0 !important; + margin: auto !important; + transform: translateY(-50%) !important; + line-height: 1 !important; + width: 1em; + height: 1em; + display: inline-flex !important; + align-items: center; + justify-content: center; +} + +/* Kill FA vertical-align drift inside flex chips */ +.navbar-top a.btn > i.fas, +.navbar-top a.btn > i.far, +.navbar-top a.navbar-cta > i.fas, +.navbar-top a.navbar-cta > i.far, +.navbar-top .toggle-theme > i.fas { + vertical-align: 0 !important; +} + +/* Navbar form row height consistency */ +.navbar-top .navbar-form.flex.ac { + min-height: 36px; +} +.navbar-top .list-inline { + display: flex; + align-items: center; + margin: 0; + padding: 0; + list-style: none; +} +.navbar-top .list-inline > li { + display: flex; + align-items: center; + vertical-align: middle; +} diff --git a/inc/helpers/aksrt-header-menu-buttons.php b/inc/helpers/aksrt-header-menu-buttons.php index a21deba0..cec3c1e9 100644 --- a/inc/helpers/aksrt-header-menu-buttons.php +++ b/inc/helpers/aksrt-header-menu-buttons.php @@ -142,11 +142,12 @@ if (!function_exists('aksrt_normalize_header_cta_label')) : $label = preg_replace('/