The top-nav publish chip and open-membership chip carried an AKSRT-only class layer (navbar-cta / navbar-cta-text / navbar-newposts / navbar-vip-hover) plus a matching set of CSS overrides that replaced the legacy .but geometry: margin 0.4em -> 0, an extra min-height and flex gap, an FA5 pencil glyph that is not the reference pencil, and label text wrapped in a span. The VIP hover card also had its own positioning override instead of the reference static position. Drop that layer and emit the reference class combination verbatim so the already byte-identical legacy stylesheet owns the geometry again: - publish chip renders newadd-btns but nowave <skin> [radius] btn-newadd with the label echoed as saved (no injected icon, no span) - VIP chip renders pay-vip|signin-loader but jb-red radius payvip-icon with the vip_1 SVG at em12 mr3, inside span.hover-show.inline-block - user-card CTA uses the vip_1 SVG (em12 mr6) instead of fa-gem and drops vip-level, matching zib_get_header_payvip_icon() - both buttons now honour Settings::close_sign(), matching the reference zib_is_close_sign() gate and the floating publish button - header-userbox.css keeps one rule that restores the hover wrapper to a plain block container so .sub-vip-card takes its reference static position; every other override is gone - nav_newposts_text default drops the duplicated fas and uses the FA5 spelling of the reference pencil (fa-pencil-alt, not fa-pen) Dead code removed: aksrt_normalize_header_cta_label(), the unreachable multi-type dropdown branch of aksrt_render_new_add_btns() (only 'post' is supported and only ['post'] is ever passed), and the newadd-btns__toggle / newadd-btns__item / drop-newadd markup it emitted. ml10 is no longer set on the VIP anchor: .aksrt-navbar-actions already supplies the 10px gap the reference gets from ml10, and keeping both would double it to 20px. No migration for sites that already stored the old nav_newposts_text. Verified: node --test across tests/ (603 passing), php -l on the changed PHP files, and a stubbed render of every publish/VIP branch.
197 lines
4.8 KiB
CSS
197 lines
4.8 KiB
CSS
/**
|
|
* Header account popover.
|
|
*
|
|
* The shared legacy navigation styles provide the popover shell, and every
|
|
* account row (avatar, VIP bar, check-in, wallet tiles, stats badges) renders
|
|
* through the reference legacy classes. This module only owns the navigation
|
|
* shell anchoring plus the account action-row geometry.
|
|
*/
|
|
|
|
/* The desktop action cluster owns one horizontal alignment context. */
|
|
.navbar-top .aksrt-navbar-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
min-height: 50px;
|
|
margin-top: 0;
|
|
margin-bottom: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.navbar-top .aksrt-navbar-actions > *,
|
|
.navbar-top .aksrt-navbar-account,
|
|
.navbar-top .aksrt-navbar-account > li {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.navbar-top .aksrt-navbar-account > li {
|
|
position: relative;
|
|
padding: 0;
|
|
overflow: visible;
|
|
}
|
|
|
|
.navbar-top .aksrt-navbar-account > li > .sub-menu {
|
|
top: calc(100% + 5px);
|
|
right: 0;
|
|
left: auto;
|
|
z-index: 1002;
|
|
margin: 0;
|
|
}
|
|
|
|
.navbar-top .aksrt-navbar-account {
|
|
gap: 4px;
|
|
min-height: 50px;
|
|
margin: 0;
|
|
}
|
|
|
|
.navbar-top .aksrt-navbar-account.navbar-text {
|
|
float: none;
|
|
}
|
|
|
|
.navbar-top .aksrt-nav-icon,
|
|
.navbar-top .aksrt-nav-avatar {
|
|
display: inline-flex !important;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 34px;
|
|
height: 34px;
|
|
padding: 0 !important;
|
|
overflow: visible !important;
|
|
border: 0 !important;
|
|
border-radius: 0;
|
|
background: transparent !important;
|
|
box-shadow: none !important;
|
|
}
|
|
|
|
.navbar-top .aksrt-nav-icon .icon {
|
|
width: 1.2em;
|
|
height: 1.2em;
|
|
}
|
|
|
|
.navbar-top .aksrt-nav-avatar {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.navbar-top .aksrt-nav-avatar .avatar {
|
|
display: block;
|
|
width: 29px;
|
|
height: 29px;
|
|
border-radius: 50%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.navbar-top .aksrt-navbar-actions .toggle-radius {
|
|
flex: 0 0 29px;
|
|
margin: 0;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.navbar-top .aksrt-navbar-language {
|
|
margin: 0;
|
|
}
|
|
|
|
/* The reference keeps the publish/VIP hover wrapper a plain inline-block, so the
|
|
* absolutely positioned .sub-vip-card takes its normal-flow static position.
|
|
* The shared action cluster otherwise forces inline-flex on every child, which
|
|
* would move that static position to the flex container's cross-start. */
|
|
.navbar-top .aksrt-navbar-actions > .hover-show {
|
|
display: inline-block;
|
|
}
|
|
|
|
/* Keep the drop-down search panel above a fixed header (z-index: 999). */
|
|
.navbar-search {
|
|
z-index: 1001;
|
|
opacity: 0;
|
|
transform: translate3d(0, -24px, 0);
|
|
transition: transform .24s ease, opacity .18s ease, visibility 0s linear .24s;
|
|
will-change: transform, opacity;
|
|
}
|
|
|
|
.navbar-search.show {
|
|
opacity: 1;
|
|
transform: translate3d(0, 0, 0);
|
|
transition-delay: 0s;
|
|
}
|
|
|
|
.navbar-search .line-form-input:focus,
|
|
.navbar-search .line-form-input:focus-visible {
|
|
outline: 0;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.navbar-search .search-close-box {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
max-width: 660px;
|
|
margin: 16px auto 0;
|
|
}
|
|
|
|
.navbar-search .search-close-box > .but {
|
|
float: none;
|
|
}
|
|
|
|
.aksrt-header-userbox {
|
|
color: var(--color-ink-2);
|
|
line-height: 1.42857143;
|
|
}
|
|
|
|
/* public.css redeclares .muted-box after the legacy utility rules, which
|
|
* otherwise overrides the wallet tiles' padding-6 and radius4 utilities. */
|
|
.aksrt-header-userbox .muted-box.padding-6 {
|
|
background-color: var(--this-bg, var(--color-line-soft));
|
|
border-radius: 4px;
|
|
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. */
|
|
.aksrt-header-userbox > .mt6.em09 > .but.block {
|
|
display: block;
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
}
|
|
|
|
/* Top-nav bell badge (the card itself uses the legacy badge.top element). */
|
|
.aksrt-nav-notification .aksrt-notification-badge {
|
|
position: absolute;
|
|
top: 2px;
|
|
right: 2px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-width: 16px;
|
|
height: 16px;
|
|
padding: 0 4px;
|
|
border: 2px solid var(--surface-1);
|
|
border-radius: 999px;
|
|
background: #e74c3c;
|
|
color: #fff;
|
|
font-size: 9px;
|
|
font-weight: 700;
|
|
line-height: 1;
|
|
}
|
|
|
|
/* Navigation links are globally capped at 50px. Account actions are taller
|
|
* icon tiles and must opt out or their labels overlap the following row.
|
|
* The tile geometry itself stays with the shared legacy rules
|
|
* (.header-user-href > a and .header-user-href .toggle-radius in main.css)
|
|
* so the action row keeps the reference proportions. */
|
|
.navbar-top .aksrt-header-userbox .header-user-href > a,
|
|
.aksrt-header-userbox .header-user-href > a {
|
|
max-height: none;
|
|
}
|
|
|
|
.mobile-navbar .aksrt-header-userbox {
|
|
width: auto;
|
|
max-width: 400px;
|
|
margin: auto;
|
|
}
|