first part of new theme integration

This commit is contained in:
2021-09-07 20:52:58 +02:00
parent 1c5350c8c6
commit 4ae9e36050
53 changed files with 4249 additions and 57 deletions

View File

@@ -0,0 +1,388 @@
//
// topbar.scss
//
.navbar-custom {
padding: 0 $grid-gutter-width;
background-color: $bg-topbar;
box-shadow: $box-shadow;
min-height: $topbar-height;
position: fixed;
left: $leftbar-width;
top: 0;
right: 0;
z-index: 1001;
.topbar-left {
background-color: $bg-topbar;
height: $topbar-height;
position: fixed;
z-index: 1;
width: $leftbar-width;
text-align: center;
top: 0;
left: 0;
.logo {
line-height: $topbar-height;
i {
display: none;
}
}
}
.topbar-menu {
position: relative;
z-index: 1;
li {
float: left;
max-height: $topbar-height;
.show {
&.nav-link {
color: $gray-700;
}
}
}
.nav-link {
padding: 0;
color: $gray-600;
min-width: 32px;
display: block;
text-align: center;
margin: 0 10px;
position: relative;
}
}
.app-search {
position: static;
overflow-y: hidden;
form {
padding: calc(#{$topbar-height - 38px} / 2) 5px calc(#{$topbar-height - 38px} / 2) 0;
overflow: hidden;
max-width: 320px;
}
}
}
.topbar-dropdown {
.nav-link {
line-height: $topbar-height;
}
}
/* Search */
.app-search {
.form-control {
border: none;
height: $input-height;
padding-left: 40px;
padding-right: 20px;
background-color: $bg-topbar-search;
box-shadow: none;
}
span.search-icon {
position: absolute;
z-index: 9;
font-size: 20px;
line-height: 38px;
left: 10px;
top: 0;
}
.input-group-text {
margin-left: 0;
z-index: 4;
}
}
/* Notification */
.notification-list {
margin-left: 0;
.noti-title {
background-color: transparent;
padding: 15px 20px;
}
.noti-icon {
font-size: 22px;
vertical-align: middle;
line-height: $topbar-height;
}
.noti-icon-badge {
display: inline-block;
position: absolute;
top: 22px;
right: 6px;
border-radius: 50%;
height: 7px;
width: 7px;
background-color: $danger;
}
.notify-item {
padding: 10px 20px;
.notify-icon {
float: left;
height: 36px;
width: 36px;
line-height: 36px;
text-align: center;
margin-right: 10px;
border-radius: 50%;
color: $white;
}
.notify-details {
margin-bottom: 0;
overflow: hidden;
margin-left: 45px;
text-overflow: ellipsis;
white-space: nowrap;
b {
font-weight: 500;
}
small {
display: block;
}
span {
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 13px;
}
}
.user-msg {
margin-left: 45px;
white-space: normal;
line-height: 16px;
}
}
.topbar-dropdown-menu {
.notify-item {
padding: 7px 20px;
}
}
}
.profile-dropdown {
min-width: 170px;
i,span {
vertical-align: middle;
}
}
.nav-user {
padding: calc(#{$topbar-height - 39px} / 2) 20px calc(#{$topbar-height - 39px} / 2) 57px !important;
text-align: left !important;
position: relative;
background-color: lighten($gray-100, 2.5%);
border: 1px solid $gray-100;
border-width: 0 1px;
min-height: $topbar-height;
.account-user-avatar {
position: absolute;
top: calc(#{$topbar-height - 32px} / 2);
left: 15px;
img {
height: 32px;
width: 32px;
}
}
.account-position {
display: block;
font-size: 12px;
margin-top: -3px;
}
.account-user-name {
display: block;
font-weight: $font-weight-semibold;
}
}
.button-menu-mobile {
border: none;
color: $dark;
height: $topbar-height;
line-height: $topbar-height;
width: 60px;
background-color: transparent;
font-size: 24px;
cursor: pointer;
float: left;
z-index: 1;
position: relative;
margin-left: -$grid-gutter-width;
&.disable-btn {
display: none;
}
@include media-breakpoint-down(md) {
margin: 0 !important;
}
}
[data-keep-enlarged="true"] {
.navbar-custom {
padding-left: 0;
}
.button-menu-mobile {
margin: 0;
&.disable-btn {
display: inline-block;
}
}
}
@media (max-width: 600px) {
.navbar-custom {
.topbar-menu {
position: initial;
}
.dropdown {
position: static;
.dropdown-menu {
left: 10px!important;
right: 10px!important;
}
}
}
}
@media (max-width: 1200px) {
.navbar-custom {
right: 0;
.app-search {
display: none;
}
}
}
@include media-breakpoint-down(lg) {
.nav-user {
padding: 17px 5px 17px 57px !important;
.account-position,
.account-user-name {
display: none;
}
}
}
@include media-breakpoint-down(md) {
.navbar-custom {
left: 0 !important;
padding: 0;
}
.button-menu-mobile {
&.disable-btn {
display: inline-block;
}
}
}
@media (max-width:375px) {
.navbar-custom {
.topbar-menu {
.nav-link {
margin: 0 6px;
}
}
&.topnav-navbar {
.container-fluid {
padding-right: 12px;
padding-left: 12px;
}
.navbar-toggle {
margin: 27px 3px
}
.button-menu-mobile {
width: auto;
}
}
}
}
// Scrollable Layout
@include media-breakpoint-up(lg) {
body[data-leftbar-compact-mode="scrollable"]:not([data-layout="topnav"]) {
.navbar-custom {
position: absolute;
}
}
}
// Topbar Dark
.topnav-navbar-dark {
background-color: $bg-topbar-dark;
.nav-user {
background-color: lighten($bg-topbar-dark,5%);
border: 1px solid lighten($bg-topbar-dark,7.5%);
}
.topbar-menu {
li {
.show {
&.nav-link {
color: $white !important;
}
}
}
}
.app-search {
.form-control {
background-color: $bg-topbar-dark-search;
color: $white;
}
span {
color: $gray-600;
}
}
.navbar-toggle {
span {
background-color: rgba($white, 0.8) !important;
}
}
}
body[data-layout-mode="boxed"] {
.navbar-custom {
position: relative;
left: 0 !important;
margin: -$topbar-height (-$grid-gutter-width / 2) 0;
}
&[data-layout="topnav"] {
.navbar-custom {
margin: 0;
}
}
}
// Locales dropdown
li#locales div a span {
padding-left: 20px;
}