.navbar { width: 100%; height: 60px; justify-content: normal; display: grid; grid-template-columns: 50px 50px auto 50px 50px; grid-template-areas: "menuButton . center firstAction secondAction"; grid-gap: 5px; align-items: center; } .navbar.loggedIn { grid-template-columns: 180px 50px 50px auto 50px 50px 180px; grid-template-areas: "menuButton . . center firstAction secondAction thirdAction"; } .navbar .navbar-logo-container { grid-area: center; display: block; height: 100%; } .navbar .navbar-logo-container .navbar-logo { position: relative; min-width: 240px; width: 50%; height: 100%; margin: 0 auto; transition: opacity .25s; } .navbar.search-open .navbar-logo-container .navbar-logo { opacity: 0; } .navbar .navbar-logo-container .navbar-logo-svg { position: absolute; left: 50%; -webkit-transform: translateX(-50%); -moz-transform: translateX(-50%); -ms-transform: translateX(-50%); -o-transform: translateX(-50%); transform: translateX(-50%); height: 45px; } .navbar .navbar-logo-container .navbar-logo-title { position: absolute; top: 50%; left: 50%; height: 50%; transform: translate(calc(-50% + 100px), -50%); margin: 0; opacity: 0; visibility: hidden; -webkit-transition: all .2s cubic-bezier(0, 0, 1, 1); -moz-transition: all .2s cubic-bezier(0, 0, 1, 1); -ms-transition: all .2s cubic-bezier(0, 0, 1, 1); -o-transition: all .2s cubic-bezier(0, 0, 1, 1); transition: all .2s cubic-bezier(0, 0, 1, 1); font-size: 24px; text-transform: none; color: #fff; } .navbar .navbar-action { height: auto; font-size: 30px; margin: 0; padding: 0; text-align: center; } .navbar .navbar-action:nth-child(4) { grid-area: firstAction; } .navbar .navbar-action:nth-child(5) { grid-area: secondAction; } .navbar .navbar-action:nth-child(6) { grid-area: thirdAction; } .navbar .navbar-action-btn { display: block; margin: 0; padding: 0; line-height: 1; color: #fff; } .navbar .navbar-action-btn:active, .navbar .navbar-action-btn:focus { color: #fff !important; } .navbar .navbar-action-btn:hover { color: #ddd !important; } .navbar-action-btn #login-icon .z { fill: #fff; } .navbar-action-btn:hover #logo-icon .z { fill: #ddd; } .navbar-action-btn:hover #login-icon .y { -webkit-transition: all .2s; -moz-transition: all .2s; -ms-transition: all .2s; -o-transition: all .2s; transition: all .2s; transform: translate(0, 0); animation: arrow-pointing 1.5s infinite; } @keyframes arrow-pointing { 50% { -webkit-transform: translate(-140px, 0); -moz-transform: translate(-140px, 0); -ms-transform: translate(-140px, 0); -o-transform: translate(-140px, 0); transform: translate(-140px, 0); } } /* * Logo animation */ .navbar-logo svg, .navbar-logo svg .a { -webkit-transition: all .2s cubic-bezier(0, 0, 1, 1); -moz-transition: all .2s cubic-bezier(0, 0, 1, 1); -ms-transition: all .2s cubic-bezier(0, 0, 1, 1); -o-transition: all .2s cubic-bezier(0, 0, 1, 1); transition: all .2s cubic-bezier(0, 0, 1, 1); } .navbar-logo:hover .b { -webkit-transform: translateX(-100px); -moz-transform: translateX(-100px); -ms-transform: translateX(-100px); -o-transform: translateX(-100px); transform: translateX(-100px); } .navbar-logo:hover .c { -webkit-transform: translateX(100px); -moz-transform: translateX(100px); -ms-transform: translateX(100px); -o-transform: translateX(100px); transform: translateX(100px); } .navbar-logo:hover .d { animation: bouncing 3s infinite; } @keyframes bouncing { 14% { transform: translate(90px, 10px); } 28% { transform: translate(-45px, 50px); } 42% { transform: translate(-22px, -76px); } 56% { transform: translate(96px, -29px); } 70% { transform: translate(-63px, 34px); } 84% { transform: translate(-40px, -56px); } } .navbar-logo:hover .navbar-logo-title { visibility: visible; opacity: 1; transform: translate(calc(-50% + 55px), -50%); } .navbar-logo:hover .navbar-logo-svg { transform: translateX(calc(-50% - 55px)); } #searchButton > i.fa { transform-origin: 25% 25%; transition: transform .5s; } #searchButton:hover i.fa { -webkit-transform: rotateZ(360deg); -moz-transform: rotateZ(360deg); -ms-transform: rotateZ(360deg); -o-transform: rotateZ(360deg); transform: rotateZ(360deg); } .navbar .navbar-search { pointer-events: none; grid-area: center; z-index: 1; } .navbar .navbar-search input.form-control { width: 0; border: none; outline: none; box-shadow: none; background: none; transition: all .25s; opacity: 0; float: right; } .navbar.search-open .navbar-search { pointer-events: all; } .navbar.search-open .navbar-search input.form-control { width: 100%; background: #fff; opacity: 1; } #userMenuButton { height: 48px; font-size: 18px; background: white; color: #444 !important; border-radius: 25px; padding: 4px 25px 4px 4px; } #userMenuButton img { height: 100%; } @media screen and (max-width: 991px) { .navbar { grid-template-columns: 50px 50px 50px auto 50px 50px 50px; } /*.navbar-content {*/ /*transform: scale(.75) translateX(25px);*/ /*margin-top: -8px;*/ /*}*/ #userMenuButton { padding: 4px; } #userMenuButton::after { content: none; } #userMenuButton text { display: none; } } /*.navbar {*/ /*height: 60px;*/ /*}*/ /*.navbar-content {*/ /*margin-left: auto;*/ /*margin-top: 17px;*/ /*}*/ .menu-icon span, .menu-icon:before, .menu-icon:after, .menu-icon span:before, .menu-icon span:after { display: block; position: absolute; top: 50%; left: 0.125em; background-color: #fff; width: 0.75em; height: 0.05em; border-radius: 0; } .menu-icon { font-size: 3.75rem; width: 1em; height: 1em; display: inline-block; background-color: transparent; border: 0; padding: 0; outline: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-touch-callout: none; -ms-touch-action: manipulation; touch-action: manipulation; cursor: pointer; transform: scale(.8); position: fixed; left: 25px; top: 0; z-index: 1041; } .menu-icon span { margin-top: -0.025em; } .menu-icon:before { content: ""; margin-top: -0.275em; } .menu-icon:after { content: ""; margin-top: 0.225em; } .menu-icon:before, .menu-icon:after { display: none; } .menu-icon span { -webkit-transition: 0.25s ease; transition: 0.25s ease; } .menu-icon span:before, .menu-icon span:after { content: ""; -webkit-transition: 0.25s ease; transition: 0.25s ease; top: 0; left: 0; } .menu-icon span:before { -webkit-transform: translateY(-0.25em); transform: translateY(-0.25em); } .menu-icon span:after { -webkit-transform: translateY(0.25em); transform: translateY(0.25em); } .menu-icon.is-open span, .menu-icon.is-open:before, .menu-icon.is-open:after, .menu-icon.is-open span:before, .menu-icon.is-open span:after { background-color: #222; } .menu-icon.is-open span { -webkit-transform: rotate(45deg); transform: rotate(45deg); } .menu-icon.is-open span:before, .menu-icon.is-open span:after { -webkit-transform: rotate(90deg); transform: rotate(90deg); } /* Navbar brand svg */ /*.navbar-brand {*/ /*padding: 7px;*/ /*transition: padding 0.3s;*/ /*}*/ /*.navbar-brand svg {*/ /*position: absolute;*/ /*left: 50%;*/ /*transform: translateX(-50%);*/ /*height: 45px;*/ /*}*/ /*.navbar-content {*/ /*height: 60px;*/ /*margin-top: 0;*/ /*}*/ /*.navbar-content ul {*/ /*display: grid;*/ /*grid-template-columns: 1fr 2fr auto;*/ /*align-items: center;*/ /*grid-gap: 10px;*/ /*list-style: none;*/ /*cursor: default;*/ /*height: 60px;*/ /*margin: 0;*/ /*}*/ /*.navbar-content ul li {*/ /*display: block;*/ /*height: auto;*/ /*font-size: 30px;*/ /*}*/ /*.navbar-content ul li a.navbar-link {*/ /*display: block;*/ /*height: auto;*/ /*color: #fff !important;*/ /*}*/ /*.navbar-content ul li #notificationMenuButton {*/ /*height: 30px;*/ /*}*/ /*.navbar-content ul li #notificationMenuButton .fa {*/ /*display: block;*/ /*margin: 0 auto;*/ /*}*/ /*.navbar-content ul li:hover a.navbar-link,*/ /*.navbar-content ul li:active a.navbar-link,*/ /*.navbar-content ul li:focus a.navbar-link {*/ /*color: #ddd !important;*/ /*}*/ /*.navbar-content ul li .badge {*/ /*position: absolute;*/ /*top: 0;*/ /*right: 0;*/ /*font-size: 14px;*/ /*transform: translate(25%, -50%);*/ /*}*/ /*.navbar-content ul li .badge:empty {*/ /*opacity: 0;*/ /*}*/ #notificationMenu { width: 360px; } #notificationMenu .list-group { max-height: 500px; overflow: auto; } #notificationMenu a:not(.disabled) { color: #333 !important; background-color: #2272ff1a; } #notificationMenu a:hover, #notificationMenu a:active, #notificationMenu a:focus { color: #fff !important; background-color: #2272ff; } #logo-container { top: 8px; } #logo-container, #logo-container * { -webkit-transition: all .2s cubic-bezier(0, 0, 1, 1); -moz-transition: all .2s cubic-bezier(0, 0, 1, 1); -ms-transition: all .2s cubic-bezier(0, 0, 1, 1); -o-transition: all .2s cubic-bezier(0, 0, 1, 1); transition: all .2s cubic-bezier(0, 0, 1, 1); } .logo-container:hover .b { -webkit-transform: translateX(-100px); -moz-transform: translateX(-100px); -ms-transform: translateX(-100px); -o-transform: translateX(-100px); transform: translateX(-100px); } .logo-container:hover .c { -webkit-transform: translateX(100px); -moz-transform: translateX(100px); -ms-transform: translateX(100px); -o-transform: translateX(100px); transform: translateX(100px); } .logo-container:hover .d { animation: bouncing 3s infinite; } @keyframes bouncing { 14% { transform: translate(90px, 10px); } 28% { transform: translate(-45px, 50px); } 42% { transform: translate(-22px, -76px); } 56% { transform: translate(96px, -29px); } 70% { transform: translate(-63px, 34px); } 84% { transform: translate(-40px, -56px); } } .logo-container { width: 500px; height: 60px; position: absolute; top: 0; left: 50%; transform: translateX(-50%); } #logo-text { position: absolute; left: 50%; top: 18px; transform: translateX(calc(-50% + 100px)); margin: 0; opacity: 0; visibility: hidden; -webkit-transition: all .2s cubic-bezier(0, 0, 1, 1); -moz-transition: all .2s cubic-bezier(0, 0, 1, 1); -ms-transition: all .2s cubic-bezier(0, 0, 1, 1); -o-transition: all .2s cubic-bezier(0, 0, 1, 1); transition: all .2s cubic-bezier(0, 0, 1, 1); font-size: 24px; text-transform: none; color: #fff; } .logo-container:hover #logo-text { visibility: visible; opacity: 1; transform: translateX(calc(-50% + 55px)); } .logo-container:hover #logo-container { transform: translateX(calc(-50% - 55px)); } #login-icon { height: 30px; } .navbar-link svg, .navbar-link i { display: block; transition: color .5s; } .navbar-link span { font-size: 12px; color: #fff; display: block; text-align: center; } .navbar-link:hover span, .navbar-link:hover i { color: #ddd; } .navbar-link .fa { text-align: center; }