2022-10-24 11:59:38 +03:00
|
|
|
<style>
|
|
|
|
.sorting-container{
|
2022-11-10 08:45:48 +03:00
|
|
|
display:none;
|
|
|
|
}
|
|
|
|
@media only screen and (min-width: 576px) {
|
|
|
|
.sorting-container{
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.sorting-container{
|
2022-10-24 11:59:38 +03:00
|
|
|
font-family: "pp-neue-machina", sans-serif;
|
|
|
|
background-color: #1a1a1a;
|
2022-10-24 23:54:47 +03:00
|
|
|
border: 1px solid #ffffff;
|
2022-10-24 11:59:38 +03:00
|
|
|
color: #fff;
|
2022-10-24 23:54:47 +03:00
|
|
|
text-align: center;
|
2022-10-24 11:59:38 +03:00
|
|
|
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;
|
2022-10-24 11:59:38 +03:00
|
|
|
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 11:59:38 +03:00
|
|
|
}
|
|
|
|
|
2022-10-24 14:40:19 +03:00
|
|
|
.dropdown-content li .direction-arrows {
|
|
|
|
position: absolute;
|
|
|
|
right: 10px;
|
|
|
|
top: 0px;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2022-10-24 11:59:38 +03:00
|
|
|
.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
|
|
|
|
2022-10-24 11:59:38 +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>
|
2022-10-24 11:59:38 +03:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</section>
|