added some sorting options to the filters menu, as well as an exit button for the menu. Still not really functional lol
This commit is contained in:
@@ -44,9 +44,11 @@
|
||||
</ul>
|
||||
</nav> -->
|
||||
|
||||
<button onclick="showFilters()">Filter</button>
|
||||
<button id="filterButton" onclick="showFilters()">Filter</button>
|
||||
|
||||
<div id="filter-box" style="display:none;">
|
||||
<div>
|
||||
<h2 class="subnav-Header">Filters</h2>
|
||||
<nav class="subnav">
|
||||
<ul class="subnav-links">
|
||||
<li><a href="#" class="active">All</a></li>
|
||||
@@ -56,13 +58,29 @@
|
||||
<li><a href="#">RRC</a></li>
|
||||
<li><a href="#">HHC</a></li>
|
||||
<li><a href="#">Recruit</a></li>
|
||||
<li><a href="#">Discharged</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
<div>
|
||||
<h2 class="subnav-Header">Sort</h2>
|
||||
<nav class="subnav">
|
||||
<ul class="subnav-links">
|
||||
<li><a href="#" class="active">None</a></li>
|
||||
<li><a href="#">Name</a></li>
|
||||
<li><a href="#">Rank</a></li>
|
||||
<li><a href="#">Join Date</a></li>
|
||||
<li><a href="#">LOA Until</a></li>
|
||||
<li><a href="#">Last Active</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
<button onclick="showFilters()" style="height: fit-content;">X</button>
|
||||
</div>
|
||||
<script> function showFilters() {
|
||||
var filterBox = document.getElementById("filter-box");
|
||||
if (filterBox.style.display === "none") {
|
||||
filterBox.style.display = "block";
|
||||
filterBox.style.display = "flex";
|
||||
} else {
|
||||
filterBox.style.display = "none";
|
||||
}
|
||||
|
||||
@@ -116,12 +116,20 @@ th {
|
||||
|
||||
.subnav {
|
||||
background-color: transparent;
|
||||
height: 40px;
|
||||
height: fit-content;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.subnav-Header {
|
||||
color: #333333;
|
||||
font-size: 20px;
|
||||
font-weight: bold;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.subnav-links {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -170,8 +178,10 @@ th {
|
||||
|
||||
#filter-box {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
position: absolute;
|
||||
top: 185px;
|
||||
height: auto;
|
||||
left: auto;
|
||||
right: 0;
|
||||
padding: 10px;
|
||||
@@ -180,3 +190,7 @@ th {
|
||||
box-shadow: 0 2px 6px rgba(0,0,0,0.3);
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
#filterButton {
|
||||
margin-right: 25px;
|
||||
}
|
||||
Reference in New Issue
Block a user