fix: made mobile sidebar a overlay
This commit is contained in:
parent
50b354f959
commit
6e84651c36
2 changed files with 19 additions and 1 deletions
|
|
@ -11,6 +11,6 @@
|
|||
<use href="#icon-arrow-right-to-line"></use></svg> {%= __("Collapse") %}</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="overlay" style="z-index: 1021;"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -306,11 +306,26 @@ body {
|
|||
|
||||
// expands when navbar-brand is clicked
|
||||
.body-sidebar-container.expanded {
|
||||
position: relative;
|
||||
.body-sidebar {
|
||||
padding: 8px 8px 10px 8px;
|
||||
width: 220px;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
top: 0;
|
||||
}
|
||||
.overlay {
|
||||
display: block;
|
||||
position: absolute;
|
||||
width: 100vw;
|
||||
height: 100%;
|
||||
z-index: 1021;
|
||||
left: 220px;
|
||||
overflow: auto;
|
||||
background-color: rgba(128, 128, 128, 0.5);
|
||||
}
|
||||
|
||||
// acts a overlay when in mobile view
|
||||
.body-sidebar-placeholder {
|
||||
display: flex;
|
||||
|
|
@ -408,6 +423,9 @@ body {
|
|||
box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.1);
|
||||
border-radius: 8px;
|
||||
}
|
||||
.overlay {
|
||||
display: none;
|
||||
}
|
||||
// form sidebar
|
||||
.form-sidebar {
|
||||
.sidebar-section {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue