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

344 lines
6.7 KiB
CSS

.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 {
list-style: none;
cursor: default;
height: 60px;
margin: 0;
}
.navbar-content ul li {
display: inline-block;
font-size: 30px;
margin: 0 10px;
height: 60px;
vertical-align: top;
}
.navbar-content ul li a.navbar-link {
display: block;
height: 48px;
margin: 6px 0;
color: #fff !important;
}
.navbar-content ul li #notificationMenuButton {
height: 30px;
margin: 9px -14px 9px 0;
}
.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 {
display: inline-block;
font-size: 14px;
transform: translate(-50%, -75%);
}
.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;
}
#userMenuButton {
font-size: 18px;
background: white;
color: #444 !important;
border-radius: 25px;
vertical-align: middle;
padding: 4px 25px 5px 0;
}
#userMenuButton img {
height: 100%;
margin-left: 5px;
}
@media screen and (max-width: 991px) {
.navbar-content {
transform: scale(.75) translateX(25px);
margin-top: -8px;
}
}
#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;
}
#login-icon .z {
fill: #fff;
}
.navbar-link:hover #logo-icon .z {
fill: #ddd;
}
.navbar-link: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);
}
}
.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;
}