mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
I hope this time it's ok, the sidebar works as intended
This commit is contained in:
parent
27d33f79c6
commit
002d89934e
@ -8,6 +8,26 @@
|
||||
color: var(--base-text)
|
||||
}
|
||||
|
||||
nav.sidebar {
|
||||
position: fixed;
|
||||
}
|
||||
|
||||
|
||||
@media (min-width: 992px) {
|
||||
nav.sidebar {
|
||||
position: fixed;
|
||||
max-height: auto;
|
||||
}
|
||||
|
||||
.main-panel {
|
||||
margin-left: 270px;
|
||||
}
|
||||
|
||||
.sidebar-icon-only .main-panel {
|
||||
margin-left: 70px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.sidebar>.nav>.nav-item:not(.nav-profile)>.nav-link:before {
|
||||
content: none;
|
||||
|
@ -56,11 +56,9 @@
|
||||
if (isExtraLargeBreakpoint()) {
|
||||
let value = localStorage.getItem('crafty-sidebar-expanded') !== 'false';
|
||||
$('body').toggleClass('sidebar-icon-only', !value);
|
||||
$('body').toggleClass('sidebar-fixed', true);
|
||||
localStorage.setItem('crafty-sidebar-expanded', value);
|
||||
} else if (isLargeBreakpoint()) {
|
||||
$('body').toggleClass('sidebar-icon-only', true);
|
||||
$('body').toggleClass('sidebar-fixed', true);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user