Fixes sidebar
parent
ae7929b4e1
commit
22e502c90c
|
@ -120,3 +120,16 @@
|
||||||
.widget {
|
.widget {
|
||||||
border: 1px solid gray;
|
border: 1px solid gray;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sidebar-wrapper {
|
||||||
|
width: 250px; /* Default width of the sidebar */
|
||||||
|
transition: width 0.3s; /* Smooth transition for collapsing */
|
||||||
|
overflow-x: hidden; /* Hide horizontal scrollbar */
|
||||||
|
}
|
||||||
|
.sidebar-wrapper.collapsed {
|
||||||
|
width: 0; /* Collapsed width */
|
||||||
|
}
|
||||||
|
.sidebar-content {
|
||||||
|
width: 250px; /* Keep content width for centering */
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,10 @@
|
||||||
<!-- Menu -->
|
<!-- Menu -->
|
||||||
<div class="menu-container">
|
<div class="menu-container">
|
||||||
<ul class="menu-left">
|
<ul class="menu-left">
|
||||||
|
<button class="btn btn-primary mb-3" type="button" data-toggle="collapse" data-target="#sidebar" aria-expanded="false" aria-controls="sidebar">
|
||||||
|
sidebar
|
||||||
|
</button>
|
||||||
|
|
||||||
<li><a href="index.php">home</a></li>
|
<li><a href="index.php">home</a></li>
|
||||||
<?php if ( isset($_SESSION['username']) ) { ?>
|
<?php if ( isset($_SESSION['username']) ) { ?>
|
||||||
<li><a href="?page=config">config</a></li>
|
<li><a href="?page=config">config</a></li>
|
||||||
|
|
|
@ -1,11 +1,7 @@
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
<!-- Sidebar -->
|
<!-- Sidebar -->
|
||||||
<div class="col-md-3">
|
<div class="col-md-3 sidebar-wrapper collapse show" id="sidebar">
|
||||||
<button class="btn btn-primary mb-3" type="button" data-toggle="collapse" data-target="#sidebar" aria-expanded="false" aria-controls="sidebar">
|
|
||||||
sidebar
|
|
||||||
</button>
|
|
||||||
<div class="collapse show" id="sidebar">
|
|
||||||
<div class="card card-body bg-light">
|
<div class="card card-body bg-light">
|
||||||
<ul class="list-group">
|
<ul class="list-group">
|
||||||
<li class="list-group-item"><a href="#">stats</a></li>
|
<li class="list-group-item"><a href="#">stats</a></li>
|
||||||
|
@ -14,7 +10,6 @@
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<!-- /Sidebar -->
|
<!-- /Sidebar -->
|
||||||
|
|
||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
|
|
Loading…
Reference in New Issue