Archived
1
0
This repository has been archived on 2020-12-10. You can view files and clone it, but cannot push or open issues or pull requests.
old/assets/css/header.css

446 lines
9.2 KiB
CSS
Raw Normal View History

2018-10-16 16:28:42 +00:00
.navbar {
display: grid;
2019-01-04 18:41:22 +00:00
width: 100%;
2018-10-16 16:28:42 +00:00
height: 60px;
background-color: #fff;
2019-01-04 18:41:22 +00:00
justify-content: normal;
grid-template-columns: 50px 240px auto 185px 50px 50px;
grid-template-areas: "menuButton logo center . secondAction firstAction";
2019-01-04 18:41:22 +00:00
grid-gap: 5px;
align-items: center;
2018-10-16 16:28:42 +00:00
}
2019-01-04 18:41:22 +00:00
.navbar.loggedIn {
grid-template-columns: 50px 240px auto 5px 50px 180px;
2018-10-16 16:28:42 +00:00
}
2019-01-04 18:41:22 +00:00
.navbar .navbar-logo-container {
display: block;
height: 100%;
grid-area: logo;
2019-01-04 18:41:22 +00:00
}
.navbar .navbar-logo-container .navbar-logo {
position: relative;
width: 240px;
2019-01-04 18:41:22 +00:00
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;
top: 50%;
2019-01-04 18:41:22 +00:00
left: 50%;
-moz-transform: translate(calc(-50% - 55px), -50%);
-ms-transform: translate(calc(-50% - 55px), -50%);
-o-transform: translate(calc(-50% - 55px), -50%);
-webkit-transform: translate(calc(-50% - 55px), -50%);
transform: translate(calc(-50% - 55px), -50%);
height: 40px;
2019-01-04 18:41:22 +00:00
}
.navbar .navbar-logo-container .navbar-logo-title {
position: absolute;
top: 50%;
left: 50%;
transform: translate(calc(-50% + 35px), -50%);
2019-01-04 18:41:22 +00:00
margin: 0;
color: #757575;
font-size: 22px;
font-weight: 400;
2019-01-04 18:41:22 +00:00
-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);
-webkit-transition: all .2s cubic-bezier(0, 0, 1, 1);
2019-01-04 18:41:22 +00:00
transition: all .2s cubic-bezier(0, 0, 1, 1);
text-transform: none;
}
.navbar .navbar-action {
height: auto;
margin: 0;
padding: 0;
font-size: 30px;
2019-01-04 18:41:22 +00:00
text-align: center;
}
.navbar .navbar-action:nth-child(4) {
grid-area: firstAction;
}
.navbar .navbar-action:nth-child(5) {
grid-area: secondAction;
}
.navbar .navbar-action-btn {
display: block;
margin: 0;
padding: 0;
color: #757575;
2019-01-04 18:41:22 +00:00
line-height: 1;
}
.navbar .navbar-action-btn:active,
.navbar .navbar-action-btn:focus {
color: #555555 !important;
2019-01-04 18:41:22 +00:00
}
.navbar .navbar-action-btn:hover {
color: #6d6d6d !important;
2019-01-04 18:41:22 +00:00
}
.navbar-action-btn:hover #login-icon .y {
transform: translate(0, 0);
2019-01-04 18:41:22 +00:00
-moz-transition: all .2s;
-ms-transition: all .2s;
-o-transition: all .2s;
-webkit-transition: all .2s;
2019-01-04 18:41:22 +00:00
transition: all .2s;
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 {
-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);
-webkit-transition: all .2s cubic-bezier(0, 0, 1, 1);
2019-01-04 18:41:22 +00:00
transition: all .2s cubic-bezier(0, 0, 1, 1);
}
.navbar-logo:hover .b {
-moz-transform: translateX(-100px);
-ms-transform: translateX(-100px);
-o-transform: translateX(-100px);
-webkit-transform: translateX(-100px);
2019-01-04 18:41:22 +00:00
transform: translateX(-100px);
}
.navbar-logo:hover .c {
-moz-transform: translateX(100px);
-ms-transform: translateX(100px);
-o-transform: translateX(100px);
-webkit-transform: translateX(100px);
2019-01-04 18:41:22 +00:00
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 {
transform: translate(calc(-50% + 45px), -50%);
2019-01-04 18:41:22 +00:00
}
.navbar-logo:hover .navbar-logo-svg {
transform: translate(calc(-50% - 55px), -50%);
2019-01-04 18:41:22 +00:00
}
#searchButton > i.fa {
transition: transform .5s;
transform-origin: 25% 25%;
2019-01-04 18:41:22 +00:00
}
#searchButton:hover i.fa {
-moz-transform: rotateZ(360deg);
-ms-transform: rotateZ(360deg);
-o-transform: rotateZ(360deg);
-webkit-transform: rotateZ(360deg);
2019-01-04 18:41:22 +00:00
transform: rotateZ(360deg);
}
.navbar .navbar-search {
z-index: 1;
padding-right: 40px;
grid-area: center;
2019-01-04 18:41:22 +00:00
}
.navbar .navbar-search .input-group {
border-radius: .25rem;
background: rgba(0, 0, 0, .04);
}
2019-01-04 18:41:22 +00:00
.navbar .navbar-search input.form-control {
border: none;
background: none;
2019-01-04 18:41:22 +00:00
box-shadow: none;
outline: none;
2019-01-04 18:41:22 +00:00
}
.navbar .navbar-search .input-group .btn {
padding: .375rem .25rem .375rem .75rem;
background: none;
color: #666;
}
2019-01-04 18:41:22 +00:00
#userMenuButton {
height: 48px;
padding: 4px 25px 4px 4px;
border-radius: 25px;
background: rgba(0, 0, 0, .04);
color: #444 !important;
font-size: 18px;
}
#userMenuButton:hover {
background: rgba(0, 0, 0, .08);
2019-01-04 18:41:22 +00:00
}
#userMenuButton img {
height: 100%;
}
@media screen and (max-width: 991px) {
.navbar {
grid-template-columns: 50px 50px 50px auto 50px 50px 50px;
}
#userMenuButton {
padding: 4px;
}
#userMenuButton::after {
content: none;
}
#userMenuButton text {
display: none;
}
}
2018-10-16 16:28:42 +00:00
.menu-icon span, .menu-icon:before, .menu-icon:after, .menu-icon span:before, .menu-icon span:after {
position: absolute;
top: 50%;
left: 0.255em;
display: block;
width: 0.45em;
height: 0.04em;
2018-10-16 16:28:42 +00:00
border-radius: 0;
background-color: #757575;
2018-10-16 16:28:42 +00:00
}
.menu-icon {
position: fixed;
top: 0;
left: 25px;
transform: scale(.8);
z-index: 1041;
display: inline-block;
2018-10-16 16:28:42 +00:00
width: 1em;
height: 1em;
padding: 0;
border: 0;
background-color: transparent;
2018-10-16 16:28:42 +00:00
outline: none;
font-size: 3.75rem;
cursor: pointer;
2018-10-16 16:28:42 +00:00
-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;
}
.menu-icon span {
margin-top: -0.025em;
}
.menu-icon:before {
margin-top: -0.275em;
content: "";
2018-10-16 16:28:42 +00:00
}
.menu-icon:after {
margin-top: 0.225em;
content: "";
2018-10-16 16:28:42 +00:00
}
.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 {
top: 0;
left: 0;
2018-10-16 16:28:42 +00:00
content: "";
-webkit-transition: 0.25s ease;
transition: 0.25s ease;
}
.menu-icon span:before {
-webkit-transform: translateY(-0.15em);
transform: translateY(-0.15em);
2018-10-16 16:28:42 +00:00
}
.menu-icon span:after {
-webkit-transform: translateY(0.15em);
transform: translateY(0.15em);
2018-10-16 16:28:42 +00:00
}
.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);
}
#notificationMenu {
width: 360px;
}
#notificationMenu .list-group {
overflow: auto;
max-height: 500px;
2018-10-16 16:28:42 +00:00
}
#notificationMenu a:not(.disabled) {
background-color: #2272ff1a;
color: #333 !important;
2018-10-16 16:28:42 +00:00
}
#notificationMenu a:hover,
#notificationMenu a:active,
#notificationMenu a:focus {
background-color: #2272ff;
color: #fff !important;
2018-10-16 16:28:42 +00:00
}
#logo-container {
top: 8px;
}
#logo-container, #logo-container * {
-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);
-webkit-transition: all .2s cubic-bezier(0, 0, 1, 1);
2018-10-16 16:28:42 +00:00
transition: all .2s cubic-bezier(0, 0, 1, 1);
}
.logo-container:hover .b {
-moz-transform: translateX(-100px);
-ms-transform: translateX(-100px);
-o-transform: translateX(-100px);
-webkit-transform: translateX(-100px);
2018-10-16 16:28:42 +00:00
transform: translateX(-100px);
}
.logo-container:hover .c {
-moz-transform: translateX(100px);
-ms-transform: translateX(100px);
-o-transform: translateX(100px);
-webkit-transform: translateX(100px);
2018-10-16 16:28:42 +00:00
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 {
position: absolute;
top: 0;
left: 50%;
transform: translateX(-50%);
width: 500px;
height: 60px;
2018-10-16 16:28:42 +00:00
}
#login-icon {
height: 30px;
}
.navbar-link svg, .navbar-link i {
display: block;
transition: color .5s;
}
.navbar-link span {
display: block;
color: #fff;
font-size: 12px;
2018-10-16 16:28:42 +00:00
text-align: center;
}
.navbar-link:hover span, .navbar-link:hover i {
color: #ddd;
}
.navbar-link .fa {
text-align: center;
}