Files
MermsPanelReactJS/src/css/partials/_header.scss
T
2025-07-22 20:03:27 +01:00

912 lines
26 KiB
SCSS

@keyframes blink {
0% {
-moz-transform: scale(0);
opacity: 0.0;
}
25% {
-moz-transform: scale(0.1);
opacity: 0.1;
}
50% {
-moz-transform: scale(0.5);
opacity: 0.3;
}
75% {
-moz-transform: scale(0.8);
opacity: 0.5;
}
100% {
-moz-transform: scale(1);
opacity: 0.0;
}
}
@-moz-keyframes blink {
0% {
-moz-transform: scale(0);
opacity: 0.0;
}
25% {
-moz-transform: scale(0.1);
opacity: 0.1;
}
50% {
-moz-transform: scale(0.5);
opacity: 0.3;
}
75% {
-moz-transform: scale(0.8);
opacity: 0.5;
}
100% {
-moz-transform: scale(1);
opacity: 0.0;
}
}
@-webkit-keyframes blink {
0% {
-webkit-transform: scale(0);
opacity: 0.0;
}
25% {
-webkit-transform: scale(0.1);
opacity: 0.1;
}
50% {
-webkit-transform: scale(0.5);
opacity: 0.3;
}
75% {
-webkit-transform: scale(0.8);
opacity: 0.5;
}
100% {
-webkit-transform: scale(1);
opacity: 0.0;
}
}
.top-bar {
position: fixed;
top:0;
left:0;
z-index: 1051;
width:100%;
.navbar {
padding: 0;
height: 60px;
@include mobile-landscape {
height: auto;
}
.mobile-toggle {
position: absolute;
color: $white;
display: none;
padding: 20px 30px;
top: 0;
left: 0;
font-size: 1.25rem;
cursor: pointer;
@include mobile-landscape {
display: block;
position: absolute;
right: 0px;
top: 0;
z-index: 99;
width: 78px;
height: 60px;
padding: 0;
font-size: 17px;
color:$sidebar-text;
border: 0;
line-height: 60px;
}
@include mobile-portrait-sm {
display: block;
position: absolute;
right: 0px;
top: 0;
z-index: 99;
width: 78px;
height: 60px;
padding: 0;
font-size: 17px;
color:$sidebar-text;
border: 0;
line-height: 60px;
}
@include mobile-portrait-xs {
display: block;
position: absolute;
right: 0px;
top: 0;
z-index: 99;
width: 78px;
height: 60px;
padding: 0;
font-size: 17px;
color:$sidebar-text;
border: 0;
line-height: 60px;
}
}
.navbar-header {
background: $sidebar-dark;
width: 240px;
-webkit-flex-shrink: 0;
-ms-flex-negative: 0;
flex-shrink: 0;
height: 60px;
text-align: center;
overflow: hidden;
transition: all 0.3s ease-out;
position: relative;
z-index: 99;
padding-left: 1.6rem;
.logo-desktop {
width:130px;
height:auto;
visibility: visible;
opacity: 1;
position: relative;
z-index: 0;
transition: all ease-in-out 0.2s;
}
.logo-mobile {
visibility: hidden;
opacity: 0;
position: absolute;
width:30px;
height:auto;
transition: all ease-in-out 0.2s;
}
@include mobile-landscape {
width: 100%;
text-align: center;
padding:0;
height:60px;
justify-content: center;
}
@include mobile-portrait-sm {
width: 100%;
text-align: center;
padding:0;
height:60px;
justify-content: center;
}
@include mobile-portrait-xs {
width: 100%;
text-align: center;
padding:0;
height:60px;
justify-content: center;
}
.navbar-brand {
font-weight: $font-bold;
color: $white;
margin:0;
}
.nav-link {
padding-left: 0;
padding-right: 0;
}
}
.navbar-toggler {
&:focus {
outline: 0;
}
@include mobile-landscape {
position: absolute;
right: 0px;
top: 0;
color: $white;
z-index: 99;
width:78px;
height:60px;
padding:0;
font-size:17px;
color:$sidebar-text;
border:0;
line-height: 60px;
}
@include mobile-portrait-sm {
position: absolute;
right: 0px;
top: 0;
color: $white;
z-index: 99;
width:78px;
height:60px;
padding:0;
font-size:17px;
color:$sidebar-text;
border:0;
line-height: 60px;
}
@include mobile-portrait-xs {
position: absolute;
right: 0px;
top: 0;
color: $white;
z-index: 99;
width:78px;
height:60px;
padding:0;
font-size:17px;
color:$sidebar-text;
border:0;
line-height: 60px;
}
}
.nav-link {
color: $sidebar-text;
padding: 1.4rem 1rem 1.4rem 1rem;
font-size:14px;
&:first-child {
padding-left:0;
padding-right:2rem;
}
&:hover {
color: $primary;
}
@include mobile-landscape {
padding: 1.3rem 0.5rem;
}
@include mobile-portrait-sm {
font-size: $font-xs;
}
}
.nav-left {
margin-left:2.1rem;
@include mobile-landscape {
display: none;
}
@include mobile-portrait-sm {
display: none;
}
@include mobile-portrait-xs {
display: none;
}
.nav-item.dropdown{
.dropdown-menu{
a {
padding:0.7rem 1.5rem 0.7rem 1.5rem;
font-size: 1rem;
line-height: 18px;
}
}
}
.dropdown-menu{
left:0;
right: inherit;
a{
padding: 0.6rem 0rem;
&.dropdown-item {
&:hover {
background-color: transparent;
color: $primary;
}
}
}
&.mega-menu {
min-width: calc(100% - 60px);
overflow:hidden;
margin-left: 30px;
margin-right: 30px;
left: 0;
padding: 0px;
ul {
padding: 0;
margin: 0 -0.5rem;
li {
padding: 0.3rem 0.5rem;
}
}
.arrow-triangle {
left: 85px;
right: inherit;
}
.chart-wrap {
margin-right:-5px;
margin-bottom:-5px;
.apexchart-wrapper {
position: relative;
margin-top: -163px;
}
}
}
}
}
.nav-right {
margin-right:1.7rem;
@include mobile-landscape {
margin:0 !important;
justify-content: end;
padding:0 30px;
width: 100%;;
}
@include mobile-portrait-sm {
margin:0 !important;
justify-content: end;
padding:0 30px;
width: 100%;;
}
@include mobile-portrait-xs {
margin:0 !important;
justify-content: end;
padding:0 30px;
width: 100%;;
}
li {
a {
&::after {
border: none;
}
}
}
.nav-item {
width:50px;
text-align: center;
@include mobile-portrait-sm {
position: inherit;
}
@include mobile-portrait-xs {
position: inherit;
}
.nav-link {
padding: 1.4rem 0rem;
font-size:17px;
}
&.dropdown{
.dropdown-toggle{
&::after {
margin:0;
}
}
}
&.user-profile {
width: 50px;
.nav-link{
padding: 0.9em 0rem;
position: relative;
}
a{
padding:0.6rem 1rem;
img{
width:36px;
height:36px;
border-radius:30px;
}
.user-status {
width:8px;
height:8px;
border-radius:50%;
display:block;
position:absolute;
right:7px;
bottom:inherit;
top: 14px;
}
}
.dropdown-menu{
width: 23rem;
@include mobile-landscape {
width: 100%;
right: 0;
left:inherit;
}
@include mobile-portrait-sm {
width: 100%;
right: 0;
left:inherit;
}
@include mobile-portrait-xs {
width: 100%;
right: 0;
left:inherit;
}
a.dropdown-item {
padding:0.7rem 0rem;
font-size: 1rem;
line-height: 18px;
&:focus, &:hover {
background-color: transparent;
color: $primary;
}
i {
font-size: 16px;
width: 30px;
}
}
}
}
}
.dropdown-menu{
right:6px;
left: inherit;
&:after {
content: '';
position: absolute;
}
&.extended {
min-width: 21.43rem;
ul{
padding: 0;
li{
list-style-type: none;
ul{
padding: 0;
}
}
}
.dropdown-header, .dropdown-footer {
color: $secondary;
text-align: center;
padding: .8rem;
font-size: $font-base;
font-weight: $font-regular;
border-top:1px solid $border-color;
}
.dropdown-header {
font-weight: $font-medium;
a{
&:hover {
color: $dark;
}
&.btn-inverse-light {
@include hex-rgba($light-gray, 0.3);
color: $white;
&:hover {
border-color: transparent;
}
}
}
}
.dropdown-footer{
a {
color: $secondary;
text-decoration: none;
&:hover {
color: $primary;
}
&.btn{
&:hover {
color: $dark;
}
}
}
}
.dropdown-body {
max-height: 240px;
overflow-y: auto;
li{
a {
padding: .8rem;
text-decoration: none;
display: block;
&:hover {
background: $light-gray;
color: $primary;
}
}
}
.notification{
.notify-icon {
width: 40px;
height: 40px;
line-height: 40px;
text-align: center;
border-radius: 50%;
background: $light-gray;
margin-right: 20px;
color: $white;
}
}
.notify-message {
p {
margin: 0;
font-weight: $font-regular;
color: $dark-gray;
line-height: 1rem;
}
small {
color: $muted;
}
}
}
}
}
}
.sidebar-toggle {
font-size:17px;
padding: 1.2rem 1rem 1.2rem 1rem;
@include mobile-landscape {
position: absolute;
left:0;
top:0;
width:75px;
height:60px;
padding:0 !important;
line-height: 60px;
}
@include mobile-portrait-sm {
position: absolute;
left:0;
top:0;
width:75px;
height:60px;
padding:0 !important;
line-height: 60px;
}
@include mobile-portrait-xs {
position: absolute;
left:0;
top:0;
width:75px;
height:60px;
padding:0 !important;
line-height: 60px;
}
}
.nav-left, .nav-right {
.dropdown-menu{
background: $white;
border: none;
@include box-shadow(0px, 1px, 20px, rgba(115, 105, 215, 0.25));
padding: 0;
border-radius: 0 0 4px 4px;
margin-top: 1rem;
visibility: hidden;
display: block;
opacity: 0;
transition: all 0.3s ease-in-out;
@include mobile-landscape {
width: 100%;
position: absolute;
margin: 0 !important;
right: 0;
left: 0px;
}
@include mobile-portrait-sm {
width: 100%;
position: absolute;
margin: 0 !important;
right: 0;
left: 0px;
}
@include mobile-portrait-xs {
width: 100%;
position: absolute;
margin: 0 !important;
right: 0;
left: 0px;
}
}
.show{
margin-top: 0!important;
visibility: visible!important;
opacity: 1!important;
}
// .show + .dropdown-menu{
// margin-top: 0;
// visibility: visible;
// opacity: 1;
// }
// .show {
// .dropdown-menu{
// margin-top: 0;
// visibility: visible;
// opacity: 1;
// }
// }
}
.nav-item.dropdown, .nav-item.dropup {
@include mobile-landscape {
position: static;
}
}
}
.navigation {
width: 100%;
position: relative;
background:$white;
@include box-shadow(0px, 0px, 20px, rgba(115, 105, 215, 0.15));
height: 60px;
.navbar-nav {
ms-flex-direction: row;
flex-direction: row;
}
}
.search-wrapper {
position: absolute;
top: 0;
left: 0;
background: $white;
width: 100%;
height: 100%;
z-index: 99;
display: none;
.close-btn {
position: absolute;
right: 20px;
top: 15px;
cursor: pointer;
z-index: 2;
i {
font-size: $font-md;
line-height:$line-lg;
color: $muted;
}
}
.search-content {
position: relative;
width: 100%;
.magnifier {
color: $muted;
position: absolute;
top:20px;
left:20px;
font-size: $font-md;
line-height: $line-md;
}
.form-control {
height: 60px;
border: 0;
font-size: $font-md;
line-height: $line-md;
background: transparent;
padding-left: 60px;
padding-right: 60px;
color: $muted;
}
}
}
}
.sidebar-mini {
.top-bar {
.navbar {
.navbar-header {
width: $sidebar-mini;
padding-left: 0;
justify-content: center;
@include mobile-landscape {
width:100%;
}
@include mobile-portrait-sm {
width:100%;
}
@include mobile-portrait-xs {
width:100%;
}
.logo-desktop {
visibility: hidden;
opacity: 0;
z-index: -1;
position: absolute;
}
.logo-mobile {
visibility: visible;
opacity: 1;
position: relative;
}
&.expand {
width:240px;
.logo-desktop {
width:130px;
height:auto;
visibility: visible;
opacity: 1;
position: relative;
z-index: 0;
}
.logo-mobile {
visibility: hidden;
opacity: 0;
position: absolute;
width:30px;
height:auto;
}
@include mobile-landscape {
width:100%;
.logo-desktop {
width:130px;
height:auto;
visibility: hidden;
opacity: 0;
position: absolute;
z-index: -1;
}
.logo-mobile {
visibility: visible;
opacity: 1;
position: relative;
width:30px;
height:auto;
}
}
@include mobile-portrait-sm {
width:100%;
.logo-desktop {
width:130px;
height:auto;
visibility: hidden;
opacity: 0;
position: absolute;
z-index: -1;
}
.logo-mobile {
visibility: visible;
opacity: 1;
position: relative;
width:30px;
height:auto;
}
}
@include mobile-portrait-xs {
width:100%;
.logo-desktop {
width:130px;
height:auto;
visibility: hidden;
opacity: 0;
position: absolute;
z-index: -1;
}
.logo-mobile {
visibility: visible;
opacity: 1;
position: relative;
width:30px;
height:auto;
}
}
}
}
}
}
}
.navbar-toggler {
position: absolute;
top: 0;
right: 0;
padding: 23px 30px;
color: #fff;
}
.dot {
background-color: #8E54E9;
border-radius: 10px;
margin-right: 6px;
width: 10px;
height: 10px;
display: inline-block;
}
.notify {
position: relative;
top: 7px;
right: -7px;
.blink {
position: absolute;
top: -20px;
right: -4px;
height: 25px;
width: 25px;
z-index: 10;
border: 5px solid $danger;
border-radius: 70px;
animation: blink 1s ease-out;
animation-iteration-count: infinite;
-moz-animation: blink 1s ease-out;
-moz-animation-iteration-count: infinite;
-o-animation: blink 1s ease-out;
-o-animation-iteration-count: infinite;
-webkit-animation: blink 1s ease-out;
-webkit-animation-iteration-count: infinite;
}
.dot {
width: 5px;
height: 5px;
-webkit-border-radius: 30px;
-moz-border-radius: 30px;
border-radius: 30px;
background-color: $danger;
position: absolute;
right: 0px;
top: -10px;
}
}
// .address-location {
// height:280px !important;
// }
.custom-dropdown.dropdown-menu {
padding: 10px 0;
min-width:15rem;
border:none;
box-shadow: 0px 0px 20px rgba(115, 105, 215, 0.15);
a.dropdown-item, a{
padding:0.7rem 1.5rem 0.7rem 0rem;
font-size: 13px;
line-height: 18px;
color: $muted;
}
a{
i {
padding-right: 1.2rem !important;
width: 2rem;
display: inline-block;
}
}
.dropdown-title {
padding: 0.5rem 1rem 1rem 1.5rem;
border-bottom: 1px solid #ebedf2;
}
a.dropdown-item {
&:focus, &:hover {
background-color: transparent;
color: $primary;
}
&:first-child {
padding-top: 0 !important;
}
&:last-child {
padding-bottom: 0 !important;
}
}
&.extended {
.dropdown-body {
li {
a{
&:hover {
background-color: transparent;
color: $primary;
}
}
}
}
}
}
.top-bar-fixed {
.top-bar {
position:fixed;
top:0;
left:0;
width:100%;
}
}
.autocomplete-suggestions {
height: 400px;
margin-top:0 !important;
border-radius:0 !important;
.autocomplete-suggestion{
&:hover {
background: $light-gray;
}
}
}
.navbar-collapse.show {
position: relative;
z-index: 99;
}