@import '../variables'; @-moz-document url-prefix() { .brand { -webkit-transform: scale(0.5); top: -26px !important; } } nav a { text-decoration: none; } .mobile-bg-container{ position: fixed; -webkit-transform: translateZ(0); transform: translateZ(0); opacity: 0; @media (min-width: $break-big) { display: none; } &.visible { display: block; @media (min-width: $break-big) { display: none; } } &.is-animatable { opacity: 1; width: 100%; min-height: 100%; } .mobile-bg { position: absolute; background: $nextcloud-blue; z-index: 2; border-radius: 50%; transition: all 0.3s ease-out; &:not(.active){ top: 0 !important; right: calc(15px + 5%)!important; width: 49px !important; height: 49px !important; } } } .nav { z-index: 11; padding-top: 20px; position: absolute; left: 0; right: 0; background: $nextcloud-blue; position: relative; opacity: 0; &.headroom { transition: transform 500ms ease; } &.headroom--not-top { position: fixed !important; } &.headroom--pinned { transform: translate3d(0px, 0px, 0px); opacity: 1; } &.headroom--unpinned { transform: translate3d(0px, -100px, 0px); opacity: 0; } /* SVG icons on the right */ .top-navbar-svg { svg { height: 1.7em; vertical-align: bottom; } /* shift language icon 3 px down */ &.lang-icon { svg { margin-bottom: -3px; } } } /* SVG icon when on scrolled, white background Z*/ &.headroom--pinned { .top-navbar-svg { svg { fill: #0082c9 !important; path { fill: #0082c9 !important; } } fill: #0082c9!important; } } /* SVG icon when on top */ &.headroom--top { .top-navbar-svg { svg { fill: white !important; path { fill: white !important; } } fill: white !important; } } .container { position: relative; @media (max-width: 992px) { width: 90%; } .nav__bg-wrapper { -webkit-transition: 0.3s; transition: 0.3s; position: absolute; left: 0; top: 100%; visibility: hidden; transition: 0.3s; will-change: opacity; z-index: -2; top: 50px; &.is-visible { visibility: visible; opacity: 1; } .nav__bg { width: 300px; height: 200px; background: white; box-shadow: 0 4px 6px 0 rgba(0, 0, 0, 0.11); border: solid 1px #f1f1f1; border-radius: 4px; -webkit-transform-origin: left top; transform-origin: left top; will-change: transform; visibility: hidden; position: absolute; z-index: 5; top: 100%; &:before { content: ""; position: absolute; bottom: 100%; left: 50%; right: auto; -webkit-transform: translateX(-50%); -ms-transform: translateX(-50%); transform: translateX(-50%); height: 0; width: 0; border: 8px solid transparent; border-bottom-color: #f1f1f1; } &:after { content: ""; position: absolute; bottom: 100%; left: 50%; right: auto; -webkit-transform: translateX(-50%); -ms-transform: translateX(-50%); transform: translateX(-50%); height: 0; width: 0; border: 6px solid transparent; border-bottom-color: white; } &.is-animatable { -webkit-transition: 0.3s; transition: 0.3s; visibility: visible; display: block; } } } .navbar-toggle { display: none; } .brand { z-index: 8; position: absolute; top: 0; left: 0; .logo:not(.scrolled):not(.menu-open) { background: url(../img/logo/logo_white_sprite.png) 0 0 no-repeat; height: 100px; width: 140px; display: inline-block; zoom: 0.5; &.hoverPlay { background-position-x: 0; -webkit-animation: play 2s steps(33) forwards; -moz-animation: play 2s steps(33) forwards; -ms-animation: play 2s steps(33) forwards; -o-animation: play 2s steps(33) forwards; animation: play 2s steps(33) forwards; } &.stopedAnimation { background-position-x: -4620px; } } } /* Fix ul and li settings in common */ ul { margin-top: 0px; li { margin-top: 0px; } } .nav__sections { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -webkit-justify-content: center; -ms-flex-pack: center; justify-content: center; list-style-type: none; position: absolute; z-index: -1; left: 20%; top: 0%; @media (max-width: 1200px) { left: 10%; } .nav__section { padding: 15px 0 15px 0; position: relative; &:hover { .nav__label { opacity: 0.6; cursor: default; text-decoration: none; } .nav__links { visibility: visible; opacity: 1; position: absolute; left:50%; transform:translateX(-50%) translateZ(1px); @media (min-width: $break-big) { top: 50px; } } } .nav__label { display: inline-block; padding: 0 15px 5px 25px; /* padding-left: 30px; */ /* padding-bottom: 5px; */ color: white; -webkit-transition: 0.3s; transition: 0.3s; font-size: 16px; } .nav__links { position: absolute; padding: 20px 40px 20px 30px; visibility: hidden; opacity: 0; list-style-type: none; transition: opacity 0.3s ease; transition-delay: 0.1s; .nav__item { color: #666; white-space: nowrap; a { display: block; padding: 5px 10px 0 0px; font-size: 16px; color: $medium-dark; /* logo in front of text */ .nav__logo { width: 45px; min-height: 15px; float:left; vertical-align: middle; svg { margin-top: 5px; padding: 10px 8px 0 0; height: 40px; width: 40px; } } .nav__text { line-height: 1; padding: 10px 30px 10px 0; strong { line-height: 1.2; font-weight: normal; font-size: 18px; } small { opacity: 0.8; } } &:hover { opacity: 0.6; text-decoration: none; @media (min-width: $break-big) { top: 50px; } } } &:not(:last-of-type) { a { padding-bottom: 5px; } } } } } } .right-buttons { position: absolute; top: 0; right: 0; /* margin-top: 15px; */ .ghost-btn { text-align: center; position: relative; display: inline-block; a { -webkit-transition: 0.3s; transition: 0.3s; position: relative; &:before { content: ""; position: absolute; width: 100%; height: 2px; bottom: 0; left: 0; background-color: white; visibility: hidden; -webkit-transform: scaleX(0); transform: scaleX(0); -webkit-transition: all 0.2s ease-in-out 0s; transition: all 0.2s ease-in-out 0s; } } &:hover { a { text-decoration: none; &:before { visibility: visible; -webkit-transform: scaleX(1); transform: scaleX(1); } } } &.no-underline { padding-left:20px; a { &:before { background-color: transparent !important; } } &:hover { a { opacity: 0.6; } } } } .nav__section { padding: 15px 0 15px 0; position: relative; &:hover { .nav__label { opacity: 0.6; cursor: default; text-decoration: none; } .nav__links { /* @-moz-document url-prefix() { margin-top: 30px; }*/ &:not(:root:root){ /* This breaks safari. */ /* margin-top: 30px; */ } visibility: visible; opacity: 1; position: absolute; left:50%; transform:translateX(-50%) translateZ(1px); @media (min-width: $break-big) { top: 50px; } } } .nav__label { display: inline-block; padding: 0 15px 5px 15px; color: white; -webkit-transition: 0.3s; transition: 0.3s; font-size: 16px; &.top-navbar-svg { padding-left:20px; } } .nav__links { position: absolute; padding: 20px 40px 20px 30px; visibility: hidden; opacity: 0; list-style-type: none; transition: opacity 0.3s ease; transition-delay: 0.1s; @media (min-width: $break-big) { top: 50px; } /* Keep language item a bit closer to the contact button */ .nav__item__language { padding: 2px 2px 2px 5px; margin: 0px; } .nav__item { color: #666; white-space: nowrap; padding-left: 0px; a { display: block; padding: 5px 10px 0 0px; font-size: 16px; color: $medium-dark; /* logo in front of text */ .nav__logo { width: 45px; min-height: 15px; float:left; vertical-align: middle; svg { margin-top: 5px; padding: 10px 8px 0 0; height: 40px; width: 40px; } } .nav__text { line-height: 1; padding: 10px 30px 10px 0; strong { line-height: 1.2; font-weight: normal; font-size: 18px; } small { opacity: 0.8; } } &:hover { opacity: 0.6; text-decoration: none; } } &:not(:last-of-type) { a { padding-bottom: 5px; } } } } } li { display: inline-block; padding-left: 30px; padding-bottom: 5px; font-size: 16px; margin-top: 0px; a { color: white; } } } } } //Navigation on small screens @media (max-width: 992px) { .nav { .container { .brand { padding-left: 15px; .logo { height: 53px; width: 71px; &.menu-open { background: url(../img/logo/logo_white_sprite.png) 0 0 no-repeat; height: 100px; width: 140px; display: inline-block; zoom: 0.5; &.hoverPlay { background-position-x: 0; -webkit-animation: play 2s steps(33) forwards; -moz-animation: play 2s steps(33) forwards; -ms-animation: play 2s steps(33) forwards; -o-animation: play 2s steps(33) forwards; animation: play 2s steps(33) forwards; } &.stopedAnimation { background-position-x: -4620px; } } } } .mobile-bg { position: fixed; background: #0082c9; padding-top: 25px; z-index: 7; top: 0; right: 0; width: 0; height: 0; visibility: hidden; overflow: hidden; border-bottom-left-radius: 100%; transition: all 0.6s ease; } .active { opacity: 1; visibility: visible; width: 150%; height: 150%; } .navbar-toggle { color: white; background-color: white; border-radius: 50px; width: 50px; height: 50px; margin-top: 0; z-index: 8; display: block; margin-right: 0; border: none; float: right; &:hover { transform: scale(1.1); transition: transform 0.3s cubic-bezier(0.56, 1, 0.86, 1.39); transition-property: transform; transition-duration: 0.3s; transition-timing-function: cubic-bezier(0.56, 1, 0.86, 1.39); transition-delay: initial; } } .nav__sections-wrapper { margin: 0 auto; display: inline-block; position: absolute; top: 90px; z-index: 2; padding: 0; .nav__sections { display: none; position: relative; left: 0; padding: 0; visibility: hidden; .nav__section { display: block; //height: calc(100% / 7); //min-height: 50px; opacity: 1; margin: 0; opacity: 0; color: white; padding: 0; visibility: hidden; &:last-child{ font-weight: 500; } a { color: white; text-decoration: none; } } &.active { display: block; color: white; margin: 0; visibility: visible; .nav__section { animation: fadeInRight .5s ease forwards; animation-delay: .35s; visibility: visible; .nav__label { font-size: 20px; line-height: 20px; padding-left: 0; font-weight: 400; } &:nth-of-type(2) { animation-delay: .4s; } &:nth-of-type(3) { animation-delay: .45s; } &:nth-of-type(4) { animation-delay: .50s; } &:nth-of-type(5) { animation-delay: .55s; } &:nth-of-type(6) { animation-delay: .60s; } &:nth-of-type(7) { animation-delay: .65s; } &:nth-of-type(8) { animation-delay: .70s; } .nav__links { display: none; position: relative; padding: 0; width: 100%; padding: 0 10px 0 20px; .nav__item { margin-left: 0; a { font-size: 18px; line-height: 18px; color: white; margin-left: 0; font-weight: 300; } .nav__logo { svg { height: 2.5em; vertical-align: bottom; fill: white !important; path { fill: white !important; } g { fill: white !important; } rect { fill: white !important; } } fill: white !important; } } } } } } .right-buttons { position: relative; padding: 0; margin: 0; opacity: 0; transition: all 0.3s; .nav__section { display: block; //height: calc(100% / 7); //min-height: 50px; opacity: 1; margin: 0; opacity: 0; color: white; padding: 0; visibility: hidden; &:last-child{ font-weight: 500; } a { color: white; text-decoration: none; } } &.active { display: block; color: white; margin: 0; visibility: visible; opacity: 1; transition-delay: .65s; .nav__label { color: white; } .ghost-btn a { pointer-events: all; } .nav__section { animation: fadeInRight .5s ease forwards; animation-delay: .35s; visibility: visible; .nav__label { font-size: 20px; line-height: 20px; padding-left: 0; font-weight: 400; } &:nth-of-type(2) { animation-delay: .4s; } &:nth-of-type(3) { animation-delay: .45s; } &:nth-of-type(4) { animation-delay: .50s; } &:nth-of-type(5) { animation-delay: .55s; } &:nth-of-type(6) { animation-delay: .60s; } &:nth-of-type(7) { animation-delay: .65s; } &:nth-of-type(8) { animation-delay: .70s; } .nav__links { display: none; position: relative; padding: 0; width: 100%; padding: 0 10px 0 20px; margin: 0; .nav__item { display: inline; margin-left: 0; a { font-size: 18px; line-height: 18px; color: white; margin-left: 0; font-weight: 300; } .nav__logo { svg { height: 2.5em; vertical-align: bottom; fill: white !important; path { fill: white !important; } g { fill: white !important; } rect { fill: white !important; } } fill: white !important; } } } } } .ghost-btn { font-size: 20px; line-height: 20px; padding-left: 0; font-weight: 400; display: block; text-align: left; padding-left:0; //height: calc(100% / 7); animation: fadeInRight .5s ease forwards; pointer-events: none; } } } } } } @keyframes fadeInRight { 0% { opacity: 0; left: 20%; } 100% { opacity: 1; left: 0; } } /** * Scrolled navbar style */ .nav { padding-bottom: 70px; transition: all .2s ease-in; @media (max-width: 992px) { padding-bottom: 20px; } &.no-shadow { box-shadow: none !important; } &.scrolled { position: fixed; background: white; box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.09); .navbar-toggle:not(.active) { background-color:$nextcloud_blue; svg { filter: invert(100%); } } .logo:not(.menu-open) { background: url(../img/logo/logo_blue_sprite.png) 0 0 no-repeat; height: 100px; width: 140px; display: inline-block; zoom: 0.5; &.hoverPlay { background-position-x: 0; -webkit-animation: play 2s steps(33) forwards; -moz-animation: play 2s steps(33) forwards; -ms-animation: play 2s steps(33) forwards; -o-animation: play 2s steps(33) forwards; animation: play 2s steps(33) forwards; } &.stopedAnimation { background-position-x: -4620px; } } .nav__sections-wrapper { .nav__sections, .right-buttons:not(.active) { .nav__section .nav__label, .ghost-btn .nav__label, .ghost-btn .nav__label { color: $medium-dark; &:before { background-color: $medium-dark; } } } } } &.mobile { .nav__sections-wrapper { .nav__sections, .ghost-btn { .nav__section .nav__label { color: white; } } } } } /** *Changed default media querys for navigation in bootstrap */ @media (max-width: 1200px) { .navbar-header { float: none; } .navbar-left,.navbar-right { float: none !important; } .navbar-toggle { display: block; } .navbar-collapse { border-top: 1px solid transparent; box-shadow: inset 0 1px 0 rgba(255,255,255,0.1); } .navbar-fixed-top { top: 0; border-width: 0 0 1px; } .navbar-collapse.collapse { display: none!important; } .navbar-nav { float: none!important; margin-top: 7.5px; } .navbar-nav>li { float: none; } .navbar-nav>li>a { padding-top: 10px; padding-bottom: 10px; } .collapse.in{ display:block !important; } .navbar-nav .open .dropdown-menu { position: static; float: none; width: auto; margin-top: 0; background-color: transparent; border: 0; -webkit-box-shadow: none; box-shadow: none; } } @keyframes play { from { background-position-x: 0px; } to { background-position-x: -4620px; } }