www/src/layouts/partials/sort-dropdown.html

91 lines
2.1 KiB
HTML
Raw Normal View History

<style>
.sorting-container{
display:inline-block;
font-family: "pp-neue-machina", sans-serif;
background-color: #1a1a1a;
2022-10-24 23:54:47 +03:00
border: 1px solid #ffffff;
color: #fff;
2022-10-24 23:54:47 +03:00
text-align: center;
text-decoration: none;
text-transform: uppercase;
max-width: 240px;
width: 100%;
height: 60px;
min-height: 34px;
transition: 0.1s linear;
}
.dropdown {
width: 100%;
height: auto;
position: relative;
display: inline-block;
cursor: pointer;
}
.dropdown-content {
display: none;
position: absolute;
background-color: #1a1a1a;
width: 100%;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 1;
color: white;
list-style: none;
padding: 0px;
}
.dropdown-content li {
2022-10-24 14:40:19 +03:00
position: relative;
padding: 0px 10px;
height: 40px;
2022-10-24 14:40:19 +03:00
width: 100%;
line-height: 40px;
}
.dropdown-content li .sort-btn {
height: 100%;
width: calc(100% - 40px);
opacity: 0.6;
}
.dropdown-content li .sort-btn.active {
font-weight: bold;
opacity: 1;
}
2022-10-24 14:40:19 +03:00
.dropdown-content li .direction-arrows {
position: absolute;
right: 10px;
top: 0px;
}
.dropdown-content li:hover {
background: #00ffd0;
color: black;
}
.dropdown:hover .dropdown-content {
display: block;
}
.dropdown-title {
height: 60px;
line-height: 60px;
padding-left: 10px;
}
</style>
2022-10-24 23:54:47 +03:00
<section class="sorting-container">
<div class="dropdown">
<div class="dropdown-title">SORT ORDER</div>
<ul class="dropdown-content flex column">
2022-10-24 14:40:19 +03:00
<li><div id="dropdown-popularity-btn" class="sort-btn">POPULARITY</div> {{- partial "sort-direction.html" "popularity"}}</li>
<li><div id="dropdown-last_modified-btn" class="sort-btn">MOST RECENT</div> {{- partial "sort-direction.html" "last_modified"}}</li>
</ul>
</div>
</section>