.hero-subnav_spacer { padding-top: 47px; margin-top: -47px; @media (max-width: 768px) { padding-top: 0px; margin-top: 0px; } } .hero-subnav_offset { margin-top: -47px; @media (max-width: 768px) { margin-top: 0px; } } .hero-subnav_padding { padding-top: 47px; @media (max-width: 768px) { padding-top: 0px; } } .f-subnav-container { display: block; visibility: visible; height: 47px; padding-top: 6px; padding-bottom: 6px; padding-right: 15px; padding-left: 15px; background: transparentize($color-white, 0.15); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); } @media (max-width: 768px) { .f-subnav-container{ visibility: hidden; overflow: hidden; position: relative; z-index: 0; height: 0px; padding: 0; } } .f-subnav-action { margin-left: 10px; } .js-subnav.is-fixed{ top: 50px; width: 100%; z-index: 1031; } .f-subnav{ display: flex; flex-direction: row; justify-content: center; align-items: center; & > * { font-size: 15px; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } & > .links { display: flex; flex-direction: row; flex-wrap: nowrap; list-style: none; margin: 0; overflow: visible; padding-inline-start: 0; & > a { flex-basis: 100%; text-align: center; color: $color-gray-600; white-space: nowrap; margin-left: 10px; margin-right: 10px; } & > a:hover, a:active, > a:focus { text-decoration: none; } & > a:hover > span { background: transparentize($color-black, 0.95); color: $color-secondary; border-radius: 32px; padding: 4px 12px; } & > a > span { padding: 4px 12px; border-radius: 32px; transition: color 0.3s ease, background 0.3s ease; } & > a > span.active { background: transparentize($color-black, 0.95); color: $color-secondary; font-family: proxima_nova-semibold; border-radius: 32px; padding: 4px 12px; } } } .f-subnav-dropdown-trigger { position: relative; cursor: pointer; & > span { flex-basis: 100%; text-align: center; color: $color-gray-600; white-space: nowrap; margin-left: 10px; margin-right: 10px; padding: 4px 12px; transition: color 0.3s ease, background 0.3s ease; } & .active { background: transparentize($color-black, 0.95); color: $color-secondary; font-family: proxima_nova-semibold; border-radius: 32px; padding: 4px 12px; } & :hover > span, :active > span, :focus > span { background: transparentize($color-black, 0.95); color: $color-secondary; border-radius: 32px; } } .f-subnav-dropdown { display: flex; flex-direction: column; position: absolute; background: transparentize($color-white, 0.05); white-space: nowrap; transition: opacity 0.15s ease; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 2px; visibility: visible; top: 28px; left: 50%; opacity: 1; transform: translateX(-50%); padding: 15px; & > a { padding: 6px 12px; text-align: center; &:hover, :active, :focus { background: transparentize($color-black, 0.95); color: $color-secondary; border-radius: 32px; text-decoration: none; } &.active { background: transparentize($color-black, 0.95); color: $color-secondary; font-family: proxima_nova-semibold; border-radius: 32px; padding: 4px 12px; } &:not(:first-child){ margin-top: 10px; } } &:after { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); content: ' '; display: block; width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 8px solid transparentize($color-white, 0.14); } &.hidden{ visibility: hidden; left: -9999px; top: -9999px; opacity: 0; transform: translateX(0%); } }