TopSearch.less 1.83 KB
.wev-topsearch-nav{
    position: relative;
}
.wev-topsearch-nav::before,
.wev-topsearch-nav::after{
    content: "";
    position: absolute;
    z-index: 99;
    background-color: #e5e5e5;
    height: 1px;
    left: 0;
    right: 0;
    transform: scaleY(0.5);
}
.wev-topsearch-nav::before{
    top: 0;
}
.wev-topsearch-nav::after{
    bottom: -1px;
}
.wev-topsearch-nav .wev-filter-items{
    position: relative;
}
.wev-topsearch-nav .wev-filter-item{
    position: relative;
    text-align: center;
    height: 44px;
    line-height: 44px;
    background-color: #fff;
    color: #333;
    font-size: @font-size-base;
    padding: 0 5px;
    width: 100%;
}
.wev-topsearch-nav .wev-filter-item.active,
.wev-topsearch-nav .wev-filter-item.open{
    color: var(--themeColor);
}
.wev-topsearch-nav .wev-filter-item span{
    box-sizing: border-box;
    position: relative;
    display: inline-block;
    max-width: 100%;
    padding-right: 16px;
}
.wev-topsearch-nav .wev-filter-item span::after{
    content: '';
    display: block;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #868686;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}
.wev-topsearch-nav .wev-filter-item.active span::after{
    border-top: 5px solid var(--themeColor);
}
.wev-topsearch-nav .wev-filter-item.open span::after{
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid var(--themeColor);
    border-top: 0;
}

.wev-topsearch-nav .wev-filter-item:not(:last-child)::before{
    content: "";
    position: absolute;
    z-index: 1;
    pointer-events: none;
    background-color: #c8c7cc;
}

.wev-topsearch-nav .wev-filter-item:not(:last-child)::before{
    width: 1px;
    right: 0;
    top: 12px;
    bottom: 12px;
    transform: scaleX(0.5);
}