mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-21 23:20:22 +00:00
Update .sb-nav* .sb-sidenav* .sb-topnav* classes
This commit is contained in:
parent
3f8dea4053
commit
4860b237a1
3 changed files with 20 additions and 3 deletions
|
@ -16,10 +16,18 @@ License: GNU General Public License v3.0
|
||||||
h4.mt-3 { margin-left: 0.5rem; }
|
h4.mt-3 { margin-left: 0.5rem; }
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar.toggled .nav-item .nav-link {
|
.sb-sidenav .sb-sidenav-menu .nav .nav-link {
|
||||||
padding: 0.65rem 1rem;
|
padding-top: 0.6rem;
|
||||||
|
padding-bottom: 0.6rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sb-sidenav-light .sb-sidenav-menu .nav-link {
|
||||||
|
color: #495057;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sb-topnav.navbar-light #sidebarToggle {
|
||||||
|
color: #495057;
|
||||||
|
}
|
||||||
.sidebar-brand-text {
|
.sidebar-brand-text {
|
||||||
text-transform: none;
|
text-transform: none;
|
||||||
color: #212529;
|
color: #212529;
|
||||||
|
|
|
@ -15,12 +15,21 @@ License: GNU General Public License v3.0
|
||||||
|
|
||||||
body {
|
body {
|
||||||
color: #212529;
|
color: #212529;
|
||||||
|
background-color: #f8f9fc;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sb-sidenav-light .sb-sidenav-menu .nav-link:hover {
|
||||||
|
color: <?php echo $color; ?>;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar {
|
.sidebar {
|
||||||
background-color: #f8f9fc;
|
background-color: #f8f9fc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sb-nav-link-icon.active {
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
.sidebar .nav-item.active .nav-link {
|
.sidebar .nav-item.active .nav-link {
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
|
|
@ -858,7 +858,7 @@ $(window).on("load resize",function(e) {
|
||||||
// Adds active class to current nav-item
|
// Adds active class to current nav-item
|
||||||
$(window).bind("load", function() {
|
$(window).bind("load", function() {
|
||||||
var url = window.location;
|
var url = window.location;
|
||||||
$('ul.navbar-nav a').filter(function() {
|
$('.sb-nav-link-icon a').filter(function() {
|
||||||
return this.href == url;
|
return this.href == url;
|
||||||
}).parent().addClass('active');
|
}).parent().addClass('active');
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue