@use '../styles/abstracts/tokens' as *; .topbar-bar-icon { color: $color-black; } ::ng-deep .p-menubar { background-color: transparent !important; border: none; margin: 2px 0 0 0; } ::ng-deep .p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link { .p-menuitem-text { color: $topbar-text !important; } .p-menuitem-icon { color: $topbar-text !important; } .p-submenu-icon { color: $topbar-text !important; } } ::ng-deep .p-menubar-submenu-icon { background: none !important; } ::ng-deep .p-menubar-item-icon { color: $brand-primary-dark; } ::ng-deep .p-menubar-submenu { min-width: 18.6rem !important; font-size: 15px !important; } ::ng-deep .p-menubar-item-link { cursor: pointer; padding: 0.3rem 0.55rem !important; } ::ng-deep .p-menubar { max-height: 80vh; overflow-y: auto; font-size: 16px !important; margin-top: 0 !important; font-family: 'Roboto', sans-serif !important; &::-webkit-scrollbar { width: 8px; } &::-webkit-scrollbar-track { background: $gray-100; } &::-webkit-scrollbar-thumb { background: $gray-500; border-radius: 4px; } } ::ng-deep .p-menubar-submenu { background: linear-gradient(to bottom, $topbar-gradient-start 0%, $brand-primary-light 100%) !important; } ::ng-deep .p-menubar-submenu > .p-menubar-item-active .p-menubar-submenu { display: block; right: 100% !important; top: 0; left: auto !important; } ::ng-deep .p-menubar-root-list { gap: 0 !important; } ::ng-deep .pendingJobItemList:hover { .pendingJobTag { color: $color-black !important; background: none !important; } color: $color-black !important; font-weight: bold; } .pendingJobTag { color: $topbar-color-link !important; font-size: 12px !important; line-height: 10px !important; } .bookmarkItemList { width: 100%; border-bottom: 1px solid $gray-300; } ::ng-deep .bookmarkItemList:hover { .bookmarktag { color: $color-black !important; background: none !important; } color: $color-black !important; font-weight: bold; background: none !important; } .bookmarktag { color: $topbar-color-link !important; } ::ng-deep .banner-activeForTop { display: flex !important; align-items: center; justify-content: space-between; margin: 0.5rem 6.8rem 0 6.7rem !important; padding: 0 10px !important; height: 48px !important; background: color-mix(in srgb, $color-white 88%, transparent) !important; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1.5px solid $topbar-accent-purple-light !important; border-radius: 25px; gap: 0.5rem; box-shadow: 0 2px 8px color-mix(in srgb, $topbar-accent-purple 8%, transparent), 0 8px 24px color-mix(in srgb, $topbar-accent-purple 10%, transparent), inset 0 1px 0 color-mix(in srgb, $color-white 90%, transparent) !important; transition: backdrop-filter 0.3s, background 0.3s, box-shadow 0.3s; overflow: visible !important; } .ss-topbar-scrolled { backdrop-filter: blur(12px) !important; background: color-mix(in srgb, $topbar-scroll-tint 60%, transparent) !important; box-shadow: 0 2px 16px color-mix(in srgb, $color-black 8%, transparent) !important; } .ss-topbar-left { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; } .ss-logo { height: 32px; width: auto; transform: translateY(3px); } .ss-page-title { font-size: 1rem; font-weight: 700; color: $topbar-text-dark; white-space: nowrap; } .ss-topbar-center { flex: 1; display: flex; justify-content: center; min-width: 0; overflow: visible; } .ss-nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 3px 6px; background: $color-white; border-radius: 50px; box-shadow: 0 1px 4px color-mix(in srgb, $color-black 7%, transparent); flex-wrap: nowrap; font-family: $topbar-font-menu; } .ss-nav-item { position: relative; } .ss-nav-link { display: flex; align-items: center; gap: 5px; padding: 6px 14px; border-radius: 50px; font-size: 13.5px; font-weight: 500; color: $topbar-text-link-sub; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background 0.15s, color 0.15s; border: none; background: transparent; font-family: inherit; &:hover, &:focus { background: $topbar-bg-hover-nav; color: $topbar-navy; outline: none; } } .ss-nav-item--active > .ss-nav-link { background: $topbar-navy !important; color: $color-white !important; .ss-nav-chevron { stroke: $color-white; } } .ss-nav-chevron { flex-shrink: 0; transition: transform 0.2s; stroke: $gray-500; } .ss-nav-item--active > .ss-nav-link .ss-nav-chevron, .ss-nav-item:hover > .ss-nav-link .ss-nav-chevron { transform: rotate(180deg); } .ss-submenu { position: absolute; top: calc(100% + 8px); left: 0; // Solid white panel + palette-dark top edge and shadow, so the dropdown stands out from the // pale page/cards behind it (all colours come from the palette). border: 1px solid var(--gh-bo2) !important; border-top: 3px solid var(--gh-sb) !important; width: 300px; background: var(--gh-tb); border-radius: 14px; box-shadow: 0 14px 36px color-mix(in srgb, var(--gh-sb) 28%, transparent), 0 3px 8px color-mix(in srgb, var(--gh-sb) 14%, transparent); padding: 6px; margin: 0; z-index: 2000; list-style: none; animation: ssDropIn 0.14s ease; overflow: visible; } @keyframes ssDropIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } } .ss-submenu-item { position: relative; } .ss-submenu-link { display: flex; align-items: center; gap: 12px; box-sizing: border-box; height: 38px; padding: 0 12px; border-radius: 8px; font-size: 14px; color: $topbar-text-desc; text-decoration: none; cursor: pointer; transition: background 0.12s; white-space: nowrap; width: 100%; &:hover { background: var(--gh-sel); color: var(--gh-ht); } } .ss-submenu-item--open > .ss-submenu-link { background: var(--gh-sel); color: var(--gh-sb); } .ss-submenu-divider { height: 1px; margin: 4px 8px; background: $topbar-divider-menu; } .ss-submenu-item--parent > .ss-submenu-link { justify-content: space-between; font-weight: 500; span { flex: 1; text-align: left; } } .ss-submenu-item--parent > .ss-submenu-link > span { flex: 1; text-align: left; } .ss-sub-chevron { flex-shrink: 0; stroke: $gray-350; } .ss-sub-icon { font-size: 16px; width: 18px; text-align: center; color: $topbar-accent-purple; flex-shrink: 0; } .ss-sub-icon.mi { font-size: 18px; } .ss-submenu--nested { position: absolute; left: calc(100% + 8px); top: -6px; width: 290px; z-index: 2001; // Never taller than the screen: if it fits neither below nor above, it scrolls inside itself max-height: calc(100vh - 24px); overflow-y: auto; scrollbar-width: thin; } // Not enough room below: grow upward from the parent item instead .ss-submenu--nested.ss-submenu--up { top: auto; bottom: -6px; animation: ssDropUp 0.14s ease; } @keyframes ssDropUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } } .ss-topbar-right { display: flex; align-items: center; gap: 2px; flex-shrink: 0; } .ss-icon-btn-wrap { position: relative; display: flex; align-items: center; } .ss-icon-btn { background: transparent; border: none; cursor: pointer; height: 36px; width: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; position: relative; transition: background 0.15s; color: $topbar-text-slate; padding: 0; &:hover { background: color-mix(in srgb, $color-black 6%, transparent); } } .ss-badge { position: absolute; top: 3px; right: 3px; background: $topbar-color-danger; color: $color-white; font-size: 9px; font-weight: 700; min-width: 15px; height: 15px; border-radius: 50px; display: flex; align-items: center; justify-content: center; padding: 0 3px; pointer-events: none; } .ss-avatar { width: 30px; height: 30px; border-radius: 50%; background: $topbar-navy; color: $color-white; display: flex; align-items: center; justify-content: center; font-size: 13px; border: 2px solid $color-white; box-shadow: 0 1px 4px color-mix(in srgb, $color-black 15%, transparent); } .ss-dd { position: absolute; top: calc(100% + 8px); right: 0; left: auto; background: $color-white; border-radius: 14px; // Same panel look as the menu dropdown: palette border, dark top edge and a stronger shadow, // so bookmark / pending approval / notification / user lists stand out from the cards behind. border: 1px solid var(--gh-bo2); border-top: 3px solid var(--gh-sb); box-shadow: 0 14px 36px color-mix(in srgb, var(--gh-sb) 28%, transparent), 0 3px 8px color-mix(in srgb, var(--gh-sb) 14%, transparent); list-style: none; margin: 0; padding: 0; z-index: 2000; animation: ssDropIn 0.14s ease; overflow: hidden; } .ss-notif-dd { width: 340px; max-height: 420px; overflow-y: auto; scrollbar-width: thin; } .ss-user-dd { min-width: 210px; } .ss-dd-header { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px 9px; border-bottom: 1px solid $topbar-border-faint; position: sticky; top: 0; background: $color-white; z-index: 1; } .ss-dd-title { font-size: 13px; font-weight: 700; color: $topbar-text-charcoal; } .ss-dd-count { font-size: 10px; font-weight: 700; background: $topbar-color-danger; color: $color-white; border-radius: 50px; padding: 1px 6px; min-width: 18px; text-align: center; } .ss-dd-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 16px; border-bottom: 1px solid $topbar-border-dd-item; transition: background 0.12s; &:hover { background: var(--gh-sel); } &--new { background: $topbar-bg-dd-item-new; } &:last-child { border-bottom: none; } } .ss-dd-icon { width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; &--news { background: $brand-primary-light; color: $topbar-accent-violet; } &--notif { background: $topbar-bg-icon-notif; color: $topbar-accent-green; } &--pending { background: $topbar-bg-icon-pending; color: $topbar-accent-orange; } &--bookmark{ background: $topbar-bg-icon-bookmark; color: $topbar-accent-indigo; } } .ss-dd-body { flex: 1; min-width: 0; } .ss-dd-desc { font-size: 12px; color: $topbar-text-charcoal; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .ss-dd-link { color: $topbar-accent-indigo !important; text-decoration: none; font-size: 12px; display: block; cursor: pointer; &:hover { text-decoration: underline; } } .ss-dd-time { font-size: 10px; color: $topbar-text-muted; margin-top: 3px; } .ss-dd-dot { width: 7px; height: 7px; border-radius: 50%; background: $topbar-accent-purple; flex-shrink: 0; margin-top: 4px; } .ss-dd-empty { padding: 18px 16px; text-align: center; font-size: 12px; color: $topbar-text-muted; } .ss-dd-action { display: flex; align-items: center; gap: 10px; padding: 9px 16px; color: $topbar-text-slate; text-decoration: none; font-size: 13px; cursor: pointer; transition: background 0.12s; &:hover { background: var(--gh-sel); color: $topbar-text-dark; } i { font-size: 13px; color: $gray-500; } } .ss-hamburger { display: none; } .ss-show-sm { display: none; } @media (max-width: 1199px) { ::ng-deep .banner-activeForTop { margin: 0.5rem 6.8rem 0rem 6.7rem !important; height: 46px !important; } .ss-logo { height: 28px; } .ss-page-title { font-size: 0.9rem; } .ss-nav-link { padding: 5px 10px; font-size: 12.5px; } } @media (max-width: 991px) { ::ng-deep .banner-activeForTop { margin: 0.4rem 0.75rem !important; padding: 0 6px !important; height: 46px !important; gap: 0.25rem; } .ss-page-title { display: none; } .ss-nav-link { padding: 5px 8px; font-size: 12px; } .ss-nav-list { padding: 3px 4px; } .ss-icon-btn { height: 32px; width: 32px; } } @media (max-width: 767px) { ::ng-deep .banner-activeForTop { margin: 6px 8px 0 8px !important; padding: 0 10px !important; gap: 0; text-align: left !important; justify-content: space-between !important; } .ss-topbar-left { flex-shrink: 0; } .ss-topbar-right { gap: 0; margin-left: auto !important; } .ss-topbar-center { display: none !important; } .ss-page-title { display: none !important; } .ss-hamburger, .ss-show-sm { display: flex !important; } .ss-icon-btn { height: 36px; width: 36px; } .ss-notif-dd { position: fixed !important; top: 66px !important; right: 8px !important; left: auto !important; width: 320px !important; max-width: calc(100vw - 16px) !important; max-height: 60vh; z-index: 3000; } .ss-user-dd { position: fixed !important; top: 66px !important; right: 8px !important; left: auto !important; width: 230px !important; z-index: 3000; } } .ss-mob-overlay { position: fixed; inset: 0; z-index: 3998; background: transparent; } .ss-mob-panel { position: fixed; top: 54px; right: 8px; width: min(300px, 100vw - 16px); background: linear-gradient(160deg, $topbar-gradient-start 0%, $topbar-gradient-end 100%); border-radius: 16px; box-shadow: 0 8px 40px color-mix(in srgb, $brand-primary-dark 20%, transparent); z-index: 3999; overflow: hidden; border: 1px solid $topbar-accent-purple-light !important; animation: _ngcontent-ng-c193984463_ssDropIn 0.16s ease; text-align: left !important; } .ss-mob-panel-header { display: flex; justify-content: space-between; align-items: center; padding: 6px 15px 5px; border-bottom: 1px solid $topbar-border-mob-header; font-size: 13px; font-weight: 700; color: $topbar-text-charcoal; } .ss-mob-close { background: transparent; border: none; cursor: pointer; padding: 4px; border-radius: 8px; color: $gray-600; display: flex; align-items: center; justify-content: center; &:hover { background: $topbar-border-faint; } } .ss-mob-panel-body { max-height: calc(100vh - 130px); overflow-y: auto; scrollbar-width: thin; padding: 6px 0; } .ss-mob-link { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 7px 14px; font-size: 14px; font-weight: 600; color: $topbar-text-dark; text-decoration: none; background: transparent; border: none; cursor: pointer; text-align: left !important; transition: background 0.12s; &:hover { background: $topbar-bg-hover-mob-link; } &--open { background: $topbar-bg-hover-nav; color: $topbar-navy; } } .ss-mob-chevron { flex-shrink: 0; stroke: $gray-400; transition: transform 0.2s; } .ss-mob-link--open .ss-mob-chevron, .ss-mob-sublink--open .ss-mob-chevron { transform: rotate(180deg); } .ss-mob-children { border-left: 1px solid $topbar-accent-purple-light; margin-left: 16px; } .ss-mob-sublink { display: flex; align-items: center; gap: 9px; padding: 10px 14px; font-size: 13px; color: $topbar-text-slate; text-decoration: none; cursor: pointer; background: transparent; border: none; width: 100%; text-align: left !important; justify-content: flex-start !important; transition: background 0.12s; &:hover { background: $topbar-bg-hover-mob-sublink; color: $topbar-text-dark; } &--parent { display: flex; justify-content: space-between; font-weight: 500; } &--open { background: $topbar-bg-mob-sublink-open; color: $topbar-navy; } } .ss-mob-icon { font-size: 12px; color: $topbar-accent-purple; } .ss-mob-grandchildren { border-left: 1px solid $topbar-accent-purple-light; margin-left: 12px; } // Current payroll type label (admin logins), left of the Pending Jobs icon. // Sits on the dark admin topbar, so it uses the same white as .topbar-icon. .topbar-payroll-type-item { display: flex; align-items: center; height: 36px; } .topbar-payroll-type { display: inline-block; max-width: 380px; padding: 4px 12px; border: 1px solid color-mix(in srgb, $color-white 35%, transparent); border-radius: 999px; background: color-mix(in srgb, $color-white 12%, transparent); color: $color-white; font-size: 13px; font-weight: 600; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: default; } .topbar-salary-month { font-weight: 500; } // Admin / super-user profile menu (Babylon li.user-profile > ul) drawn exactly like the ESS user // menu (.ss-dd.ss-user-dd above): white card, 14px corners, soft shadow, header row with a divider, // .ss-dd-action rows. Appearance only — showing/hiding stays with Babylon's .active-topmenuitem, // and every click, routerLink and @if in the template is unchanged. Desktop only: below 1025px // Babylon turns the whole topbar menu into a static list, which is left as it is. @media (min-width: 1025px) { .layout-topbar .topbar-menu > li.user-profile > ul { width: auto !important; // template has an inline width:250px min-width: 210px; // same panel as .ss-dd: palette border, dark top edge, stronger shadow border: 1px solid var(--gh-bo2); border-top: 3px solid var(--gh-sb); border-radius: 14px !important; // template has an inline border-radius:20px background: $color-white; box-shadow: 0 14px 36px color-mix(in srgb, var(--gh-sb) 28%, transparent), 0 3px 8px color-mix(in srgb, var(--gh-sb) 14%, transparent); padding: 0; overflow: hidden; animation: ssDropIn 0.14s ease; &::before, &::after { display: none; // Babylon's arrow; the ESS card has none } > li > a { display: flex; align-items: center; gap: 10px; padding: 9px 16px; color: $topbar-text-slate; text-decoration: none; font-size: 13px; cursor: pointer; transition: background 0.12s; i { margin-right: 0; font-size: 13px; color: $gray-500; } span { vertical-align: baseline; } &:hover { background: var(--gh-sel); color: $topbar-text-dark; } } // First row is the signed-in user's name: the ESS header row, centred > li:first-child > a { justify-content: center; font-weight: 600; padding: 13px 16px 9px; border-bottom: 1px solid $topbar-border-faint; color: $topbar-text-charcoal; cursor: default; i { color: inherit; font-size: inherit; } &:hover { background: transparent; color: $topbar-text-charcoal; } } // the theme's generic row hover must not light up the name row > li:first-child:hover { background: transparent; } } }