Complete main page sort hover
This commit is contained in:
parent
0a80242fb1
commit
9b0c09c8c6
|
@ -13,16 +13,35 @@ export default {
|
|||
<div class="nav-article">
|
||||
<!-- 排序区域容器 -->
|
||||
<div class="nav-article-sort-container">
|
||||
<div class="sort-container-title">
|
||||
<span>筛选</span>
|
||||
<Icon icon="bi:sort-down" />
|
||||
<span>筛选</span>
|
||||
<Icon icon="bi:sort-down" />
|
||||
<!-- 排序的二级菜单 -->
|
||||
<div class="sort-container">
|
||||
<div class="sort-submenu">
|
||||
<div>
|
||||
<Icon class="icon-item" icon="svg-spinners:clock" />按照时间排序
|
||||
</div>
|
||||
<div>
|
||||
<Icon
|
||||
class="icon-item"
|
||||
icon="ic:outline-remove-red-eye"
|
||||
/>按浏览数排序
|
||||
</div>
|
||||
<div>
|
||||
<Icon
|
||||
class="icon-item"
|
||||
icon="line-md:thumbs-up-twotone"
|
||||
/>按点赞数排序
|
||||
</div>
|
||||
<div>
|
||||
<Icon
|
||||
class="icon-item"
|
||||
icon="fa-regular:comment-dots"
|
||||
/>按评论数排序
|
||||
</div>
|
||||
<div><Icon class="icon-item" icon="bi:fire" />按热度值排序</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 根据浏览数排序 -->
|
||||
<div class="sort-by-view"></div>
|
||||
<!-- 根据点赞数排序 -->
|
||||
<div class="sort-by-like"></div>
|
||||
<!-- 根据评论数排序 -->
|
||||
<div class="sort-by-comment"></div>
|
||||
</div>
|
||||
<!-- 交互区搜索框 -->
|
||||
<div class="nav-article-search-container">
|
||||
|
@ -58,7 +77,6 @@ export default {
|
|||
justify-content: center;
|
||||
align-items: center;
|
||||
/* 页面缩小不换行 */
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
}
|
||||
/* 筛选 */
|
||||
|
@ -66,6 +84,41 @@ export default {
|
|||
background-color: var(--kungalgame-trans-red-3);
|
||||
flex-grow: 1;
|
||||
border-radius: 5px 0 0 0;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
}
|
||||
.nav-article-sort-container:hover {
|
||||
background-color: var(--kungalgame-trans-white-2);
|
||||
}
|
||||
.sort-container {
|
||||
width: 100%;
|
||||
top: 100%;
|
||||
position: absolute;
|
||||
}
|
||||
.sort-submenu {
|
||||
display: none;
|
||||
flex-direction: column;
|
||||
box-shadow: 1px 2px 1px 1px var(--kungalgame-trans-blue-4);
|
||||
}
|
||||
.nav-article-sort-container:hover .sort-submenu {
|
||||
display: flex;
|
||||
}
|
||||
.sort-submenu > div {
|
||||
padding: 10px 0;
|
||||
background-color: var(--kungalgame-trans-white-2);
|
||||
font-size: 14px;
|
||||
color: var(--kungalgame-font-color-3);
|
||||
text-decoration: none;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.sort-submenu > div:hover {
|
||||
background-color: var(--kungalgame-red-2);
|
||||
}
|
||||
.icon-item {
|
||||
color: var(--kungalgame-font-color-2);
|
||||
padding-right: 3px;
|
||||
}
|
||||
/* 搜索帖子 */
|
||||
.nav-article-search-container {
|
||||
|
|
Loading…
Reference in a new issue