@import '~@od/global-resources/scss/settings/index'; @import "../../../css/master/settings/variables/_colors"; @import "../../../css/master/settings/variables/_fonts"; $logo-dimensions-refresh: 72px; $sub-header-color: #fbfbfb; $sub-header-border-color: #bec0c3; $flyout-background: #f2f3f3; $od-react-green: #080; $base-font-size-sm: 0.75rem; .relative { position: relative; } header.refresh.header-responsive { padding: 0; #siteSearchField::-ms-clear { display: none; } // Consistent search placeholder across pages (ID selector beats page-level input/.text rules) .search-container #siteSearchField { font-size: 14px; font-style: normal; &::placeholder { color: #6b6b6b; font-size: 14px; font-style: normal; opacity: 1; } } .cart-flyout-subtotal { display: none; } &.is-fluid .dropdown-arrow.main-nav-arrow { left: 8px; padding: 0.25rem; top: 2px; } .my-budget-status-flyout.arrow-box { position: absolute; } &.is-fluid{ .selected { .dropdown-arrow.main-nav-arrow { transform: rotate(225deg); top: 8px; } } } &.overlay-zindex { z-index: $zindex-modal; } .second-row { .header-menu-item { padding: 0 12px; &:first-child, &.header-products-menu { padding-left: 10px; } &.header-services-menu { padding-right: 14px; } } } .hide { display: none; } .show { display: block; } .logo-container { width: auto; height: auto; position: static; top: auto; left: auto; right: auto; bottom: auto; margin-right: 8px; max-height: $logo-dimensions-refresh; .company-name .logo-text { display: block; padding: 2px; margin-left: 8px; } } .account-business::after { content: ''; width: 40px; height: 22px; display: block; position: absolute; } #headerAccountMenuListDesktop { position: absolute; z-index: $zindex-modal; width: 200px; top: 40px; left: -150px; padding: 0.5rem 0; background-color: $white; &.menu-collapse { &.arrow-box { display: none; } .header-nav-menu { max-height: 0; overflow: hidden; } } &.menu-expand { &.arrow-box { border-color: $gray-medium; &:before { margin-left: -2px; } &:after { margin-left: -1px; } } .header-nav-menu { max-height: 100%; overflow: visible; } } .account { background: $white; } .dropdown-arrow.arrow-right { top: 8px; padding: 0.175rem; left: 0; } .nav-item { border: none; .submenu a { padding: 0.5rem 1rem; } &:hover .submenu { left: 100%; margin: 0; background: $white; padding: 0.5rem 0; overflow-y: auto; top: -1px; width: 100%; border: 1px solid $gray-medium; min-height: calc(100% + 2px); } } &.left-submenus { .nav-item:hover .submenu { left: -100%; } } a { &:hover { background-color: $gray-light; font-weight: $font-weight-semi-bold; } &.logout-item { color: $blue; } border: none; color: $black; padding: 12px; width: 100%; line-height: 1.5em; display: inline-block; } } .header-row-container { padding: 6px 6px 6px 0px; height: $logo-dimensions-refresh; } .header-row.second-row { margin-top: 0; } .account-stacked-container { display: flex; flex-direction: row; justify-content: center; align-items: center; } .avatar-badge { display: flex; align-items: center; justify-content: center; font-size: 0.65rem; border: 1px solid $black; -webkit-border-radius: 20px; -moz-border-radius: 20px; border-radius: 15px; padding: 3px; width: 28px; height: 28px; svg { width: 20px; height: 20px; fill: $black; } margin-right: 5px; color: $black; } .account-info { display: flex; flex-direction: column; } .account-label, .account-id { font-size: 12px; line-height: 14px; color: $black; } .account-label { color: $black; } .account-id { a { color: $blue; } } .zip-code-conatiner { display: flex; flex-direction: row; justify-content: center; align-items: center; p { font-size: 14px; line-height: 16px; } } .zip-code-heading-text { margin-bottom: 0.5rem; } .zip-code-update { border-radius: 1.6rem; background: #1e5a99; border: 1px solid #1e5a99; color: #fff; margin-top: 0.8rem; width: 100%; height: 2.2rem; margin-left: 0.05rem; } .zip-code-update-text { width: 100%; padding: 0.75rem; border: 1px solid #D1D2D4; } .error-zip-code { border: 1px solid #B30000; } .show-error-text { display: block !important; color: #B30000 !important; } .zip-code-invalid-message { color: #B30000; font-size: 12px; line-height: 14px; margin-top: 0.5rem; display: none; } .zip-code-loading { background: grey !important; border: none !important; } .zip-code-container { display: flex; flex-flow: row wrap; color: #fff !important; } .zip-code-container-post-login { cursor: pointer; } .zip-code-container-post-login-punch-out { display: none !important; } .zip-code-loading { background: grey !important; } .chat-icon-container, .find-a-store-icon-container { display: flex; flex-direction: row; justify-content: center; align-items: center; svg { width: 24px; height: 24px; margin-right: 5px; } p { font-size: 12px; line-height: 14px; } } .flyout-contact-title, .nav-store-heading { font-size: 1rem; font-weight: $fontWeightSemiBold; } .flyout-menu.contact-us-details, .flyout-menu.find-a-store-details { width: 300px; padding: 20px; font-size: 0.85rem; .btn { width: 100%; margin-top: 12px; } } .csr-hours { padding: 6px 0; span { text-transform: uppercase; } } .csr-info { padding: 4px 0; .title { padding-right: 6px; } } .header-menu-item .flyout-menu { top: 127%; } .nav-quick-links { display: flex; align-items: center; &-wrapper { background-color: $sub-header-color; border-bottom: 1px solid $sub-header-border-color; border-top: 1px solid $sub-header-border-color; } &-account { width: 180px; text-align: right; padding-right: 1rem; } } .second-row .header-menu { .header-menu-item:last-child { padding-right: inherit; } .menu-item { color: $black; } } .logo-image { border: none; &:not(.bsd-tier1-logo-container .logo-image) { width: $logo-dimensions-refresh; height: $logo-dimensions-refresh; } } .bsd-tier1-logo-container { min-width: 100px; margin-right: 12px; .logo-image { max-width: 160px; max-height: 60px; margin-left: 6px; width: 100%; height: auto; min-width: 100px; } } .header-menu-item { &.help-item:after { content: ''; width: 100%; height: 10px; display: block; position: absolute; } &.cart-menu-item { .menu-item:after { content: ''; width: 100px; height: 10px; position: absolute; display: block; top: 100%; } } .empty-cart-message { margin-bottom: 0; } } .header-menu .cart-item { svg circle, svg path { stroke: $black; } .cart-stats-total { color: $black; } } .header-menu .cart-item { svg { width: 25px; height: 25px; } } .nav-quick-links-wrapper { svg { width: 16px; height: 16px; } } .header-refresh-bsd-zip-code { font-size: 14px; font-weight: bold; line-height: 16px; white-space: pre-wrap; } .zip-flyout-margin { margin-top: 0.4rem !important; } .header-zip-code { padding: 0.75rem; width: 290px; position: relative; background: $white; .primary-odp-bg { background-color: #1e5a99; color: #fff !important; &:hover{ background-color: #194a7e; color: #fff !important; border: none; } } @media(max-width: $screen-sm - 1) { .visit-help-center > a { max-width: none !important; } } @media(max-width: $screen-sm - 1) { width: 100%; padding: 0.75rem 1.25rem 1.25rem; } > :not(:last-child) { border-bottom: 1px solid $gray-medium; padding-bottom: 0.5rem; margin-bottom: 0.5rem; } &-subheading { font-size: 14px; font-weight: $font-weight-semi-bold; margin-bottom: 0.25rem; @media(max-width: $screen-sm - 1) { font-size: 15px; } } header.refresh.header-responsive #navContainer .nav-item & { a:not(.visit-help-center) { color: $blue; } } &-button { margin-top: 0.5rem; height: 36px; background-color: $blue; color: #FFFFFF; width: 100%; border: 1px solid $blue; border-radius: 4px; text-align: center; cursor: pointer; position: relative; .primary-odp-bg{ background-color: #1e5a99; color: #fff; &:hover{ background-color: #194a7e; color: #fff; border: none; } } @media(max-width: $screen-sm - 1) { min-height: 44px; margin-top: 1rem; &.visit-help-center { margin-bottom: 0.5rem; header.refresh.header-responsive #navContainer .nav-item & a { color: $white; } } } &:hover { background: $blue-dark; border-color: $blue-dark; } a { position: absolute; height: 100%; width: 100%; right: 0; line-height: 36px; color: $white; &:hover { color: $white; } } } } li.header-menu-item{ font-size: 16px; font-weight: bold; line-height: 16px; &.header-flyout-menu { a:after { content: ''; display: block; border-bottom: 2px solid $white; height: 0; width: 100%; position: relative; bottom: -27px; left: -3px; } a.selected { &:after { border-bottom: 3px solid $red; } } } } .nav-quick-links-list a, .nav-quick-links-account-label { color: $black; font-size: 12px; font-weight: bold; } .nav-quick-links-account-value { font-size: 12px; } .header-menu .cart-item .item-count { margin-left: -0.25rem; font-size: 0.65rem; width: auto; min-width: 20px; height: 20px; display: flex; justify-content: center; align-items: center; } &.header-responsive { .burger-menu-item { .line { background-color: $black; } .icon-container { width: 100%; .animated-burger-icon { position: static; } .burger-icon-text { display: block; font-size: 0.65rem; text-align: center; } } } } @media (max-width: 767px) { .header-menu .cart-item .item-count { top: 0; } .my-budget-status { &-flyout { :before { left: 0; } } } } .menu-arrow:after { content: none; } #navContainer { .nav-wrapper { min-width: 200px; } .submenu { border: 1px solid $gray-medium; padding: 0; @media (min-width: $screen-lg-min) { .submenu { padding: 1rem; border: 1px solid $gray-medium; border-left: none; .nav-item { a { padding: 0.5rem; } } } } } .nav-item { border: none; min-width: auto; font-size: 14px; &.menu-break-line { margin: 1rem 0; border-top: 1px solid $gray-medium; } .mobile-menu { @media (min-width: $screen-sm) { display: none; } } .sg-list { overflow-x: hidden; overflow-y: scroll; height: 400px; &::-webkit-scrollbar { width: 10px; /* Width of the scrollbar */ } &::-webkit-scrollbar-track { background: #FFFFFF; /* Background of the scrollbar track */ } &::-webkit-scrollbar-thumb { background: #102B4E; /* 102B4E color of the scrollbar thumb */ border-radius: 10px; /* Optional: makes the scrollbar thumb rounded */ } &::-webkit-scrollbar-thumb:hover { background: #102B4E; /* Darker red on hover */ } &.hide-submenu { z-index: -1; pointer-events: none; opacity: 0; } } a { border: none; color: #102B4E !important; white-space: normal; max-width: 233px; padding: 0.75rem !important; &.div-level { font-weight: 700 !important; } .dropdown-arrow { padding: 0.175rem; } .arrow-right { top: 8px; border: solid #102B4E; border-width: 0 2px 2px 0; } &.l3-level { padding: 0 0.75rem !important; } } &:hover > a .arrow-right, > a:focus .arrow-right { border: solid #102B4E; border-width: 0 2px 2px 0; } .has-submenu:hover { font-weight: $font-weight-normal; @media (min-width: $screen-sm) { .header-nav-menu { width: 700px; display: flex; flex-flow: column wrap; height: 100%; } } } &:hover > a:not(.btn):not(.login-btn), > a:not(.btn):not(.login-btn):focus { background-color: $gray-light; font-weight: $font-weight-normal; @media (max-width: 767px) { background-color: $white; color: $black; .arrow-right { border: solid $black; border-width: 0 2px 2px 0; } } &.div-level { background-color: transparent; } } .has-submenu:hover .header-nav-menu { background-color: $white; } &.nav-see-all, &.learn-more-link { font-weight: 700; color: #102B4E; a:hover { color: #1C528D; } } } .nav-wrapper { background-color: $white; } } .nav-more-option { float: right; .menu-arrow { font-size: 12px; font-weight: bold; border-color: $white; bottom: 6px; right: 0px; } } .cart-item { float: none; &.cart-info-container { height: 4vh; .cart-main-link { display: table; margin-right: 3px; &-icon, &-count { display: table-cell; vertical-align: middle; text-align: center; } svg { margin-right: 0; } } .flyout-loader { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 9; background: rgba(255, 255, 255, 0.8) url('/images/common/rotating_arrow.gif') 50% 0 no-repeat; } } .flyout-menu { display: none; width: 300px; top: 100%; .flyout-title { font-size: $base-font-size; font-weight: $font-weight-bold; border-bottom: 1px solid $gray-medium; padding-bottom: 0.5rem; } .flyout-item { &.subtotal-info { border-top: 1px solid $gray-medium; margin: 0.35rem 0.5rem 0.45rem; font-weight: $fontWeightSemiBold; border-bottom: 1px solid $gray-medium; .subtotal-title { align-self: flex-end; } } &.shipping-msgs-container { display: flex; justify-content: flex-end; margin: 0; padding-bottom: 0.5rem; .message-text-link { font-size: 13px; margin: 0 .5rem; padding: 0px; border: none; } } &.menu-item { &.shipping-info { border-bottom: none; } } } #cartFlyoutData { .cart-item-entry { border: 1px solid $grayMedium; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; margin: 5px 0px; .cart-item-short-description { padding-bottom: 5px; } .cart-item-price-qty-row { display: flex; } .cart-item-qty { } .cart-item-price { padding: 0; font-weight: $fontWeightBold; .each-text { font-size: 12px; font-weight: $fontWeightNormal; padding-left: 2px; } } } .message-text-link { padding: 0; } .delivery-message { padding: 5px 0; } .subtotal-title { padding-bottom: 5px; } .cart-buttons { .view-cart { margin-right: 5px; } .disabled { pointer-events: none; opacity: 0.5; cursor: not-allowed; } } .flyout-item { &.shipping-info { line-height: 25px; padding: .5rem 0.5rem 0; margin-top: -10px; .shipping-info-label { font-size: 14px; } .change-text { font-size: 12px; } } } } } .notification-box { color: #333; margin: 1rem 0.5rem; padding: 0.5rem; border-radius: 5px; background-color: #ffffff; font-family: Arial, sans-serif; border-left: 4px solid #1e5aa7; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); h4 { color: black; margin: 0; font-size: 14px; } p { color: #333; font-size: 13px; margin: 0.625rem 0 0 1.8rem; line-height: 1.5; } .info-icon { padding-right: 0.5rem; } } } .flyout-menu.find-a-store-details { .nav-store { &-form { display: flex; margin-bottom: 0.5rem; } &-heading { margin-bottom: 0.75rem; } &-description { margin-bottom: 1rem; } &-zip { padding: 0.75rem; width: 75%; border: 1px solid $gray-medium; border-right: none; border-radius: 0.25rem 0 0 0.25rem; } &-go { padding: 0.75rem; width: 25%; border-radius: 0 0.25rem 0.25rem 0; border: none; background: $blue; color: $white; &:hover { background: $blue-dark; } } } } } @media (max-width: $screen-xs-max) { header.refresh.header-responsive { .avatar-badge { margin-right: 0; } #navContainer { position: absolute; width: 100%; top: 0; .nav-wrapper { border: none; width: 100%; #headerAccountMenuList { height: 0; padding: 0; .nav-item { + .nav-item { border-top: 1px solid $gray-light; } a.logout-item { color: $blue; } } } } .main-nav-menu { height: 95%; background-color: $white; border: 1px solid $gray-medium; margin-bottom: -1px; .nav-item.navigation-menu-item { background-color: $white; .dropdown-arrow { padding: 0.175rem; } .arrow-right { top: 5px; border: solid $black; border-width: 0 2px 2px 0; height: 10px; width: 10px; } .arrow-left { &.pos-left { position: relative; float: left; left: -1px; top: 4px; height: 10px; width: 10px; margin-right: 4px; } } .header-nav-menu { &.submenu.account { background-color: $white; } .contact-us-arrow.dropdown-arrow { left: 0px; float: left; margin-right: 10px } .contact-us-heading { font-size: 15px; } .submenu-title { color: $black; padding-left: 26px; &.nav-item { background-color: $grayLight; //&.contact-us-heading { // background-color: $white; // border-bottom: 1px solid $gray-medium; // border-top: 1px solid $gray-medium; // text-align: center; // font-size: 16px; //} &.back-link { color: #646464 !important; } } } .nav-item { background-color: $white; .header-nav-menu .nav-item a { color: $black; } &.subheader-with-logout { background-color: $blue-light; } &.menu-break-line { border-top: 1px solid $gray-medium; margin: 0; padding: 0; } } } } } &.main-nav-container { .nav-item { background-color: $white; color: $black; + .nav-item { border-top: 1px solid $gray-light; } .arrow-right { border: solid $black; border-width: 0 2px 2px 0; top: 50%; margin-top: -6px; padding: 0.175rem; } &.od-logo-container { background-color: $red; display: flex !important; flex-direction: row; justify-content: space-between; a.flyout-logo-container, a.flyout-logo-container:focus { background-color: initial; } .od-logo-left { justify-content: flex-start; color: $white; svg { width: 100px; } } .flyout-close-right { display: flex; justify-content: flex-end; width: 50px; svg { justify-content: flex-end; } } svg { width: 16px; height: 16px; fill: $white; } } &.flyout-menu-header { display: flex !important; flex-direction: row; justify-content: space-between; align-items: center; background-color: $grayLight; font-weight: bold; .flyout-close-right { display: flex; justify-content: flex-end; width: 50px; svg { justify-content: flex-end; width: 16px; height: 16px; } } } &.subheader-with-logout { display: flex; flex-direction: row; justify-content: space-between; border-bottom: 1px solid $gray-medium; background-color: $blue-light; padding-left: 1.5rem; padding-right: 1.5rem; margin-top: -1px; border-top: 0; .logout-item { padding-right: 0; } } .flyout-menu-header-nav-close, .mobile-flyout-back-link, .back-link { .dropdown-arrow { border-color: $black; } } } } } .logo-container { .company-name { .logo-text { position: static; } } } } } header.refresh.header-responsive { .my-budget-status-content { .budget-title-line a.budget-view-details { color: $blue; padding: 0.5rem 0 0 1rem; } } } .my-budget-status { &-flyout.arrow-box { right: 0; min-width: 20rem; z-index: 20; border: 1px solid $gray-medium; position: absolute; background: $flyout-background; } &-content { background: $flyout-background; padding: 1rem; min-height: 10rem; .budget-title-line { display: flex; } .budget-title { font-size: 1.5rem; } .active-until { margin-top: 0.5rem; font-size: $base-font-size-sm; } .budget-section { font-size: $base-font-size-sm; margin-top: 0.5rem; margin-left: 2rem; .budget-type { font-weight: $font-weight-semi-bold; } .available { color: $od-react-green; } .exceeded { color: $red } } } &-bar-section { display: flex; margin-top: 2rem; &.loading { .spinner { position: absolute; } } .percent { font-size: $base-font-size-sm; &.begin { margin-right: 0.5rem; } &.end { margin-left: 0.5rem; } &.available { position: absolute; bottom: 20px; color: $od-react-green; } } } &-bar { display: flex; background: $gray-medium; -webkit-animation: percent 3s; -moz-animation: percent 3s; animation: percent 3s; position: relative; width: calc(100% - 4rem); height: 14px; &.over-draft { background: $sub-header-border-color; } .bar { width: 100%; height: 100%; } .has-used-budget span { display: inline-block; background: $od-react-green; -webkit-animation: bar 2s; -moz-animation: bar 2s; animation: bar 2s; height: 100%; } } } .under-more-menu { .my-budget-status-flyout { position: relative; } } /*************************** css animation to the bar ****************************/ @-webkit-keyframes bar { 0%{width:0%} } @-moz-keyframes bar { 0%{width:0%} } @keyframes bar { 0%{width:0%} } @-webkit-keyframes percent { 0%{margin-left:0%} } @-moz-keyframes percent { 0%{margin-left:0%} } @keyframes percent{ 0%{margin-left:0%} }